/* Self-hosted brand fonts. The tool must work with no network (Franco uses it on a
   driveway) and cost $0 forever, so no Google Fonts CDN. Latin subset only.
   Source: Google Fonts, SIL Open Font License 1.1.

     Sora + Inter        -> Franco's brand (matches site/css/tokens.css)
     Space Grotesk       -> Light Leads' brand (matches clients/light-leads/site/css/tokens.css)

   Which family a given brand uses is decided by the SCHEMA (brand.fonts.head/body),
   not here. This file just makes every family we might switch to available offline.

   These are VARIABLE fonts: ask the css2 API for a weight RANGE (e.g. wght@300..700)
   and it serves ONE file per family covering every weight, so we ship one file and
   declare a weight RANGE. Three files, 94KB total.

   NOTE (measured 2026-07-15): asking for a SINGLE weight (wght@700) does NOT return the
   same bytes — it returns a smaller STATIC instance with no fvar table (Space Grotesk:
   12,848B static vs 22,320B variable). So always request the range when regenerating,
   or the weight range declared below will silently have nothing to interpolate.

   Paths below are relative to THIS FILE (../assets/fonts/...), not to the page.
   Getting that wrong 404s and falls back to system-ui without any visible error.

   Regenerate: see SCOPE.md "Fonts". */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/inter-var.woff2') format('woff2-variations'),
       url('../assets/fonts/inter-var.woff2') format('woff2');
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/sora-var.woff2') format('woff2-variations'),
       url('../assets/fonts/sora-var.woff2') format('woff2');
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Light Leads' display face. Axis range is 300-700 (narrower than Sora's 400-800),
   so the range is declared to match the axis exactly — asking for 800 here would
   just clamp and render 700 while looking like a bug. */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-var.woff2') format('woff2-variations'),
       url('../assets/fonts/space-grotesk-var.woff2') format('woff2');
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
