/* Design tokens + reset + typography. Montserrat (self-hosted, see
   fonts.css) for both display and body -- geometric sans, one typeface,
   weight does the hierarchy work instead of mixing families. */

:root {
  --color-ink: #1c211d;
  --color-paper: #f6f3ec;
  --color-surface: #ffffff;
  --color-surface-alt: #eef0e6;
  --color-primary: #234d3a;
  --color-primary-bright: #3f8967;
  --color-accent: #c4592f;
  --color-accent-bright: #de7248;
  --color-border: #ddd6c7;
  --color-muted: #6b6b5d;

  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.95rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --step-3: clamp(2.2rem, 1.8rem + 2vw, 3.2rem);
  --step-4: clamp(2.8rem, 2.1rem + 3.5vw, 4.6rem);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: clamp(4rem, 3rem + 5vw, 7rem);
  --space-2xl: clamp(6rem, 4.5rem + 7.5vw, 10rem);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(28, 33, 29, 0.07);
  --shadow-md: 0 12px 32px -12px rgba(28, 33, 29, 0.22);
  --max-content: 1180px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-ink: #eef0e6;
    --color-paper: #14170f;
    --color-surface: #1c2118;
    --color-surface-alt: #232920;
    --color-primary: #5aa77e;
    --color-primary-bright: #7fc79f;
    --color-border: #333a2c;
    --color-muted: #9a9c8d;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-2);
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  font-weight: 600;
}

.muted {
  color: var(--color-muted);
}

.text-error {
  color: var(--color-accent);
  font-size: var(--step--1);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
