/* Fuentes autoalojadas. font-display: swap evita el texto invisible (FOIT);
   la familia "Space Grotesk Fallback" iguala las métricas de la real para
   que al hacer swap no se mueva el layout (sin CLS). */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/space-grotesk.woff2') format('woff2');
}

/* Fallback con métricas calzadas a Space Grotesk (base Arial). */
@font-face {
  font-family: 'Space Grotesk Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica');
  ascent-override: 95.83%;
  descent-override: 23.49%;
  line-gap-override: 0%;
  size-adjust: 106.9%;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/cormorant-garamond.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/barlow-condensed-700.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-400.woff2') format('woff2');
}

/* Fallback con métricas calzadas a IBM Plex Mono (base Courier New).
   Medido en vivo: ambas avanzan 0.600em por carácter (desvío 0.02%),
   por eso size-adjust va al 100% y el swap no mueve la línea. */
@font-face {
  font-family: 'Plex Mono Fallback';
  src: local('Courier New'), local('CourierNewPSMT'), local('Monaco');
  size-adjust: 100%;
  ascent-override: 105%;
  descent-override: 29%;
  line-gap-override: 0%;
}
