/* Self-hosted fonts (all OFL-licensed, fetched from Google Fonts — see
   runbooks/local-dev.md for how to re-fetch if these ever need updating).
   Self-hosted rather than linked from fonts.googleapis.com so page loads never
   leak visitor IPs to Google — matches the project's privacy stance elsewhere
   (cookie-less analytics, no trackers on the coming-soon site). */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces/fraunces-variable.eb2486760f75.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter/inter-variable.260c81a4759b.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond/cormorant-garamond-variable.c47ff12887a3.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/jost/jost-variable.928f4210aa48.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader/newsreader-variable.175a37868200.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/public-sans/public-sans-variable.e4c9b081863a.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/space-mono/space-mono-400.049dfc5919c2.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/space-mono/space-mono-700.e5e908997a45.woff2") format("woff2");
}

/* ============================================================
   TYPEFACE TOKENS — one block per data-font value.
   Values copied from mockup/fonts.html (already compared/approved) —
   see FONTS.md for the personality/pairing rationale.
   ============================================================ */

:root,
:root[data-font="editorial"] {
  --ff-display: "Newsreader", Georgia, serif;
  --ff-ui: "Public Sans", system-ui, sans-serif;
  --ff-meta: var(--ff-ui);
  --display-weight: 500;
  --display-tracking: 0;
  --title-size: 28px;
  --wordmark-size: 21px;
}
:root[data-font="classic"] {
  --ff-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ff-ui: "Inter", system-ui, sans-serif;
  --ff-meta: var(--ff-ui);
  --display-weight: 600;
  --display-tracking: -0.2px;
  --title-size: 26px;
  --wordmark-size: 20px;
}
:root[data-font="refined"] {
  --ff-display: "Cormorant Garamond", Georgia, serif;
  --ff-ui: "Jost", system-ui, sans-serif;
  --ff-meta: var(--ff-ui);
  --display-weight: 600;
  --display-tracking: 0;
  --title-size: 32px;
  --wordmark-size: 24px;
}
:root[data-font="terminal"] {
  --ff-display: "Space Mono", ui-monospace, monospace;
  --ff-ui: "Space Mono", ui-monospace, monospace;
  --ff-meta: "Space Mono", ui-monospace, monospace;
  --display-weight: 700;
  --display-tracking: 0;
  --title-size: 22px;
  --wordmark-size: 17px;
}

/* Terminal's distinct treatment (uppercase tracked labels) — selectors match
   the real board template's class names, adapted from mockup/index.html's. */
:root[data-font="terminal"] .brand { text-transform: uppercase; letter-spacing: 1.5px; }
:root[data-font="terminal"] .col-head .label,
:root[data-font="terminal"] .field-label { text-transform: uppercase; letter-spacing: 0.5px; }
:root[data-font="terminal"] .t-title,
:root[data-font="terminal"] .notes { letter-spacing: -0.3px; }
:root[data-font="terminal"] .btn-primary { text-transform: uppercase; letter-spacing: 1px; font-size: 12.5px; }
