/* Design tokens shared by every site in this project.
   Change a value here and it updates everywhere that imports tokens.css. */

:root {
  /* --- Color: neutral base + one accent, swap --accent per client --- */
  --color-bg: #ffffff;
  --color-bg-alt: #f6f5f3;
  --color-surface: #ffffff;
  --color-border: #e5e2dd;
  --color-text: #17171a;
  --color-text-muted: #5a5a63;
  --color-accent: #b5502f;
  --color-accent-hover: #963f22;
  --color-accent-contrast: #ffffff;
  --color-success: #2f7a4f;
  --color-error: #b3261e;

  /* --- Type --- */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;

  --text-xs: 0.8rem;
  --text-sm: 0.9rem;
  --text-base: 1.05rem;
  --text-lg: 1.25rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.5rem;
  --text-3xl: 3.5rem;

  --leading-tight: 1.15;
  --leading-normal: 1.6;

  /* --- Spacing scale: consistent rhythm across every section --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;

  --container-max: 1160px;
  --container-pad: var(--space-5);

  /* --- Shape --- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.12);

  /* --- Motion: interactions should feel instant (under 400ms) --- */
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 350ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* --- Layout --- */
  --nav-height: 72px;
  --touch-target-min: 44px;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --color-bg: #121214;
    --color-bg-alt: #1a1a1d;
    --color-surface: #1e1e21;
    --color-border: #313136;
    --color-text: #f2f1ee;
    --color-text-muted: #a8a7ad;
  }
}

:root[data-theme="dark"] {
  --color-bg: #121214;
  --color-bg-alt: #1a1a1d;
  --color-surface: #1e1e21;
  --color-border: #313136;
  --color-text: #f2f1ee;
  --color-text-muted: #a8a7ad;
}
