/*
 * JetBrains Mono (REQ-004, REQ-005; plan D-06): Light 300, Regular 400 and
 * Medium 500, self-hosted from /assets/fonts/ under the SIL Open Font License
 * (OFL.txt beside the files), shipped unmodified. The faces swap in over
 * metric-matched local fallbacks so the swap does not move the layout.
 * Metrics read from the woff2 files: unitsPerEm 1000, ascender 1020,
 * descender -300, line gap 0, advance 600. Menlo and DejaVu Sans Mono advance
 * 0.602 em (size-adjust 100%), Consolas 0.550 em (109%). No colour literal
 * may appear here: the contrast gate scans every stylesheet but tokens.css.
 */

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/JetBrainsMono-Light.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/JetBrainsMono-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono Fallback Menlo";
  src: local("Menlo"), local("DejaVu Sans Mono");
  ascent-override: 102%;
  descent-override: 30%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

@font-face {
  font-family: "JetBrains Mono Fallback Consolas";
  src: local("Consolas");
  ascent-override: 102%;
  descent-override: 30%;
  line-gap-override: 0%;
  size-adjust: 109%;
}
