@font-face {
  font-family: "DM Sans";
  src: url("dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("instrument-serif.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  src: url("instrument-serif-italic.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f7f1e6;
  --white: #fffbf2;
  --ink: #272317;
  --muted: #665945;
  --line: #d7c9ae;
  --red: #9b351e;
  --green: #374729;
  --wash: #eee3cc;
  --serif: "Instrument Serif", Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 "DM Sans", Arial, sans-serif; }
::selection { background: #efd397; color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
a { color: var(--red); text-underline-offset: .16em; }
button, select, input { font: inherit; }
button, select { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.shell { max-width: 1200px; padding: 36px 36px 0; margin-inline: auto; }
.skip { position: absolute; z-index: 1000; padding: 12px; background: var(--white); transform: translateY(-200px); }
.skip:focus { transform: none; }
.hero { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); align-items: stretch; border-block: 1px solid var(--line); }
.hero-copy { padding: clamp(30px, 6vw, 85px) 24px clamp(30px, 5vw, 70px) 0; align-self: center; }
.hero h1 { color: var(--green); font: 400 clamp(4.8rem, 8.4vw, 7.8rem)/.88 var(--serif); letter-spacing: -.04em; text-wrap: balance; }
.hero h1 em { font-weight: inherit; color: var(--red); }
.hero-byline { margin-top: 23px; font-size: 1.14rem; font-weight: 700; }
.hero-copy p + p { margin-top: 6px; color: var(--muted); max-width: 32ch; }
.hero .button { margin-top: 22px; }
.hero-art { position: relative; margin: 0; overflow: hidden; min-height: 355px; background: #dfcba1; }
.hero-art img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 48% 52%; }
.hero-art figcaption { position: absolute; bottom: 0; right: 0; color: var(--white); background: var(--green); padding: 6px 12px; font-size: .85rem; }
.button, .view-toggle button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 10px;
  border: 1px solid var(--green); border-radius: 5px; padding: 8px 14px;
  background: transparent; color: var(--green); font-weight: 700; text-decoration: none;
}
.button:hover, .view-toggle button:hover { background: var(--wash); }
.primary, .primary:hover, .view-toggle button[aria-pressed="true"] { background: var(--green); color: var(--white); }
.primary:hover { background: #27371c; }
.picks { padding: 24px 0 29px; border-bottom: 1px solid var(--line); }
h2 { font: 400 clamp(2.35rem, 4vw, 3.55rem)/1.02 var(--serif); letter-spacing: -.018em; color: var(--green); }
.picks h2 { margin-bottom: 16px; }
.pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pick { padding: 3px 20px; border-left: 1px solid var(--line); }
.pick:first-child { padding-left: 0; border-left: 0; }
.pick:last-child { padding-right: 0; }
.pick-label { color: var(--red); font-size: .87rem; font-weight: 700; }
.pick a { display: inline-flex; align-items: center; gap: 8px; min-height: 41px; color: var(--ink); text-decoration: none; font: 400 clamp(1.75rem, 2.5vw, 2.3rem)/1.02 var(--serif); }
.pick a:hover { color: var(--red); text-decoration: underline; }
.pick a span { color: var(--red); font: 600 1rem/1 "DM Sans", Arial, sans-serif; }
.pick p:last-child { color: var(--muted); max-width: 33ch; }
.browse { padding-top: 33px; scroll-margin-top: 12px; }
.browse-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.view-toggle { display: flex; }
.view-toggle button { min-width: 65px; }
.view-toggle button:first-child { border-radius: 5px 0 0 5px; border-right: 0; }
.view-toggle button:last-child { border-radius: 0 5px 5px 0; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.filters label { display: grid; gap: 5px; min-width: 0; }
.filters label span { color: var(--muted); font-weight: 700; font-size: .9rem; }
.filters input, .filters select { min-height: 46px; border: 1px solid #aa9a7e; border-radius: 5px; background: var(--white); color: var(--ink); padding: 8px 10px; min-width: 0; width: 100%; }
.filters input::placeholder { color: var(--muted); }
.genres { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0; }
.chip { border: 1px solid var(--line); border-radius: 22px; background: transparent; color: var(--green); padding: 6px 13px; min-height: 42px; font-weight: 700; font-size: .88rem; }
.chip:hover { background: var(--wash); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
.result-line { min-height: 41px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-block: 1px solid var(--line); color: var(--muted); }
.text-button { background: transparent; border: 0; min-height: 44px; color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: .18em; }
#empty { padding: 18px 0; }
.genre { padding-top: 28px; }
.genre-title { font: 400 2.45rem/1.1 var(--serif); color: var(--green); padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.venue {
  display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.5fr) auto;
  gap: 12px 24px; padding: 20px 0; align-items: start; border-bottom: 1px solid var(--line); scroll-margin-top: 12px;
}
.venue:target { background: var(--wash); }
.venue h4 { margin: 0 0 2px; font: 700 1.13rem/1.25 "DM Sans", Arial, sans-serif; overflow-wrap: anywhere; }
.venue p, .venue ul { max-width: 60ch; }
.hood, .note { color: var(--muted); }
.venue ul { margin: 0; padding-left: 18px; }
.venue li + li { margin-top: 3px; }
.venue .note { margin: 6px 0 0; }
.venue .note:first-child { margin-top: 0; }
.venue-badges { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 8px; }
.badge { color: var(--green); background: var(--wash); border-radius: 5px; padding: 2px 7px; font-size: .82rem; font-weight: 700; }
.badge.book { color: var(--red); }
.venue-link { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; font-size: .91rem; font-weight: 700; white-space: nowrap; }
.map-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block: 12px; }
.map-actions .button { flex-shrink: 0; }
#map { height: clamp(420px, 65vh, 720px); border: 1px solid var(--line); border-radius: 8px; background: #eee6d5; }
#map .leaflet-popup-content { line-height: 1.4; font-size: .94rem; }
#map .leaflet-popup-content .hood { margin: 0 0 6px; }
#map .leaflet-popup-content ul { padding-left: 19px; margin-block: 6px; }
#map .leaflet-popup-content .note { margin: 5px 0; }
#map .leaflet-popup-content .venue-link { color: var(--red); }
.map-pin { border: 2px solid var(--white); background: var(--pin-color, var(--green)); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 2px 5px #27231766; }
.map-pin.favorite { border: 3px double var(--white); }
.map-pin span { color: white; font-size: 12px; font-weight: 700; }
footer { margin-top: 37px; padding: 20px 0 26px; color: var(--muted); border-top: 1px solid var(--line); }
footer p + p { margin-top: 6px; }
@media (max-width: 900px) {
  .shell { padding-inline: 24px; }
  .hero h1 { font-size: clamp(4.5rem, 10vw, 6.2rem); }
  .venue { grid-template-columns: minmax(0,.95fr) minmax(0,1.5fr) auto; gap: 10px 15px; }
}
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 22px 0 24px; }
  .hero h1 { font-size: clamp(4.45rem, 15vw, 6.8rem); }
  .hero-byline { margin-top: 12px; }
  .hero-art { min-height: 0; aspect-ratio: 1.95; }
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .search { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .shell { padding: 18px 16px 0; }
  .hero-copy p + p { max-width: 32ch; }
  .hero .button { margin-top: 14px; }
  .picks { padding-block: 17px; }
  .picks h2 { margin-bottom: 6px; }
  .pick-grid { grid-template-columns: 1fr; }
  .pick, .pick:first-child { padding: 8px 0; border-left: 0; }
  .pick + .pick { border-top: 1px solid var(--line); }
  .pick a { min-height: 36px; }
  .pick p:last-child { max-width: 36ch; }
  .browse { padding-top: 23px; }
  .venue { grid-template-columns: minmax(0, 1fr) auto; }
  .venue-detail { grid-area: 2 / 1 / 3 / -1; }
  .venue > .venue-link { grid-area: 1 / 2 / 2 / 3; align-self: start; }
  .map-actions { align-items: start; }
}
@media (max-width: 350px) {
  .hero h1 { font-size: 4.1rem; }
  .venue { grid-template-columns: 1fr; }
  .venue-detail, .venue > .venue-link { grid-area: auto; }
}
