/*
 * Typefaces — self-hosted (roadmap Phase 9, task 2b; redesign Phase A).
 *
 * These used to be <link> tags to Google's font CDN. Loading a webfont from
 * Google discloses every visitor's IP address, User-Agent and Referer to a
 * third party in a different jurisdiction BEFORE the cookie banner has asked
 * anything — which is not something our own Cookie Policy says we do, and
 * which the Munich Regional Court (LG München I, 3 O 17493/20) found unlawful
 * without consent. Self-hosting removes the disclosure entirely; it also
 * removes two render-blocking cross-origin connections from every page load.
 * tests/Feature/Accessibility/SelfHostedFontTest.php fails the build if a
 * third-party font host comes back.
 *
 * Three families (redesign Phase A — see docs/redesign-plan.md):
 *
 *   dark  "Aurora Noir"  Fraunces 600 for brand names and headlines,
 *                        Inter 400–600 for everything else
 *   light "Harbour"      Space Grotesk 700 for headlines,
 *                        Inter 400–600 for everything else
 *
 * Both themes read Inter, so only the display face changes when the toggle is
 * flipped, and a visitor who switches downloads one file rather than two.
 * Plus Jakarta Sans was the light body face until Harbour replaced Prism Ink;
 * it is gone, along with its files.
 *
 * Which display face is live is decided by fiyobra-noir.css from the
 * <html data-theme> attribute; this file only declares the faces. Inter is a
 * VARIABLE font: one file covers the whole weight axis, which is why it has
 * two files (latin, latin-ext) and not six.
 *
 * The files are Google's own woff2 subsets, committed under
 * public/assets/fonts/<family>/ next to that family's OFL.txt. Licence for all
 * three: SIL Open Font License 1.1. To refresh them, see docs/accessibility.md
 * "Refreshing the webfont".
 */

/* ── Fraunces (dark theme headlines) ─────────────────────────────────────── */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/fraunces/fraunces-600-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: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/fraunces/fraunces-600-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;
}

/* ── Inter (body, both themes) ───────────────────────────────────────────── */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  /* A weight RANGE, not a single value: this is a variable font. */
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter/inter-var-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: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter/inter-var-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;
}

/* ── Space Grotesk (light theme headlines) ───────────────────────────────── */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk/space-grotesk-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk/space-grotesk-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;
}
