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

html {
  overflow-x: hidden;
}

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

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: 58px;
  padding: 0 18px;
}

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

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

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

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

.icon-button svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 19px;
}

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

main {
  margin: 0 auto;
  max-width: 1120px;
  padding: 18px 18px 40px;
}

.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: 18px;
  grid-template-columns: minmax(0, 1fr) 320px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 240px;
  padding: 30px max(18px, calc((100vw - 1120px) / 2 + 18px)) 34px;
}

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

h1 {
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 0.98;
  margin: 0;
  max-width: 840px;
}

.intro {
  color: rgb(255 255 255 / 0.82);
  font-size: 17px;
  line-height: 1.5;
  margin: 14px 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: 5px;
  padding: 14px;
}

.install-card {
  background: var(--surface);
  border: 1px solid #8ab7aa;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 10px 0;
  padding: 10px;
}

.install-card[hidden] {
  display: none;
}

.install-label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 2px;
  text-transform: uppercase;
}

.install-compact {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
}

.install-actions {
  align-items: center;
  display: flex;
  gap: 6px;
}

.install-details {
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
  padding-top: 8px;
}

.install-details[hidden] {
  display: none;
}

.install-card h2 {
  font-size: 16px;
  margin: 0 0 4px;
}

.install-card p:last-child {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.install-steps ol {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.install-steps li {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 8px;
  grid-template-columns: 28px minmax(0, 1fr);
  line-height: 1.35;
}

.install-step-icon {
  align-items: center;
  background: #ebe7da;
  color: var(--accent-strong);
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.install-step-icon svg {
  display: block;
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.install-button {
  background: var(--accent);
  border: 0;
  color: #fff;
  cursor: pointer;
  flex: none;
  font-weight: 800;
  min-height: 34px;
  padding: 0 11px;
}

.install-button.secondary {
  background: #ebe7da;
  color: var(--ink);
}

.install-button:hover,
.install-button:focus-visible {
  background: var(--accent-strong);
  outline: none;
}

.install-button.secondary:hover,
.install-button.secondary:focus-visible {
  background: #d8d2c2;
}

.notify-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 10px 0;
  padding: 10px;
}

.notify-card[hidden] {
  display: none;
}

.notify-label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 2px;
  text-transform: uppercase;
}

.notify-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
}

.notify-button {
  background: var(--accent);
  border: 0;
  color: #fff;
  cursor: pointer;
  flex: none;
  font-weight: 800;
  min-height: 34px;
  padding: 0 11px;
}

.notify-button:disabled {
  background: #d6d1c3;
  color: #777264;
  cursor: not-allowed;
}

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

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

.seo-copy {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 16px;
}

.seo-copy h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.seo-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  max-width: 820px;
}

.seo-copy p + p {
  margin-top: 8px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 13px;
  gap: 10px;
  justify-content: center;
  padding: 18px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.site-footer .coffee-button {
  background: #ffdd00;
  border: 2px solid #000;
  border-radius: 5px;
  box-shadow: 2px 2px 0 #000;
  color: #000;
  display: inline-block;
  font-family: "Cookie", cursive, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  padding: 7px 13px;
  text-decoration: none;
}

.site-footer .coffee-button:hover,
.site-footer .coffee-button:focus-visible {
  background: #ffe76a;
  color: #000;
  outline: none;
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #000;
}

.text-page {
  max-width: 780px;
  padding-top: 34px;
}

.text-page h1 {
  color: var(--ink);
  font-size: 42px;
  line-height: 1.05;
  margin-bottom: 18px;
}

.text-page h2 {
  font-size: 22px;
  margin: 26px 0 8px;
}

.text-page p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 14px;
}

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

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

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

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

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

.stage-card.is-current {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.stage-card.is-playing {
  grid-column: 1 / -1;
}

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

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

.stage-card h3 {
  font-size: 18px;
  line-height: 1.15;
  margin: 12px 0 6px;
}

.stage-route {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.34;
  margin: 0 0 12px;
}

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

.watch-link {
  background: var(--accent);
  border: 0;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  min-width: 72px;
  padding: 8px 10px;
  text-align: center;
  text-decoration: none;
}

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

.video-shell {
  aspect-ratio: 16 / 9;
  background: #111;
  margin: 0 0 12px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.video-shell[hidden] {
  display: none;
}

.video-shell iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

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

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

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

  .site-header {
    min-height: 52px;
  }

  .brand {
    gap: 8px;
  }

  .hero {
    min-height: 190px;
    padding-bottom: 24px;
    padding-top: 24px;
  }

  h1 {
    font-size: 34px;
  }

  .intro {
    font-size: 15px;
  }

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

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

  .notify-card {
    align-items: stretch;
    flex-direction: column;
  }

  .install-actions {
    justify-content: stretch;
  }

  .install-button {
    flex: 1;
  }

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

  .stage-card {
    min-height: 124px;
    padding: 10px;
  }

  .stage-card h3 {
    font-size: 17px;
    margin-top: 10px;
  }

  .stage-route {
    font-size: 12px;
  }

  .stage-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .watch-link {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .text-page h1 {
    font-size: 34px;
  }
}
