:root {
  --ink: #18251f;
  --cream: #f4f0e7;
  --paper: #fffdf7;
  --green: #1f4f3c;
  --deep: #17392d;
  --mint: #cce5d5;
  --gold: #f0ae3a;
  --coral: #e66f51;
  --line: #d9d4c9;
  --muted: #666d68;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", sans-serif;
}
a {
  color: inherit;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
.topnav {
  width: min(1120px, calc(100% - 44px));
  height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.topnav a {
  text-decoration: none;
}
.topnav .brand {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.topnav > div {
  display: flex;
  gap: 24px;
  font-size: 0.82rem;
  color: #d8e5dd;
}
.topnav > div a:hover,
.topnav > div a.active {
  color: var(--gold);
}
.hero {
  min-height: 500px;
  color: #fffdf6;
  background:
    radial-gradient(
      circle at 81% 24%,
      rgba(240, 174, 58, 0.16),
      transparent 25%
    ),
    linear-gradient(135deg, #17392d, #1f503c 60%, #255c43);
  position: relative;
  overflow: hidden;
}
.hero:after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: -42px;
  height: 72px;
  background: var(--cream);
  transform: rotate(-1.3deg);
}
.hero-inner {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: 43px 0 82px;
  position: relative;
  z-index: 2;
}
.eyebrow,
.kicker {
  margin: 0 0 14px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.eyebrow {
  color: #d9eadf;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow span {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--gold);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  max-width: 820px;
  margin-bottom: 2px;
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 6vw, 5.1rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.95;
}
.place {
  margin: 18px 0 21px;
  color: var(--gold);
  font-family: "Fraunces", serif;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-style: italic;
}
.place i {
  padding: 0 8px;
  font-weight: 400;
}
.subtitle {
  max-width: 730px;
  margin: 12px 0 8px;
  color: #eef5f0;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 650;
  line-height: 1.5;
}
.intro {
  max-width: 720px;
  margin-bottom: 19px;
  color: #cbdcd2;
  font-size: 0.86rem;
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 13px 20px;
  flex-wrap: wrap;
}
.primary-button,
.secondary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 750;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}
.primary-button {
  color: #18352a;
  background: var(--gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}
.primary-button:hover {
  background: #f9bd54;
  transform: translateY(-2px);
}
.secondary-button {
  color: #eff7f2;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}
.secondary-button:hover {
  background: rgba(255, 255, 255, 0.13);
}
.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cadbd1;
  font-size: 0.78rem;
}
.sync-status b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9bd59e;
  box-shadow: 0 0 0 4px rgba(155, 213, 158, 0.12);
}
.sync-status.error b {
  background: var(--gold);
}
.music-mark {
  position: absolute;
  right: max(4vw, 20px);
  top: 95px;
  color: rgba(255, 255, 255, 0.06);
  font-family: serif;
  font-size: clamp(7rem, 16vw, 13rem);
  line-height: 0.75;
  transform: rotate(-7deg);
  z-index: 1;
}
.music-mark span {
  display: block;
  margin: -30px 0 0 80px;
  color: rgba(240, 174, 58, 0.1);
}
.calendar-shell {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: 28px 0 64px;
}
.annotation-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
  padding: 11px 15px;
  color: #33493e;
  border: 1px solid #c9d8cf;
  border-radius: 7px;
  background: #e7f0e9;
}
.annotation-guide strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Fraunces", serif;
  font-size: 0.96rem;
}
.annotation-guide p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.4;
}
.annotation-guide > a {
  flex: 0 0 auto;
  color: #8f471f;
  font-size: 0.75rem;
  font-weight: 800;
  text-underline-offset: 3px;
}
.filter-panel {
  display: grid;
  gap: 8px;
}
.filter-group {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 10px;
}
.filter-label {
  color: #7a7f7b;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}
.filter-row {
  display: flex;
  gap: 4px;
  padding: 4px;
  overflow-x: auto;
  background: #e5e0d5;
  border-radius: 8px;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar {
  display: none;
}
.filter-row button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  color: #59615c;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 750;
}
.filter-row button:hover {
  color: var(--ink);
}
.filter-row button.active {
  color: #fff;
  background: var(--green);
  box-shadow: 0 2px 8px rgba(24, 55, 43, 0.2);
}
.optional-filter-row {
  width: max-content;
  max-width: 100%;
  background: #eee9de;
}
.optional-filter-row button:not(.active) {
  color: #6d6e69;
  box-shadow: inset 0 0 0 1px #cbc5b9;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 0 15px;
  border-bottom: 1px solid var(--line);
}
.kicker {
  color: #aa5a23;
  margin-bottom: 8px;
}
.section-heading h2,
.about h2,
.contribute h2,
.map-layout h2 {
  margin-bottom: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.section-heading > p {
  margin: 0 0 3px;
  color: #787c78;
  font-size: 0.84rem;
}
.event-list {
  border-bottom: 1px solid var(--line);
}
.event-card {
  display: grid;
  grid-template-columns: 105px 1fr 170px;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.event-card:before {
  content: "";
  position: absolute;
  left: -22px;
  top: 20px;
  bottom: 20px;
  width: 4px;
  border-radius: 5px;
  background: var(--coral);
  opacity: 0;
  transform: scaleY(0.55);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.event-card.jam:before {
  background: #3d8f6a;
}
.event-card:hover:before {
  opacity: 1;
  transform: scaleY(1);
}
.event-card:last-child {
  border-bottom: 0;
}
.date-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.date-block strong {
  margin-bottom: 3px;
  color: #b25920;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.date-block span {
  font-family: "Fraunces", serif;
  font-size: 1.18rem;
  font-weight: 680;
}
.date-block time {
  margin-top: 5px;
  color: #656a66;
  font-size: 0.78rem;
}
.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 7px;
}
.event-tags span {
  padding: 3px 6px 2px;
  border-radius: 3px;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.event-tags .jam {
  color: #176142;
  background: #cce5d5;
}
.event-tags .concert {
  color: #93442f;
  background: #f7d7cd;
}
.event-tags .open-mic {
  color: #6b4d0b;
  background: #f4dfad;
}
.event-tags .adjacent {
  color: #6f3b2e;
  background: #ead4cc;
}
.event-tags .side {
  color: #52625a;
  background: #dedfd7;
}
.event-tags .free {
  color: #6b4d0b;
  background: #f7dda6;
}
.event-main h3 {
  margin-bottom: 5px;
  font-family: "Fraunces", serif;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.venue {
  margin-bottom: 4px;
  font-weight: 750;
  font-size: 0.82rem;
}
.address {
  margin-bottom: 7px;
  color: #717570;
  font-size: 0.75rem;
}
.description {
  max-width: 640px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.event-links a {
  color: #9c4e22;
  font-size: 0.78rem;
  font-weight: 800;
  text-underline-offset: 3px;
}
.event-links .hypothesis-flag {
  color: #245943;
}
.event-card.annotation-target {
  border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(240, 174, 58, 0.72);
}
.event-details {
  margin-top: 9px;
}
.event-details summary {
  width: max-content;
  color: #52635a;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 750;
}
.details-panel {
  max-width: 650px;
  margin-top: 10px;
  padding: 13px 15px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.79rem;
  line-height: 1.5;
}
.event-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.event-meta .price {
  margin-bottom: 9px;
  font-size: 0.8rem;
}
.going-button,
.correction-toggle {
  width: 100%;
  min-height: 36px;
  margin-bottom: 6px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 750;
}
.going-button {
  color: #245943;
  border: 1px solid #8bbda1;
  background: #e8f3eb;
}
.going-button:hover {
  background: #d8ebde;
}
.going-button.is-going {
  color: #fff;
  background: #2c7051;
  border-color: #2c7051;
}
.going-count {
  display: block;
  margin-bottom: 10px;
  color: #737a75;
  font-size: 0.7rem;
}
.correction-toggle {
  color: #6c5b4f;
  border: 1px solid #c9b9aa;
  background: transparent;
  font-size: 0.75rem;
}
.correction-form {
  grid-column: 2/4;
  margin-top: -12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ece8de;
}
.correction-form[hidden] {
  display: none;
}
.correction-form h4 {
  margin: 0 0 4px;
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
}
.correction-form > p {
  color: #6e726e;
  font-size: 0.77rem;
}
.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.netlify-form label {
  display: grid;
  gap: 6px;
  color: #4d5751;
  font-size: 0.75rem;
  font-weight: 700;
}
.netlify-form input,
.netlify-form textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  border: 1px solid #c9c5bc;
  border-radius: 4px;
  background: #fffdf9;
}
.netlify-form textarea {
  resize: vertical;
}
.correction-form label:last-of-type {
  margin-top: 12px;
}
.correction-form button {
  margin-top: 12px;
}
.form-status {
  color: #405b4d;
  font-size: 0.75rem;
  font-weight: 700;
}
.loading-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 30px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.loading-card span,
.loading-card b {
  display: block;
  border-radius: 4px;
  background: linear-gradient(90deg, #ddd8ce, #eeeae1, #ddd8ce);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
.loading-card span {
  width: 70px;
  height: 60px;
}
.loading-card b {
  width: 70%;
  height: 13px;
  margin-bottom: 12px;
}
.loading-card b:nth-child(2) {
  width: 45%;
}
.loading-card b:nth-child(3) {
  width: 88%;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.empty-state {
  padding: 78px 20px;
  text-align: center;
}
.empty-state b {
  display: block;
  color: var(--gold);
  font-family: "Fraunces", serif;
  font-size: 3rem;
}
.empty-state h3 {
  margin: 8px 0 6px;
  font-family: "Fraunces", serif;
  font-size: 1.8rem;
}
.empty-state p {
  color: #686d69;
}
.contribute {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 5vw;
  padding: 55px max(22px, calc((100vw - 1120px) / 2));
  background: #e4ddcf;
}
.contribute-copy > p:last-child {
  max-width: 440px;
  margin-top: 14px;
  color: #626963;
  line-height: 1.5;
}
.suggest-form {
  padding: 22px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 40px rgba(43, 50, 44, 0.08);
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.field-grid .wide {
  grid-column: 1/-1;
}
.form-footer {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 19px;
}
.bot-field {
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
}
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 9vw;
  padding: 84px max(22px, calc((100vw - 1120px) / 2));
  color: #fffdf7;
  background: #bd5c43;
  position: relative;
  overflow: hidden;
}
.about:after {
  content: "♬";
  position: absolute;
  right: 3%;
  bottom: -65px;
  color: rgba(255, 255, 255, 0.1);
  font-size: 13rem;
  transform: rotate(8deg);
}
.about .kicker {
  color: #ffdca5;
}
.about > p {
  max-width: 610px;
  margin: 3px 0 0;
  font-size: 1.04rem;
  line-height: 1.72;
  position: relative;
  z-index: 1;
}
.about a,
footer a {
  font-weight: 800;
  text-underline-offset: 3px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px max(22px, calc((100vw - 1120px) / 2));
  color: #b7c8bd;
  background: #172d24;
  font-size: 0.72rem;
}
footer p {
  margin: 0;
}
.map-header {
  color: #fffdf6;
  background: linear-gradient(135deg, #17392d, #255c43);
}
.map-intro {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: 35px 0 40px;
}
.map-intro h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
}
.map-intro > p:last-child {
  max-width: 650px;
  margin: 10px 0 0;
  color: #d2e1d8;
  line-height: 1.6;
}
.map-layout {
  width: min(1220px, 100%);
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  background: #fff;
}
.map-stage {
  min-width: 0;
  position: relative;
  background: #dfe8e1;
}
.map-layout #venue-map {
  min-height: 560px;
}
.map-status {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 500;
  margin: 0;
  padding: 7px 10px;
  color: #33493e;
  border: 1px solid rgba(31, 79, 60, 0.18);
  border-radius: 4px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 3px 12px rgba(23, 57, 45, 0.14);
  font-size: 0.7rem;
  font-weight: 750;
}
.map-layout aside {
  padding: 28px 24px;
  max-height: 560px;
  overflow: auto;
  background: var(--paper);
  border-left: 1px solid var(--line);
}
.map-layout h2 {
  font-size: 1.7rem;
  margin-bottom: 18px;
}
.map-filter-toggles {
  display: grid;
  gap: 6px;
  margin: -5px 0 16px;
}
.map-filter-toggles button {
  min-height: 34px;
  padding: 7px 10px;
  color: #59615c;
  border: 1px solid #cbc5b9;
  border-radius: 4px;
  background: #eee9de;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 750;
  text-align: left;
}
.map-filter-toggles button.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}
.venue-item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.venue-item h3 {
  margin-bottom: 3px;
  font-family: "Fraunces", serif;
  font-size: 1.02rem;
}
.venue-item p {
  margin-bottom: 7px;
  color: #707670;
  font-size: 0.74rem;
  line-height: 1.4;
}
.venue-item a {
  color: #9c4e22;
  font-size: 0.75rem;
  font-weight: 800;
}
.venue-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.venue-actions button {
  padding: 0;
  color: #245943;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
}
.venue-loading {
  display: grid;
  gap: 18px;
}
.venue-loading i {
  display: block;
  height: 76px;
  border-radius: 5px;
  background: linear-gradient(90deg, #e6e1d7, #f5f1e9, #e6e1d7);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
.leaflet-popup-content h3 {
  margin: 0 0 5px;
  font-family: "Fraunces", serif;
}
.leaflet-popup-content p {
  margin: 0 0 7px;
}
.leaflet-popup-content a {
  color: #8e451f;
  font-weight: 700;
}
.map-fallback {
  height: 100%;
  padding: 40px;
  background: #e1ddd4;
}
.map-fallback p {
  max-width: 500px;
  line-height: 1.6;
}
@media (max-width: 820px) {
  .topnav > div {
    gap: 15px;
  }
  .hero {
    min-height: 555px;
  }
  .hero-inner {
    padding-top: 36px;
  }
  .music-mark {
    top: 275px;
    right: -10px;
  }
  .filter-group {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .annotation-guide {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .filter-row {
    margin: 0 -22px;
    padding-left: 22px;
    border-radius: 0;
  }
  .event-card {
    grid-template-columns: 88px 1fr;
    gap: 18px;
  }
  .event-meta {
    grid-column: 2;
    align-items: flex-start;
    text-align: left;
  }
  .going-button,
  .correction-toggle {
    width: auto;
    padding: 0 14px;
  }
  .correction-form {
    grid-column: 1/-1;
    margin-top: 0;
  }
  .contribute {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .map-layout {
    grid-template-columns: 1fr;
  }
  .map-layout aside {
    max-height: none;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 580px) {
  .topnav {
    height: auto;
    padding: 20px 0;
    align-items: flex-start;
  }
  .topnav > div {
    display: grid;
    gap: 8px;
    text-align: right;
  }
  .hero-inner {
    padding-top: 32px;
  }
  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 3.8rem);
  }
  .calendar-shell {
    width: min(100% - 30px, 1120px);
    padding-top: 26px;
  }
  .section-heading {
    padding-top: 30px;
  }
  .section-heading > p {
    display: none;
  }
  .event-card:before {
    left: -15px;
  }
  .description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mini-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }
  .field-grid .wide {
    grid-column: auto;
  }
  .suggest-form {
    padding: 20px 17px;
  }
  .form-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .contribute,
  .about {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 50px;
  }
  .map-layout #venue-map {
    min-height: min(480px, 62vh);
  }
  .map-status {
    left: 10px;
    right: 10px;
    bottom: 10px;
    text-align: center;
  }
  .map-layout aside {
    padding: 32px 22px;
  }
  footer {
    flex-direction: column;
    line-height: 1.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
