/* Hallmark · tokens · genre: atmospheric · theme: Midnight
 * paper band: dark · display style: display-sans · accent hue: warm (70)
 * Every colour and font in site.css references a token from this file.
 */

:root {
  /* ---- Type ------------------------------------------------------------ */
  --font-display: "Bricolage Grotesque", "Segoe UI", ui-sans-serif, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", ui-sans-serif, sans-serif;
  /* Outlier carries one role: machine text (API paths, code, field names). */
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  /* Major third, 1.25, from a 16px body. */
  --text-xs: 0.64rem;
  --text-sm: 0.8rem;
  --text-base: 1rem;
  --text-md: 1.25rem;
  --text-lg: 1.5625rem;
  --text-xl: 1.9531rem;
  --text-2xl: 2.4414rem;
  --text-3xl: 3.0518rem;
  --text-display-s: clamp(2rem, 3vw + 1rem, 3.0518rem);
  /* Capped so the hero headline, its lede and the primary CTA all clear the
     fold at 1280x800, not just at 1440x900. */
  --text-display: clamp(2.5rem, 4vw + 1rem, 4rem);

  /* ---- Colour ---------------------------------------------------------- */
  /* Midnight: a warm dark canvas, never pure black. Anchor hue 55-75.
     Elevation goes up in lightness (paper -> paper-2 -> paper-3), never in
     shadow: a drop shadow on a dark surface reads as a glow. */
  --color-paper: oklch(15% 0.014 55);
  --color-paper-2: oklch(19% 0.016 55);
  --color-paper-3: oklch(23% 0.018 55);
  --color-rule: oklch(32% 0.014 55);
  --color-neutral: oklch(55% 0.012 55);
  --color-muted: oklch(76% 0.012 62);
  --color-ink: oklch(94% 0.008 75);
  --color-accent: oklch(76% 0.145 70);
  /* Ink for text sitting ON an accent fill. */
  --color-accent-ink: oklch(18% 0.02 70);
  --color-focus: oklch(80% 0.15 70);
  --foil-white: rgb(255 255 255);
  --foil-clear: rgb(255 255 255 / 0);
  --foil-pink: rgb(255 140 210);
  --foil-blue: rgb(125 195 255);
  --foil-green: rgb(155 245 185);
  --foil-gold: rgb(255 230 140);

  /* Grade swatches, keyed to the renderer's GRADE_COLORS
   * (rendering/collectible_card.py). Same values the card frames print in. */
  --grade-bronze: rgb(210 130 60);
  --grade-silver: rgb(165 170 180);
  --grade-gold: rgb(255 209 64);
  --grade-diamond: rgb(110 200 240);

  /* Card backdrop, keyed to BACKDROP_TOP / BACKDROP_BOTTOM in the renderer. */
  --card-backdrop-top: rgb(44 38 34);
  --card-backdrop-bottom: rgb(14 12 10);

  /* ---- Space ----------------------------------------------------------- */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;
  --page-gutter: clamp(1.25rem, 5vw, 4.5rem);
  --measure: 66ch;

  /* ---- Rules and radii ------------------------------------------------- */
  --rule-hair: 1px;
  --rule-heavy: 3px;
  --radius-sm: 4px;
  --radius-tile: 14px;
  --radius-pill: 999px;
  /* The card's own corner radius: 18px on a 400px-wide card. */
  --radius-card: 4.5%;

  /* ---- Motion ---------------------------------------------------------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;

  /* ---- Depth ----------------------------------------------------------- */
  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 200;
}
