/* ============================================================================
 * @startup/tokens — WEBFONTS
 *
 * Three families, self-hosted. Files live in each app's `public/fonts`
 * directory, so the URLs below are absolute and identical for every app.
 *
 *   Plus Jakarta Sans   body and UI            --font-family-primary
 *   Archivo             headings               --font-family-display
 *   IBM Plex Mono       eyebrows, figures      --font-family-mono
 *
 * These are the three the brand's own site loads, so the product and the page
 * that sells it set type identically rather than merely similarly.
 *
 * ── Vietnamese ──────────────────────────────────────────────────────────────
 *
 * This replaced a family that could not render Vietnamese. Probing its cmap
 * found 15 of 18 Vietnamese-only codepoints missing — ạ ả ấ ắ ế ệ ị ố ộ ớ ợ ứ
 * ự ỳ and more — so in a Vietnamese-first product every accented word fell
 * out of the brand face and into whatever the reader's system supplied,
 * mid-sentence. All three families below ship the `vietnamese` subset, which
 * is the first @font-face rule of each set.
 *
 * ── Subsetting ──────────────────────────────────────────────────────────────
 *
 * Each family is split by `unicode-range`, so a browser downloads only the
 * ranges a page actually uses. The three ranges overlap on a handful of
 * combining marks (U+0304, U+0308, U+0329); for an overlap the LAST matching
 * rule wins, so the order here — vietnamese, latin-ext, latin — is deliberate
 * and matches how the subsets were cut.
 *
 * The cyrillic subsets are deliberately not shipped: no locale we serve needs
 * them, and an unused @font-face is still a file somebody has to keep.
 *
 * ── Format and delivery ─────────────────────────────────────────────────────
 *
 * woff2 only. woff saved a browser generation that has since gone; eot is IE;
 * ttf is 30-50% larger with no browser that needs it. `local()` is omitted on
 * purpose — it hands rendering to whatever build happens to be installed on
 * the reader's machine, which is how one page ends up with different metrics
 * per visitor.
 *
 * Every face is `font-display: swap`, so text is readable on first paint.
 *
 * ── Weights ─────────────────────────────────────────────────────────────────
 *
 * Plus Jakarta Sans and Archivo are VARIABLE: one file per subset covers the
 * whole axis, declared here as a range. That is why `--font-weight-medium` is
 * 500 again rather than the 600 it was pinned to when the previous family had
 * no 500 cut.
 *
 * IBM Plex Mono is static and ships 400 and 500 only. Nothing sets mono in
 * bold; if something ever needs to, add the cut rather than let the browser
 * synthesise one.
 * ========================================================================= */

/* ============================================================================
 * Plus Jakarta Sans — body and UI. Variable, 200–800.
 * ========================================================================= */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/PlusJakartaSans-vietnamese.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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: 'Plus Jakarta Sans';
  src: url('/fonts/PlusJakartaSans-latin-ext.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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: 'Plus Jakarta Sans';
  src: url('/fonts/PlusJakartaSans-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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;
}

/* ============================================================================
 * Archivo — headings. Variable, 100–900.
 * ========================================================================= */
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/Archivo-vietnamese.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: 'Archivo';
  src: url('/fonts/Archivo-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: 'Archivo';
  src: url('/fonts/Archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}

/* ============================================================================
 * IBM Plex Mono — eyebrows and figures. Static: 400 and 500.
 * ========================================================================= */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-400-vietnamese.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-400-latin-ext.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-500-vietnamese.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  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: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-500-latin-ext.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  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: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-500-latin.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  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;
}
