/* ═══════════════════════════════════════════════════════════════
   CrisisFlare — self-hosted display type
   Family: Figtree (Erik Kennedy) · SIL Open Font License 1.1
   Variable weight axis 300–900 · Latin + Latin-Ext only.
   ───────────────────────────────────────────────────────────────
   WHY: warm humanist sans, tall x-height, open apertures — reads
   fast and calm under stress on cheap Android screens. Used for
   org names + headings only; body copy stays on the system stack.

   The .woff2 is NOT bundled here (strict same-origin CSP; we vendor
   third-party binaries from their canonical source — see README.md).
   Drop `figtree-latin-variable.woff2` (≤ ~45 KB subset) beside this
   file and it lights up. Until then the metric-matched fallback
   below renders with ZERO layout shift.
   ═══════════════════════════════════════════════════════════════ */

@font-face{
  font-family:"Figtree";
  font-style:normal;
  font-weight:300 900;                 /* one variable file, whole weight range */
  font-display:swap;                    /* never block first paint */
  src:url("../fonts/figtree-latin-variable.woff2") format("woff2-variations");
  /* Latin + Latin-Extended-A + common punctuation/currency. Non-Latin
     scripts (Arabic, 中文, हिन्दी, Tiếng Việt combining marks beyond this
     range) fall through to the system stack automatically. */
  unicode-range:U+0000-00FF,U+0100-017F,U+0180-024F,U+2000-206F,U+2074,U+20A0-20BF,U+2122,U+2212,U+FB00-FB04;
}

/* ── Metric-matched fallback → no reflow when Figtree swaps in ──
   Overrides tuned to Figtree's vertical metrics (generated with
   Fontsource/Capsize). Regenerate if you change the family. */
@font-face{
  font-family:"Figtree Fallback";
  src:local("Arial"),local("Helvetica Neue"),local("Roboto");
  ascent-override:94.71%;
  descent-override:24.86%;
  line-gap-override:0%;
  size-adjust:100.06%;
}

/* Design-type stack. Arabic-first locales resolve to Segoe UI / Tahoma /
   system Arabic faces via the tail of the stack. */
:root{
  --font-display:"Figtree","Figtree Fallback",-apple-system,BlinkMacSystemFont,
    "Segoe UI","Noto Sans","Noto Sans Arabic",Roboto,Helvetica,Arial,sans-serif;
}
