:root {
  color-scheme: light;
  --ink: #1c1917;
  --muted: #5c5852;
  --line: #e4dfd6;
  --paper: #f6f4f0;
  --card: #fffcf8;
  --accent: #1f3d34;
  --accent-ink: #f7f4ee;
  --focus: #9a3412;
  --bar: #1f3d34;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.4rem 0.7rem;
  z-index: 3;
}

.skip:focus { top: 0.75rem; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.brand { font-weight: 650; letter-spacing: 0.01em; text-decoration: none; }
.brand span { color: var(--muted); font-weight: 500; }

nav { display: flex; gap: 1rem; font-size: 0.92rem; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--ink); }

main { max-width: 68rem; margin: 0 auto; padding: 0.5rem 1.25rem 3rem; }

.hero h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.15; margin: 0 0 0.4rem; font-weight: 640; }
.lede { margin: 0 0 1.25rem; max-width: 40rem; color: var(--muted); }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem 1.1rem;
  margin: 0 0 1rem;
}

.search { position: relative; z-index: 4; display: flex; gap: 0.6rem; align-items: flex-start; }
.search input { flex: 1; }
label[for="q"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.dates label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

input[type="search"],
input[type="date"] {
  width: 100%;
  font: 1rem/1.4 system-ui, sans-serif;
  padding: 0.75rem 0.85rem;
  border: 1px solid #d9d3c8;
  border-radius: 10px;
  background: white;
  color: var(--ink);
}

input:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

button {
  font: 600 0.95rem/1.2 system-ui, sans-serif;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  white-space: nowrap;
}

button:disabled { opacity: 0.6; cursor: wait; }
button.quiet { background: transparent; color: var(--accent); border: 1px solid var(--line); }

.suggestions {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 6.5rem;
  top: calc(100% + 0.35rem);
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.08);
}

.suggestions[hidden] { display: none; }

.suggestions button {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  font-weight: 450;
  white-space: normal;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0.65rem;
}
.suggestions .match { font-weight: 750; }
.suggestions .meta { color: var(--muted); font-size: 0.78rem; font-weight: 450; }

.suggestions button[aria-selected="true"],
.suggestions button:hover { background: #efeae2; }

.hint, .note { color: var(--muted); font-size: 0.92rem; margin: 0.75rem 0 0; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 0; }
.metrics div { padding: 0.2rem 0; }
.metrics dt { color: var(--muted); font-size: 0.8rem; }
.metrics dd { margin: 0.15rem 0 0; font-size: 1.25rem; font-weight: 640; }

.years { margin-top: 0.8rem; }
.year { display: grid; grid-template-columns: 3.2rem 1fr 2rem; gap: 0.55rem; align-items: center; margin: 0.28rem 0; font-size: 0.82rem; color: var(--muted); }
.track { display: block; width: 100%; background: #efeae2; border-radius: 999px; }
.bar { display: block; height: 0.55rem; border-radius: 999px; background: var(--bar); min-width: 0.35rem; }

.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; }

button.map-link {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 550;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.15em;
  cursor: pointer;
}
button.map-link:hover,
button.map-link:focus-visible,
button.map-link[aria-expanded="true"] {
  text-decoration-color: currentColor;
}
button.map-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

tr.map-row td {
  padding: 0.35rem 0.4rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.map-embed {
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  overflow: hidden;
  background: #fff;
}
.map-embed-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}
.map-embed-bar a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 17rem;
  border: 0;
}

.places { margin: 0.4rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.places li { border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.6rem; font-size: 0.85rem; color: var(--muted); }

footer { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem 2.5rem; color: var(--muted); font-size: 0.88rem; }
footer a { color: var(--ink); }

h2 { font-size: 1.05rem; margin: 0 0 0.35rem; }

@media (max-width: 720px) {
  .search { flex-direction: column; }
  .dates { grid-template-columns: 1fr; }
  .suggestions { right: 0; }
  .metrics { grid-template-columns: 1fr; }
  button { width: 100%; }
  button.quiet { width: auto; }
}
