/* ══════════════════════════════════════════════════════════════
   BASE — reset, typography primitives, shared utilities
   ══════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.65;
  background: var(--ink);
  color: var(--bone);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }

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

/* Consistent, visible focus for keyboard users only. */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Type primitives ─────────────────────────────────────────── */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: var(--track-tight);
  text-wrap: balance;
}
.display em {
  font-style: italic;
  color: var(--amber);
}

.t-hero { font-size: var(--t-hero); }
.t-d1   { font-size: var(--t-d1); }
.t-d2   { font-size: var(--t-d2); }
.t-d3   { font-size: var(--t-d3); line-height: 1.15; }

/* Uppercase eyebrow label with a short amber rule. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--amber);
  flex: none;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.62;
  color: var(--bone-2);
  font-weight: 300;
  max-width: var(--text-col);
}

.prose {
  color: var(--bone-2);
  max-width: var(--text-col);
  font-weight: 300;
}
.prose + .prose { margin-top: 1.1em; }

/* Numerals in stats should line up in a column. */
.tnum { font-variant-numeric: tabular-nums; }

/* ── Layout utilities ────────────────────────────────────────── */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

/* Light editorial break between dark sections. */
.section--paper {
  background: var(--paper);
  color: var(--on-paper);
}
.section--paper .lead,
.section--paper .prose { color: var(--on-paper-2); }

/* Bright amber on cream is only ~1.8:1 — unreadable. Every amber accent
   on a paper section steps down to the deep tone, which clears 3:1 at the
   large sizes these are used at. */
.section--paper .eyebrow,
.section--paper .display em,
.section--paper .step__num,
.section--paper .value__icon,
.section--paper .link-arrow,
.section--paper .checks .icon { color: var(--amber-paper); }
.section--paper .eyebrow::before { background: var(--amber-paper); }
.section--paper .step { border-top-color: var(--paper-line); }
.section--paper .step:hover { background: rgba(22, 22, 26, .025); }

.section--sunk { background: var(--ink-sunk); }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head .lead { margin-top: 1.25rem; }

.hairline { height: 1px; background: var(--line); border: 0; }

/* ── Accessibility ───────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: var(--z-top);
  padding: 12px 20px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  font-size: var(--t-sm);
  border-radius: var(--r-sm);
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ── Scroll reveal (driven by js/site.js) ────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* If JS never runs, content must still be visible. */
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ── Icons ───────────────────────────────────────────────────── */

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--lg { width: 2rem; height: 2rem; stroke-width: 1.1; }
