/* Self-hosted fonts (SIL OFL 1.1, see ../fonts/<family>/OFL.txt). Cantarell is GNOME's own UI
   font, used for both headings and body; JetBrains Mono is for anything meant to be typed or
   copied (code, tokens, IDs). URLs are relative so the static tree works under any mount prefix.

   Cantarell uses font-display: optional. Page preloads the regular and bold files, so the browser
   either has them by first paint or keeps the fallback for that page view, instead of a visible
   late swap on large bold headings. */

@font-face {
  font-family: "Cantarell";
  src: url("../fonts/cantarell/Cantarell-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "Cantarell";
  src: url("../fonts/cantarell/Cantarell-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: optional;
}

@font-face {
  font-family: "Cantarell";
  src: url("../fonts/cantarell/Cantarell-Bold.ttf") format("truetype");
  font-weight: 600 700;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "Cantarell";
  src: url("../fonts/cantarell/Cantarell-BoldItalic.ttf") format("truetype");
  font-weight: 600 700;
  font-style: italic;
  font-display: optional;
}

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

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