/* Self-hosted fonts — removes render-blocking 3rd-party CSS + font-swap CLS */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/travaux/mc-bat/assets/fonts/anton.woff2") format("woff2");
}
/* Archivo — variable weight */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/travaux/mc-bat/assets/fonts/archivo.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/travaux/mc-bat/assets/fonts/plexmono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/travaux/mc-bat/assets/fonts/plexmono-500.woff2") format("woff2");
}

/* Metric-adjusted fallbacks — match line box so the swap causes ~0 layout shift */
@font-face {
  font-family: "Anton Fallback";
  src: local("Arial Narrow"), local("Arial");
  size-adjust: 108%;
  ascent-override: 86%;
  descent-override: 17%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial");
  size-adjust: 100%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}
