/* ============================================================
 * NextGen MIS — Web fonts
 * ------------------------------------------------------------
 * Self-hosted WOFF2 (latin subset). Locations:
 *   /fonts/figtree/                 — variable WOFF2, weights 300–900
 *   /fonts/atkinson-hyperlegible/   — 4 faces (400/700 × italic/normal)
 *
 * Both are SIL Open Font Licensed. Licenses live alongside the
 * fonts (OFL.txt in each folder).
 *
 * Why two fonts:
 *   - Figtree    → display + UI chrome (friendly, modern, geometric)
 *   - Atkinson   → tables / data / numerics (max-legibility, designed
 *                  by Braille Institute for low-vision readers)
 *
 * size-adjust / ascent-override:
 *   Not used in this version. If you observe layout shift on first
 *   paint, capture the FCP metrics and revisit — both fonts have
 *   metrics close enough to system defaults that the swap is gentle.
 * ============================================================ */

/* ---------- FIGTREE (variable) ---------- */
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree/Figtree-Variable.woff2') format('woff2-variations'),
       url('/fonts/figtree/Figtree-Variable.woff2') format('woff2');
  font-weight: 300 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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree/Figtree-Variable-Italic.woff2') format('woff2-variations'),
       url('/fonts/figtree/Figtree-Variable-Italic.woff2') format('woff2');
  font-weight: 300 900;
  font-style: italic;
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- ATKINSON HYPERLEGIBLE ---------- */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/fonts/atkinson-hyperlegible/AtkinsonHyperlegible-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/fonts/atkinson-hyperlegible/AtkinsonHyperlegible-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/fonts/atkinson-hyperlegible/AtkinsonHyperlegible-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/fonts/atkinson-hyperlegible/AtkinsonHyperlegible-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
