:root { color-scheme: light; font-family: Inter, system-ui, sans-serif; color: #16251f; background: #f5f1e8; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.site-header, .home-shell, .site-footer { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { padding-block: 1.5rem; }
.site-header a { color: #163f32; font-size: 1.35rem; font-weight: 800; letter-spacing: .12em; text-decoration: none; }
.home-shell { padding-block: 2rem 4rem; }
.hero { max-width: 42rem; margin-bottom: 2rem; }
.hero p { margin: 0 0 .5rem; color: #a34d2a; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hero h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.25rem, 7vw, 4.5rem); line-height: 1; }
.discovery { margin: 0 0 2.25rem; padding: 1.25rem; border: 1px solid #d8d0c1; border-radius: 1rem; background: #fffdf8; }
.discovery-heading { margin-bottom: 1.25rem; }
.discovery-heading .eyebrow { margin: 0 0 .3rem; color: #a34d2a; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.discovery-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.5rem, 4vw, 2rem); }
.nearby-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem 1.25rem;
  align-items: center;
  margin: 0 0 1.35rem;
  padding: 1rem;
  border-radius: .85rem;
  background: #eef2ed;
}

.nearby-copy h3 {
  margin: 0 0 .2rem;
  font-family: Georgia, serif;
  font-size: 1.25rem;
}

.nearby-copy p {
  margin: 0;
  color: #52615b;
  font-size: .84rem;
  line-height: 1.4;
}

.nearby-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: end;
}

.nearby-controls label {
  display: grid;
  gap: .3rem;
  color: #52615b;
  font-size: .75rem;
  font-weight: 750;
}

.nearby-controls select {
  min-height: 2.65rem;
  padding: .55rem .7rem;
  border: 1px solid #cfc5b4;
  border-radius: .65rem;
  background: #fff;
  color: #16251f;
  font: inherit;
}

#nearby-button {
  min-height: 2.65rem;
  padding: .6rem .9rem;
  border: 0;
  border-radius: .65rem;
  background: #163f32;
  color: #fffdf8;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

#nearby-button:disabled {
  opacity: .6;
  cursor: wait;
}

.nearby-reset {
  min-height: 2.65rem;
  padding: .6rem .8rem;
  border: 1px solid #cfc5b4;
  border-radius: .65rem;
  background: transparent;
  color: #52615b;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.nearby-status {
  grid-column: 1 / -1;
  min-height: 1em;
  margin: 0;
  color: #52615b;
  font-size: .82rem;
  font-weight: 650;
}

.nearby-status[data-state="error"] {
  color: #8a3823;
}

.distance {
  margin: .45rem 0 0;
  color: #163f32;
  font-size: .88rem;
  font-weight: 800;
}

.nearby-empty {
  margin-top: 1.25rem;
}

.discovery-form { display: grid; gap: 1.35rem; }
.filter-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.filter-group legend { margin-bottom: .7rem; font-weight: 800; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.filter-chip { position: relative; cursor: pointer; }
.filter-chip input { position: absolute; opacity: 0; pointer-events: none; }
.filter-chip span { display: inline-flex; gap: .4rem; align-items: center; padding: .55rem .8rem; border: 1px solid #cfc5b4; border-radius: 999px; background: #f8f4ec; font-size: .9rem; font-weight: 700; }
.filter-chip small { color: #6c7772; font-size: .75rem; }
.filter-chip input:checked + span { border-color: #163f32; background: #163f32; color: #fffdf8; }
.filter-chip input:checked + span small { color: #e9e4da; }
.filter-chip input:focus-visible + span { outline: .2rem solid #a34d2a; outline-offset: .15rem; }
.territory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.territory-grid label { display: grid; gap: .4rem; font-size: .82rem; font-weight: 750; }
.territory-grid select { width: 100%; min-height: 2.8rem; padding: .6rem .7rem; border: 1px solid #cfc5b4; border-radius: .65rem; background: #fff; color: #16251f; font: inherit; }
.filter-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.filter-actions button { min-height: 2.8rem; padding: .65rem 1rem; border: 0; border-radius: .7rem; background: #a34d2a; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.filter-actions a { color: #52615b; font-weight: 700; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1.25rem; }
.event-card { overflow: hidden; border: 1px solid #d8d0c1; border-radius: 1rem; background: #fffdf8; box-shadow: 0 .35rem 1.2rem #253b3020; }
.card-link { display: flex; height: 100%; flex-direction: column; color: inherit; text-decoration: none; }
.card-link:focus-visible { outline: .2rem solid #a34d2a; outline-offset: -.2rem; }
.card-link img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #e7e0d3; }
.card-content { padding: 1.15rem; }
.date { margin: 0 0 .65rem; color: #a34d2a; font-size: .9rem; font-weight: 750; }
.event-card h2 { margin: 0; font-family: Georgia, serif; font-size: 1.55rem; line-height: 1.15; }
.location { margin: .75rem 0 0; color: #52615b; line-height: 1.45; }
.empty-state { padding: 2rem; border: 1px dashed #b8ae9c; border-radius: 1rem; background: #fffdf8; text-align: center; }
.site-footer { padding-block: 1.5rem 2.5rem; border-top: 1px solid #d8d0c1; color: #52615b; font-size: .9rem; }
@media (max-width: 720px) {
  .nearby-tools { grid-template-columns: 1fr; }
  .nearby-controls { align-items: stretch; }
  .nearby-controls label { width: 100%; }
  .nearby-controls select { width: 100%; }
  .territory-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .home-shell { padding-top: 1rem; }
  .discovery { padding: 1rem; }
  .event-grid { gap: 1rem; }
}
