/* ==========================================================================
   Self-hosted webfonts.

   Generated from Google Fonts, latin subset only. Served from our own origin so
   the @font-face rules arrive with the page's render-blocking CSS rather than
   after it, and the files need no third-party DNS, TLS or round trips.

   One file per family — these are variable fonts, so a single file covers the
   declared weight range.

   Regenerate with: node scripts/selfhost-fonts.mjs
   ========================================================================== */

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  /* Variable font: one file serves this whole range. */
  font-weight: 400 700;
  /* Show fallback text immediately and swap when the file lands. Same-origin
     and preloaded, so the window is short. */
  font-display: swap;
  src: url('/brand/fonts/hanken-grotesk.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  /* Variable font: one file serves this whole range. */
  font-weight: 500 700;
  /* Show fallback text immediately and swap when the file lands. Same-origin
     and preloaded, so the window is short. */
  font-display: swap;
  src: url('/brand/fonts/manrope.woff2') format('woff2');
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  /* Variable font: one file serves this whole range. */
  font-weight: 400 600;
  /* Show fallback text immediately and swap when the file lands. Same-origin
     and preloaded, so the window is short. */
  font-display: swap;
  src: url('/brand/fonts/newsreader.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  /* Variable font: one file serves this whole range. */
  font-weight: 400 500;
  /* Show fallback text immediately and swap when the file lands. Same-origin
     and preloaded, so the window is short. */
  font-display: swap;
  src: url('/brand/fonts/jetbrains-mono.woff2') format('woff2');
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  /* Variable font: one file serves this whole range. */
  font-weight: 600 800;
  /* Show fallback text immediately and swap when the file lands. Same-origin
     and preloaded, so the window is short. */
  font-display: swap;
  src: url('/brand/fonts/nunito.woff2') format('woff2');
}
