:root {
  color-scheme: light;
  --paper: #f2ebda;
  --ink: #16372b;
  --muted: #475b4e;
  --accent: #f2462e;
  --line: #c7cab5;
  --surface: #faf6eb;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
button, input, select { font: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
section[id], main[id] { scroll-margin-top: 24px; }

.shell { width: min(100% - 96px, 1240px); margin-inline: auto; }
.site-header, .site-footer {
  min-height: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
}
.site-header { border-bottom: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-header nav a, .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.brand { font-size: 21px; font-weight: 750; letter-spacing: -.055em; text-decoration: none; }
.skip-link { position: absolute; left: 16px; top: 12px; z-index: 1; padding: 10px; background: var(--surface); }
.skip-link:not(:focus), .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(28px, 5vw, 64px) 28px;
}
.eyebrow, .tag { font: 700 .75rem/1.5 var(--font-mono); text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--accent); }
h1 { margin-block: 13px 17px; font-size: clamp(2.8rem, 6.1vw, 5.55rem); line-height: .97; letter-spacing: -.045em; }
.lead { max-width: 34ch; color: var(--muted); font-size: clamp(1rem, 1.75vw, 1.24rem); }
.hero-photo { display: grid; position: relative; overflow: hidden; border-radius: 104px 4px 4px 4px; background: var(--ink); }
.hero-photo img { grid-area: 1 / 1; width: 100%; aspect-ratio: 1.58; object-fit: cover; object-position: center; }
.hero-photo figcaption {
  grid-area: 1 / 1;
  place-self: end start;
  z-index: 0;
  padding: 6px 12px;
  margin: 12px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  font-size: .82rem;
}
.hero-actions { margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { border-color: currentColor; background: rgb(127 127 127 / .1); }
.primary, .button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.primary:hover, .button[aria-pressed="true"]:hover { border-color: var(--ink); background: #285443; }
.place-actions .button > span { display: none; }
.place-actions .button[aria-pressed="true"] > span { display: inline; }
.place-actions .button[aria-pressed="true"] > span::before { content: "✓"; }
.primary:focus-visible, .place-actions .button:focus-visible { outline-color: var(--ink); }
.button:disabled { opacity: .38; cursor: default; }

.tool-index {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-block: 0 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--line);
}
.tool-index a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 52px;
  padding: 8px 12px;
  background: var(--surface);
  font-weight: 650;
  text-decoration: none;
}
.tool-index a:hover { background: var(--paper); text-decoration: underline; }
.tool-index a:focus-visible { outline-offset: -3px; }

.section { padding-block: 24px 32px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; }
.section-heading h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
.section-heading > a { flex-shrink: 0; font-size: .92rem; font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
h3 { font-size: 1.19rem; line-height: 1.2; letter-spacing: -.025em; }
.section-heading p, .panel > p { margin-top: 7px; color: var(--muted); }
.small { font-size: .87rem; color: var(--muted); }
.notice, .empty { margin-block: 14px 0; }
.result-count { min-height: 1.5em; margin-block: 11px 7px; }
.result-count:empty { display: none; }
.catalog-summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 12px; }
.catalog-summary > a { min-height: 32px; font-weight: 650; }
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-block: 16px 12px;
}
.search-fields { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); }
label { display: grid; gap: 5px; min-width: 0; font-size: .89rem; font-weight: 650; }
input, select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid #8a9a85;
  border-radius: 4px;
  background: #fffdf7;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
}
input::placeholder { color: #656f63; }

.place-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.place-card, .panel, .trip-grid article { padding: clamp(14px, 2.15vw, 26px); border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.place-card { display: flex; flex-direction: column; }
.tag { color: var(--muted); margin-bottom: 7px; }
.place-location { margin-top: 3px; }
.place-description { flex-grow: 1; margin-block: 9px 8px; }
.place-links { display: flex; flex-wrap: wrap; gap: 0 15px; }
.place-links a { display: inline-flex; align-items: center; gap: 3px; min-height: 36px; font-size: .92rem; }
.place-actions { margin-top: 7px; }
.place-actions .button { font-size: .89rem; }
.more-button { margin-top: 12px; }

.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-block: 0 14px; }
.planner { margin-bottom: 32px; }
.entry-list { padding: 0; margin: 10px 0 0; list-style: none; }
.entry-list:empty { margin: 0; }
.entry-list > li { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; padding-block: 7px; border-top: 1px solid var(--line); }
.entry-list .small { display: block; }
.entry-list .button { flex-shrink: 0; }
.event-list > li { padding: 0; }
.event-list > li > a { display: flex; justify-content: space-between; align-items: center; gap: 6px; width: 100%; min-height: 44px; }
.panel-link, .directions-sources a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font-size: .92rem; font-weight: 650; }
.panel-link { margin-top: 8px; }
.directions-sources { display: flex; flex-wrap: wrap; gap: 0 12px; margin-top: 8px; }

.plan { --line: #708675; background: var(--ink); color: var(--paper); }
.plan p, .plan .small { color: #e2e7d7; }
.plan button:focus-visible, .plan a:focus-visible { color: white; }
.plan-list { counter-reset: stop; }
.plan-list > li { counter-increment: stop; }
.plan-list > li::before { content: counter(stop, decimal-leading-zero); font: 700 .82rem var(--font-mono); }
.plan-list > li > a { flex: 1; }
.entry-controls { display: flex; flex-wrap: wrap; justify-content: end; gap: 5px; }
.entry-controls .button { min-width: 44px; padding-inline: 7px; }
#download-plan { margin-top: 12px; }

.weather-current { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin-block: 12px; }
.weather-current > strong { font-size: clamp(2.5rem, 5.5vw, 4.4rem); line-height: 1; letter-spacing: -.08em; }
.weather-current p { color: var(--muted); font-size: .91rem; }
.forecast {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  margin: 0 0 8px;
  border-block: 1px solid var(--line);
  list-style: none;
}
.forecast li { padding: 9px; font-size: .87rem; }
.forecast li + li { border-left: 1px solid var(--line); }
.forecast b, .forecast span { display: block; }
#weather-retry { margin-top: 8px; }
.budget-total { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 9px; border-top: 1px solid var(--line); }
.budget-total output { font-size: 1.4rem; font-weight: 750; text-align: right; }
.trip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.trip-grid article { display: flex; flex-direction: column; }
.trip-grid article > p:not(.tag) { margin-block: 7px; flex-grow: 1; }
.trip-grid a { padding-block: 6px; font-weight: 650; font-size: .91rem; }

@media (max-width: 1040px) {
  .shell { width: calc(100% - 64px); }
  .trip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .tool-index { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 29px; }
  .place-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: start; flex-direction: column; }
  .planner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 660px) {
  .shell { width: calc(100% - 36px); }
  .hero, .two-up { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { border-top-left-radius: 76px; }
  .site-header nav { gap: 0 14px; font-size: .91rem; }
  .site-header { min-height: 62px; padding-top: 4px; }
}
@media (max-width: 470px) {
  .place-grid, .trip-grid, .search-fields { grid-template-columns: minmax(0, 1fr); }
  .plan-list > li { display: grid; grid-template-columns: auto 1fr; }
  .plan-list .entry-controls { grid-column: 2; justify-content: start; }
}
