/* ============================================
   FONT DEL SITO — ospitati sul sito stesso (non più da Google Fonts)
   Così arrivano insieme alla pagina, senza il "salto" da un font all'altro.

   Anton (titoli e splash): font-display: block
     → il testo aspetta il font vero per un istante invece di mostrare Impact
   DM Sans e Space Mono (testi): font-display: swap, ma precaricati nell'<head>
   Licenza: SIL Open Font License (vedi fonts/LICENSE-OFL.txt)
   ============================================ */
@font-face {
  font-family: 'Anton';
  src: url('fonts/anton-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: block;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans-latin-300-normal.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans-latin-300-italic.woff2') format('woff2');
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('fonts/space-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('fonts/space-mono-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* SPLASH: "RES / PLANET" compare solo quando Anton è pronto (niente lampo di Impact).
   Se per qualche motivo il font non arriva, dopo 2,5 s compare comunque. */
html:not(.font-pronti) .splash__word {
  opacity: 0;
  transform: translateY(14px);
  animation: splashDiRiserva 0s 2.5s forwards;
}
@keyframes splashDiRiserva { to { opacity: 1; transform: none; } }
