:root {
  color-scheme: light;
  font-family: "Inter", "Aptos", system-ui, sans-serif;
  color: #182e28;
  background: #f5f3eb;
  --pine: #143830;
  --green: #215e4d;
  --muted: #52655d;
  --line: #dfdfd2;
  --paper: #fffef9;
  --lime: #e1ed88;
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
a { color: var(--green); text-underline-offset: 0.23em; }
a:hover { color: #12382c; }
:focus-visible { outline: 3px solid #93602d; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1140px, calc(100% - 64px)); margin: 0 auto; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px; background: var(--paper); z-index: 3; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { background: var(--pine); color: #f7f7e8; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.topbar a { color: inherit; }
.brand { display: inline-flex; align-items: center; gap: 11px; line-height: 1.1; font-weight: 780; text-decoration: none; }
.brand b { color: var(--lime); }
.brand small { display: block; margin-top: 4px; color: #d2dfd6; font-size: 0.875rem; font-weight: 500; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: var(--pine); background: var(--lime); font-size: 1.25rem; }
.topbar nav { display: flex; gap: 20px; align-items: center; font-size: 0.875rem; font-weight: 650; }
.calendar-link { padding: 8px 13px; border: 1px solid #799083; border-radius: 8px; text-decoration: none; }
.calendar-link:hover { background: #244b40; }

.hero { position: relative; display: grid; align-items: end; min-height: 317px; overflow: hidden; margin-top: 28px; border-radius: 18px; isolation: isolate; background: #263d36; color: #fffef7; }
.hero img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img { z-index: -2; object-fit: cover; object-position: 68% center; }
.hero::after { content: ''; z-index: -1; background: linear-gradient(90deg, rgb(12 34 28 / 95%), rgb(12 34 28 / 78%) 36%, rgb(12 34 28 / 12%) 74%), linear-gradient(0deg, rgb(12 34 28 / 28%), transparent 68%); }
.hero-content { padding: 40px 44px; }
.kicker { font-size: 0.875rem; font-weight: 760; letter-spacing: 0.035em; }
.hero .kicker, .hero h1 span { color: var(--lime); }
.hero h1 { margin: 3px 0 8px; font-size: clamp(2.65rem, 8vw, 5.7rem); font-weight: 790; line-height: 1.02; letter-spacing: -0.07em; }
.hero-content > p:last-child { font-size: clamp(1rem, 2.5vw, 1.25rem); }

.quick-places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 16px 0 36px; }
.quick-card { display: grid; align-content: start; gap: 8px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.place-heading { display: flex; align-items: center; gap: 11px; }
.place-heading .kicker { color: var(--green); }
.place-heading h2 { font-size: clamp(1rem, 1.6vw, 1.13rem); line-height: 1.25; }
.quick-card > p { margin-left: 49px; color: var(--muted); font-size: 0.92rem; }
.quick-card .actions { margin-left: 49px; }
.place-icon { position: relative; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 9px; background: #e7efdf; color: #215844; }
.place-icon::before, .place-icon::after { content: ''; position: absolute; }
.place-icon.hotel::before { left: 10px; top: 10px; width: 15px; height: 15px; border: 2px solid; border-radius: 2px; }
.place-icon.hotel::after { left: 15px; top: 15px; width: 2px; height: 2px; background: currentColor; box-shadow: 6px 0, 0 5px, 6px 5px; }
.place-icon.metro::before { left: 11px; top: 9px; width: 12px; height: 15px; border: 2px solid; border-radius: 5px; background: linear-gradient(currentColor, currentColor) 0 6px / 100% 2px no-repeat; }
.place-icon.metro::after { left: 13px; top: 27px; width: 12px; height: 2px; background: currentColor; transform: skew(-15deg); }
.place-icon.venue::before { left: 10px; top: 10px; width: 14px; height: 14px; border: 2px solid; transform: rotate(45deg); border-radius: 4px; }
.place-icon.venue::after { left: 17px; top: 17px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; margin-bottom: 13px; }
.section-heading h2 { font-size: clamp(1.65rem, 4vw, 2.1rem); letter-spacing: -0.045em; }
.section-heading p, .time-zone { color: var(--muted); font-size: 0.875rem; }
.days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 19px; }
.days a { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--pine); text-decoration: none; font-weight: 720; text-align: left; }
.days time { flex: 0 0 auto; font-size: 1.18rem; font-variant-numeric: tabular-nums; line-height: 1.15; }
.days time span { font-size: 0.875rem; font-weight: 650; color: var(--muted); }
.days a:hover { background: #eaf0df; }
.days a[aria-current] { color: var(--paper); border-color: var(--pine); background: var(--pine); }
.days a[aria-current] time span { color: var(--lime); }
.day-short { display: none; }
.day-panel { scroll-margin-top: 12px; margin-bottom: 24px; }
.day-heading { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin: 0 0 11px; }
.day-heading h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); letter-spacing: -0.04em; line-height: 1.2; }
.day-heading .kicker { margin-bottom: 3px; color: var(--green); }
.time-zone { flex-shrink: 0; }

.agenda { display: grid; gap: 9px; }
.agenda-item { --route: #317960; border: 1px solid var(--line); border-left: 4px solid var(--route); border-radius: 12px; background: var(--paper); }
.agenda-item.venue { --route: #7c8561; }
.agenda-item.dinner { --route: #b05e4c; }
.agenda-item summary { display: grid; grid-template-columns: 144px 1fr 12px; align-items: center; gap: 13px; min-height: 73px; padding: 12px 18px; cursor: pointer; list-style: none; }
.agenda-item summary::-webkit-details-marker { display: none; }
.agenda-item summary:hover { background: #f4f6ee; border-radius: 9px; }
.event-time { font-size: 0.92rem; font-weight: 760; color: var(--green); font-variant-numeric: tabular-nums; }
.agenda-item summary strong { display: block; font-size: 1.13rem; line-height: 1.3; }
.agenda-item summary small { display: block; color: var(--muted); font-size: 0.88rem; }
.chevron { width: 8px; height: 8px; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg); }
[open] > summary .chevron { transform: rotate(225deg); }
.event-body { display: grid; gap: 14px; padding: 13px 18px 17px; border-top: 1px solid #edede5; }
.stops { margin: 0; padding: 0; list-style: none; }
.stops li { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 9px 18px; padding: 10px 0 10px 21px; }
.stops li::before { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; border-left: 1px solid #aec5b8; }
.stops li:first-child::before { top: 23px; }
.stops li:last-child::before { bottom: auto; height: 22px; }
.stops li::after { content: ''; position: absolute; top: 19px; left: 0; width: 7px; height: 7px; border: 1px solid var(--green); border-radius: 50%; background: var(--paper); }
.stops li:first-child::after, .stops li:last-child::after { background: var(--green); }
.stops p { color: var(--muted); }
.stops strong { font-weight: 720; }
.route-note { color: var(--muted); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 13px; }
.actions > a { display: inline-flex; align-items: center; min-height: 38px; font-size: 0.875rem; font-weight: 680; }
.pin { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; gap: 7px; min-height: 38px; padding: 6px 9px; border: 1px solid #c9d8ca; border-radius: 7px; background: #eff4ea; text-decoration: none; font-size: 0.875rem; font-weight: 700; }
.pin:hover { background: #e0edda; }
.pin-mark { position: relative; width: 11px; height: 11px; transform: rotate(-45deg); border: 1.5px solid currentColor; border-radius: 50% 50% 50% 2px; }
.pin-mark::after { content: ''; position: absolute; inset: 2px; border: 1px solid currentColor; border-radius: 50%; }
.button { padding: 7px 12px; border-radius: 7px; background: var(--pine); color: var(--paper); text-decoration: none; }
.button:hover { color: var(--paper); background: var(--green); }

.restaurants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.restaurant { display: grid; align-content: start; gap: 5px; padding: 14px; background: #faf7ef; border: 1px solid #ebe2d3; border-radius: 9px; }
.restaurant-style { color: #794336; font-weight: 730; font-size: 0.875rem; }
.restaurant h3 { line-height: 1.2; }
.restaurant-address, .restaurant small { color: var(--muted); font-size: 0.875rem; }
.travel-tip { display: flex; justify-content: space-between; align-items: center; gap: 10px 22px; margin: 28px 0; background: #e8eee0; border-radius: 11px; padding: 15px 18px; }
.travel-tip h2 { font-size: 1.06rem; }
.travel-tip p { color: #374c43; }
.travel-tip a { flex-shrink: 0; font-size: 0.875rem; font-weight: 700; }
.site-footer { padding: 15px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.site-footer > div { display: flex; flex-wrap: wrap; gap: 5px 15px; margin-bottom: 6px; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 40px); }
  .quick-card { padding: 14px 12px; }
  .quick-card > p, .quick-card .actions { margin-left: 0; }
  .days a { gap: 6px; padding-inline: 9px; }
}

@media (max-width: 650px) {
  .shell { width: calc(100% - 28px); }
  .topbar { min-height: 63px; gap: 10px; }
  .topbar nav { gap: 8px; }
  .calendar-link { padding-inline: 7px; }
  .hero { min-height: 250px; margin-top: 14px; border-radius: 12px; }
  .hero::after { background: linear-gradient(90deg, rgb(12 34 28 / 92%), rgb(12 34 28 / 67%) 48%, rgb(12 34 28 / 21%)); }
  .hero-content { padding: 25px 20px; }
  .quick-places { grid-template-columns: 1fr; gap: 7px; margin: 10px 0 23px; }
  .quick-card { grid-template-columns: 1fr auto; align-items: center; gap: 4px 9px; padding: 10px; }
  .quick-card > p { grid-column: 1 / -1; grid-row: 2; margin-left: 44px; }
  .quick-card .actions { grid-column: 2; grid-row: 1; justify-content: end; }
  .place-heading { gap: 7px; }
  .place-heading .kicker { line-height: 1.15; }
  .days { gap: 6px; margin-bottom: 14px; }
  .days a { flex-direction: column; align-items: start; justify-content: center; gap: 3px; min-height: 55px; font-size: 0.875rem; }
  .days time { font-size: 1.03rem; }
  .agenda-item summary { grid-template-columns: 1fr 12px; gap: 1px 8px; min-height: 67px; padding: 10px 12px; }
  .event-time { grid-column: 1; }
  .chevron { grid-column: 2; grid-row: 1 / span 2; }
  .event-body { padding-inline: 12px; }
  .stops li { flex-direction: column; align-items: start; gap: 5px; }
  .restaurants { grid-template-columns: 1fr; }
  .travel-tip { align-items: start; flex-direction: column; margin: 20px 0; }
}

@media (max-width: 370px) {
  .day-name { position: absolute; clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; }
  .day-short { display: inline; }
  .time-zone { display: none; }
}
