/*
 * WVHM 89.7 — Base Styles
 * Reset, typography scale, layout primitives.
 */

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .35s ease, color .35s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; padding: 0; background: transparent; }
ul, ol { margin: 0; padding: 0; }
blockquote { margin: 0; }
p { margin: 0; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ── Typography ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 4.5vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem);   font-weight: 400; }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.55rem); font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-body); letter-spacing: 0; }
h5 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 var(--s-3);
}

.lead {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  line-height: 1.5;
  color: var(--text-soft);
  font-weight: 400;
}
.serif { font-family: var(--font-display); }
.mono  { font-family: var(--font-mono); }

/* Eyebrow label */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-strong);
  flex-shrink: 0;
}
.eyebrow-sm { font-size: 10.5px; letter-spacing: 0.12em; }
.eyebrow.centered { display: block; text-align: center; }

/* ── Layout primitives ──────────────────────────────────────────────────────── */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
@media (min-width: 900px) {
  .container { padding: 0 var(--s-6); }
}

.section        { padding: var(--s-8) 0; }
.section-tight  { padding: var(--s-7) 0; }
.section-sunken { background: var(--bg-sunken); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
}
.section-head h2 { max-width: 22ch; }
.section-head .lead { max-width: 38ch; }
.section-head-stack { display: block; margin-bottom: var(--s-5); }
.section-head-stack h2 { margin-top: var(--s-2); }

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
}
@media (max-width: 960px) { .split-2 { grid-template-columns: 1fr; } }

hr.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* ── Utilities ──────────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.divider {
  display: inline-block;
  width: 4px; height: 4px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.35;
  vertical-align: middle;
  margin: 0 10px 3px;
}
.no-wrap  { white-space: nowrap; }
.text-muted { color: var(--text-muted); }
.lead.muted { color: var(--text-muted); }

/* ── Reveal animation (IntersectionObserver in app.js) ─────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-in { opacity: 1; transform: translateY(0); }
