/* ============================================================================
   AHA — self-hosted type.

   Replaces two third-party origins (fonts.googleapis.com + fonts.gstatic.com)
   with same-origin files. The saving is less about bytes than about the chain:
   Google's stylesheet is render-blocking and has to resolve, connect and
   download BEFORE the browser even learns which font files it needs. Serving
   the @font-face rules ourselves removes that whole round trip.

   Both faces are variable fonts — one file covers every weight we use — and
   both are subset to the 331 characters the site can actually render.

   font-display:swap so text paints immediately in the fallback and reflows to
   Archivo when it lands; nobody waits on a font to read a headline.

   Licence: both families are SIL Open Font License 1.1, which explicitly
   permits self-hosting and redistribution.
   ============================================================================ */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin-var.subset.woff2') format('woff2');
  font-weight: 100 900;          /* variable axis — do not split into statics */
  font-style: normal;
  font-display: swap;
  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;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrainsmono-latin-var.subset.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  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;
}
