/* ============================================================
 * WeAgent Site · Design tokens
 * Hallmark · Cobalt · modern-minimal (technical register)
 * Anchor hue: 250–258 (cool cobalt)
 * ============================================================ */

:root {
  color-scheme: light;

  /* --- Paper / ink (cool, never pure white / black) --- */
  --color-paper: oklch(98.5% 0.004 250);
  --color-paper-2: oklch(96.2% 0.006 250);
  --color-paper-3: oklch(93.5% 0.008 250);
  --color-rule: oklch(87.5% 0.01 250);
  --color-rule-2: oklch(78% 0.012 252);
  --color-muted: oklch(52% 0.014 257);
  --color-neutral: oklch(44% 0.016 257);
  --color-ink: oklch(24% 0.02 258);
  --color-ink-2: oklch(34% 0.018 257);

  /* --- Accent (the one signal) + contrast pair --- */
  --color-accent: oklch(58% 0.2 256);
  --color-accent-ink: oklch(98.5% 0.004 250);
  --color-focus: oklch(50% 0.19 256);

  /* --- Graphite band (single dark beat) --- */
  --color-graphite: oklch(22% 0.016 260);
  --color-graphite-2: oklch(27% 0.018 260);
  --color-on-graphite: oklch(92% 0.008 260);
  --color-on-graphite-muted: oklch(72% 0.01 260);
  --color-code-key: oklch(74% 0.16 256);
  --color-code-string: oklch(86% 0.05 90);

  /* --- Semantic --- */
  --color-error: oklch(54% 0.19 25);
  --color-success: oklch(58% 0.14 150);
  --color-transparent: transparent;
  --color-backdrop: oklch(24% 0.02 258 / 0.35);

  /* --- Fonts (2 + 1: Space Grotesk display · Inter body · JetBrains Mono outlier) --- */
  --font-display: "Space Grotesk", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-body: "Inter", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* --- Type scale (major third 1.25) --- */
  --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.55rem, 4.6vw + 0.9rem, 4.55rem);
  --text-display-s: clamp(2.1rem, 3.6vw + 0.7rem, 3.55rem);

  /* --- Spacing (4 pt 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;
  --space-5xl: 12rem;

  /* --- Duration / easing --- */
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;
  --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);

  /* --- Geometry / depth --- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --border: 1px;
  --shadow-lift: 0 1px 2px oklch(24% 0.02 258 / 0.05);
  --shadow-soft: 0 8px 24px oklch(24% 0.02 258 / 0.08);

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

  /* --- Layout --- */
  --page-gutter: clamp(1rem, 4vw, 1.5rem);
  --nav-height: 62px;
}
