/* Reception — design tokens. Single source of truth for color, type, spacing.
   Theme is controlled by [data-theme] on <html>; default light, JS applies saved choice. */

:root {
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, monospace;

  /* Surfaces */
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --surface-3: #e9ecf5;
  --border: #e3e7f0;
  --border-strong: #cdd4e3;

  /* Text */
  --text: #12141c;
  --text-2: #3f4557;
  --muted: #6b7280;
  --faint: #9aa1b2;
  --on-accent: #ffffff;

  /* Brand */
  --accent: #5b5bd6;
  --accent-strong: #4a4ac4;
  --accent-2: #8b5cf6;
  --accent-soft: rgba(91, 91, 214, 0.10);
  --accent-softer: rgba(91, 91, 214, 0.06);
  --accent-grad: linear-gradient(135deg, #5b5bd6 0%, #8b5cf6 100%);

  /* Status */
  --success: #158a4e;
  --success-soft: rgba(21, 138, 78, 0.12);
  --warning: #b45309;
  --warning-soft: rgba(180, 83, 9, 0.12);
  --danger: #d43d51;
  --danger-soft: rgba(212, 61, 81, 0.12);
  --info: #0e74a8;
  --info-soft: rgba(14, 116, 168, 0.12);

  /* Categorical palette — services, staff, chart series (accessible on both themes) */
  --cat-1: #5b5bd6;
  --cat-2: #0e9488;
  --cat-3: #d97706;
  --cat-4: #db2777;
  --cat-5: #2563eb;
  --cat-6: #65a30d;
  --cat-7: #9333ea;
  --cat-8: #dc2626;

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-full: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(18, 20, 28, 0.06);
  --shadow-md: 0 4px 16px rgba(18, 20, 28, 0.08);
  --shadow-lg: 0 12px 40px rgba(18, 20, 28, 0.16);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 140ms var(--ease);
  --t-med: 240ms var(--ease);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0d0f16;
  --surface: #151823;
  --surface-2: #1c2030;
  --surface-3: #242a3d;
  --border: #262c3f;
  --border-strong: #364062;

  --text: #eef0f6;
  --text-2: #c3c9d9;
  --muted: #8f97ab;
  --faint: #646c80;

  --accent: #7b7bf0;
  --accent-strong: #9494f5;
  --accent-2: #a78bfa;
  --accent-soft: rgba(123, 123, 240, 0.16);
  --accent-softer: rgba(123, 123, 240, 0.08);
  --accent-grad: linear-gradient(135deg, #6c6cf0 0%, #a78bfa 100%);

  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.14);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.14);
  --danger: #f87181;
  --danger-soft: rgba(248, 113, 129, 0.14);
  --info: #38bdf8;
  --info-soft: rgba(56, 189, 248, 0.14);

  /* Validated categorical palette (dataviz six-checks, dark surface #151823) */
  --cat-1: #6d78e8;
  --cat-2: #14a795;
  --cat-3: #c27102;
  --cat-4: #e0519b;
  --cat-5: #3b82f6;
  --cat-6: #639f0b;
  --cat-7: #a855f7;
  --cat-8: #e35d6a;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);

  color-scheme: dark;
}
