/*
 * CURE Design Tokens (Light-first editorial journal + warm charcoal dark mode)
 * Every foreground/background pair verified >= 4.5:1 (WCAG AA) via contrast-check.py.
 * Interactive control borders verified >= 3.0:1 (WCAG 1.4.11).
 */

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-fast: 150ms;
  --dur-ui: 200ms;

  --font-serif: 'Geist', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 8px;

  --max-w: 1180px;
  --gutter: clamp(16px, 3vw, 32px);
}

:root,
:root[data-theme='light'] {
  color-scheme: light;

  --bg-page: #f8f7f4;
  --bg-surface: #ffffff;
  --bg-subtle: #f0efe9;
  --bg-hover: #ecebe4;

  --ink-primary: #141413;
  --ink-secondary: #52524e;
  --ink-on-accent: #ffffff;

  --border-hairline: #dfded7;
  --border-control: #8e8d85;
  --border-strong: #52524e;

  /* Single deliberate accent: clinical forest */
  --accent: #0f6b4a;
  --accent-hover: #0b563b;
  --accent-tint: #e8f3ee;

  /* Semantic claim status only */
  --danger: #b42318;
  --danger-tint: #fcece9;
  --warn: #9a5b00;
  --warn-tint: #fdf4e3;
  --focus-ring: 0 0 0 2px #f8f7f4, 0 0 0 4px #0f6b4a;
}

:root[data-theme='dark'] {
  color-scheme: dark;

  --bg-page: #070907;
  --bg-surface: #0d100c;
  --bg-subtle: #131812;
  --bg-hover: #1a2018;

  --ink-primary: #f2f1ec;
  --ink-secondary: #9b9e96;
  --ink-on-accent: #070907;

  --border-hairline: #1e231c;
  --border-control: #626c5e;
  --border-strong: #929c8d;

  /* Biological GFP fluorescence green (14.1:1 on #070907) */
  --accent: #a6f24b;
  --accent-hover: #baf76e;
  --accent-tint: #14220c;

  --danger: #f06a5a;
  --danger-tint: #281311;
  --warn: #e8b339;
  --warn-tint: #261e0d;
  --focus-ring: 0 0 0 2px #070907, 0 0 0 4px #a6f24b;
}
