/* Self-hosted webfonts for the public site.
 *
 * The theme stylesheet (public/assets/css/style.css and its /light mirror) has
 * always asked for Sora (body + headings), Poppins (paragraphs) and Space Grotesk
 * (numbers), but nothing ever LOADED them: the only @font-face rules in the whole
 * bundle belong to the icon fonts (Font Awesome, ionicons, Pe-icon-7-stroke), and
 * there is no font CDN link either. Every visitor therefore got the system sans
 * fallback instead of the typography the design was built on. This file is the
 * missing half.
 *
 * Deliberate choices:
 *  - ONE file, not one per theme. Typography is identical in dark and light, so
 *    this is linked from app.vue with an absolute /assets path and is NOT mirrored
 *    under /light. That keeps it outside the "make the same edit in both mirrors"
 *    trap that has bitten style.css before.
 *  - Self-hosted, never a font CDN: the CSP allows `font-src 'self' data:` only,
 *    and a third-party font host would leak visitor IPs on every page view.
 *  - Sora and Space Grotesk are VARIABLE fonts - one file each covers the whole
 *    weight range (Sora 100-800, Space Grotesk 300-700), which is why the loader's
 *    font-weight: 200 and the headings' 700/800 all render from a single download
 *    instead of six static files.
 *  - Poppins has no variable build, so only the two weights the stylesheet
 *    actually uses on text (300 for <p>, 400) are shipped.
 *  - The family names are the plain ones ('Sora', not 'Sora Variable') so the
 *    existing theme CSS resolves them with no edits.
 *  - latin-ext is split out per Fontsource's unicode-range: browsers fetch it only
 *    when a page really needs those glyphs, so the common case stays at latin.
 *    Albanian (ë, ç) and German (ä, ö, ü, ß) all live in the latin subset.
 *  - font-display: swap - text paints immediately in the fallback and re-renders,
 *    rather than blocking on the font.
 *
 * Licences (SIL OFL 1.1) ship next to the files: /assets/fonts/webfonts/LICENSE.txt
 * Cache note: this file is a plain static asset under /assets (7-day
 * Cache-Control, no content hash), so it is loaded through versioned() and is
 * covered by CSS_VERSION in shared/assetVersion.ts - bump that when editing here.
 */

/* --- Sora: body copy and headings (variable, 100-800) --------------------- */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('/assets/fonts/webfonts/sora-latin-ext-wght-normal.woff2') format('woff2-variations');
  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;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('/assets/fonts/webfonts/sora-latin-wght-normal.woff2') format('woff2-variations');
  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;
}

/* --- Space Grotesk: numerals (.numb, .num-font) (variable, 300-700) ------- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('/assets/fonts/webfonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations');
  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;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('/assets/fonts/webfonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  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;
}

/* --- Poppins: <p> copy (static; only the weights the theme uses) ---------- */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url('/assets/fonts/webfonts/poppins-latin-ext-300-normal.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;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url('/assets/fonts/webfonts/poppins-latin-300-normal.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: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/assets/fonts/webfonts/poppins-latin-ext-400-normal.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;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/assets/fonts/webfonts/poppins-latin-400-normal.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;
}
