*{box-sizing:border-box}
:root{--bg:#f7f7f7;--ink:#1b1b1b;--muted:#6b7280;--brand:#1f2937;--accent:#0ea5e9;--card:#ffffff}
@media (prefers-color-scheme:dark){
  :root{--bg:#0b0c0f;--ink:#f3f4f6;--muted:#a1a1aa;--brand:#e5e7eb;--accent:#38bdf8;--card:#0f1115}
}
html,body{margin:0;padding:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:1.6}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1000px;margin:0 auto;padding:0 1rem}

/* Header / Nav */
.site-header{position:sticky;top:0;background:rgba(255,255,255,.7);backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid rgba(0,0,0,.05);z-index:10}
@media (prefers-color-scheme:dark){.site-header{background:rgba(0,0,0,.4);border-color:rgba(255,255,255,.08)}}
.header-inner{display:flex;align-items:center;justify-content:center;padding:.8rem 0}
.nav{display:flex;gap:1.2rem;align-items:center}
.nav a,.nav .linklike{font-weight:600}
.linklike{background:none;border:none;color:var(--accent);cursor:pointer;font:inherit;padding:0}

/* Hero */
.hero{padding:4.5rem 0;background:linear-gradient(180deg,rgba(0,0,0,.02),transparent 40%),radial-gradient(40rem 20rem at 50% -4rem,rgba(14,165,233,.15),transparent)}
.hero-inner{text-align:center}
.hero-logo{display:block;margin:0 auto 1.25rem auto;height:210px;width:auto}
.hero-logo img{height:inherit;width:auto;display:block;margin:0 auto}
@media (min-width:760px){.hero-logo{height:285px}}
@media (min-width:1100px){.hero-logo{height:330px}}
.hero h1{margin:0 0 .5rem;font-size:clamp(1.6rem, 3.6vw, 2.4rem)}
.location{color:var(--muted);margin:.2rem 0}
.blurb{margin:.2rem 0 1.2rem}
.cta-row{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap}
.btn{display:inline-block;padding:.7rem 1rem;border-radius:.6rem;background:var(--accent);color:white;font-weight:700;text-decoration:none}
.btn.secondary{background:transparent;color:var(--accent);border:2px solid var(--accent)}

/* Sections */
.section{padding:3rem 0}
.section.alt{background:rgba(0,0,0,.03)}
.cols{display:grid;gap:1.5rem;grid-template-columns:1fr}
@media (min-width:760px){.cols{grid-template-columns:1fr 1fr}}
.merch-card .fallback{font-size:.9rem;color:var(--muted)}

/* Sponsors list */
.sponsor-list{list-style:none;margin:1rem 0 0;padding:0;display:grid;grid-template-columns:1fr;gap:1rem}
@media(min-width:720px){.sponsor-list{grid-template-columns:repeat(2,1fr)}}
.sponsor-card{padding:1rem;border:1px solid rgba(0,0,0,.08);border-radius:.8rem;background:var(--card)}
.sponsor-name{font-weight:700}
.sponsor-tag{color:var(--muted);font-size:.9rem;margin-top:.2rem}
.sponsor-cta{margin-top:1rem;color:var(--muted)}

/* Generic cards and grids (used on /sponsor) */
.grid{display:grid;gap:1rem;grid-template-columns:1fr}
@media(min-width:760px){.grid{grid-template-columns:repeat(3,1fr)}}
.card{background:var(--card);border:1px solid rgba(0,0,0,.08);border-radius:.9rem;padding:1rem 1rem 1.1rem;box-shadow:0 8px 24px rgba(0,0,0,.05)}
.card h3{margin:.2rem 0 .2rem}
.price{font-weight:800;margin:.1rem 0 .6rem;color:var(--accent)}
.card ul{padding-left:1.1rem;margin:0}
.card li{margin:.25rem 0}
.card.gold{border-color:#fbbf24}
.card.silver{border-color:#93c5fd}
.card.bronze{border-color:#6ee7b7}
.note{color:var(--muted);margin-top:1rem}

/* Footer */
.site-footer{border-top:1px solid rgba(0,0,0,.06);padding:1.2rem 0;color:var(--muted);text-align:center}

// Footer year
const yearEl = document.getElementById('year');
if (yearEl) yearEl.textContent = new Date().getFullYear();

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100;
  transition: opacity 0.2s ease;
}

.modal[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

.modal-panel {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 1rem;
  max-width: 800px;
  width: 90%;
  height: 80%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  position: relative;
}

.modal-panel iframe {
  flex: 1;
  border: none;
  width: 100%;
  height: 100%;
}

.modal-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
}
