/*
 * Self-hosted web fonts (latin subset, woff2) — replaces the render-blocking
 * Google Fonts <link> + preconnects that used to live in index.html, so first
 * paint no longer waits on fonts.googleapis.com / fonts.gstatic.com.
 *
 * Exo 2, Inter and JetBrains Mono are all variable fonts: Google serves ONE
 * woff2 per family covering the whole weight axis, so we ship one file each
 * and declare the full wght range rather than one static file per weight.
 * font-display: swap keeps first paint unblocked (system fallback shows, then
 * swaps in). unicode-range is the Google 'latin' subset, so a face is only
 * fetched when latin text needs it. Family names match design-tokens.css
 * (--font-heading/body/mono) and Shared/KartingTheme.cs exactly.
 *
 * Regenerate: see docs/plans/StagingPerformance/README.md.
 */

/* Inter (body / UI) — app uses weights 400, 500, 600, 700; variable face spans 100-900 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.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;
}

/* Exo 2 (headings) — app uses weights 600, 700; variable face spans 100-900 */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/exo2-latin.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;
}

/* JetBrains Mono (data / mono) — app uses weights 400, 500, 600; variable face spans 400-800 */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.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;
}
