/* Edgeview Finance — self-hosted web fonts (woff2-first)
 *
 * All four families self-hosted. No external requests, no Google Fonts,
 * no IP leakage. As of 1.4.1 the set ships as Latin-subset woff2
 * (Brotli-compressed) — ~40–65% lighter than the previous TTFs with
 * zero visual change. TTF is retained only as a transitional fallback
 * in each src list and may be dropped once the woff2 vendor is
 * confirmed across all consumers (every browser Edgeview targets has
 * supported woff2 since 2016).
 *
 * Generation is reproducible — see fonts/CONVERSION.md for the exact
 * pyftsubset + woff2 recipe and the per-family glyph requirements.
 * The .woff2 binaries are produced by that recipe, NOT hand-edited.
 *
 * Families:
 *   - Inter               → body / UI sans-serif          (variable 100–900)
 *   - Instrument Serif    → display serif                 (regular + italic, 400)
 *   - Instrument Sans     → public-website brand sans     (variable 400–700)
 *   - JetBrains Mono      → data / code / provenance / status glyphs (variable 100–800)
 *
 * font-display: swap throughout — show the fallback immediately, swap
 * when the web font lands (no invisible text). Above-the-fold faces are
 * preloaded by the consumer (see CONVERSION.md §preload) so the swap is
 * imperceptible on the critical faces.
 */

/* ── Inter ─────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('Inter-VariableFont.woff2') format('woff2'),
       url('Inter-VariableFont.ttf') format('truetype-variations');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('Inter-Italic-VariableFont.woff2') format('woff2'),
       url('Inter-Italic-VariableFont.ttf') format('truetype-variations');
}

/* ── Instrument Serif ──────────────────────────────────────────────── */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('InstrumentSerif-Regular.woff2') format('woff2'),
       url('InstrumentSerif-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('InstrumentSerif-Italic.woff2') format('woff2'),
       url('InstrumentSerif-Italic.ttf') format('truetype');
}

/* ── Instrument Sans ───────────────────────────────────────────────── */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('InstrumentSans-VariableFont.woff2') format('woff2'),
       url('InstrumentSans-VariableFont.ttf') format('truetype-variations');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('InstrumentSans-Italic-VariableFont.woff2') format('woff2'),
       url('InstrumentSans-Italic-VariableFont.ttf') format('truetype-variations');
}

/* ── JetBrains Mono ────────────────────────────────────────────────── */
/* NB: the credit vertical's status glyphs (✓ △ ○ ◆ ⚠) render in the
 * mono family — the JetBrains Mono subset MUST retain U+2713 25B3 25CB
 * 25C6 26A0 plus → · — (see CONVERSION.md). Do not Latin-only this one. */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('JetBrainsMono-VariableFont.woff2') format('woff2'),
       url('JetBrainsMono-VariableFont.ttf') format('truetype-variations');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 100 800;
  font-display: swap;
  src: url('JetBrainsMono-Italic-VariableFont.woff2') format('woff2'),
       url('JetBrainsMono-Italic-VariableFont.ttf') format('truetype-variations');
}
