/* =============================================================================
   fonts.css — @font-face ONLY. No selectors, no colours, no layout.

   Three logical families, each assembled from per-script faces. Every face
   declares the unicode-range it owns, so the browser does per-glyph fallback
   for free: one card can mix an Armenian label, a Latin name and a Cyrillic
   city and each glyph comes from the right face with no :lang() switching and
   no JavaScript.

   Self-hosted, subset, immutable-cached. NOTHING here may point at a third
   party — "no data leaves the building" (tz_roadmap.md) makes a Google Fonts
   <link> a policy violation, not a performance note.

   Mono (Vanik Data) is deliberately pinned to ASCII. There is no good open
   monospace with Armenian coverage; mono is for numerals, Latin identifiers
   and punctuation, and `font-variant-numeric: tabular-nums` (see base.css)
   keeps the column alignment mono was there to provide. Armenian text that
   lands in a .mono box falls through to Vanik Text by design.

   Files are produced by tools/subset_fonts.py and committed. Weight ranges
   below match what each variable face actually ships — do not widen them or
   the browser will synthesise (and font-synthesis-weight:none in tokens.css
   will simply refuse, leaving the wrong weight).
   ========================================================================= */

/* --- Vanik Display — Bricolage Grotesque / Golos Text / Mardoto ---------- */

@font-face {
  font-family: "Vanik Display";
  src: url("/static/fonts/v1/bricolage-latin.woff2") format("woff2");
  font-weight: 200 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;
}

@font-face {
  font-family: "Vanik Display";
  src: url("/static/fonts/v1/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
                 U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Vanik Display";
  src: url("/static/fonts/v1/golos-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Vanik Display";
  src: url("/static/fonts/v1/armenian-display.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17;
}

/* --- Vanik Text — Inter / Inter Cyrillic / Noto Sans Armenian ------------ */

@font-face {
  font-family: "Vanik Text";
  src: url("/static/fonts/v1/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  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;
}

/* Not in the P0 asset list, but the orchestrator shipped the subset and the
   roster is full of names that need it (Ğ, Ş, ș, ț, Ł, ő …). Without this
   face those glyphs drop to system-ui mid-word. */
@font-face {
  font-family: "Vanik Text";
  src: url("/static/fonts/v1/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
                 U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Vanik Text";
  src: url("/static/fonts/v1/inter-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Vanik Text";
  src: url("/static/fonts/v1/noto-armenian.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17;
}

/* --- Vanik Data — Geist Mono, ASCII only -------------------------------- */

@font-face {
  font-family: "Vanik Data";
  src: url("/static/fonts/v1/geist-mono-data.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00D7, U+2007, U+2009, U+2013, U+2014,
                 U+2192, U+2212;
}
