@charset "UTF-8";
/* ============================================================================
   css/fonts.css — caratteri "vecchia macchina da scrivere", self-hosted.

   Nessuna richiesta a CDN di terze parti a runtime (privacy/GDPR, offline,
   prestazioni): i file .woff2 vivono in assets/fonts/ e sono serviti dal sito.

   Courier Prime 400 / 400 italic / 700  — SIL OFL 1.1 (google/fonts)
   Cutive Mono 400                       — SIL OFL 1.1 (google/fonts)

   "Courier Prime Fallback" / "Cutive Mono Fallback" sono facce metric-override
   usate SOLO se i webfont sono bloccati: mantengono le metriche del carattere
   reale in modo che il testo non salti (guardia CLS).
   ============================================================================ */

@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/courier-prime-400.woff2") format("woff2");
}

@font-face {
  font-family: "Courier Prime";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/courier-prime-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/courier-prime-700.woff2") format("woff2");
}

@font-face {
  font-family: "Cutive Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/cutive-mono-400.woff2") format("woff2");
}

/* --- facce di ripiego con metriche allineate (nessuna richiesta di rete) --- */
@font-face {
  font-family: "Courier Prime Fallback";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Courier New"), local("CourierNewPSMT"), local("Nimbus Mono PS"), local("Liberation Mono");
  size-adjust: 100.4%;
  ascent-override: 78%;
  descent-override: 22%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Cutive Mono Fallback";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Courier New"), local("CourierNewPSMT"), local("Nimbus Mono PS");
  size-adjust: 100%;
  ascent-override: 76%;
  descent-override: 24%;
  line-gap-override: 0%;
}
