/* Self-hosted so a strict Content-Security-Policy has no external origin to
 * allow. Plus Jakarta Sans and JetBrains Mono are both SIL Open Font License
 * 1.1, which permits redistribution; the licence text travels with the files
 * in fonts/OFL.txt.
 *
 * ONE FILE PER FAMILY, NOT ONE PER WEIGHT. Google serves these as VARIABLE
 * fonts — the eight @font-face rules its API returns all point at the same
 * two binaries, which md5sum confirms. Declaring a weight RANGE gets every
 * weight the pages use from a single request each: 231 KB of duplicates
 * becomes 58 KB.
 *
 * The declared ranges are exactly the weights Google served from these files,
 * so they are known-good rather than assumed from the variable axis.
 *
 * LATIN SUBSET ONLY. The full download also carries latin-ext, cyrillic,
 * cyrillic-ext, greek and vietnamese — roughly four times the payload for
 * glyphs no page here renders.
 *
 * font-display: swap is preserved from upstream: text paints in a fallback
 * immediately rather than staying invisible while a face loads.
 */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./fonts/plus-jakarta-sans.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  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+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
