:root {
  --bg: #101614;
  --bg-raised: #18211c;
  --ink: #f4f0e6;
  --muted: #c5cdc4;
  --copper: #e09a62;
  --copper-deep: #b86a38;
  --line: rgba(244, 240, 230, 0.16);
  --hero-ink: #f7f3ea;
  --rail: 4.75rem;
  --year-col: 13.5rem;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
}

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

a {
  color: var(--copper);
}

a:hover {
  color: #f3c49a;
}

.year-lock {
  position: fixed;
  z-index: 20;
  top: 1.4rem;
  left: 1.4rem;
  width: calc(var(--year-col) - 1.5rem);
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.year-lock.is-on {
  opacity: 1;
}

.year-lock__label,
.year-lock__title,
.stop__year,
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.year-lock strong {
  display: block;
  margin: 0.15rem 0 0.35rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-size: clamp(3.4rem, 6vw, 5.4rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  line-height: 0.85;
  color: var(--copper);
}

.year-lock__title {
  display: block;
  max-width: 11rem;
  letter-spacing: 0.08em;
}

.rail {
  position: fixed;
  z-index: 20;
  top: 50%;
  right: 0.7rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: var(--rail);
}

.rail button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-align: right;
  padding: 0.18rem 0.7rem;
  cursor: pointer;
}

.rail button[aria-current="true"] {
  color: var(--copper);
}

.rail button:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--hero-ink);
  overflow: hidden;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 12, 0.15) 0%, rgba(10, 14, 12, 0.25) 40%, rgba(10, 14, 12, 0.88) 100%);
}

.hero__copy,
.hero__credit {
  position: relative;
  z-index: 1;
}

.hero__copy {
  padding: 12vh 8vw 8vh;
  max-width: 46rem;
}

.hero h1 {
  margin: 0.2rem 0 0.6rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-size: clamp(4.5rem, 14vw, 9rem);
  letter-spacing: -0.045em;
  line-height: 0.86;
}

.lede {
  margin: 0;
  max-width: 36rem;
  font-size: 1.3rem;
  color: #efe8da;
}

.hero__next {
  display: inline-block;
  margin-top: 1.6rem;
  color: var(--hero-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--copper);
  padding-bottom: 0.15rem;
}

.hero__credit {
  position: absolute;
  right: 1.2rem;
  bottom: 1rem;
  left: 8vw;
  margin: 0;
  font-size: 0.82rem;
  color: #ddd4c4;
}

.hero__credit a {
  color: #f3e6d2;
}

.stop {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: 6.5rem calc(var(--rail) + 1.2rem) 5rem var(--year-col);
  border-top: 1px solid var(--line);
}

.stop--text {
  grid-template-columns: minmax(0, 40rem);
}

.stop.is-active {
  background: linear-gradient(90deg, rgba(224, 154, 98, 0.07), transparent 28rem);
}

.stop__year {
  margin: 0 0 0.35rem;
}

.stop h2 {
  margin: 0 0 1rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.stop p {
  margin: 0 0 0.9rem;
}

.stat {
  margin: 0.2rem 0 1.1rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--copper);
}

.stat span {
  display: block;
}

.frame {
  margin: 0;
}

.frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #0c1210;
}

.frame--portrait img {
  aspect-ratio: 3 / 4;
  max-height: 72vh;
  object-fit: contain;
  object-position: center top;
}

.frame figcaption,
.sources {
  color: var(--muted);
  font-size: 0.92rem;
}

.frame figcaption {
  margin-top: 0.55rem;
}

.sources {
  padding: 4rem var(--rail) 5rem var(--year-col);
  border-top: 1px solid var(--line);
  max-width: 52rem;
}

.sources h2 {
  margin: 0 0 0.6rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  color: var(--ink);
  font-size: 2rem;
}

.sources ul {
  padding-left: 1.1rem;
}

.sources li + li {
  margin-top: 0.35rem;
}

@media (max-width: 980px) {
  :root {
    --year-col: 1.15rem;
  }

  .year-lock {
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: rgba(16, 22, 20, 0.92);
    backdrop-filter: blur(10px);
  }

  .year-lock strong {
    font-size: 1.8rem;
    margin: 0;
  }

  .year-lock__title {
    max-width: none;
  }

  .stop,
  .sources {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .stop {
    grid-template-columns: 1fr;
    padding-top: 5.4rem;
    padding-bottom: 5.5rem;
    scroll-margin-top: 3.4rem;
  }

  .rail {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    transform: none;
    flex-direction: row;
    width: auto;
    gap: 0;
    overflow-x: auto;
    background: rgba(16, 22, 20, 0.94);
    border-top: 1px solid var(--line);
    padding: 0.35rem 0.3rem calc(0.35rem + env(safe-area-inset-bottom));
  }

  .rail button {
    flex: 0 0 auto;
    text-align: center;
    padding: 0.45rem 0.55rem;
  }

  .hero__credit {
    left: 1.15rem;
    right: 1.15rem;
    bottom: 3.4rem;
  }

  .sources {
    padding-bottom: 6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .year-lock {
    transition: none;
  }
}
