/* Self-hosted typefaces.
 *
 * The theme's default pulls Inter and JetBrains Mono from fonts.googleapis.com,
 * which is a third-party request from a page we serve on a platform where
 * everything else is self-hosted. Same reasoning that kept shields.io badges
 * out of the README. Zensical's `privacy` plugin (which would vendor these
 * automatically) is not available yet, so the files are committed instead.
 *
 * Sources are the OFL files the vault ships in 90-meta/tooling/fonts, converted
 * to woff2. Variable fonts, so one file covers every weight.
 *
 * Both families are under the SIL Open Font License 1.1, which requires the
 * copyright notice and licence to travel with every redistributed copy. They sit
 * beside the binaries in this same directory:
 *
 *   /fonts/LICENSE-Inter.txt        (Inter, (c) The Inter Project Authors)
 *   /fonts/LICENSE-JetBrainsMono.txt (JetBrains Mono, (c) JetBrains s.r.o.)
 *
 * Ranges are declared per face because these are variable fonts: without them the
 * browser serves the default instance only and synthesises bold and italic. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-italic-variable.woff2") format("woff2");
}

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

/* The theme consumes these two; anything else it derives itself. */
:root {
  --md-text-font: "Inter";
  --md-code-font: "JetBrains Mono";
}
