:root {
  --ink: #1a2430;
  --muted: #5c6a78;
  --navy: #0e2744;
  --gold: #f5c518;
  --paper: #f4f1ea;
  --card: #fffcf8;
  --line: #e2dcd2;
  --time: 112px;
  --gutter: 26px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

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

body {
  margin: 0;
  background:
    radial-gradient(1200px 420px at 50% -80px, rgba(14, 39, 68, 0.05), transparent 70%),
    var(--paper);
  color: var(--ink);
  font-family: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 17.5px;
  line-height: 1.55;
}

img, video { max-width: 100%; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}

.skip:focus { top: 12px; }

.local-banner {
  display: none;
  margin: 0;
  padding: 10px 18px;
  background: #fff3c4;
  color: #3d3412;
  font-size: 14.5px;
  line-height: 1.4;
}

html.preview .local-banner { display: block; }

.local-banner code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
}

.hero {
  position: relative;
  background: var(--navy);
  line-height: 0;
  overflow: hidden;
  box-shadow: inset 0 -4px 0 var(--gold);
}

.hero img {
  width: 100%;
  max-width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

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

.lede,
.stats,
.section-head,
.route,
.board,
.footer {
  width: min(1040px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.lede {
  padding: 32px 0 4px;
}

.lede p {
  margin: 0 auto 10px;
  font-size: 20px;
  line-height: 1.5;
  max-width: 40rem;
  letter-spacing: -0.011em;
}

.lede p:first-child {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-size: 23px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.lede .quiet {
  color: var(--muted);
  font-size: 15px;
  max-width: 40rem;
}

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.stats li {
  padding: 16px 18px 18px;
  border-left: 1px solid var(--line);
}

.stats li:first-child { border-left: 0; }

.stats strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--navy);
}

.stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.35;
}

.jumps {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 22px;
  padding: 12px 16px;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(14, 39, 68, 0.08);
}

.jumps a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  padding: 7px 11px 7px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.jumps a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mark);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--mark) 22%, white);
}

.jumps a:hover { border-color: color-mix(in srgb, var(--mark) 45%, var(--line)); }

a:focus-visible {
  outline: 3px solid #c89600;
  outline-offset: 2px;
}

.board h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-size: 32px;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
  color: var(--navy);
}

.board p {
  margin: 0;
  color: var(--muted);
}

.timeline {
  --time: 112px;
  --gutter: 26px;
  width: min(1040px, calc(100% - 8px));
  margin: 6px auto 0;
  padding: 22px 20px 8px;
  list-style: none;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 36px;
  bottom: 24px;
  left: calc(20px + var(--time) + (var(--gutter) / 2) - 1px);
  width: 2px;
  background: linear-gradient(var(--navy), #c4b7a4);
  border-radius: 2px;
}

.event {
  display: grid;
  grid-template-columns: var(--time) var(--gutter) minmax(0, 1fr);
  margin: 0 0 14px;
  scroll-margin-top: 62px;
}

.time {
  display: flex;
  align-self: start;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 14px 2px 0 0;
  position: relative;
  z-index: 1;
}

.time a {
  background: var(--mark);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  border-radius: 8px;
  padding: 7px 9px;
  min-width: 92px;
  text-align: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
}

.rail { position: relative; }

.rail span {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%);
  background: var(--card);
  border: 3px solid var(--mark);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--paper);
}

.card {
  background: var(--card);
  border: 1px solid rgba(22, 34, 50, 0.06);
  border-left: 4px solid var(--mark);
  border-radius: 14px;
  padding: 16px 18px 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 24px rgba(28, 24, 18, 0.05);
}

.card p { margin: 0; }

.card .body p + p { margin-top: 8px; }

.card ul {
  margin: 10px 0 0;
  padding: 0 0 0 18px;
}

.card li {
  margin: 8px 0;
  padding-left: 2px;
}

.card li::marker { color: var(--mark); }

.card .define {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.45;
}

.callout {
  margin: 14px 0 0;
  background: var(--navy);
  color: var(--gold);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.clips { margin-top: 2px; }

.clip {
  width: min(100%, 340px);
  margin: 14px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clip video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  background: #101820;
  box-shadow: 0 12px 28px rgba(16, 24, 32, 0.22);
}

.yt {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #101820;
}

.yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.clip figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.01em;
  text-align: center;
}

.noclip {
  margin: 12px 0 0;
  border: 1.5px dashed rgba(20, 32, 51, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.route {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 28px 0 36px;
  margin-top: 8px;
  position: relative;
}

.route::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--navy);
}

.route li {
  position: relative;
  padding: 22px 18px 0 0;
}

.route li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--navy);
  box-shadow: 0 0 0 4px var(--paper);
}

.route span {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.route strong {
  display: block;
  margin-top: 2px;
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.board { padding-bottom: 36px; }

.board a { display: block; margin-top: 14px; }

.board img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(22, 34, 50, 0.08);
  box-shadow: 0 16px 36px rgba(28, 24, 18, 0.12);
}

.footer {
  width: auto;
  margin: 8px 0 0;
  padding: 26px 16px 32px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14.5px;
  text-align: center;
}

.footer p { margin: 0 auto 4px; max-width: 40rem; }

.footer p:first-child {
  color: white;
  font-weight: 650;
  letter-spacing: 0.01em;
}

@media (min-width: 1100px) {
  .jumps { justify-content: center; }
}

@media (min-width: 800px) {
  .hero img {
    height: auto;
    object-fit: fill;
  }
}

@media (max-width: 799px) {
  .hero img {
    height: 52vw;
    min-height: 168px;
    object-fit: cover;
    object-position: left center;
  }

  .hero h1 {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 16px 18px 18px;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--navy);
    color: white;
    text-align: center;
    line-height: 1.15;
  }

  .hero h1 .place {
    display: block;
    font-family: Outfit, "Avenir Next", "Segoe UI", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 17px;
    letter-spacing: -0.02em;
    line-height: 1.25;
  }

  .hero h1 .name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 7px;
    color: #f5c518;
    font-family: Fraunces, Georgia, serif;
    font-style: italic;
    font-weight: 560;
    font-size: 26px;
    letter-spacing: -0.03em;
    line-height: 1.05;
  }

  .hero h1 .name::before,
  .hero h1 .name::after {
    content: "";
    height: 3px;
    width: 22px;
    background: #f5c518;
    border-radius: 2px;
    flex: 0 0 auto;
  }
}

@media (max-width: 720px) {
  .lede p { font-size: 17.5px; }
  .lede p:first-child { font-size: 20.5px; }

  .stats,
  .route {
    grid-template-columns: 1fr;
  }

  .stats li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stats li:first-child { border-top: 0; }

  .route::before { display: none; }

  .route li {
    padding: 0 0 16px 22px;
  }

  .route li::before { top: 4px; }

  .stats strong { font-size: 26px; }

  .timeline {
    --time: 0px;
    --gutter: 18px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .timeline::before {
    left: calc(14px + (var(--gutter) / 2) - 1.5px);
  }

  .event {
    grid-template-columns: var(--gutter) minmax(0, 1fr);
    column-gap: 8px;
  }

  .time {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-start;
    padding: 0 0 8px;
  }

  .rail {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .rail span { top: 10px; }

  .card { grid-column: 2; grid-row: 2; }

}

@media print {
  .local-banner,
  .jumps,
  .noclip,
  .skip { display: none !important; }

  .hero img { height: auto; }
  .card, .stats li { box-shadow: none; }
  .event { break-inside: avoid; }
}
