/* ============================================================
   InkIQ — typeface

   GEIST MEDIUM, by Vercel. Released under the SIL Open Font
   Licence: free for commercial use, redistributable, no pageview
   tier, no expiry, nothing to renew.

   The licence text ships alongside the font in
   assets/fonts/GEIST-OFL-LICENSE.txt — the OFL requires it to
   travel with the files, so keep it there when you deploy.

   The site uses ONE cut: Medium, weight 500, roman. No italics,
   no second weight. Emphasis on this site is carried by colour,
   not by weight, which is why one file is enough.
   ============================================================ */

@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/Geist-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------
   Weight and tracking switch once the webfont is confirmed loaded.

   The system fallback is a different animal: it needs real bold
   and tight tracking to carry a headline. Geist is drawn as a
   Medium and is meant to be set that way — asking a browser to
   fake-bold it produces the smeared letterforms that give away a
   badly-installed webfont.

   js/site.js adds .has-webfont to <html> the moment Geist is
   really there, and the values below take over. Until then the
   fallback values keep headlines readable.
   ------------------------------------------------------------ */
:root {
  --w-display: 700;          /* big headlines  */
  --w-head: 700;             /* section headings */
  --w-med: 600;              /* buttons, sub-heads, emphasis */
  --track-display: -.045em;
  --track-head: -.035em;
  --track-body: normal;
}

:root.has-webfont {
  --w-display: 500;
  --w-head: 500;
  --w-med: 500;
  --track-display: -.02em;
  --track-head: -.015em;
  --track-body: normal;
}
