/*
 * The faces §8.2 names, actually loaded.
 *
 * These three fonts were declared in `tokens.ts`, duplicated into the HTML templates, and asserted by
 * `theme.test.ts` — and never once downloaded. Every browser silently fell back to `system-ui`, so the
 * documented typography has never been on screen, while the test passed because the token read
 * correctly. A test that asserts a declaration is not a test that asserts an effect.
 *
 * Each family is **one variable file**, not one per weight. Requesting Space Grotesk at 400/500/600/700
 * from Google Fonts returns the identical bytes four times (`font-weight: 400 700` on a variable face),
 * so shipping four copies would have tripled the payload for no glyphs. The `font-weight` ranges below
 * are the ones actually requested; a range that claims more than the file carries invites the browser
 * to synthesise the difference, which is worse than falling back.
 *
 * Latin subsets only, 99.6 KiB total. CJK and Arabic stay on the system stack: Noto Serif SC is
 * several megabytes, every target machine already has a CJK serif, and a webfont whose absence would
 * blank the page is not worth 4 MB. `unicode-range` is declared anyway so a Latin file is never
 * consulted for a glyph it cannot draw.
 */

/* Space Grotesk — display. */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/space-grotesk.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

/* Inter — body copy. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("./fonts/inter.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

/* JetBrains Mono — numerals. Tabular wherever a value changes, which is the whole reason it is here. */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("./fonts/jetbrains-mono.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}
