/* Hallmark · design tokens · theme: Cobalt (adapted, app-scope) · see /design.md */
:root {
  /* -- color: paper / ink / rule -- */
  --color-paper:      oklch(98.5% 0.004 250);
  --color-paper-2:    oklch(96.5% 0.006 250);
  --color-ink:        oklch(24% 0.02 258);
  --color-ink-2:      oklch(34% 0.018 257);
  --color-ink-3:      oklch(52% 0.014 255);
  --color-rule:       oklch(91% 0.006 255);
  --color-rule-2:     oklch(85% 0.008 255);

  /* -- color: the one signal accent --
     Lightness is set by WCAG AA, not taste: at L58% the accent measured 4.19:1 as link text
     on paper and 4.37:1 as a button fill behind white, both under the 4.5:1 normal-text
     floor. L52% measures ~5.6:1 on paper. --color-focus stays a non-text role (3:1). */
  --color-accent:       oklch(52% 0.20 256);
  --color-accent-hover: oklch(46% 0.19 256);
  --color-accent-ink:   oklch(100% 0 0);
  --color-focus:        oklch(52% 0.20 256);

  /* -- color: semantic status (badges + inline messages only) --
     Badge text is 12px, so these foregrounds need 4.5:1 against their own tint, not 3:1.
     The previous L55/58% values measured 3.65-4.48:1. */
  --color-success:     oklch(46% 0.13 152);
  --color-success-bg:  oklch(94% 0.03 152);
  --color-warning:     oklch(47% 0.12 75);
  --color-warning-bg:  oklch(94% 0.05 75);
  --color-danger:      oklch(48% 0.18 25);
  --color-danger-bg:   oklch(94% 0.04 25);
  --color-neutral:     oklch(45% 0.014 255);
  --color-neutral-bg:  oklch(93% 0.006 255);

  /* -- type -- */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-xs:  0.75rem;
  --text-sm:  0.8125rem;
  --text-md:  0.9375rem;
  --text-lg:  1.125rem;
  --text-xl:  1.375rem;
  --text-display:   clamp(1.5rem, 1.15rem + 1vw, 2rem);
  --text-display-s: clamp(1.125rem, 1rem + 0.4vw, 1.25rem);

  /* -- space: 4pt scale -- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 4.5rem;

  /* -- 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-fast:  120ms;
  --dur-short: 200ms;

  /* -- shape -- */
  --radius-control: 6px;
  --radius-card:    10px;
  --radius-badge:   999px;
}
