/* Self-hosted fonts — drop 5z3.
 *
 * Replaces the external <link rel="stylesheet" href="https://fonts.googleapis.com/...">
 * request that was render-blocking every page load. Now the browser fetches
 * these woff2 files from the local server (one round trip, cached forever on
 * subsequent pages) instead of hitting Google's CDN.
 *
 * The font family names below ('Geist', 'JetBrains Mono') match the names
 * the project uses in base.html's inline <style> and in tailwind.config.js.
 * The font files were extracted from @fontsource/geist-sans@5.2.5 and
 * @fontsource/jetbrains-mono@5.2.8 on npm (which mirrors Google Fonts).
 * Weights match what base.html requested from the Google Fonts CDN:
 *   Geist:           300, 400, 500, 600, 700
 *   JetBrains Mono:  400, 500, 600
 *
 * font-display: swap matches Google's default for &display=swap in the URL —
 * shows fallback font immediately, swaps in Geist when loaded. Avoids the
 * "invisible text" flash that would happen with default font-display: auto.
 */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/static/fonts/geist-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/geist-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/geist-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/geist-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/geist-700.woff2') format('woff2');
}

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