/* Hallmark · tokens · genre: atmospheric · theme: Midnight (navy anchor, amber accent)
 * axes: paper-band dark / display-style soft-serif (Fraunces, SOFT 100, roman) / accent-hue warm
 */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.252629058502.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist.a147f99cd533.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Paper & ink: navy anchor (hue 258), the old #1d2a3a pushed into the night */
  --color-paper:    oklch(15% 0.022 258);
  --color-paper-2:  oklch(19% 0.024 258);
  --color-paper-3:  oklch(23% 0.026 258);
  --color-rule:     oklch(30% 0.024 258);
  --color-rule-2:   oklch(40% 0.024 258);
  --color-neutral:  oklch(68% 0.016 258);
  --color-muted:    oklch(80% 0.012 258);
  --color-ink:      oklch(95% 0.008 250);

  /* One warm accent: candlelight amber. Secondary ember for the second bloom only. */
  --color-accent:     oklch(80% 0.15 72);
  --color-accent-ink: oklch(20% 0.04 60);
  --color-accent-2:   oklch(58% 0.17 32);
  --color-focus:      oklch(84% 0.15 78);
  --color-bloom-1:    oklch(80% 0.15 72 / 0.16);
  --color-bloom-2:    oklch(58% 0.17 32 / 0.14);
  --color-shadow:     oklch(8% 0.02 258 / 0.7);

  /* Status */
  --color-ok:   oklch(78% 0.14 150);
  --color-bad:  oklch(72% 0.16 25);
  --color-warn-bg: oklch(26% 0.05 80);
  --color-warn-rule: oklch(55% 0.11 80);

  /* Mana colours: data, not decoration (colour rail only) */
  --color-mana-w: oklch(93% 0.045 95);
  --color-mana-u: oklch(70% 0.12 238);
  --color-mana-b: oklch(42% 0.03 300);
  --color-mana-r: oklch(66% 0.18 32);
  --color-mana-g: oklch(68% 0.14 148);

  /* Type */
  --font-display: "Fraunces", ui-serif, serif;
  --display-soft: "SOFT" 100, "WONK" 0;   /* rounded, friendly serifs */
  --font-body:    "Geist", ui-sans-serif, sans-serif;

  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.25rem;
  --text-xl:   clamp(1.5rem, 1.5vw + 1rem, 2rem);
  --text-display: clamp(2.5rem, 5vw + 1rem, 5rem);

  /* Space (4 pt) */
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;
  --page-gutter: clamp(1rem, 4vw, 2rem);
  --page-max: 76rem;

  /* Shape */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-card: 4.5%;          /* MTG card corners scale with the card */
  --radius-pill: 999px;
  --rule-hair: 1px;

  /* Motion */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:     cubic-bezier(0.55, 0, 1, 0.45);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-short: 160ms;
  --dur-med:   260ms;
  --dur-long:  420ms;
}
