/* ZGRNK · design tokens · anchor hue: amber 63 · genre: atmospheric · tone: technical */

:root {
  /* ---------- colour — OKLCH, amber anchor, dark paper ---------- */
  --color-paper:       oklch(14% 0.010 63);
  --color-paper-2:     oklch(18% 0.012 63);
  --color-paper-3:     oklch(22% 0.014 63);
  --color-rule:        oklch(30% 0.014 63);
  --color-rule-2:      oklch(34% 0.016 63);
  --color-neutral:     oklch(58% 0.010 63);
  --color-muted:       oklch(72% 0.008 63);
  --color-ink-2:       oklch(82% 0.010 70);
  --color-ink:         oklch(94% 0.006 80);

  --color-accent:      oklch(75% 0.17 63);
  --color-accent-2:    oklch(68% 0.16 40);   /* secondary warm — pink/red edge, ≤ this + accent is the max per atmospheric genre */
  --color-accent-ink:  oklch(16% 0.02 63);   /* text on accent fill — verified ≥ APCA Lc 60 */
  --color-focus:       oklch(96% 0.02 80);   /* focus ring — high contrast vs dark paper AND accent fill */
  --color-error:       oklch(62% 0.19 25);

  /* ---------- type ---------- */
  --font-display: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  --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:   clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-display-s: clamp(2.25rem, 3.6vw + 1rem, 3.6rem);

  /* ---------- spacing — 4pt scale ---------- */
  --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;

  /* ---------- radius / rule weight ---------- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --rule-hair: 1px;

  /* ---------- 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;

  /* ---------- z-index — named scale ---------- */
  --z-base:     1;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-sticky-nav: 300;
  --z-modal:    400;
  --z-toast:    500;
  --z-tooltip:  600;
}
