:root {
  --paper: #f4f1ea;
  --paper-warm: #ebe7dc;
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --muted: #6e6a62;
  --rule: #cdc7b8;
  --accent: #b86b3c;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}
a:hover { text-decoration-color: var(--accent); }

article {
  max-width: 100%;
}

/* === Hero === */
.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 14vh 1.5rem 8vh;
  text-align: left;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-weight: 500;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: var(--ink);
}

.hero .dek {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 2rem;
  max-width: 36em;
}

.hero .byline {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  margin: 3rem 0 0;
  letter-spacing: 0.02em;
}

/* === Scrollytelling === */
.scrolly {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 5fr) minmax(380px, 7fr);
  gap: 4rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem 6vh;
}

.scrolly__text {
  grid-column: 1;
}

.scrolly__graphic {
  grid-column: 2;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scrolly__graphic-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#map {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.loading {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin: 0;
}
.loading.hidden { display: none; }

.step {
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.step h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

.step p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  max-width: 32em;
}

.step .caption {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1.25rem;
  letter-spacing: 0.02em;
}

/* === Inline color swatches === */
.swatch {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  margin-right: 0.25em;
  vertical-align: 0.04em;
  border: 1px solid rgba(0,0,0,0.08);
}
.swatch--am          { background: #d4a542; }
.swatch--pm          { background: #5b8aa8; }
.swatch--cinnamon    { background: #b86b3c; }
.swatch--black       { background: #1a1a1a; }
.swatch--approach    { background: #6b9968; }
.swatch--indifferent { background: #b8b8b8; }
.swatch--runs        { background: #c25450; }

/* === Footer === */
footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 8vh 1.5rem 12vh;
  border-top: 1px solid var(--rule);
  margin-top: 6vh;
}

footer p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.colophon {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2rem;
}

/* === Mobile === */
@media (max-width: 800px) {
  body { font-size: 17px; }

  .hero { padding: 10vh 1.25rem 5vh; }

  .scrolly {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 1.25rem 4vh;
  }

  .scrolly__text { grid-column: 1; grid-row: 2; }

  .scrolly__graphic {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 0;
    height: 70vh;
    margin: 0 -1.25rem;
    background: var(--paper);
    z-index: 2;
    border-bottom: 1px solid var(--rule);
  }

  .step { min-height: 75vh; padding: 1.5rem 0; }
  .step p { font-size: 1.05rem; }

  footer { padding: 6vh 1.25rem 10vh; }
}
