/* The SENDNest self-hosted typefaces.
 *
 * This file is the single font mechanism for the whole product: the app
 * (src/app/layout.tsx), the sixteen training modules and the certificate
 * route all link it, and nothing anywhere requests a font from a third
 * party. No request to fonts.googleapis.com or fonts.gstatic.com leaves a
 * visitor's browser, which is what lets the privacy notice say the platform
 * makes no third-party requests at all.
 *
 * The eight .woff2 files beside this stylesheet were downloaded once, on a
 * build machine, from Google's css2 endpoint. Their SHA-256 digests are
 * frozen in the fonts section of supabase/tests/smart-targets-guard.js,
 * which fails if any binary is swapped, truncated or removed. Do not replace
 * a file without updating the digest there in the same commit: a silent swap
 * is exactly what that guard exists to catch.
 *
 * Coverage is the latin and latin-ext subsets. Greek, Cyrillic and
 * Vietnamese are deliberately not vendored: a name in those scripts renders
 * in the system fallback stack rather than the brand face. Recorded
 * decision, not an oversight.
 *
 * These files live under /public and are served unauthenticated, unlike
 * module content. That is deliberate and follows /public/brand: a commodity
 * typeface binary is not the intellectual property the login gate protects,
 * and the public /login and /schools pages need the faces too.
 *
 * The weights the product actually asks for, which is what is vendored:
 *   Playfair Display        400, 600, 700, 900
 *   Source Sans 3           300, 400, 600, 700
 *   Atkinson Hyperlegible   400, 700
 * No italic is requested by any surface, so none is vendored.
 */

/* --- Playfair Display: display and headings --------------------------------
 *
 * One variable file per subset covers every weight. Google served four
 * separate @font-face blocks, one per requested weight, all pointing at this
 * same file; a single range declaration is equivalent at those weights and
 * says plainly that the file is variable. The range is narrowed to 400-900,
 * which spans every weight the product requests.
 */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/playfair-display-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: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/playfair-display-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;
}

/* --- Source Sans 3: body and UI --------------------------------------------
 *
 * Also one variable file per subset, served by Google for all four requested
 * weights. Narrowed to 300-700, the span the product requests.
 */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/source-sans-3-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: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/source-sans-3-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;
}

/* --- Atkinson Hyperlegible: the accessibility alternative -------------------
 *
 * Static rather than variable, so Google served a separate file per weight
 * per subset, four in all, and these declarations reproduce that exactly.
 * Switched on by the module accessibility toolbar
 * (src/content/modules/_shared/accessibility.css), which is why the modules
 * need it and the certificate does not.
 */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/atkinson-hyperlegible-400-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: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/atkinson-hyperlegible-400-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;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/atkinson-hyperlegible-700-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: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/atkinson-hyperlegible-700-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;
}
