/* ============================================================================
   fonts.css — webfont locali del tema astra-child
   ----------------------------------------------------------------------------
   Caricato in parallelo a Raleway (functions.php enqueue 'astra-child-fonts'
   PRIMA di 'astra-child-variables'). variables.css NON modificato in Fase 0:
   --f-sans resta 'Raleway' → il sito rendera identico al pre-Fase-0 finché
   Fase 1 non commuterà --f-sans a 'Manrope, Manrope-fallback, ...'.

   File font (variable, axis wght):
     - manrope-variable.woff2 ........... wght 200-800, 53 KB
     - lora-variable.woff2 .............. roman, wght 400-700, 82 KB
     - lora-italic-variable.woff2 ....... italic, wght 400-700, 89 KB

   Sorgente: fonts.google.com/specimen/{Manrope,Lora} — download 2026-05-15
   Conversione TTF→WOFF2: scripts/font-build/convert.mjs (DS repo)
   Metriche estratte (per cross-check con @font-face fallback):
     Manrope unitsPerEm=2000, asc=2132, desc=-600, xHeight=1080 (= 0.5400) ✓
     Lora    unitsPerEm=1000, asc=1006, desc=-274, xHeight=500  (= 0.5000)
============================================================================ */

/* ----- 1. Variable font reali ---------------------------------------------- */

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/manrope-variable.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora/lora-variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora/lora-italic-variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* ----- 2. Fallback metrics (verbatim dal DS, html-preview.md) -------------- */
/* Metriche misurate via fontTools su woff2 v37 (Lora) / v20 (Manrope), 2026-04-24 */

@font-face {
  font-family: 'Lora-fallback';
  src: local('Georgia'), local('DejaVu Serif'), local('Liberation Serif');
  size-adjust: 103.8%;
  ascent-override: 96.9%;
  descent-override: 26.4%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Manrope-fallback';
  src: local('Helvetica Neue'), local('Arial'), local('DejaVu Sans'), local('Liberation Sans');
  size-adjust: 104.4%;
  ascent-override: 102.1%;
  descent-override: 28.7%;
  line-gap-override: 0%;
}
