/* The code font: JetBrains Mono, served from this site.
 *
 * Material's default code font, Roboto Mono, has no box-drawing characters
 * (U+2500–257F), no arrows and no bullet, so every diagram drawn with them in a
 * fenced block borrowed those glyphs from a fallback font at a different width,
 * and the right-hand borders drifted. JetBrains Mono draws all of them at the
 * regular advance width.
 *
 * The files are the official v2.304 release WOFF2s, vendored rather than taken
 * from Google Fonts because Google's subsets omit the box-drawing range; the
 * licence is SIL OFL 1.1 (assets/fonts/JetBrainsMono-OFL.txt).
 *
 * hooks/code_glyphs.py warns at build time when a diagram uses a character
 * this font cannot draw at that width; assets/fonts/JetBrainsMono-coverage.txt
 * is the list it checks against, generated by scripts/font_coverage.py.
 */

@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: 700;
  font-display: swap;
  src: url("../assets/fonts/JetBrainsMono-Bold.woff2") format("woff2");
}

/* Material builds --md-code-font-family from --md-code-font; setting the latter
 * keeps its own fallback chain behind it. */
:root {
  --md-code-font: "JetBrains Mono";
}
