/* tokens.css — design tokens per docs/GUI-DESIGN.md
   All values in site.css derive from these custom properties. */

/* ---------- Self-hosted fonts (OFL; licenses in /fonts/) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/archivo-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/archivo-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/public-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/public-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  /* ---------- Color ---------- */
  --paper: #f6f7f9;          /* page background — cool technical paper */
  --ink: #16212c;            /* primary text — dark slate-navy */
  --rule: #c9d2da;           /* hairline rules, borders, dividers */
  --registry-blue: #24557e;  /* links, interactive, model headers */
  --stamp-orange: #e4572e;   /* signature accent ONLY — stamps, active states */
  --verified-green: #3e6b54; /* coverage/complete status */

  /* Derived, still token-governed */
  --ink-55: rgb(22 33 44 / 0.55);        /* modal backdrop */
  --stamp-orange-tint: rgb(228 87 46 / 0.06); /* stamp hover fill */
  --shadow-modal: 0 8px 32px rgb(22 33 44 / 0.18);

  /* ---------- Type ---------- */
  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  /* 1.250 scale on a 16px base */
  --text-data: 0.8125rem;  /* 13px — mono data, captions */
  --text-body: 1rem;       /* 16px */
  --text-h3: 1.25rem;      /* 20px */
  --text-h2: 1.5625rem;    /* 25px */
  --text-h1: 1.9375rem;    /* 31px */
  --text-display: 3.0625rem; /* 49px */

  --leading-body: 1.6;
  --leading-display: 1.15;

  /* ---------- Spacing (8px grid) ---------- */
  --s-1: 0.5rem;   /* 8px  */
  --s-2: 1rem;     /* 16px */
  --s-3: 1.5rem;   /* 24px */
  --s-4: 2rem;     /* 32px */
  --s-6: 3rem;     /* 48px */
  --s-8: 4rem;     /* 64px */

  /* ---------- Shape ---------- */
  --radius-card: 2px;   /* cards, modal */
  --radius-stamp: 0;    /* stamps stay sharp */
  --border-hairline: 1px;
  --border-stamp: 1.5px;

  /* ---------- Motion ---------- */
  --t-stamp: 120ms ease;
  --t-modal: 150ms ease;

  /* ---------- Focus ---------- */
  --focus-outline: 2px solid var(--stamp-orange);
  --focus-offset: 2px;
}
