/* Davos 2027 design tokens. One source for the prototype and the app.
   Rule baked in: any filled brand background carries white text (contrast 5.6:1).
   Coral is decorative only (dots, hand icon). Never put text on coral without ink. */
:root {
  /* colour: light */
  --bg: #F4F7F7;
  --surface: #FFFFFF;
  --surface-2: #EDF2F2;
  --ink: #1F2A2B;
  --muted: #56666A;
  --line: #D6E0E1;
  --brand: #2E6E74;
  --brand-ink: #FFFFFF;
  --brand-soft: #DCE9EA;
  --brand-text: #25595E;      /* brand as text on light surfaces, 7:1 */
  --coral: #FF665E;
  --coral-soft: #FFE6E4;
  --ok: #1D7A3E;   --ok-soft: #E1F2E6;
  --warn: #8A5200; --warn-soft: #FBEED7;
  --bad: #B3372F;  --bad-soft: #F8E1DE;
  --focus: #1F6FEB;
  --scrim: rgba(18, 28, 30, .5);

  /* type */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --t-xs: 12px; --t-sm: 14px; --t-md: 16px; --t-lg: 20px; --t-xl: 26px; --t-2xl: 34px;
  --lh-tight: 1.2; --lh-body: 1.5;

  /* space (4px grid), radius, shadow, motion */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(20, 40, 45, .08);
  --shadow-2: 0 8px 30px rgba(20, 40, 45, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 180ms;

  /* layout */
  --tap: 44px;              /* minimum touch target */
  --col: 480px;             /* content column on large screens */
  --nav-h: 64px;
}

:root[data-theme="dark"] {
  --bg: #0F1617;
  --surface: #182224;
  --surface-2: #1F2B2D;
  --ink: #E9EFEF;
  --muted: #A3B2B3;
  --line: #2C3A3C;
  --brand: #2E6E74;          /* fills stay dark teal with white text */
  --brand-soft: #1D3B3E;
  --brand-text: #7CC0C6;
  --coral: #FF8A83;  --coral-soft: #4A2422;
  --ok: #5FCF87;   --ok-soft: #183626;
  --warn: #F0B254; --warn-soft: #41300F;
  --bad: #FF8A80;  --bad-soft: #47201D;
  --focus: #7AAEFF;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 8px 30px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1617; --surface: #182224; --surface-2: #1F2B2D; --ink: #E9EFEF; --muted: #A3B2B3;
    --line: #2C3A3C; --brand-soft: #1D3B3E; --brand-text: #7CC0C6; --coral: #FF8A83; --coral-soft: #4A2422;
    --ok: #5FCF87; --ok-soft: #183626; --warn: #F0B254; --warn-soft: #41300F; --bad: #FF8A80; --bad-soft: #47201D;
    --focus: #7AAEFF; --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 8px 30px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

@media (prefers-reduced-motion: reduce) { :root { --dur: 0ms; } }
