/* ── Self-hosted fonts ─────────────────────────────────────────────
   Eliminates the fonts.googleapis.com / fonts.gstatic.com CDN load
   (compliance C-2, security L-4). Each font is referenced as
   ./fonts/<file>.woff2 — see assets/fonts/README.md for the download
   instructions and exact file names.

   `font-display: swap` keeps the page readable with a system fallback
   while the woff2 is fetching, then swaps in the real face once it
   arrives. Pair this with the font stacks in tokens.css — if a file
   is missing, the browser falls through to system fonts without
   breaking the layout. */

/* Michroma — display headline (used by --font-display) */
@font-face {
  font-family: "Michroma";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/Michroma-Regular.woff2") format("woff2");
}

/* Manrope — body sans (used by --font-sans). Four weights. */
@font-face {
  font-family: "Manrope";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/Manrope-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/Manrope-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/Manrope-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/Manrope-Bold.woff2") format("woff2");
}

/* Inter — secondary body fallback. Four weights. */
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/Inter-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/Inter-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/Inter-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/Inter-Bold.woff2") format("woff2");
}

/* JetBrains Mono — code / mono ticker (used by --font-mono). */
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/JetBrainsMono-Medium.woff2") format("woff2");
}
