/* Self-hosted fonts. Generated from Google Fonts CSS API. Latin + Latin Extended only. */

/* ─── Metric-overridden fallbacks (computed, not approximated) ──────────────
   Pre-render in system fonts shaped to match the EXACT metrics of the web
   fonts. Values computed from the actual WOFF2 files via fontTools — see
   /tmp/compute_fallback_metrics.py or the blog writeup for the methodology.
   When the real web font swaps in via font-display: swap, glyph widths,
   ascent, descent, and line-gap already match → zero CLS.
   ──────────────────────────────────────────────────────────────────────────── */

/* Newsreader normal measured: upem=2000 ascent=1470 descent=530 lineGap=0 avgWidth=1158 */
@font-face {
  font-family: 'Newsreader Fallback';
  font-style: normal;
  src: local('Times New Roman'), local('Georgia');
  size-adjust: 144.80%;
  ascent-override: 50.76%;
  descent-override: 18.30%;
  line-gap-override: 0%;
}

/* Newsreader italic measured: upem=2000 ascent=1470 descent=530 lineGap=0 avgWidth=1106 */
@font-face {
  font-family: 'Newsreader Fallback';
  font-style: italic;
  src: local('Times New Roman Italic'), local('Times Italic'), local('Georgia Italic');
  size-adjust: 138.29%;
  ascent-override: 53.15%;
  descent-override: 19.16%;
  line-gap-override: 0%;
}

/* Note: Inter and JetBrains Mono fallbacks intentionally NOT defined.
   Their size-adjust values (Inter +36%, JBM nearly unchanged) make the
   underlying system font (Arial / Menlo) render visibly scaled before
   the web font swaps in, which feels worse than just using system-ui /
   ui-monospace during the brief pre-swap window. Both web fonts are
   preloaded in layout.php so the swap window is ~50ms.

   For reference, the computed values WERE:
     Inter Fallback           size-adjust: 136.19% ascent: 71.13% descent: 17.71%
     JetBrains Mono Fallback  size-adjust:  99.98% ascent: 102.02% descent: 30.00%
*/



/* Inter — normal — 400-700 — latin-ext (83.1 KB) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-normal-400-700-latin-ext.woff2') format('woff2');
  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;
}

/* Inter — normal — 400-700 — latin (47.1 KB) — PRELOADED, critical UI face */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url('/assets/fonts/inter-normal-400-700-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 — italic — 400-700 — latin-ext (12.2 KB) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-italic-400-700-latin-ext.woff2') format('woff2');
  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;
}

/* JetBrains Mono — italic — 400-700 — latin (32.3 KB) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-italic-400-700-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 — normal — 400-700 — latin-ext (11.4 KB) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-normal-400-700-latin-ext.woff2') format('woff2');
  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;
}

/* JetBrains Mono — normal — 400-700 — latin (30.7 KB) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-normal-400-700-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;
}

/* Newsreader — italic — 400-700 — latin-ext (38.8 KB) */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/newsreader-italic-400-700-latin-ext.woff2') format('woff2');
  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;
}

/* Newsreader — italic — 400-700 — latin (63.0 KB) — PRELOADED, critical italic face */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 700;
  font-display: optional;
  src: url('/assets/fonts/newsreader-italic-400-700-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;
}

/* Newsreader — normal — 400-700 — latin-ext (35.4 KB) */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/newsreader-normal-400-700-latin-ext.woff2') format('woff2');
  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;
}

/* Newsreader — normal — 400-700 — latin (56.7 KB) — PRELOADED, critical body face */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url('/assets/fonts/newsreader-normal-400-700-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;
}
