:root {
  --ink: #173d45;
  --ink-deep: #102d33;
  --cream: #fbf7ed;
  --paper: #fffdf8;
  --sand: #efdcb4;
  --rust: #c85f3b;
  --gold: #d9a441;
  --sage: #758b64;
  --sky: #cfe6e5;
  --line: rgba(23, 61, 69, 0.14);
  --shadow: 0 18px 50px rgba(25, 58, 61, 0.1);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 30; padding: 12px 16px; background: white; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: white;
  background:
    radial-gradient(circle at 90% 15%, rgba(247, 203, 117, 0.32), transparent 23%),
    linear-gradient(135deg, #102f38 0%, #1d5860 62%, #2f7278 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(rgba(255,255,255,.45) .7px, transparent .7px);
  background-size: 13px 13px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}
.nav { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 24px 0; }
.brand { display: flex; align-items: center; gap: 11px; color: white; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; font-family: "Fraunces", serif; font-weight: 700; }
.brand span:last-child { display: grid; line-height: 1.1; }
.brand strong { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.brand small { margin-top: 4px; color: rgba(255,255,255,.7); }
.share-button, .secondary-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.4); color: white; background: rgba(255,255,255,.08);
  border-radius: 999px; padding: 11px 16px; cursor: pointer; transition: .2s ease;
}
.share-button:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.share-button svg { width: 18px; fill: currentColor; }
.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 40px; padding: 64px 0 90px; }
.eyebrow { display: block; margin-bottom: 14px; color: #f0c675; font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.dark { color: var(--rust); }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; margin: 0; letter-spacing: -.025em; }
h1 { max-width: 720px; font-size: clamp(46px, 7vw, 82px); line-height: .98; }
.hero-copy p { max-width: 620px; margin: 24px 0 30px; color: rgba(255,255,255,.82); font-size: 18px; line-height: 1.7; }
.primary-button {
  display: inline-flex; align-items: center; padding: 14px 20px; border-radius: 999px; color: var(--ink-deep); background: #f6cb7d;
  text-decoration: none; font-weight: 700; box-shadow: 0 10px 28px rgba(0,0,0,.18); transition: .2s ease;
}
.primary-button:hover { transform: translateY(-2px); background: #ffda94; }
.hero-art { position: relative; min-height: 390px; }
.hero-art svg { position: absolute; width: 100%; bottom: 0; filter: drop-shadow(0 16px 24px rgba(0,0,0,.14)); }
.sun { position: absolute; right: 13%; top: 7%; width: 150px; aspect-ratio: 1; border-radius: 50%; background: #f4c76c; box-shadow: 0 0 80px rgba(244,199,108,.35); }
.water { fill: #8fbfc0; }
.land.back { fill: #5c8069; }
.land.front { fill: #df8d4e; }
.grasses path { fill: none; stroke: #f3cf83; stroke-width: 4; stroke-linecap: round; }
.leaves path { fill: #f0b85d; }
.art-note { position: absolute; right: 4%; bottom: 8%; display: flex; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.28); border-radius: 16px; background: rgba(13,47,53,.72); backdrop-filter: blur(12px); }
.art-note strong { font: 700 28px/1 "Fraunces", serif; color: #f6cb7d; }
.art-note span { font-size: 11px; line-height: 1.25; color: rgba(255,255,255,.76); text-transform: uppercase; letter-spacing: .07em; }

.explorer { padding: 86px 0 100px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 26px; }
.section-heading h2, .local-note h2 { font-size: clamp(38px, 5vw, 60px); line-height: 1.03; }
.section-heading > p { margin: 0; color: #6d817f; font-weight: 600; }
.filter-panel {
  display: grid; grid-template-columns: 1.35fr 1fr 1fr auto; align-items: end; gap: 14px;
  position: sticky; top: 12px; z-index: 10; padding: 16px; border: 1px solid var(--line); border-radius: 18px;
  background: rgba(255,253,248,.9); backdrop-filter: blur(15px); box-shadow: 0 14px 38px rgba(23,61,69,.08);
}
.filter-panel fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.filter-panel legend, .filter-panel label > span { display: block; margin: 0 0 7px 2px; font-size: 11px; font-weight: 700; color: #627674; text-transform: uppercase; letter-spacing: .09em; }
.segmented { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: #edf1eb; }
.segmented button, .clear-button { min-height: 42px; border: 0; border-radius: 9px; color: var(--ink); background: transparent; cursor: pointer; font-weight: 700; }
.segmented button.active { color: white; background: var(--ink); box-shadow: 0 3px 10px rgba(23,61,69,.24); }
select { width: 100%; height: 50px; appearance: none; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23173d45' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center; padding: 0 38px 0 13px; font-weight: 600; }
.clear-button { height: 50px; padding: 0 14px; color: var(--rust); border: 1px solid rgba(200,95,59,.25); white-space: nowrap; }
.clear-button:hover { background: #fff3ec; }
.active-filter-summary { padding: 16px 2px 22px; color: #687b79; font-size: 14px; }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.event-card {
  --accent: var(--rust);
  display: flex; flex-direction: column; overflow: hidden; min-height: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 5px 20px rgba(30,58,60,.045); transition: transform .24s ease, box-shadow .24s ease;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event-card[data-month-primary="September"] { --accent: #c27a3b; }
.event-card[data-month-primary="October"] { --accent: #c85536; }
.event-card[data-month-primary="November"] { --accent: #5f7968; }
.card-top { display: grid; grid-template-columns: 58px 1fr; gap: 15px; align-items: start; padding: 22px 22px 14px; }
.date-badge { display: grid; place-items: center; min-height: 64px; padding: 8px 4px; color: white; border-radius: 15px; background: var(--accent); text-align: center; }
.date-badge .month { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.date-badge .day { font: 700 24px/1 "Fraunces", serif; }
.event-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.tag { padding: 5px 8px; border-radius: 999px; color: #59706d; background: #edf2ee; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.status-tag { color: #8c531d; background: #fff0cf; }
.event-card h3 { font-size: 23px; line-height: 1.13; }
.card-body { flex: 1; padding: 0 22px 22px; }
.when-where { display: grid; gap: 7px; margin: 9px 0 14px; color: #5f7472; font-size: 13px; }
.when-where span { display: flex; gap: 8px; align-items: flex-start; }
.when-where svg { flex: 0 0 auto; width: 15px; margin-top: 2px; fill: var(--accent); }
.event-card .summary { margin: 0; color: #3e5655; line-height: 1.6; font-size: 14px; }
.details { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: #415857; font-size: 13px; line-height: 1.6; }
.details.open { display: block; animation: reveal .2s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(-5px); } }
.details strong { color: var(--ink); }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.card-actions button, .card-actions a { display: flex; justify-content: center; align-items: center; min-height: 48px; border: 0; background: transparent; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; cursor: pointer; }
.card-actions > * + * { border-left: 1px solid var(--line); }
.card-actions a { color: var(--rust); }
.card-actions button:hover, .card-actions a:hover { background: rgba(23,61,69,.04); }
.empty-state { padding: 65px 20px; border: 1px dashed rgba(23,61,69,.25); border-radius: 20px; text-align: center; }
.empty-state > span { font-size: 38px; }
.empty-state h3 { margin-top: 10px; font-size: 26px; }
.empty-state p { color: #647a77; }
.empty-state button { padding: 10px 16px; border: 0; border-radius: 999px; color: white; background: var(--ink); cursor: pointer; }

.local-note { color: white; background: var(--ink-deep); padding: 75px 0; }
.local-note-grid { display: grid; grid-template-columns: .9fr .9fr .72fr; align-items: start; gap: 50px; }
.local-note p { margin: 0; color: rgba(255,255,255,.73); line-height: 1.7; }
.local-note .verification-note { margin-top: 16px; color: rgba(255,255,255,.5); font-size: 12px; }
.resource-card { padding: 24px; border: 1px solid rgba(255,255,255,.15); border-radius: 20px; background: rgba(255,255,255,.06); }
.resource-card > span { color: #f0c675; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.resource-card h3 { margin: 8px 0 10px; font-size: 25px; }
.resource-card p { margin-bottom: 18px; font-size: 13px; }
.secondary-button { width: 100%; }
.secondary-button:hover { background: rgba(255,255,255,.13); }
footer { padding: 26px 0; background: #0b242a; color: rgba(255,255,255,.56); }
.footer-inner { display: flex; justify-content: space-between; gap: 25px; font-size: 11px; }
.footer-inner p { margin: 0; }
.footer-inner strong { color: rgba(255,255,255,.8); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translate(-50%, 20px); padding: 11px 16px; border-radius: 999px; color: white; background: #102d33; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s ease; font-size: 13px; font-weight: 600; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .hero { min-height: auto; }
  .hero-content { grid-template-columns: 1fr; padding-top: 45px; }
  .hero-art { min-height: 330px; max-width: 600px; width: 100%; margin-inline: auto; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .month-filter { grid-column: 1 / -1; }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .local-note-grid { grid-template-columns: 1fr 1fr; }
  .resource-card { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 24px, 1160px); }
  .nav { padding: 17px 0; }
  .brand small { display: none; }
  .share-button span { display: none; }
  .share-button { width: 42px; height: 42px; padding: 0; }
  .hero-content { padding: 52px 0 62px; }
  h1 { font-size: clamp(44px, 14vw, 66px); }
  .hero-copy p { font-size: 16px; }
  .hero-art { min-height: 245px; margin-top: 10px; }
  .sun { width: 105px; }
  .art-note { right: 0; bottom: 3%; }
  .explorer { padding: 64px 0 75px; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .filter-panel { position: relative; top: auto; grid-template-columns: 1fr; gap: 12px; }
  .month-filter { grid-column: auto; }
  .clear-button { width: 100%; }
  .event-grid { grid-template-columns: 1fr; }
  .event-card { border-radius: 19px; }
  .local-note-grid { grid-template-columns: 1fr; gap: 28px; }
  .resource-card { grid-column: auto; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
