/* AvioWeather — font self-hostati (Geist + Geist Mono).
 * Sostituisce il caricamento da fonts.googleapis.com per evitare la
 * trasmissione dell'IP utente a Google (sentenza LG München 2022 +
 * indicazioni Garante Privacy IT). Niente cookie banner di consenso
 * richiesto per le terze parti.
 *
 * Sorgente: @fontsource/geist-sans + @fontsource/geist-mono v5 (MIT,
 * upstream vercel/geist-font). File woff2 latin only — sufficienti per le
 * 5 lingue supportate (it/en/es/de/fr).
 */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/geist-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/geist-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/geist-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/geist-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/geist-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/geist-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/geist-mono-600.woff2') format('woff2');
}

/* Language-selector current-language label. Rendered from the document language
 * so the correct 2-letter code paints immediately (no "IT" → real-language
 * flash). The <summary> ships an empty <span class="lang-code">; lang-boot.js
 * sets <html lang> before paint and i18n.js keeps it in sync on switch. */
.lang-code::after { content: 'IT'; }
html[lang^="en"] .lang-code::after { content: 'EN'; }
html[lang^="de"] .lang-code::after { content: 'DE'; }
html[lang^="es"] .lang-code::after { content: 'ES'; }
html[lang^="fr"] .lang-code::after { content: 'FR'; }
