:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #62615d;
  --line: #dedbd2;
  --paper: #faf8f0;
  --surface: #ffffff;
  --accent: #0b6b57;
  --accent-strong: #064336;
  --sun: #f4c842;
  --sky: #d6edf2;
  --danger: #b23925;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 24px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 12px;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.top-actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--accent);
  outline: none;
}

main {
  margin: 0 auto;
  max-width: 1120px;
  padding: 32px 24px 56px;
}

.hero {
  align-items: end;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 0.74), rgb(0 0 0 / 0.24) 58%, rgb(0 0 0 / 0.1)),
    url("/assets/tour-hero.png") center / cover;
  color: #fff;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) 320px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: min(68vh, 620px);
  padding: 48px max(24px, calc((100vw - 1120px) / 2 + 24px)) 52px;
}

.kicker {
  color: var(--sun);
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(42px, 7vw, 82px);
  letter-spacing: 0;
  line-height: 0.94;
  margin: 0;
  max-width: 840px;
}

.intro {
  color: rgb(255 255 255 / 0.82);
  font-size: 20px;
  line-height: 1.5;
  margin: 22px 0 0;
  max-width: 640px;
}

.status-panel {
  background: rgb(255 255 255 / 0.88);
  border: 1px solid rgb(255 255 255 / 0.5);
  color: var(--ink);
  display: grid;
  gap: 8px;
  padding: 20px;
}

.status-label,
.status-panel small,
.section-heading p,
.stage-date,
.availability {
  color: var(--muted);
  font-size: 13px;
}

.controls {
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.segmented {
  background: #ebe7da;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
}

.segment {
  background: transparent;
  border: 0;
  cursor: pointer;
  min-height: 36px;
  padding: 0 14px;
}

.segment.is-active {
  background: var(--surface);
  color: var(--accent-strong);
  font-weight: 700;
}

.toggle {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
  white-space: nowrap;
}

.stage-list {
  padding-top: 28px;
}

.section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

h2 {
  font-size: 28px;
  margin: 0;
}

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stage-card {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 214px;
  padding: 18px;
}

.stage-card.is-available {
  border-color: #8ab7aa;
}

.stage-card.is-pending .watch-link {
  pointer-events: none;
}

.stage-meta,
.stage-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.stage-number {
  background: var(--sun);
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 8px;
}

.stage-card h3 {
  font-size: 22px;
  line-height: 1.15;
  margin: 22px 0 10px;
}

.stage-route {
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 22px;
}

.stage-footer {
  margin-top: auto;
}

.watch-link {
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  min-width: 92px;
  padding: 10px 14px;
  text-align: center;
  text-decoration: none;
}

.watch-link[aria-disabled="true"] {
  background: #d6d1c3;
  color: #777264;
}

.spoiler-hidden {
  filter: blur(5px);
  user-select: none;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .controls,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .segment {
    padding-left: 8px;
    padding-right: 8px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
