/* Design tokens: colors, spacing, typography, radii.
   Change the look of the whole site from here. */

:root {
  /* Colors (light) */
  --color-bg: #f5f1ea;
  --color-surface: #fffdf9;
  --color-surface-hover: #ffffff;
  --color-text: #24201b;
  --color-text-muted: #6f675d;
  --color-border: #e5ddd0;
  --color-brand: #c2593a;
  --color-focus: #2f6fdb;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgb(60 40 20 / 0.06);
  --shadow-md: 0 10px 30px -12px rgb(60 40 20 / 0.25);

  /* Typography */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(2rem, 6vw, 3rem);

  /* Spacing */
  --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;

  /* Shape & motion */
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: 160ms ease;

  --page-max-width: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #151311;
    --color-surface: #1f1c19;
    --color-surface-hover: #26221e;
    --color-text: #f1ebe2;
    --color-text-muted: #a69d90;
    --color-border: #332e28;
    --color-brand: #e07a58;
    --color-focus: #7aa7ff;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow-md: 0 12px 32px -12px rgb(0 0 0 / 0.6);
  }
}
