/*
 * Caratteri OSPITATI DA NOI — non dal CDN di Google.
 *
 * Prima di questo file, tre punti (index.html, british-heritage.css,
 * style.css) caricavano i font da fonts.googleapis.com. Significava che
 * l'INDIRIZZO IP DI OGNI VISITATORE raggiungeva Google al primo disegno
 * della pagina, prima di qualunque consenso e senza che l'utente potesse
 * evitarlo: un trasferimento verso gli USA che va dichiarato, giustificato
 * e — dove possibile — semplicemente eliminato. In Germania su questo punto
 * sono già arrivate sanzioni. L'app patente-nautica ospita i font per la
 * stessa ragione.
 *
 * Ospitandoli spariscono anche due connessioni esterne dal percorso
 * critico: la pagina non deve più risolvere e contattare due domini di
 * terzi prima di poter mostrare il testo.
 *
 * I file arrivano da @fontsource (gli stessi identici di Google Fonts,
 * ripacchettati), sono in licenza SIL Open Font License 1.1 e le licenze
 * viaggiano con loro in app/fonts/LICENSE-*.txt — la OFL richiede che
 * accompagnino i font.
 *
 * SOTTOINSIEME latin. Le famiglie coprono l'inglese e l'italiano, che è
 * tutto ciò che l'interfaccia usa. Se un giorno servisse il cirillico o il
 * greco, @fontsource ha i file separati: si aggiungono, non si torna al CDN.
 *
 * PESI: solo quelli che i tre @import chiedevano davvero. Aggiungerne uno
 * significa copiare il .woff2 in app/fonts/ E aggiungerlo alla precache del
 * service worker, altrimenti offline quel peso non c'è.
 *
 * font-display: swap — il testo si vede subito col carattere di sistema e
 * viene sostituito quando il font è pronto, invece di restare invisibile.
 */

/* ─── Inter — testo dell'interfaccia ─────────────────────────────────── */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/inter-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 900; font-display: swap; src: url("/fonts/inter-latin-900-normal.woff2") format("woff2"); }

/* ─── Manrope — titoli e etichette British Heritage ──────────────────── */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/manrope-latin-800-normal.woff2") format("woff2"); }

/* ─── DM Serif Display — titoli editoriali ───────────────────────────── */
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); }

/* ─── Cinzel — fregi e intestazioni cerimoniali ──────────────────────── */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/cinzel-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 900; font-display: swap; src: url("/fonts/cinzel-latin-900-normal.woff2") format("woff2"); }

/* ─── Fredoka — la fascia BAMBINI (Passo 34) ─────────────────────────── */
/* Tondo e pieno: e' l'unico carattere dell'app che non appartiene al
   registro British Heritage, ed e' voluto — la pelle dei bambini deve
   sembrare un fumetto, non un libro. Serve SOLO sotto
   `html[data-age="kids"]`: le altre due fasce non lo scaricano mai, perche'
   `font-display: swap` non basta a evitare il download se nessuno lo usa.
   Due pesi, 32 KB in tutto. SIL Open Font License, come tutti gli altri. */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
