/* ──────────────────────────────────────────────────────────────────────────
   Self-hosted brand fonts — Inter (all UI) + JetBrains Mono (tabular numbers).

   WHY self-hosted: the portal previously loaded these from the Google Fonts CDN
   (fonts.googleapis.com / fonts.gstatic.com), but the app's Content-Security-
   Policy blocks third-party hosts — so production rendered the ENTIRE portal in
   system fallback fonts, not Inter (the "wrong font" bug, 2026-06-08). Serving
   the fonts from our own origin removes that CDN dependency entirely, lets the
   CSP stay tight (font-src 'self'), is faster (no extra DNS/TLS to a 3rd party),
   and is privacy-cleaner (no client IPs sent to Google).

   Files are latin-subset variable woff2 from @fontsource-variable, SIL Open Font
   License 1.1 (see fonts/LICENSES.md). One file per family covers the whole
   weight axis (font-weight: 100 900), so every weight the design system uses is
   one download. font-display:swap shows the system fallback for the ~ms before
   the woff2 lands, then swaps — no invisible-text flash.

   This file is linked FIRST in portal.html (before design-tokens/components/
   portal css) so the @font-face is registered before first paint.
   ────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/inter-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/static/fonts/jetbrains-mono-variable.woff2') format('woff2');
}
