:root {
  color-scheme: light;
  --paper: #f7f3ea;
  --paper-2: #ebe5d9;
  --ink: #171513;
  --muted: #655f55;
  --line: rgba(23, 21, 19, 0.14);
  --terracotta: #a2472d;
  --blue: #234d63;
  --green: #596f4a;
  --gold: #bc8b2c;
  --white: #fffdf7;
  --shadow: 0 18px 50px rgba(34, 27, 20, 0.15);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; }

button,
textarea {
  font: inherit;
}

.hero {
  min-height: 94vh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #211c18;
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 15, 12, 0.84) 0%, rgba(18, 15, 12, 0.48) 45%, rgba(18, 15, 12, 0.16) 100%),
    url("https://images.unsplash.com/photo-1499856871958-5b9627545d1a?auto=format&fit=crop&w=2200&q=82") center/cover;
  transform: scale(1.02);
}

.topbar {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.topbar a,
.button,
.chip {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  padding: 0 14px;
  background: rgba(255, 253, 247, 0.12);
  color: #fffdf7;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.topbar a:hover,
.button:hover,
.chip:hover {
  transform: translateY(-1px);
  background: rgba(255, 253, 247, 0.2);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 150px 0 12vh;
  color: #fffdf7;
}

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

.hero .eyebrow { color: #f0b66d; }

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 10vw, 8.4rem);
  line-height: 0.88;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.2;
}

.lede {
  max-width: 660px;
  margin: 24px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.55;
  color: rgba(255, 253, 247, 0.86);
}

.hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
}

.button--primary {
  border-color: var(--terracotta);
  background: var(--terracotta);
  color: #fffdf7;
}

.band {
  padding: 80px max(20px, calc((100vw - 1180px) / 2));
}

.band--tight { padding-top: 56px; padding-bottom: 56px; }

.band--ink {
  background: #171513;
  color: #fffdf7;
}

.band--ink .muted { color: rgba(255, 253, 247, 0.68); }

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.muted {
  color: var(--muted);
  line-height: 1.55;
}

.alert-grid,
.venue-grid,
.route-days {
  display: grid;
  gap: 16px;
}

.alert-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.alert,
.venue-card,
.day-card,
.planner-card,
.rule-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.alert {
  padding: 20px;
  border-left: 6px solid var(--gold);
}

.alert[data-level="high"] { border-left-color: var(--terracotta); }

.alert p,
.venue-card p,
.day-card p,
.rule-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}

.chip {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  font-weight: 800;
}

.chip.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fffdf7;
}

.venue-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.venue-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px;
}

.venue-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(35, 77, 99, 0.1);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.venue-card dl {
  display: grid;
  gap: 10px;
  margin: 6px 0 18px;
}

.venue-card dt {
  color: var(--ink);
  font-weight: 850;
}

.venue-card dd {
  margin: 2px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.venue-card__links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.venue-card__links a,
.source-list a {
  color: var(--blue);
  font-weight: 850;
}

.route-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.route-tab {
  min-height: 44px;
  border: 1px solid rgba(255, 253, 247, 0.24);
  border-radius: 6px;
  padding: 0 14px;
  background: transparent;
  color: #fffdf7;
  cursor: pointer;
  font-weight: 850;
}

.route-tab[aria-selected="true"] {
  background: #fffdf7;
  color: #171513;
}

.route-panel {
  min-height: 320px;
}

.route-summary {
  max-width: 720px;
  margin: 0 0 18px;
  color: rgba(255, 253, 247, 0.72);
}

.route-days {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.day-card {
  padding: 20px;
  background: rgba(255, 253, 247, 0.08);
  border-color: rgba(255, 253, 247, 0.18);
  box-shadow: none;
}

.day-card p { color: rgba(255, 253, 247, 0.72); }

.day-card .pill {
  background: rgba(255, 253, 247, 0.14);
  color: #fffdf7;
}

.planner-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 32px;
  align-items: start;
}

.planner-card {
  padding: 22px;
}

.planner-card label {
  display: block;
  margin-bottom: 10px;
  font-weight: 900;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background: #fffaf0;
  color: var(--ink);
  line-height: 1.45;
}

.planner-card__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.note-status {
  color: var(--green);
  font-weight: 850;
}

.rules {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.rule-card {
  padding: 16px 18px;
  box-shadow: none;
}

.source-list {
  columns: 2 300px;
  column-gap: 28px;
}

.source-list a {
  display: inline-block;
  margin: 0 0 12px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px max(20px, calc((100vw - 1180px) / 2));
  background: #171513;
  color: rgba(255, 253, 247, 0.68);
}

code {
  font-family: "SFMono-Regular", Consolas, monospace;
}

@media (max-width: 760px) {
  .hero { min-height: 88vh; }
  .hero__media {
    background:
      linear-gradient(180deg, rgba(18, 15, 12, 0.52) 0%, rgba(18, 15, 12, 0.88) 78%),
      url("https://images.unsplash.com/photo-1499856871958-5b9627545d1a?auto=format&fit=crop&w=1200&q=82") center/cover;
  }
  .topbar {
    left: 14px;
    right: 14px;
    justify-content: center;
  }
  .topbar a {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.9rem;
  }
  .hero__content {
    width: min(100% - 28px, 1080px);
    padding-bottom: 9vh;
  }
  .band {
    padding: 56px 14px;
  }
  .planner-layout {
    grid-template-columns: 1fr;
  }
  .footer {
    flex-direction: column;
    padding-inline: 14px;
  }
}
