:root {
  --ink: #11110f;
  --charcoal: #191a17;
  --paper: #f4ecdc;
  --paper-strong: #fff8e8;
  --line: #cbbf9e;
  --muted: #675f50;
  --red: #af241d;
  --red-soft: #f5ddd8;
  --gold: #d4a332;
  --lime: #a7d23a;
  --blue: #2b6f9f;
  --blue-soft: #e0eef4;
  --green: #3f722e;
  --shadow: 0 18px 36px rgba(18, 16, 11, 0.18);
  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);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.hero-shell {
  padding: 14px 18px 18px;
  color: #fff8e8;
  background:
    linear-gradient(135deg, rgba(175, 36, 29, 0.24), transparent 32%),
    var(--ink);
  border-bottom: 4px solid var(--red);
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 6px;
  max-width: 1460px;
  margin: 0 auto 12px;
  overflow-x: auto;
}

.top-nav a,
.text-link,
.scenario-control button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid rgba(255, 248, 232, 0.2);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 800;
  white-space: nowrap;
}

.top-nav a {
  color: #f8e8c2;
  background: rgba(255, 255, 255, 0.06);
}

.top-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-grid {
  max-width: 1460px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.85fr);
  gap: 14px;
}

.brand-panel,
.fact-card,
.panel,
.idea-card,
.event-card {
  border-radius: 8px;
}

.brand-panel {
  min-width: 0;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 232, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.06), transparent),
    rgba(255, 255, 255, 0.04);
}

.label {
  margin: 0 0 8px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 8.3ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 4.9vw, 4.75rem);
  line-height: 0.88;
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  max-width: 780px;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.02;
}

h3 {
  font-size: 1rem;
  line-height: 1.15;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.meta-row span {
  padding: 5px 8px;
  color: var(--paper-strong);
  border: 1px solid rgba(255, 248, 232, 0.2);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

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

.fact-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(255, 248, 232, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.fact-card span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fact-card strong {
  display: block;
  font-size: 1.32rem;
  line-height: 1.05;
}

.fact-card small {
  color: #d8cdb1;
}

main {
  background: var(--paper);
}

.section {
  padding: 38px 18px;
  border-bottom: 1px solid var(--line);
}

.section:nth-child(even) {
  background: #fff7e7;
}

.section-heading,
.calendar-wrap,
.logistics-grid,
.packing-layout,
.ideas-grid,
.sources-list {
  max-width: 1460px;
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
}

.section-note {
  color: var(--muted);
}

.scenario-control {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.scenario-control span {
  width: 100%;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.scenario-control button {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper-strong);
  cursor: pointer;
}

.scenario-control button.active {
  color: #fff8e8;
  border-color: var(--red);
  background: var(--red);
}

.calendar-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  border: 1px solid var(--line);
  background: rgba(255, 248, 232, 0.82);
  box-shadow: var(--shadow);
}

.time-rail {
  position: relative;
  min-height: 930px;
  border-right: 1px solid var(--line);
  background: #eee2ca;
}

.time-rail span {
  position: absolute;
  left: 9px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  min-width: 1040px;
  overflow-x: auto;
}

.day-column {
  display: grid;
  grid-template-rows: auto minmax(930px, 1fr);
  border-right: 1px solid var(--line);
}

.day-column:last-child {
  border-right: 0;
}

.day-head {
  min-height: 112px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 248, 232, 0.9);
}

.day-head span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 900;
  text-transform: uppercase;
}

.day-head strong {
  display: block;
  margin-top: 5px;
  color: var(--red);
  font-size: 0.88rem;
}

.day-head small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.day-lane {
  position: relative;
  min-height: 930px;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(103, 95, 80, 0.16) 0,
      rgba(103, 95, 80, 0.16) 1px,
      transparent 1px,
      transparent 60px
    );
}

.event-card {
  position: absolute;
  left: 10px;
  right: 10px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 9px;
  padding: 9px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 15, 0.18);
  background: #fffaf0;
}

.event-card.no-poster {
  grid-template-columns: minmax(0, 1fr);
}

.event-card.show {
  border-color: rgba(175, 36, 29, 0.62);
  box-shadow: 0 10px 24px rgba(68, 22, 15, 0.16);
}

