/* Design-tokenit (vastaavat docs/mockups/assets/mockup.css, ADR-0009).
   Teema: data-theme="light" | "dark" | "system" (ei attribuuttia = laitteen mukaan). */

:root {
  --accent: #d6172f;          /* korosteväri: punainen */
  --accent-strong: #b0101f;
  --accent-soft: #fde8eb;
  --accent-ink: #ffffff;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --border: #e3e6eb;
  --text: #15181e;
  --text-2: #5b6370;
  --text-3: #8a919c;
  --ok: #1f9d55;   --ok-soft: #e3f5ea;
  --warn: #c77700; --warn-soft: #fdf1dc;
  --crit: #c1121f; --crit-soft: #fbe3e5;
  --info: #2563eb; --info-soft: #e3ecfd;
  --c1: #d6172f; --c2: #2563eb; --c3: #0f9f8f; --c4: #c77700; --c5: #7c3aed; --c6: #64748b;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 16px rgba(16,24,40,.06);
  --radius: 14px;
  --radius-s: 9px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --accent: #ff4d5e;
  --accent-strong: #ff7280;
  --accent-soft: #3a1419;
  --accent-ink: #1a0a0c;
  --bg: #0f1115;
  --surface: #171a20;
  --surface-2: #1f232b;
  --border: #2a2f39;
  --text: #eef0f4;
  --text-2: #a7aeba;
  --text-3: #737b88;
  --ok: #3ccf7f;   --ok-soft: #12301f;
  --warn: #f4a62a; --warn-soft: #33260f;
  --crit: #ff5c6a; --crit-soft: #3a1419;
  --info: #6aa2ff; --info-soft: #14233f;
  --c1: #ff4d5e; --c2: #6aa2ff; --c3: #33c7b5; --c4: #f4a62a; --c5: #a78bfa; --c6: #94a3b8;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --accent: #ff4d5e; --accent-strong: #ff7280; --accent-soft: #3a1419; --accent-ink: #1a0a0c;
    --bg: #0f1115; --surface: #171a20; --surface-2: #1f232b; --border: #2a2f39;
    --text: #eef0f4; --text-2: #a7aeba; --text-3: #737b88;
    --ok: #3ccf7f; --ok-soft: #12301f; --warn: #f4a62a; --warn-soft: #33260f;
    --crit: #ff5c6a; --crit-soft: #3a1419; --info: #6aa2ff; --info-soft: #14233f;
    --c1: #ff4d5e; --c2: #6aa2ff; --c3: #33c7b5; --c4: #f4a62a; --c5: #a78bfa; --c6: #94a3b8;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
