/*
 * Self-hosted webfonts — replaces Google Fonts CDN loads.
 *
 * GDPR/Privacy: per the 2022 Munich court ruling, hot-linking Google Fonts
 * from CDN constitutes illegal personal-data transfer to the US (the request
 * leaks the visitor's IP to Google). LojaBrother + Safeway are both EU sites;
 * self-hosting is the defensible posture. See audit decision D4.
 *
 * Performance: one less DNS lookup + TLS handshake per page. Files are
 * served from the same origin, edge-cached by Cloudflare.
 *
 * File layout (4 woff2 files in this folder):
 *   - open-sans-v44-latin.woff2              48 KB  variable font (300-800)
 *   - open-sans-v44-latin-ext.woff2          35 KB  variable font (300-800)
 *   - open-sans-condensed-v24-latin.woff2    16 KB  static 700 weight
 *   - open-sans-condensed-v24-latin-ext.woff2 13 KB  static 700 weight
 *   ----------------------------------------
 *   Total: ~110 KB (browsers fetch the relevant subsets only via unicode-range)
 *
 * The Open Sans v44 files are variable fonts spanning weights 300-800 — one
 * file covers regular (400), medium (500), semi-bold (600), and bold (700)
 * via the wght variation axis. Older browsers without variable-font support
 * still pick the closest weight from the static font tables embedded inside.
 *
 * unicode-range tells the browser which file to fetch for which character.
 * Most LojaBrother content uses the `latin` subset (ASCII + Western accents
 * including Portuguese/Spanish ã/ç/é/etc.). `latin-ext` covers extended Latin
 * (Polish, Czech, Hungarian, Turkish, etc.) — fetched only if those chars
 * appear on the page.
 *
 * font-display: swap — show fallback (sans-serif) instantly, swap to webfont
 * once loaded. Prevents flash-of-invisible-text on slow connections.
 */

/* ------------------------------------------------------------------
 * Open Sans — body text (variable font, weights 300-800)
 * ------------------------------------------------------------------ */

/* latin */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('open-sans-v44-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;
}

/* latin-ext */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('open-sans-v44-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;
}

/* ------------------------------------------------------------------
 * Open Sans Condensed — mobile display headings only (static 700)
 * ------------------------------------------------------------------ */

/* latin */
@font-face {
    font-family: 'Open Sans Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('open-sans-condensed-v24-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;
}

/* latin-ext */
@font-face {
    font-family: 'Open Sans Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('open-sans-condensed-v24-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;
}
