/*
  Fetched by fonts/fetch-fonts.sh from the official Google Fonts repository;
  each family's OFL.txt sits beside its file.

  WOFF2 first, TTF behind it. Google Fonts serves TTF and a browser wants
  WOFF2: the same outlines with Brotli around them, 1070 kB down to 421 kB
  across these three, which on a page that loads all of them before it draws
  anything is the difference between a first paint and a flash of fallback
  text. `tools/convert_brand_fonts.py` makes them; the TTFs stay because they
  are the licence-bearing originals the fetch script downloaded, and because a
  browser without WOFF2 should still get a face rather than the fallback stack.

  The italic faces and Silkscreen Bold were dropped rather than shipped: the
  editor sets italic nowhere, and they were 1.1 MB between them.
*/
@font-face {
  font-family: "Inter";
  src: url("../fonts/vendor/inter/Inter-Variable.woff2") format("woff2"),
       url("../fonts/vendor/inter/Inter-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/vendor/jetbrains-mono/JetBrainsMono-Variable.woff2") format("woff2"),
       url("../fonts/vendor/jetbrains-mono/JetBrainsMono-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

@font-face {
  font-family: "Silkscreen";
  src: url("../fonts/vendor/silkscreen/Silkscreen-Regular.woff2") format("woff2"),
       url("../fonts/vendor/silkscreen/Silkscreen-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --smce-font-ui: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --smce-font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --smce-font-retro: Silkscreen, monospace;
}
