/* Self-hosted fonts — previously loaded from fonts.googleapis.com, which
   added an extra external DNS/connect/download round-trip (and a
   render-blocking stylesheet fetch) to the critical rendering path. See
   ROADMAP.md's Performance section, 2026-07-11 PageSpeed follow-up.
   Latin subset only (the only unicode range this site's content uses) —
   trimmed from Google's default multi-subset response. Inter is a
   variable font; Google serves one file covering the whole weight axis,
   so a single font-weight range rule covers it without duplicating the
   file per weight. IBM Plex Mono is a static family and needs one file
   per weight.

   Fraunces (serif, editorial headings) is deliberately NOT declared here
   — see fonts-serif.css. site.css's `h1,h2,h3{font-family:var(--serif)}`
   rule is shared across every page, including the main tool, and the
   product name is an <h1> — if Fraunces were declared in this
   universally-loaded file, that rule would make the tool page eagerly
   fetch a 37KB font it never used before (the old Google Fonts link on
   templates/index.html never requested Fraunces either, only Inter/IBM
   Plex Mono). Found via a real PageSpeed regression (86 -> 64) after an
   earlier version of this fix merged all three families into one file. */

/* Every url() below carries ?v=1 — app.py's Cache-Control logic only
   grants the 1-year immutable treatment to /static/ requests that carry
   a query string (the same "versioned query string = safe to cache
   forever" convention every other static asset here already follows).
   Without it these fell back to the generic 1-hour static-asset policy —
   a real gap caught via a Catchpoint synthetic test's browser-caching
   audit (chipflip.net/static/fonts/inter/... was flagged at only 60min
   TTL), not the noisy PageSpeed lab score. Bump the version if the font
   files themselves are ever replaced. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/static/fonts/inter/inter-variable-latin.woff2?v=1') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/ibm-plex-mono/ibm-plex-mono-400-latin.woff2?v=1') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/ibm-plex-mono/ibm-plex-mono-500-latin.woff2?v=1') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/ibm-plex-mono/ibm-plex-mono-600-latin.woff2?v=1') format('woff2');
}
