/* =====================================================================
   THE TWO VOICES, SERVED FROM HERE (docs/DESIGN.md → Typography · Fonts).

   Words are set in Inter; every figure in JetBrains Mono, and so is every
   DIGIT, wherever it stands: "Y Digits" is JetBrains Mono's ten digits
   alone, named first in --sans (css/main.css), so the 500 in US500, the 10
   in 10m and the figures inside a sentence take the same face as a price,
   by the stack and with no markup, on a canvas too (v9 · type-language,
   owner 2026-11-06: "the numbers in the name should be numbers in the
   price"). Its weight axis is remapped (avar) so a digit's stem matches
   Inter's at the same CSS weight: 90/88 at 400, 106/107 at 500, 128/127 at
   600 (per mille of the em).

   THE ZERO IS PLAIN. JetBrains Mono's own zero carries a dot, which at 9 px
   reads as a smudge or a line; ours is JetBrains' outline with that contour
   taken out and nothing else (fontTools; its variation deltas kept in
   step). It is told from O by its shape: the letter O is always Inter's
   circle, the zero always JetBrains' upright oval. The modified file keeps
   the family's name (OFL 1.1, no reserved name: assets/fonts/OFL-*.txt);
   ~/Y-v9-briefs/type-language/plainzero.py and figures.py rebuild them
   from JetBrains Mono 2.304. The code ligatures (calt) are not in the cut.

   Archivo stays for the P&L and tier cards (branding: they draw in it by
   name) and is never preloaded: it loads only when a card is drawn.

   All are the SIL Open Font License, served from this origin instead of
   Google's: no third-party request on the critical path, no network needed
   by the offline fixture, and no wait and no shift while they arrive.

   ONE VARIABLE FILE PER VOICE AND SCRIPT. Inter spans weight 100–900 and
   optical size 14–32 (font-optical-sizing:auto picks the text cut at 11–13
   px and the display cut from 22 px by the size alone); JetBrains Mono
   spans 100–800. Latin is preloaded by index.html because every page needs
   it; latin-ext is fetched only when a glyph in its range is on screen
   (unicode-range), which for this product is almost never.

   METRIC-COMPATIBLE FALLBACKS. Until a file lands the text is set in a
   local face RESIZED to the real one's advance and hung on its ascent and
   descent — Arial (and Liberation Sans, metric-identical, on Linux) for
   Inter, Courier New (Liberation Mono) for JetBrains Mono — so the swap is
   a change of drawing and never of layout. Measured, not guessed: the
   advance of a mixed sentence, label and figure string in each face
   (Inter at opsz 14, 400 and 600, against Arial and Arial Bold) and the
   faces' own ascent and descent (Inter 96.9/24.1, JetBrains Mono 102/30
   per 100). --sans and --mono (css/main.css) name these fallbacks second.

   THE FILES ARE NAMED FROM THE ROOT (v9 · Q43): this sheet is served from
   the build's path (/v/<build>/css/), the fonts are not — they change by
   name only and keep their week of cache across builds, and the head's
   preloads ask for the same addresses (backend.md → THE CODE IS IMMUTABLE).
   ===================================================================== */

/* ---- Inter · latin ---- */
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;
  src:url(/assets/fonts/inter-latin.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}
/* ---- Inter · latin-ext ---- */
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;
  src:url(/assets/fonts/inter-latin-ext.woff2) format("woff2");
  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}

/* ---- Y Digits: JetBrains Mono's ten digits, first in --sans ---- */
@font-face{font-family:"Y Digits";font-style:normal;font-weight:100 800;font-display:swap;
  src:url(/assets/fonts/jetbrains-mono-y-digits.woff2) format("woff2");
  unicode-range:U+0030-0039}

/* ---- JetBrains Mono, plain zero · latin ---- */
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:100 800;font-display:swap;
  src:url(/assets/fonts/jetbrains-mono-y-latin.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}
/* ---- JetBrains Mono, plain zero · latin-ext ---- */
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:100 800;font-display:swap;
  src:url(/assets/fonts/jetbrains-mono-y-latin-ext.woff2) format("woff2");
  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}

/* ---- Archivo · latin: the P&L and tier cards only ---- */
/* "Y Figures": JetBrains Mono for a figure's own characters only — its digits, separators, signs and the dash
   that stands for a missing one — so `--mono` sets a figure's digits in the same width and its letters in Inter:
   "BID", "UTC", "est", "auto", "GTC", the k of $1.4k (v9 · type-language, owner 2026-11-06: words in Inter,
   only the figures in mono; until then a word in a figure's row was set in mono and read as code).
   The same file as the face below: one download. */
@font-face{font-family:"Y Figures";font-style:normal;font-weight:100 800;font-display:swap;
  src:url(/assets/fonts/jetbrains-mono-y-latin.woff2) format("woff2");
  unicode-range:U+0023-0025,U+0028-0029,U+002B-002F,U+0030-003A,U+003C,U+003E,U+007E,U+00A2,U+00B1,U+00D7,U+2013-2014,U+2212}

@font-face{font-family:"Archivo";font-style:normal;font-weight:100 900;font-stretch:62% 125%;font-display:swap;
  src:url(/assets/fonts/archivo-latin.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}
/* ---- Archivo · latin-ext ---- */
@font-face{font-family:"Archivo";font-style:normal;font-weight:100 900;font-stretch:62% 125%;font-display:swap;
  src:url(/assets/fonts/archivo-latin-ext.woff2) format("woff2");
  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}

/* ---- the fallbacks: a local face resized to the real one ----
   size-adjust = the real face's advance over the local one's; the
   overrides = the real ascent / descent divided by that same factor. */
@font-face{font-family:"Inter Fallback";font-weight:100 549;
  src:local("Arial"),local("ArialMT"),local("Liberation Sans"),local("Arimo");
  size-adjust:106.6%;ascent-override:90.9%;descent-override:22.6%;line-gap-override:0%}
@font-face{font-family:"Inter Fallback";font-weight:550 900;
  src:local("Arial Bold"),local("Arial-BoldMT"),local("Liberation Sans Bold"),local("Arimo Bold");
  size-adjust:102.5%;ascent-override:94.5%;descent-override:23.5%;line-gap-override:0%}
@font-face{font-family:"JetBrains Mono Fallback";font-weight:100 599;
  src:local("Courier New"),local("CourierNewPSMT"),local("Liberation Mono"),local("Cousine");
  size-adjust:100%;ascent-override:102%;descent-override:30%;line-gap-override:0%}
@font-face{font-family:"JetBrains Mono Fallback";font-weight:600 900;
  src:local("Courier New Bold"),local("CourierNewPS-BoldMT"),local("Liberation Mono Bold"),local("Cousine Bold");
  size-adjust:100%;ascent-override:102%;descent-override:30%;line-gap-override:0%}
