/*
 * Gastrototem · Fonts
 *
 * @font-face autoalojados (subset latin, woff2). Sustituye a Google Fonts:
 * sin terceros en la ruta crítica, sin transferencia de IP a Google, y con
 * size-adjust en los fallbacks para eliminar el CLS del swap.
 * Inter y JetBrains Mono llegan de Google como fuentes variables: un único
 * fichero por familia cubre todo el rango de peso declarado (font-weight con
 * rango), sin duplicar bytes por peso. Pesos usados: Inter 400-600 (300 y 700
 * no se usan), Source Serif 4 italic 400, JetBrains Mono 400-500.
 */

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('../fonts/inter.woff2') format('woff2');
}
@font-face {
	font-family: 'Source Serif 4';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/source-serif-4-italic.woff2') format('woff2');
}
@font-face {
	font-family: 'JetBrains Mono';
	font-style: normal;
	font-weight: 400 500;
	font-display: swap;
	src: url('../fonts/jetbrains-mono.woff2') format('woff2');
}

/* Fallback con métricas ajustadas a Inter: elimina el salto de layout (CLS)
 * mientras llega la webfont. Valores estándar de Inter vs Arial. */
@font-face {
	font-family: 'Inter Fallback';
	src: local('Arial');
	ascent-override: 90.44%;
	descent-override: 22.52%;
	line-gap-override: 0%;
	size-adjust: 107.12%;
}