.event-card.travel {
  border-color: rgba(43, 111, 159, 0.56);
  background: var(--blue-soft);
}

.event-card.base {
  border-color: rgba(63, 114, 46, 0.5);
  background: #eef5df;
}

.event-card.food {
  border-color: rgba(212, 163, 50, 0.62);
  background: #fff1c8;
}

.event-card.free {
  border-color: rgba(103, 95, 80, 0.28);
  background: rgba(255, 250, 240, 0.94);
}

.event-card.tentative {
  border-style: dashed;
}

.event-poster {
  width: 78px;
  height: 100%;
  min-height: 82px;
  object-fit: cover;
  border-radius: 5px;
  background: var(--ink);
}

.event-copy {
  min-width: 0;
}

.event-time {
  margin-bottom: 4px;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
}

.event-copy h3 {
  overflow-wrap: anywhere;
}

.event-copy p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.event-copy small {
  display: block;
  margin-top: 4px;
  color: #4f493d;
  font-size: 0.72rem;
}

.logistics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr 1fr;
  gap: 12px;
}

.panel,
.idea-card {
  padding: 18px;
  border: 1px solid var(--line);
  background: #fffaf0;
}

.panel h3,
.idea-card h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
}

.route-row {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.route-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.route-row span,
.idea-card span {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.route-row strong,
.base-panel strong {
  display: block;
  margin-top: 3px;
  font-size: 1rem;
}

.route-row p,
.base-panel p,
.heat-panel p,
.bag-rules p,
.idea-card p {
  margin-top: 8px;
  color: var(--muted);
}

.route-row small,
.base-panel small {
  display: block;
  margin-top: 8px;
  color: #4f493d;
}

dl {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-weight: 800;
}

.heat-panel {
  color: #fff8e8;
  border-color: #7d1712;
  background: linear-gradient(180deg, #bd2c22, #46120f 56%, #1b1611);
}

.heat-panel h3,
.heat-panel p,
.heat-panel li {
  color: #fff8e8;
}

.weather-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 16px 0;
}

.weather-row div {
  padding: 8px 6px;
  border: 1px solid rgba(255, 248, 232, 0.18);
  border-radius: 6px;
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
}

.weather-row span,
.weather-row small {
  display: block;
  font-size: 0.69rem;
}

.weather-row strong {
  display: block;
  font-size: 1.28rem;
}

.plain-list {
  margin: 0;
  padding-left: 18px;
}

.plain-list li + li {
  margin-top: 6px;
}

.checklist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  cursor: pointer;
}

.checklist input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.checklist span {
  color: #2f2b24;
}

.checklist em {
  padding: 1px 5px;
  color: #fff8e8;
  border-radius: 999px;
  background: var(--red);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.packing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 12px;
}

.bag-rules {
  background:
    linear-gradient(135deg, rgba(167, 210, 58, 0.18), transparent 42%),
    #fffaf0;
}

.bag-rules p + p {
  margin-top: 12px;
}

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

.idea-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.idea-card h3 {
  margin-top: 10px;
}

.idea-card .text-link {
  align-self: flex-start;
  margin-top: auto;
  color: #fff8e8;
  border-color: var(--ink);
  background: var(--ink);
}

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

.sources-list div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

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

.sources-list span {
  margin-top: 8px;
  color: var(--muted);
}

.sources-list .text-link {
  margin-top: 10px;
  color: var(--red);
  border-color: var(--line);
  background: transparent;
}

.noscript {
  max-width: 760px;
  margin: 40px auto;
  padding: 24px;
}

@media (max-width: 1180px) {
  .hero-grid,
  .section-heading,
  .logistics-grid,
  .packing-layout {
    grid-template-columns: 1fr;
  }

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

  .scenario-control {
    justify-content: flex-start;
  }

  .scenario-control span {
    text-align: left;
  }

  .calendar-wrap {
    overflow-x: auto;
  }

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

@media (max-width: 720px) {
  .hero-shell,
  .section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .fact-strip,
  .ideas-grid,
  .sources-list {
    grid-template-columns: 1fr;
  }

  .fact-card {
    min-height: 124px;
  }

  .calendar-wrap {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .calendar-grid {
    min-width: 1060px;
  }

  .event-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .event-poster {
    width: 64px;
  }
}
