:root {
  --ink: #241b1b;
  --muted: #6d5f5f;
  --wine: #7a0c17;
  --wine-deep: #520810;
  --wine-soft: #f5e7e8;
  --cream: #fffbf7;
  --paper: #ffffff;
  --gold: #b98225;
  --line: #eadfda;
  --success: #16643a;
  --shadow: 0 18px 50px rgba(70, 28, 28, 0.09);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

button, input, select { font: inherit; }

.skip-link {
  left: 1rem;
  position: fixed;
  top: -5rem;
  z-index: 100;
  border-radius: 999px;
  background: var(--paper);
  color: var(--wine);
  padding: .7rem 1rem;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  background: rgba(82, 8, 16, .96);
  color: #fff;
  backdrop-filter: blur(12px);
}

.nav-shell,
.shell {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.nav-shell {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  text-decoration: none;
}

.brand strong {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: .12em;
}

.brand span {
  color: #efcfd2;
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.site-nav { display: flex; flex-wrap: wrap; gap: .3rem; }

.site-nav a {
  border-radius: 999px;
  padding: .45rem .7rem;
  color: #fceff0;
  font-size: .9rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible { background: rgba(255, 255, 255, .12); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 25%, rgba(219, 168, 89, .28), transparent 27%),
    radial-gradient(circle at 88% 72%, rgba(255, 255, 255, .13), transparent 24%),
    linear-gradient(135deg, var(--wine-deep), var(--wine));
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, .04), 0 0 0 72px rgba(255, 255, 255, .025);
}

.hero .shell {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.eyebrow {
  margin: 0 0 .9rem;
  color: #f1cb8d;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: "Cinzel", Georgia, serif;
  line-height: 1.17;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -.025em;
}

.hero-copy {
  max-width: 720px;
  margin: 1.25rem 0 0;
  color: #f8e9e7;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-note {
  display: inline-flex;
  margin-top: 1.6rem;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  padding: .55rem .85rem;
  color: #fff7f5;
  font-size: .86rem;
}

main { min-height: 65vh; }

.content-section { padding-block: clamp(2.5rem, 6vw, 5rem); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-heading h2 { margin: 0; color: var(--wine); font-size: clamp(1.45rem, 3vw, 2.2rem); }

.section-heading p { margin: 0; color: var(--muted); }

.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.directory-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  padding: 1.45rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}

.directory-card:hover,
.directory-card:focus-visible { transform: translateY(-3px); border-color: #c99da1; }

.directory-card h2 { margin: .4rem 0 .65rem; color: var(--wine); font-size: 1.45rem; }
.directory-card p { margin: 0; color: var(--muted); }
.directory-card .card-link { margin-top: 1.2rem; color: var(--wine); font-weight: 700; }

.filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.7fr) repeat(2, minmax(150px, .7fr)) auto;
  gap: .75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(70, 28, 28, .06);
}

.field { display: grid; gap: .35rem; }
.field label { color: var(--muted); font-size: .79rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d6c7c2;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: .65rem .75rem;
}

.field input:focus,
.field select:focus { outline: 3px solid rgba(122, 12, 23, .14); border-color: var(--wine); }

.button {
  align-self: end;
  min-height: 46px;
  border: 1px solid var(--wine);
  border-radius: 12px;
  background: var(--wine);
  color: #fff;
  padding: .65rem 1rem;
  cursor: pointer;
  font-weight: 700;
}

.button:hover,
.button:focus-visible { background: var(--wine-deep); }

.button.secondary { background: transparent; color: var(--wine); }

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  color: var(--muted);
}

.results-bar strong { color: var(--ink); }

.event-list { display: grid; gap: 1rem; }

.event-card {
  position: relative;
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 10px 34px rgba(70, 28, 28, .055);
}

.date-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  background: var(--wine-soft);
  padding: 1.25rem 1rem;
  color: var(--wine);
  text-align: center;
}

.date-panel .month { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.date-panel .day { font-family: "Cinzel", Georgia, serif; font-size: 2.7rem; line-height: 1.1; }
.date-panel .year { color: var(--muted); font-size: .85rem; }

.event-body { padding: 1.25rem 1.35rem 1.3rem 0; }

.event-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.event-heading h2 { margin: 0; color: var(--wine); font-size: clamp(1.15rem, 2vw, 1.55rem); }

.badge {
  flex: none;
  border-radius: 999px;
  background: #f2ece8;
  padding: .28rem .6rem;
  color: #5c4b46;
  font-size: .75rem;
  font-weight: 700;
}

.badge.free { background: #e2f4e9; color: var(--success); }
.badge.paid { background: #fff0d7; color: #7d4e00; }

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1rem;
  margin: .7rem 0 0;
  color: var(--muted);
  font-size: .93rem;
}

.event-summary { margin: .8rem 0 0; }

.source-link {
  display: inline-flex;
  margin-top: .9rem;
  align-items: center;
  gap: .35rem;
  color: var(--wine);
  font-weight: 700;
  text-underline-offset: 3px;
}

.state-card {
  border: 1px dashed #cbb8b2;
  border-radius: 18px;
  background: rgba(255,255,255,.7);
  padding: 2.25rem 1.25rem;
  color: var(--muted);
  text-align: center;
}

.state-card h2 { margin-top: 0; color: var(--wine); }

.load-more { display: flex; justify-content: center; margin-top: 1.4rem; }

.trust-note {
  margin-top: 2rem;
  border-left: 4px solid var(--gold);
  background: #fff8e9;
  padding: 1rem 1.1rem;
  color: #5b492d;
}

.site-footer {
  margin-top: 3rem;
  background: #271f1f;
  color: #eee5e1;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.7rem;
}

.footer-shell p { margin: 0; }
.footer-shell a { color: #f1cb8d; }

@media (max-width: 860px) {
  .nav-shell { align-items: flex-start; flex-direction: column; padding-block: .8rem; }
  .site-nav { margin-left: -.6rem; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .field:first-child { grid-column: 1 / -1; }
  .button { align-self: stretch; }
}

@media (max-width: 640px) {
  .directory-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .filters .field:first-child { grid-column: auto; }
  .event-card { grid-template-columns: 1fr; }
  .date-panel { grid-template-columns: auto auto auto; gap: .45rem; }
  .date-panel .day { font-size: 1.35rem; }
  .event-body { padding: 0 1rem 1.2rem; }
  .event-heading { flex-direction: column; }
  .footer-shell, .section-heading { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
