/*
 * OVEA self-hosted fonts — Nunito v32 (sprint 100/100, 2026-05-11).
 * Audit §13 (M-01): eliminates 2× DNS lookup + 2× TLS handshake to
 * fonts.googleapis.com + fonts.gstatic.com (~80-200 ms savings on first paint).
 * Also Schrems II clean (no user data leaks to Google).
 *
 * Subsets included: latin + latin-ext (Polish diacritics).
 * Weights: 400, 600, 700, 800, 900.
 *
 * Total bundle: ~130 KB across 5 woff2 files. Preload critical weights (400, 700)
 * via <link rel="preload"> in <head> — see functions.php ovea_preload_fonts().
 */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/nunito/nunito-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/nunito/nunito-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/nunito/nunito-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/nunito/nunito-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/nunito/nunito-900.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/*
 * Fallback font metric override — eliminates FOUT layout shift (CLS).
 * Audit §13.3: match Arial fallback metrics to Nunito so the swap is invisible.
 * Reference: https://developer.chrome.com/blog/font-fallbacks
 */
@font-face {
  font-family: 'Nunito Fallback';
  src: local('Arial');
  size-adjust: 100%;
  ascent-override: 95%;
  descent-override: 30%;
  line-gap-override: 0%;
}
