/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  color: var(--color-ink);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); line-height: var(--lh-display); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-bold); line-height: var(--lh-display); }
p  { font-size: var(--fs-body); line-height: 1.5; color: var(--color-muted); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-olive);
}

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

section { padding-block: var(--sp-7); }
section.section--sm { padding-block: var(--sp-6); }
section.section--lg { padding-block: var(--sp-8); }
section.section--flush { padding-block: 0; }

.section--cream { background: var(--color-cream); }
.section--dark  { background: var(--color-dark); color: var(--color-white); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--color-white); }
.section--dark p { color: rgba(255,255,255,.78); }
.section--olive { background: var(--color-olive); color: var(--color-white); }
.section--olive h1, .section--olive h2, .section--olive h3 { color: var(--color-white); }
.section--olive p { color: rgba(255,255,255,.82); }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: var(--sp-3); }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.grid--3 { grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.grid--4 { grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); }
.grid--split { grid-template-columns: 2fr 1fr; gap: var(--sp-6) 76px; align-items: center; }
.grid--halves { grid-template-columns: 1fr 1fr; gap: 72px 112px; }

@media (max-width: 960px) {
  .grid--split, .grid--halves { grid-template-columns: 1fr; gap: var(--sp-5); }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.stack-sm > * + * { margin-top: var(--sp-2); }
.stack-md > * + * { margin-top: var(--sp-3); }
.stack-lg > * + * { margin-top: var(--sp-4); }

.text-muted { color: var(--color-muted); }
.text-olive { color: var(--color-olive); }
.text-white { color: var(--color-white); }

.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;
}
