:root {
  --ink: #18312d;
  --muted: #5d6f6a;
  --paper: #f7f3e9;
  --panel: #fffaf0;
  --line: #d9cfb7;
  --forest: #2f7d57;
  --water: #397f9d;
  --sun: #d88b2f;
  --clay: #b74e37;
  --shadow: 0 24px 60px rgba(36, 51, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(57, 127, 157, 0.13), transparent 38%),
    radial-gradient(circle at 90% 10%, rgba(216, 139, 47, 0.22), transparent 28%),
    var(--paper);
  font-family: Avenir Next, Trebuchet MS, Verdana, sans-serif;
}

a {
  color: inherit;
}

.hero {
  min-height: 84vh;
  display: grid;
  align-items: center;
  position: relative;
  padding: 24px clamp(20px, 5vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(14, 37, 34, 0.76), rgba(14, 37, 34, 0.28)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fffaf0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22vh;
  background: linear-gradient(transparent, var(--paper));
  pointer-events: none;
}

.topbar {
  position: absolute;
  top: 24px;
  right: clamp(20px, 5vw, 72px);
  z-index: 2;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.topbar a,
.language-switcher button,
.button {
  text-decoration: none;
  border: 1px solid rgba(255, 250, 240, 0.55);
  color: #fffaf0;
  padding: 10px 14px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  background: rgba(24, 49, 45, 0.22);
}

.language-switcher {
  display: flex;
  gap: 4px;
  padding: 2px;
  border: 1px solid rgba(255, 250, 240, 0.4);
  border-radius: 999px;
  background: rgba(24, 49, 45, 0.18);
  backdrop-filter: blur(10px);
}

.language-switcher button {
  min-width: 42px;
  padding: 8px 10px;
  border-color: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button.is-active {
  background: #fffaf0;
  color: var(--ink);
}

.hero-inner {
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--sun);
}

.hero .eyebrow {
  color: #ffd99e;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: Georgia, Cambria, serif;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.88;
  max-width: 8ch;
  margin-bottom: 24px;
}

h2 {
  font-family: Georgia, Cambria, serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.96;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.lead {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button.primary {
  background: #fffaf0;
  color: var(--ink);
  border-color: #fffaf0;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: -70px auto 80px;
  position: relative;
  z-index: 3;
}

.summary-band,
.relive-teaser,
.split,
.history,
.map-section,
.weather,
.schedule,
.live,
.sources {
  margin-bottom: 28px;
}

.hero-date {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.hero-countdown {
  color: #ffd99e;
  font-weight: 800;
  margin-bottom: 0;
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.summary-band article,
.panel,
.relive-teaser,
.history,
.map-section,
.weather,
.schedule,
.live,
.sources {
  background: rgba(255, 250, 240, 0.94);
}

.schedule {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(360px, 1.28fr);
  gap: 28px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.schedule-table-wrap {
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.schedule-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0 10px 10px 0;
  border-bottom: 1px solid var(--line);
}

.schedule-table td {
  padding: 10px 10px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}

.schedule-table td small {
  display: block;
  color: var(--muted);
  white-space: normal;
}

.schedule-lap {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fffaf0;
  font-weight: 800;
  font-size: 0.85rem;
}

.schedule-table tr:last-child .schedule-lap {
  background: var(--clay);
}

.schedule-cutoff {
  color: var(--clay);
  font-weight: 800;
}

.schedule-weather {
  display: flex;
  align-items: center;
  gap: 8px;
}

.weather-icon,
.weather-big-icon {
  font-size: 1.3rem;
}

.weather-figures small {
  display: block;
  color: var(--muted);
}

.weather-pending {
  color: var(--muted);
}

.weather-main {
  display: grid;
  gap: 16px;
}

.weather-headline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.weather-big-icon {
  font-size: 2.6rem;
}

.weather-headline small {
  display: block;
  color: var(--muted);
}

.weather-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.weather-stats div {
  background: var(--panel);
  padding: 10px 12px;
}

.weather-stats span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.weather-stats strong {
  font-size: 1.05rem;
}

.weather-hours {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
}

.weather-hour {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px;
  text-align: center;
}

.weather-hour-time {
  display: block;
  font-weight: 800;
  font-size: 0.8rem;
}

.weather-hour-icon {
  display: block;
  font-size: 1.4rem;
  margin: 2px 0;
}

.weather-hour small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.live {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.live .button {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
  display: inline-block;
  text-decoration: none;
}

.live-state {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.live-state.is-live::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--clay);
  animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.live-stats {
  margin: 16px 0 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.live-stats div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel);
  padding: 10px 12px;
}

.live-stats dt {
  color: var(--muted);
}

.live-stats dd {
  margin: 0;
  font-weight: 800;
}

.live-marker .live-dot {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--clay);
  border: 3px solid #fffaf0;
  box-shadow: 0 0 0 4px rgba(183, 78, 55, 0.28);
}

.summary-band article {
  padding: 24px;
}

.summary-band span,
.route-card small,
.route-card em,
.place-list span,
.totals,
.note {
  color: var(--muted);
}

.summary-band strong {
  display: block;
  font-size: 1.35rem;
  margin: 6px 0;
}

.summary-band p {
  margin: 0;
}

.relive-teaser {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(360px, 1.28fr);
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.relive-copy a {
  display: inline-block;
  margin-top: 8px;
  font-weight: 800;
}

.relive-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 801;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
}

.relive-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(320px, 1.22fr);
  gap: 28px;
  align-items: start;
}

.section-copy {
  padding: 18px 0;
}

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

.route-card {
  appearance: none;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(36, 51, 42, 0.08);
}

.route-card.is-active {
  border-color: var(--forest);
  outline: 3px solid rgba(47, 125, 87, 0.18);
}

.route-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fffaf0;
  font-weight: 800;
}

.route-card strong,
.route-card small,
.route-card em {
  display: block;
}

.route-card small {
  margin: 4px 0 8px;
}

.route-card em {
  font-style: normal;
}

.map-section {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 22px;
}

.map-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

#map {
  min-height: 640px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.place-marker {
  border-radius: 999px;
  background: var(--ink);
  color: #fffaf0;
  border: 2px solid #fffaf0;
  box-shadow: 0 8px 18px rgba(24, 49, 45, 0.22);
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  font-weight: 800;
}

.place-marker.shop {
  background: var(--clay);
}

.place-marker.sauna,
.place-marker.sauna-venue {
  background: var(--sun);
  color: var(--ink);
}

.place-marker.cafe-kiosk,
.place-marker.cafe {
  background: var(--water);
}

.support {
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.1fr);
}

.history {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(340px, 1.25fr);
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 12px 36px rgba(36, 51, 42, 0.1);
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 18px;
  text-align: left;
  cursor: pointer;
}

.history-card.is-active {
  border-color: var(--ink);
  outline: 3px solid rgba(24, 49, 45, 0.16);
}

.history-card strong,
.history-card small,
.history-card span,
.history-card a {
  display: block;
}

.history-card small,
.history-card span {
  color: var(--muted);
  margin-top: 6px;
}

.history-card a {
  margin-top: 12px;
  font-weight: 800;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 12px 36px rgba(36, 51, 42, 0.1);
}

.place-list,
.sources ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.place-list li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.place-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.place-list strong,
.place-list span {
  display: block;
}

.place-list span {
  margin-top: 4px;
}

.weather {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.weather-links {
  display: grid;
  gap: 10px;
}

.weather-links a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
}

.sources {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.sources li {
  margin: 8px 0;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .summary-band,
  .relive-teaser,
  .split,
  .history,
  .schedule,
  .live,
  .weather {
    grid-template-columns: 1fr;
  }

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

  .map-header {
    display: block;
  }

  #map {
    min-height: 520px;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 760px;
  }

  .topbar {
    left: 20px;
    right: 20px;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5.8rem);
  }

  main {
    width: min(100% - 20px, 1180px);
  }

  .summary-band article,
  .relive-teaser,
  .map-section,
  .weather,
  .schedule,
  .live,
  .panel {
    padding: 18px;
  }
}
