/* ─────────────────────────────────────────────────────────────────────────
   Orcrist — base layer: reset, document defaults, typography, layout
   primitives and the shared section scaffolding.

   Consumes tokens.css. Defines no literal colours.
   ───────────────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Typography ─────────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: var(--step-5);
}
h2 {
  font-size: var(--step-4);
}
h3 {
  font-size: var(--step-2);
  line-height: var(--leading-snug);
}

p {
  margin: 0;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-soft);
}
a:hover {
  color: var(--brand-strong);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.muted {
  color: var(--muted);
}
.lede {
  font-size: var(--step-1);
  line-height: var(--leading-body);
  color: var(--text-soft);
  max-width: var(--maxw-prose);
}

/* Section label. Small, widely tracked — reads as a label, not small text. */
.eyebrow {
  margin: 0 0 var(--space-3);
  font-size: var(--eyebrow-size);
  font-weight: 600;
  letter-spacing: var(--eyebrow-track);
  text-transform: uppercase;
  color: var(--brand);
}

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

/* Sections separate with hairline rules rather than heavy alternating bands.
   Each may additionally carry a ground tint via the modifiers below. */
.section {
  padding-block: var(--section-y);
  scroll-margin-top: 92px;
  position: relative;
}
.section + .section {
  border-top: 1px solid var(--border-soft);
}
.section--tint {
  background: var(--bg-tint);
}
.section--deep {
  background: var(--bg-deep);
}

.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-7);
}
.section-head .lede {
  margin-top: var(--space-4);
}

.section-cta {
  margin-top: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}
.section-cta .muted {
  flex-basis: 100%;
  font-size: var(--step--1);
  margin: 0;
}

/* Provenance line — the "measured from our own records" pattern. Attaches
   under any block of claims to say where the numbers come from. */
.provenance {
  margin-top: var(--space-6);
  font-size: var(--step--1);
  color: var(--muted);
  border-top: 1px solid var(--border-soft);
  padding-top: var(--space-4);
}

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