/* Design tokens. The only file in this project permitted to contain hex
   colour literals — tools/check-site.py enforces that. Contrast ratios in
   the comments are measured against --cream and re-verified by the checker. */
:root {
  color-scheme: light;

  --cream: #FAF8F5;
  --sand: #F3ECE3;
  --card: #FFFFFF;
  --line: #E7DED4;
  --dark: #2C2420;
  --ink: #221D19;        /* 15.75:1 */
  --ink-2: #6B6058;      /*  5.76:1 */
  --brown: #8A6A55;      /*  4.64:1 */
  --brown-dark: #6E5142; /*  6.79:1 */
  --tick: #3D6E49;       /*  5.62:1 */

  --step-hero: clamp(2.5rem, 1.6rem + 4.2vw, 4rem);
  --step-h2: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --step-body: clamp(1rem, 0.95rem + 0.25vw, 1.1875rem);
  --step-ui: 0.9375rem;
  --step-eyebrow: 0.78rem;

  --container: 1200px;
  --prose: 68ch;

  --space-1: 4px;  --space-2: 8px;  --space-3: 16px;
  --space-4: 24px; --space-5: 40px; --space-6: 64px; --space-7: 96px;

  --radius-sm: 8px; --radius: 10px; --radius-lg: 12px;
  --shadow-shot: 0 8px 22px rgb(34 29 25 / 0.10);
  --shadow-hero: 0 18px 44px rgb(34 29 25 / 0.19);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
          "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: var(--step-hero); letter-spacing: -0.03em; }
h2 { font-size: var(--step-h2); }

a { color: var(--brown-dark); }

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

.skip-link {
  position: absolute; left: var(--space-3); top: -3rem;
  background: var(--dark); color: var(--cream);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  z-index: 10; transition: top 120ms ease;
}
.skip-link:focus { top: var(--space-3); }

:focus-visible { outline: 2px solid var(--brown-dark); outline-offset: 2px; }

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