/* Inter var, in two tiers.
 *
 * What shipped before was the full Inter variable font: 228KB roman + 245KB
 * italic, covering Latin, Greek, Cyrillic and Vietnamese. The storefront renders
 * Latin essentially always, so nearly every visitor downloaded ~170KB of glyphs
 * for alphabets that never appeared on their screen — and the roman file was the
 * single largest asset on the checkout page.
 *
 * So: a Latin subset (Basic Latin, Latin-1, Latin Extended-A, general
 * punctuation, currency and the few symbols the UI uses) is declared SECOND, and
 * the full font FIRST. For any given character the browser uses the LAST
 * @font-face whose unicode-range covers it — so Latin resolves to the subset,
 * while anything else (a seller name in Cyrillic, a Greek product title) still
 * resolves to the full file. Faces download lazily and independently, so an
 * all-Latin page fetches only the subset and never touches the full one.
 *
 * 228KB -> 66KB roman, 245KB -> 72KB italic (~71% smaller).
 *
 * Both tiers keep the variable weight axis — fvar/gvar survive the subsetting —
 * so `font-weight: 100 900` still interpolates. The UI uses 400 through 800.
 *
 * ⚠️ If the UI starts using characters outside the ranges below, regenerate the
 * subsets. A missed character is not broken, it just falls through to tier 1 and
 * downloads 228KB to draw itself. Built with the `subset-font` npm package
 * (harfbuzz), targetFormat 'woff2', from the untouched *.var.woff2 originals
 * kept beside these files.
 */

/* Tier 1 — full coverage. Fetched only when a non-Latin character is rendered. */
@font-face {
    font-family: 'Inter var';
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
    font-named-instance: 'Regular';
    src: url("Inter-roman.var.woff2?v=3.18") format("woff2");
}

@font-face {
    font-family: 'Inter var';
    font-weight: 100 900;
    font-display: swap;
    font-style: italic;
    font-named-instance: 'Italic';
    src: url("Inter-italic.var.woff2?v=3.18") format("woff2");
}

/* Tier 2 — Latin subset. Declared last so it wins for every character it covers. */
@font-face {
    font-family: 'Inter var';
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
    font-named-instance: 'Regular';
    src: url("Inter-roman.latin.woff2?v=3.18") format("woff2");
    unicode-range: U+0000-00FF, U+0100-017F, U+2000-206F, U+20A0-20BF,
                   U+2122, U+2190-2193, U+2212, U+2605-2606, U+2713-2714, U+FB01-FB02;
}

@font-face {
    font-family: 'Inter var';
    font-weight: 100 900;
    font-display: swap;
    font-style: italic;
    font-named-instance: 'Italic';
    src: url("Inter-italic.latin.woff2?v=3.18") format("woff2");
    unicode-range: U+0000-00FF, U+0100-017F, U+2000-206F, U+20A0-20BF,
                   U+2122, U+2190-2193, U+2212, U+2605-2606, U+2713-2714, U+FB01-FB02;
}
