/* ==========================================================================
   Base – reset, typography and section rhythm. Depends on tokens.css.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  line-height: var(--lh-body);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}
img { max-width: 100%; }

/* ── Headings ── */
h1, h2 {
  font-family: var(--font-serif);
  font-weight: var(--fw-light);
  color: var(--color-heading);
}
h1 {
  font-size: var(--fs-display);
  line-height: 1.15;
  margin-bottom: var(--space-5);
}
h1 em { font-style: italic; color: var(--color-accent); }
h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-5);
}
h2 em { font-style: italic; color: var(--bark-light); }

/* ── Text styles ── */
.section-label {
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.lead {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: var(--lh-relaxed);
}

/* Text for screen readers only */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Sections ── */
section { padding: var(--space-9) var(--gutter); }

/* ── Animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  :root { --gutter: 6vw; }
  section { padding: 4rem var(--gutter); }
}
@media (max-width: 600px) {
  h1 { font-size: 2.2rem; }
}
