/* Design tokens — warm neutrals, teal accent, Inter throughout.
   Light is the default; dark applies via prefers-color-scheme or [data-theme="dark"]. */

:root {
  /* Fonts */
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-weight: 700;
  --display-tracking: -0.03em;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  /* Type scale — 1.25 ratio, 16px base */
  --text-xs: 0.75rem;    /* 12 */
  --text-sm: 0.875rem;   /* 14 */
  --text-base: 1rem;     /* 16 */
  --text-lg: 1.25rem;    /* 20 */
  --text-xl: 1.5625rem;  /* 25 */
  --text-2xl: 1.9375rem; /* 31 */
  --text-3xl: 2.4375rem; /* 39 */
  --text-4xl: 3.0625rem; /* 49 */
  --text-5xl: 3.8125rem; /* 61 */

  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-body: 1.6;

  /* Spacing — 4px grid */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 999px;

  /* Neutral ramp (warm) */
  --sand-50: #faf8f4;
  --sand-100: #f2eee7;
  --sand-200: #e4ded3;
  --sand-300: #cfc7b9;
  --sand-400: #a39c91;
  --sand-500: #7d766b;
  --sand-600: #5c564d;
  --sand-700: #3a3631;
  --sand-800: #2a2723;
  --sand-900: #1c1a17;

  /* Teal ramp */
  --teal-50: #ecf8f5;
  --teal-100: #d3efe9;
  --teal-200: #a6ded3;
  --teal-300: #6fc8b9;
  --teal-400: #3cae9e;
  --teal-500: #179282;
  --teal-600: #0f766e;
  --teal-700: #115e59;
  --teal-800: #134a46;
  --teal-900: #10332f;

  color-scheme: light;
  --bg: var(--sand-50);
  --surface: #ffffff;
  --surface-2: var(--sand-100);
  --border: var(--sand-200);
  --text: var(--sand-900);
  --text-muted: var(--sand-600);
  --accent: var(--teal-600);
  --accent-hover: var(--teal-700);
  --accent-soft: var(--teal-50);
  --on-accent: #ffffff;
  --success: #3f7d3a;
  --warning: #a76c12;
  --danger: #b4442f;
  --shadow: 0 1px 2px rgb(28 26 23 / 0.06), 0 4px 16px rgb(28 26 23 / 0.06);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161513;
  --surface: #1f1d1a;
  --surface-2: var(--sand-800);
  --border: var(--sand-700);
  --text: #f3efe8;
  --text-muted: var(--sand-400);
  --accent: var(--teal-300);
  --accent-hover: var(--teal-200);
  --accent-soft: var(--teal-900);
  --on-accent: #0b1f1c;
  --success: #7bb873;
  --warning: #e0a84a;
  --danger: #e07a63;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 16px rgb(0 0 0 / 0.3);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: var(--sand-50);
  --surface: #ffffff;
  --surface-2: var(--sand-100);
  --border: var(--sand-200);
  --text: var(--sand-900);
  --text-muted: var(--sand-600);
  --accent: var(--teal-600);
  --accent-hover: var(--teal-700);
  --accent-soft: var(--teal-50);
  --on-accent: #ffffff;
  --success: #3f7d3a;
  --warning: #a76c12;
  --danger: #b4442f;
  --shadow: 0 1px 2px rgb(28 26 23 / 0.06), 0 4px 16px rgb(28 26 23 / 0.06);
}
