/*
 * Inter, the one shared copy for every tallyfy.com surface.
 *
 * Canonical address: https://tallyfy.com/fonts/v1/inter.css
 * Spec: tallyfy/systems#346 (parent), tallyfy/website-astro#480 (this repo)
 *
 * WHY THIS FILE EXISTS
 * Tallyfy served the same Inter from five addresses, so a reader who went from the
 * marketing site to the docs to the signed-in app downloaded the same letters three
 * times. Browsers key their HTTP cache on the registrable domain, so every surface
 * under tallyfy.com shares one cache partition. They just never shared a URL. One
 * address is the whole fix.
 *
 * PROVENANCE, measured 2026-09-15 and not inferred
 * The 14 woff2 files beside this stylesheet are byte-identical to
 * @fontsource-variable/inter 5.2.7 (Inter 4.x, wght axis 100 to 900). The same bytes
 * ship in 5.2.8 and 5.3.0; they differ from 5.2.4, 5.2.5 and 5.2.6. Every
 * unicode-range below was copied from that package's own wght.css and
 * wght-italic.css by a script, never typed, and each one was compared back against
 * upstream: 14 of 14 ranges equal, 0 mismatches.
 *
 * TWO DELIBERATE CHANGES FROM UPSTREAM, so nobody 'corrects' them back
 * 1. family name. Upstream calls it 'Inter Variable'. This file says 'Inter', which
 *    is what client-v2 already ships and what the api-v2 account layout is specified
 *    to use. Set it to whatever your own font stack already names. The marketing
 *    site declares these same 14 faces locally under 'Inter Variable', because every
 *    one of its stacks names that, and renaming the stacks would be a far bigger and
 *    riskier change than renaming the face.
 * 2. format(). Upstream says format('woff2-variations'). This file says
 *    format('woff2'). A browser that does not recognise a format string skips the
 *    whole @font-face, so the unrecognised-but-more-precise string fails closed to no
 *    font at all. Every browser that can render a variable font accepts plain
 *    format('woff2'). client-v2 and the marketing site both already use it.
 *
 * URLS ARE ABSOLUTE ON PURPOSE. A repo that copies this text into an inline <style>
 * block would resolve a relative URL against its own page and 404. Absolute works
 * whether this file is linked, imported or pasted.
 *
 * NOTHING UNDER /fonts/v1/ IS EVER EDITED. The path carries the version because the
 * filenames carry no content hash, and the binaries are served immutable for a year.
 * A new Inter release means a new /fonts/v1/ sibling, not an edit here. This
 * stylesheet is the one exception, cached for a day, so a range can be corrected in
 * place without four repos redeploying.
 *
 * DECLARING SUBSETS A PAGE DOES NOT USE COSTS ZERO BYTES. Per MDN, if the page uses
 * no character in a range, that font is not downloaded. A latin-only page fetches
 * exactly one file, inter-latin-wght-normal.woff2, 48,256 bytes.
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://tallyfy.com/fonts/v1/inter-cyrillic-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://tallyfy.com/fonts/v1/inter-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://tallyfy.com/fonts/v1/inter-greek-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://tallyfy.com/fonts/v1/inter-greek-wght-normal.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://tallyfy.com/fonts/v1/inter-vietnamese-wght-normal.woff2') format('woff2');
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309,
    U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://tallyfy.com/fonts/v1/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://tallyfy.com/fonts/v1/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://tallyfy.com/fonts/v1/inter-cyrillic-ext-wght-italic.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://tallyfy.com/fonts/v1/inter-cyrillic-wght-italic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://tallyfy.com/fonts/v1/inter-greek-ext-wght-italic.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://tallyfy.com/fonts/v1/inter-greek-wght-italic.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://tallyfy.com/fonts/v1/inter-vietnamese-wght-italic.woff2') format('woff2');
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309,
    U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://tallyfy.com/fonts/v1/inter-latin-ext-wght-italic.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://tallyfy.com/fonts/v1/inter-latin-wght-italic.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
