/* JetBrains Mono, self-hosted.
 *
 * No network at runtime means no font CDN, so the face is vendored to disk --
 * see ui/vendor_fonts.py, which pulls these two subset files from the
 * @fontsource package on the npm registry.
 *
 * The subsets are declared separately, with unicode-range, so a browser
 * downloads the greek file only if the page actually contains Greek.  The
 * latin range already covers everything else the interface uses: ASCII, the
 * curly quotes and ellipsis in the toasts (U+2000-206F), the mid-dot separator
 * in the verdict line, and U+2191/U+2193 -- the arrow keys named in the
 * auditor's hint.
 *
 * Weights are a variable axis (100-800), so one file per subset covers every
 * weight instead of one file per weight.
 */

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("vendor/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("vendor/fonts/jetbrains-mono-greek-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1,
    U+03A3-03FF;
}

/* The notes' own symbols (∀ ∃ ∈ ⇒ ≤ ℝ …), cut from JetBrains Mono itself by
 * ui/vendor_fonts.py, so they are set in the same face as the rest. */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("vendor/fonts/jetbrains-mono-math-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+2100-214F, U+2190-21FF, U+2200-22FF;
}

/* What the editor's visual mode cannot draw in a mono with no MATH table:
 * radicals, brackets that grow round a fraction, and the sum and integral
 * signs.  A few glyphs of Fira Math, a monoline sans whose strokes sit with
 * the mono's, with its MATH table (ui/vendor_fonts.py), used only for those. */
@font-face {
  font-family: "Lemmata Stretch";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("vendor/fonts/firamath-stretch.woff2") format("woff2");
}

/* The name as LaTeX sets it, L\text{emma}t\alpha: a few glyphs of Latin
 * Modern Math (ui/vendor_fonts.py), used only by the wordmark. */
@font-face {
  font-family: "Lemmata Wordmark";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("vendor/fonts/latinmodern-wordmark.woff2") format("woff2");
}
