@layer reset, tokens, base, components, utilities;

@layer tokens {
  :root {
    --color-bg: #faf7f2;
    --color-surface: #ffffff;
    --color-text: #2b2622;
    --color-muted: #776c62;
    --color-border: #e6ded3;
    --color-accent: #b4532a;
    --color-accent-text: #ffffff;

    --font-body: ui-serif, Georgia, "Times New Roman", serif;
    --font-ui: system-ui, -apple-system, "Segoe UI", sans-serif;
    --size-small: 0.875rem;
    --size-body: 1.0625rem;
    --size-h2: 1.375rem;
    --size-h1: clamp(1.75rem, 4vw, 2.5rem);

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2.5rem;

    --radius: 0.5rem;
    --width: 40rem;
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --color-bg: #1d1a17;
      --color-surface: #27231f;
      --color-text: #f1ebe3;
      --color-muted: #b3a798;
      --color-border: #3b352f;
      --color-accent: #e08a5d;
      --color-accent-text: #1d1a17;
    }
  }
}
