/* Shared semantic tokens. Use these values instead of page-specific colors. */
:root {
  color-scheme: dark;

  --color-bg: #0d101b;
  --color-surface: #171a27;
  --color-surface-muted: #111522;
  --color-surface-elevated: #202436;
  --color-surface-hover: rgb(255 255 255 / 0.05);
  --color-border: rgb(255 255 255 / 0.1);
  --color-border-strong: rgb(255 255 255 / 0.16);

  /* Text-only palette: neutral hierarchy with WCAG contrast headroom. */
  --color-text: #f4f5f7;
  --color-text-muted: #b4bac5;
  --color-text-subtle: #9aa1af;
  --color-text-accent: #c4b6ff;
  --color-text-success: #8ce0be;
  --color-text-warning: #f2d28a;
  --color-text-info: #9fd7eb;
  --color-text-danger: #e99aa9;

  --color-accent: #9b73ff;
  --color-accent-strong: #7c3aed;
  --color-accent-foreground: #ffffff;
  --color-accent-soft: rgb(155 115 255 / 0.12);
  --color-accent-border: rgb(155 115 255 / 0.35);
  --color-focus: rgb(155 115 255 / 0.35);

  /* Temporary aliases for legacy component rules; new code uses semantic names. */
  --color-brand: var(--color-accent);
  --color-brand-400: var(--color-accent);
  --color-muted: var(--color-text-muted);

  --color-success: #34d399;
  --color-success-bg: rgb(6 78 59 / 0.22);
  --color-warning: #fbbf24;
  --color-warning-bg: rgb(120 53 15 / 0.2);
  --color-info: #7dd3fc;
  --color-info-bg: rgb(12 74 110 / 0.22);
  --color-danger: #fb7185;
  --color-danger-bg: rgb(127 29 29 / 0.22);

  --shadow-card: 0 8px 24px rgb(0 0 0 / 0.16);
  --shadow-overlay: 0 20px 48px rgb(0 0 0 / 0.28);

  --radius-control: 0.75rem;
  --radius-card: 1rem;
  --radius-panel: 1.25rem;
  --radius-pill: 9999px;

  --motion-fast: 140ms ease;
  --motion-base: 180ms ease;
}

html {
  color-scheme: dark;
  background-color: var(--color-bg);
}
