/*
 * Bodylet AI: self-hosted typefaces (SIL Open Font License 1.1, see the
 * *-OFL.txt files next to this one). Latin subset, variable weight.
 *
 * Preload both files from the page head to avoid a swap after first paint:
 *   <link rel="preload" href=".../fonts/manrope-latin-wght.woff2" as="font" type="font/woff2" crossorigin>
 */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("manrope-latin-wght.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("jetbrains-mono-latin-wght.woff2") format("woff2");
}

/* Metric-matched local fallback: text set in Arial takes the space Manrope
   will take, so the swap does not move the layout. */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 103.5%;
  ascent-override: 103%;
  descent-override: 29%;
  line-gap-override: 0%;
}
