/* ==========================================================
   layout.css
   Skeleton, type scale, section rhythm.
   ========================================================== */

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-read);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.62;
}

/* ---------- type ------------------------------------------ */

.statement,
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  line-height: .96;
  letter-spacing: -.035em;
  text-wrap: balance;
}

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

/* Newsreader italic is the emotional register. Used only on
   the lines that are meant to land, never as decoration.     */
.say {
  font-family: var(--font-read);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  font-stretch: normal;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
}

.mono {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 400;
}

.tabular { font-variant-numeric: tabular-nums; }

/* ---------- containers ------------------------------------ */

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

.shell--narrow { max-width: 860px; }

/* ---------- sections -------------------------------------- */
/* Padding lives only here so nothing cancels out downstream. */

.section { padding-block: clamp(4.5rem, 11vw, 10rem); position: relative; }
.section--dark { background: var(--ink); color: var(--paper-2); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section-head {
  display: grid;
  gap: var(--sp-5);
  max-width: 780px;
  margin-block-end: clamp(2.5rem, 6vw, 5rem);
}

.section-head .eyebrow { color: var(--accent); }
.section-head p { color: var(--muted); font-size: var(--step-1); max-width: 54ch; }
.section--dark .section-head p { color: var(--muted-dark); }

/* ---------- helpers --------------------------------------- */

.grid { display: grid; gap: var(--sp-6); }
.grid--split { grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,6vw,6rem); align-items: center; }
@media (max-width: 950px) { .grid--split { grid-template-columns: 1fr; } }

.stack { display: grid; gap: var(--sp-4); }

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