/* ============================================================
   base.css — typography, layout primitives, utilities
   ============================================================ */
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  font-optical-sizing: auto;
}

/* ---- Headings ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 460;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  color: var(--spruce);
}
h1 { font-size: var(--step-6); font-weight: 500; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-weight: 500; }

a { color: var(--fern-600); transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--rhododendron); }

strong { font-weight: 600; }

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

.section { padding-block: clamp(3.5rem, 8vw, var(--space-3xl)); }
.section.tight { padding-block: clamp(2.5rem, 5vw, var(--space-2xl)); }

/* ---- Eyebrow / label (encodes provenance, not decoration) ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fern-600);
  display: block;          /* normal text flow so long labels wrap word-by-word */
  max-width: 100%;
}
.eyebrow::before {       /* leading hairline, inline so the text can wrap past it */
  content: "";
  display: inline-block;
  width: 1.6em;
  height: 1px;
  margin-right: 0.6em;
  vertical-align: middle;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.on-dark { color: var(--dawn); }

/* ---- Lead paragraph ---- */
.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: color-mix(in srgb, var(--ink) 86%, transparent);
}

.measure { max-width: 60ch; }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }

/* ---- Utilities ---- */
.visually-hidden {
  position: absolute !important;
  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(--gutter); top: -100px;
  z-index: 200;
  background: var(--spruce);
  color: #fff;
  padding: 0.6em 1em;
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: var(--space-sm); color: #fff; }
