/**
 * MADDev Bootstrap — self-hosted web fonts.
 *
 * Files live in themes/custom/maddev_bootstrap/fonts/.
 * Downloaded 2026-06-12 from Google Fonts (latin subset; woff2 format).
 * All four families use variable-font axes where available.
 *
 * Font-family custom properties are declared here and used in style.css.
 */

/* ── Source Serif 4 (display / body) ────────────────────────────── */

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 100 900;   /* variable font — covers 300, 400, 600, 700 */
  font-display: swap;
  src: url('../fonts/source-serif-4/source-serif-4-latin-variable-upright.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 Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-serif-4/source-serif-4-latin-400-italic.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;
}

/* ── Geist (UI / sans) ───────────────────────────────────────────── */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;   /* variable font */
  font-display: swap;
  src: url('../fonts/geist/geist-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+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Geist Mono (labels / code) ──────────────────────────────────── */

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;   /* variable font */
  font-display: swap;
  src: url('../fonts/geist-mono/geist-mono-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+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Caveat (script accents) ─────────────────────────────────────── */

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400 700;   /* variable font — covers 400 and 700 */
  font-display: swap;
  src: url('../fonts/caveat/caveat-latin-400.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-family custom properties ──────────────────────────────── */

:root {
  --mad-font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --mad-font-ui:      'Geist', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mad-font-mono:    'Geist Mono', 'Courier New', Courier, monospace;
  --mad-font-script:  'Caveat', cursive;
}
