/* ===========================================================================
   Self-hosted webfonts.

   Self-hosted rather than loaded from Google Fonts for three reasons: it avoids
   a third-party DNS + TLS handshake on every cold visit, it removes a GDPR
   liability (Google Fonts logs visitor IPs), and it means the site's typography
   cannot break because someone else's CDN did.

   The font files are NOT in source control — see scripts/fetch-fonts.ps1 to
   download them into wwwroot/fonts/. Until they exist, every `src` below fails
   silently and the stacks in tokens.css fall back to system fonts. The site
   stays completely usable; it just looks less like OCreate.

   `font-display: swap` renders fallback text immediately and swaps when the
   webfont arrives, rather than leaving headlines invisible.
   =========================================================================== */

/* --- Oswald (display) --------------------------------------------------- */
/* Variable font, weight axis 200-700. One file covers every display weight. */
@font-face {
    font-family: "Oswald";
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
    src: url("../fonts/oswald-latin-variable.woff2") format("woff2-variations"),
         url("../fonts/oswald-latin-variable.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+2074, U+20AC,
                   U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Inter (body and UI) ------------------------------------------------ */
/* Variable font, weight axis 100-900. */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-variable.woff2") format("woff2-variations"),
         url("../fonts/inter-latin-variable.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+2074, U+20AC,
                   U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Barlow Condensed (navigation) ------------------------------------- */
/* Substitute for the licensed DIN Next the Wix theme used. Static weights:
   Google Fonts does not publish a variable build, and the nav only needs two. */
@font-face {
    font-family: "Barlow Condensed";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/barlow-condensed-latin-500.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+2074, U+20AC,
                   U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Barlow Condensed";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/barlow-condensed-latin-600.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+2074, U+20AC,
                   U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
