/* Saegic — self-hosted webfonts.
 *
 * Replaces Elementor's Google Fonts enqueue (disabled in functions.php).
 * Elementor requested every weight 100-900 + italics of both families from
 * fonts.googleapis.com with display=swap, which is what caused the visible
 * system-font-then-Unbounded flash: a render-blocking third-party stylesheet,
 * then a second hop to fonts.gstatic.com for the woff2, then a swap.
 *
 * These are the variable woff2s (one file covers 400-700) served same-origin
 * and preloaded in <head>, with font-display:optional so the browser either
 * has the real font at first paint or commits to the fallback for that load —
 * it never swaps mid-render.
 *
 * Fallback faces are metric-matched (measured off the actual woff2s with
 * fontTools) so the fallback occupies identical space. Unbounded is 33% wider
 * than Arial, which is why size-adjust is so large.
 */

/* ── Unbounded (display) ───────────────────────────────────────────────── */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url('fonts/unbounded-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;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url('fonts/unbounded-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;
}

/* ── Figtree (body) ────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url('fonts/figtree-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;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url('fonts/figtree-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;
}

/* ── Metric-matched fallbacks ──────────────────────────────────────────── */
@font-face {
  font-family: 'Unbounded Fallback';
  src: local('Arial'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 122.62%;
  ascent-override: 81.14%;
  descent-override: 19.98%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Figtree Fallback';
  src: local('Arial'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 98.59%;
  ascent-override: 96.36%;
  descent-override: 25.36%;
  line-gap-override: 0%;
}
