/* ============================================================
   Forgelit self-hosted fonts
   ------------------------------------------------------------
   Privacy-first: these are served from forgelit.com, never from
   fonts.googleapis.com / fonts.gstatic.com. No visitor IP leaves
   the site to fetch a typeface.

   Both faces are VARIABLE fonts: one file covers every weight.
   The Inter face is declared under the family name "Inter" (not
   "InterVariable") so existing `font-family: Inter` rules pick it
   up with no changes.

   Inter carries an `opsz` axis, so `font-optical-sizing: auto`
   gives correct display optical sizing at large sizes. That is
   why no separate Inter Display files are needed.

   Licenses: Inter and Space Grotesk are both SIL OFL 1.1.
   ============================================================ */

/* ---- Inter: workhorse (body, UI, labels) ---- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("InterVariable.woff2") format("woff2");
}

/* Italic is a separate file and is only downloaded if italic text
   actually renders, so declaring it costs nothing on pages without it. */
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("InterVariable-Italic.woff2") format("woff2");
}

/* ---- Space Grotesk: display (wordmark, H1/H2) ---- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("SpaceGrotesk-Variable.woff2") format("woff2");
}

/* Enable Inter's optical sizing axis site-wide. */
:root {
  font-optical-sizing: auto;
}
