:root {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  color: #1d1b16;
  background-color: #faf7f0;
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

body {
  margin: 0;
  background: #faf7f0;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 3vw, 2.25rem) 3.25rem;
}

.hero {
  padding-bottom: 1.5rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.25rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  margin: 0 0 0.5rem;
  color: #9c8a6d;
}

.tagline {
  margin-top: 0.25rem;
  font-size: 1.2rem;
  color: #51422d;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0;
  list-style: none;
  margin: 1rem 0 0;
  color: #6a5940;
}

.hero-highlights li {
  padding-left: 1.25rem;
  position: relative;
}

.hero-highlights li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #f4682e;
}

.panel.wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.card {
  background: #fff;
  border-radius: 18px;
  padding: 1.75rem;
  border: 1px solid rgba(30, 30, 20, 0.07);
  box-shadow: 0 15px 35px rgba(88, 70, 38, 0.07);
}

.card h2 {
  margin-top: 0;
}

label span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #433622;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(30, 30, 20, 0.22);
  background: #fffefc;
}

textarea {
  resize: vertical;
}

button {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font-weight: 600;
  cursor: pointer;
  background: radial-gradient(circle at top, #ff9a5a, #f4682e);
  color: #fffef8;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 20px rgba(244, 104, 46, 0.25);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(244, 104, 46, 0.3);
}

.stack {
  display: flex;
  flex-direction: column;
}

.gap > * + * {
  margin-top: 0.85rem;
}

.inline-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.85rem;
}

.inline-pair label span {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.listed {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
}

.listed input {
  width: auto;
  margin-top: 0.15rem;
}

.form-note {
  min-height: 1.2rem;
  font-size: 0.9rem;
  color: #3c7c44;
}

.events {
  margin-top: 1.5rem;
}

.events-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.events-title {
  flex: 1;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.title-row h2 {
  margin: 0;
  font-size: 1.35rem;
}

.count {
  font-weight: 600;
  color: #6b583c;
}

.location-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.pill-value {
  font-weight: 600;
  color: #4a3925;
  margin-right: 0.25rem;
}

.pill-source {
  font-size: 0.85rem;
  color: #907e63;
}

.ghost-button {
  background: transparent;
  color: #f4682e;
  border: none;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(244, 104, 46, 0.2);
  font-weight: 600;
}

.ghost-button:hover {
  transform: none;
  box-shadow: inset 0 0 0 2px rgba(244, 104, 46, 0.35);
}

.filter-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.event-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.event-card {
  text-decoration: none;
  color: inherit;
  background: #fffefa;
  border-radius: 20px;
  padding: 1.1rem 1.4rem;
  border: 1px solid rgba(30, 30, 20, 0.08);
  box-shadow: 0 10px 20px rgba(74, 55, 24, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(74, 55, 24, 0.12);
}

.event-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.event-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.event-meta {
  color: #6a5940;
  font-size: 0.95rem;
}

.badge {
  background: #f1ece1;
  color: #6a5940;
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.empty {
  color: #8b7960;
  font-style: italic;
}

footer {
  margin-top: 3rem;
  text-align: center;
  color: #7b6d53;
}

dialog {
  border: none;
  border-radius: 18px;
  padding: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(28, 16, 4, 0.55);
}

.dialog-card {
  min-width: min(90vw, 420px);
  background: #fffdf7;
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.dialog-card header h3 {
  margin: 0;
}

.dialog-card header p {
  margin: 0.2rem 0 0;
  color: #6d5f46;
}

.dialog-card button[type='submit'] {
  align-self: flex-start;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.event-page header {
  padding-bottom: 1.25rem;
}

.event-detail .card {
  margin-top: 0.5rem;
}

.rsvp-layout {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.25rem;
}

.rsvp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rsvp-list li {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: #fff4dd;
  border: 1px solid rgba(247, 180, 111, 0.5);
}

.rsvp-list li strong {
  display: block;
  font-weight: 600;
}

.rsvp-list li span {
  font-size: 0.9rem;
  color: #6b4f30;
}

.rsvp-list li em {
  display: block;
  font-style: normal;
  color: #8d7a5d;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.2rem;
  border-radius: 18px;
  background: #f7f3ea;
}

.rsvp-form h3 {
  margin: 0;
}

.rsvp-layout textarea {
  resize: vertical;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-bottom: 1rem;
    text-align: center;
  }

  .hero .ghost-button {
    align-self: center;
  }

  .hero-highlights {
    flex-direction: column;
    gap: 0.45rem;
    align-items: center;
  }

  .panel.wrap {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.35rem;
  }

  .events-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .location-pill {
    width: 100%;
    justify-content: space-between;
  }

  .event-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .badge {
    align-self: flex-start;
  }

  .rsvp-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .page {
    padding: 2rem 1rem 2.5rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .tagline {
    font-size: 1rem;
  }

  button {
    width: 100%;
    text-align: center;
  }

  .ghost-button {
    width: auto;
  }

  .location-pill {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .hero-highlights li {
    width: 100%;
    text-align: left;
  }

  .inline-pair {
    grid-template-columns: 1fr;
  }

  .event-card {
    padding: 1rem;
  }
}
