/* ============================================================
   BASE — typography, body, links, utility helpers.
   ============================================================ */

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--lh-base);
}

/* ---------- Headings ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 4.5vw, var(--fs-5xl)); margin-bottom: var(--space-5); }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--fs-3xl)); margin-bottom: var(--space-4); }
h3 { font-size: var(--fs-xl); margin-bottom: var(--space-3); }
h4 { font-size: var(--fs-lg); margin-bottom: var(--space-3); }

/* ---------- Body text ---------- */
p {
  margin-bottom: var(--space-4);
  max-width: 70ch;
}
p.lead {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  line-height: var(--lh-base);
  margin-bottom: var(--space-6);
  max-width: 60ch;
}

/* ---------- Links ---------- */
a {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--color-accent); }
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Lists ---------- */
ul, ol {
  margin: 0 0 var(--space-4) var(--space-5);
  padding: 0;
}
li { margin-bottom: var(--space-2); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(3rem, 8vw, var(--space-12));
}
.section--soft {
  background: var(--color-bg-soft);
}
.section--dark {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-text-inverse);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-3);
}

.text-center { text-align: center; }
.muted { color: var(--color-text-muted); }
