/* ============================================================
   Snallyfest 2026
   Color palette pulled from the flyer:
     dark charcoal bg · powder blue accents · salmon/pink accents
   ============================================================ */

:root {
  --bg:         #111213;
  --bg-alt:     #181a1c;
  --blue:       #9dd8ec;   /* powder blue from flyer */
  --pink:       #e89880;   /* salmon/pink from flyer */
  --text:       #ede8e0;   /* off-white body text */
  --text-muted: #7a7672;
  --border:     #2a2c2e;
}

/* Self-hosted (avoids a render-blocking third-party stylesheet request;
   swap keeps text visible in the fallback font while this loads) */
@font-face {
  font-family: 'zai Olivetti Lettera 22 Typewriter';
  src: url('assets/fonts/ZaiOlivettiLettera22Typewriter.woff2') format('woff2'),
       url('assets/fonts/ZaiOlivettiLettera22Typewriter.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'zai Olivetti Lettera 22 Typewriter', 'Courier New', monospace;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

/* ── Accessibility ────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Typography ───────────────────────────────────────────────
   Primary:   'zai Olivetti Lettera 22 Typewriter' — everything
   Secondary: 'Pacifico' — hero dates / location (flyer script)
   Sub-text:  OS-native serif (Georgia / equivalents)
   ─────────────────────────────────────────────────────────── */

h1, h2, h3,
.section-title, .venues-heading,
.btn, .venue {
  font-family: 'zai Olivetti Lettera 22 Typewriter', 'Courier New', monospace;
  letter-spacing: 0.04em;
}

/* Pacifico for the script / date elements */
.hero-dates,
.hero-location {
  font-family: 'Pacifico', cursive;
  letter-spacing: 0;
}

/* OS-native serif for sub-text ("Two days · Five venues · 30+ bands" etc.) */
.section-sub {
  font-family: Georgia, Cambria, 'Palatino Linotype', Palatino, serif;
}


/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  border: 2px solid currentColor;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.1rem;
  cursor: pointer;
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease;
  line-height: 1;
}

.btn-primary {
  color: var(--blue);
  border-color: var(--blue);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--blue);
  color: var(--bg);
  outline: none;
}

.btn-ghost {
  color: var(--text);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: rgba(255,255,255,0.08);
  outline: none;
}

.btn-secondary {
  color: var(--pink);
  border-color: var(--pink);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--pink);
  color: var(--bg);
  outline: none;
}

.btn-large {
  padding: 0.9rem 3rem;
  font-size: 1.3rem;
}

/* ── Section chrome ───────────────────────────────────────── */
section { padding: 5rem 0; position: relative; }

.section-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  color: var(--blue);
  text-align: center;
  margin-bottom: 0.6rem;
  line-height: 1.1;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: opacity 0.5s ease;
}

/* hidden buffer of the rotating hero clip pair (script.js) */
.hero-video-hidden {
  opacity: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,12,0.45) 0%,
    rgba(10,10,12,0.55) 60%,
    rgba(10,10,12,0.85) 100%
  );
  z-index: 1;
}

/* hero arrow sits above overlay (z-index: 1) and content (z-index: 2) */
.hero .section-arrow { z-index: 3; }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.hero-logo-wrap {
  margin: 0;
  line-height: 0;
}

.hero-logo {
  width: min(88vw, 720px);
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.85));
}

.hero-dates-img {
  width: min(54vw, 416px);
  height: auto;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.85));
}

.hero-location-img {
  width: min(86vw, 682px);
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.85));
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-cta .btn {
  font-size: 1.375rem;
  padding: 0.875rem 2.5rem;
}

/* ── Section scroll arrows ────────────────────────────────── */
.section-arrow {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  /* frosted-glass backdrop so arrow is legible over any content */
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
  animation: arrow-bounce 2.4s ease-in-out infinite;
}

.section-arrow svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.section-arrow:hover,
.section-arrow:focus-visible {
  background: rgba(0, 0, 0, 0.65);
  border-color: var(--blue);
  color: var(--blue);
  outline: none;
  animation: none;
  transform: translateX(-50%) translateY(3px);
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.75; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 1;    }
}

/* ── Hero "presented by" credit ───────────────────────────── */
.hero-presented-by {
  position: absolute;
  bottom: 1.4rem;
  right: 1.5rem;
  z-index: 2;
  font-size: 1.44rem;
  letter-spacing: 0.1em;
  color: rgba(237, 232, 224, 0.65);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  text-transform: lowercase;
  margin: 0;
}

.hero-presented-by a {
  color: var(--blue);
  text-decoration: none;
  opacity: 0.9;
}

.hero-presented-by a:hover {
  text-decoration: underline;
  opacity: 1;
}


/* ============================================================
   FLYER
   Fills the viewport minus a small inset on all sides.
   Uses object-fit: contain so the full poster is always
   visible — no clipping, no overflow — on every screen size.
   ============================================================ */
.flyer-section {
  background: var(--bg-alt);
  padding: 0;
  /* section fills the viewport height */
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* remove the generic container constraints for this section */
.flyer-section .container {
  display: contents;
}

.flyer-img {
  /* shrink to fit within the viewport, leaving a small inset */
  max-width: calc(100vw - 2rem);
  max-height: calc(100svh - 2rem);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 12px 60px rgba(0,0,0,0.7);
}

.flyer-share {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.flyer-share:hover,
.flyer-share:focus-visible {
  background: rgba(0, 0, 0, 0.65);
  border-color: var(--blue);
  color: var(--blue);
  outline: none;
}


/* ============================================================
   TICKETS + VENUES
   ============================================================ */
.ticket-note {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.ticket-note a { color: var(--pink); text-decoration: none; }
.ticket-note a:hover { text-decoration: underline; }

/* ── Ticket info two-column grid ────────────────────────────── */
.ticket-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
  align-items: center;
}

/* ── Ticket tiers list ───────────────────────────────────────── */
.ticket-tiers {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
  /* inherit Georgia serif from .section-sub convention */
  font-family: Georgia, Cambria, 'Palatino Linotype', Palatino, serif;
}

.ticket-tier {
  border-left: 3px solid var(--pink);
  padding-left: 1.1rem;
}

.ticket-tier-price {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--pink);
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.ticket-tier-price a {
  color: #af7a6a;
}

.ticket-tier-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
}

.ticket-tier-detail {
  color: var(--text);
  font-size: 0.95rem;
}

.ticket-tier-detail a {
  color: var(--blue);
}

/* ── Shirt stack (layered) ───────────────────────────────────── */
.shirt-stack {
  position: relative;
  /* aspect-ratio matches shirt portrait shape + extra room for rotation */
  aspect-ratio: 0.85 / 1;
}

.shirt-img {
  display: block;
  max-width: 100%;
  height: auto;
}

.shirt-img--back {
  position: absolute;
  width: 80%;
  top: 0;
  right: 0;
  transform: rotate(7deg);
  transform-origin: top right;
  z-index: 1;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.65));
  opacity: 0.85;
}

.shirt-img--front {
  position: absolute;
  width: 83%;
  bottom: 0;
  left: 0;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(157, 216, 236, 0.15)) drop-shadow(0 6px 22px rgba(0,0,0,0.7));
}


/* ── Merged tickets + venues section ────────────────────────── */
.tickets-section, .venues-section { text-align: center; }
.venues-section {
  background: var(--bg-alt);
}

.tickets-venues .section-title { color: var(--pink); }
.tickets-section .section-title { color: var(--pink); }



.venues-heading {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: var(--blue);
  text-align: center;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

/* Creek Stage — pulled above the grid as the main stage */
.venue-feature {
  margin-bottom: 1.25rem;
}

.venue-main {
  display: inline-block;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  padding: 0.45rem 1.1rem;
  border-width: 2px;
}

.venue-partners {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.venue-partners a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(157, 216, 236, 0.4);
  transition: border-color 0.18s;
}

.venue-partners a:hover {
  border-bottom-color: var(--blue);
}

.venues-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  list-style: none;
}

.venue {
  padding: 0.35rem .6rem;
  border: 1px solid var(--pink);
  color: var(--pink);
  text-transform: uppercase;
  font-size: 1.1rem;
}


/* ============================================================
   VENUE MAP (Leaflet)
   ============================================================ */
.venue-map {
  height: 420px;
  margin-top: 2.5rem;
  border: 1px solid rgba(157, 216, 236, 0.3);
  background: var(--bg-alt);
}

.venue-map.leaflet-container {
  font-family: 'zai Olivetti Lettera 22 Typewriter', 'Courier New', monospace;
}

/* pins */
.venue-pin {
  background: var(--blue);
  border: 2px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--blue), 0 0 14px rgba(157, 216, 236, 0.55);
  cursor: pointer;
}

.venue-pin:hover {
  background: var(--pink);
  box-shadow: 0 0 0 2px var(--pink), 0 0 14px rgba(232, 152, 128, 0.55);
}

/* popups */
.venue-map .leaflet-popup-content-wrapper,
.venue-map .leaflet-popup-tip {
  background: var(--bg-alt);
  color: var(--text);
  border-radius: 0;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.venue-map .leaflet-popup-content {
  font-size: 0.95rem;
  line-height: 1.5;
}

.venue-map .leaflet-popup-content strong {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.venue-map .leaflet-popup-content a {
  color: var(--pink);
}

.venue-map a.leaflet-popup-close-button {
  color: var(--text-muted);
}

/* zoom controls */
.venue-map .leaflet-control-zoom a {
  background: var(--bg-alt);
  color: var(--blue);
  border-color: rgba(157, 216, 236, 0.3);
}

.venue-map .leaflet-control-zoom a:hover {
  background: var(--bg);
  color: var(--pink);
}

/* attribution */
.venue-map .leaflet-control-attribution {
  background: rgba(17, 18, 19, 0.75);
  color: var(--text-muted);
}

.venue-map .leaflet-control-attribution a {
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .venue-map { height: 320px; }
}


/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section {
  background: var(--bg-alt);
  padding: 4rem 0;
}

.gallery-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 1.5rem 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.gallery-strip:active { cursor: grabbing; }

/* custom scrollbar */
.gallery-strip::-webkit-scrollbar { height: 3px; }
.gallery-strip::-webkit-scrollbar-track { background: var(--bg); }
.gallery-strip::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 2px; }

.gallery-strip img {
  height: 320px;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  scroll-snap-align: start;
  cursor: pointer;
  transition: opacity 0.2s;
  border: 1px solid var(--border);
}
.gallery-strip img:hover { opacity: 0.8; }


/* ============================================================
   EMAIL SIGNUP
   ============================================================ */
.signup-section {
  background: var(--bg);
  text-align: center;
  padding-bottom: 2.5rem;
}

.signup-section .section-title { color: var(--pink); }

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 440px;
  margin: 0 auto;
  align-items: stretch;
  font-family: Georgia, Cambria, 'Palatino Linotype', Palatino, serif;
}

.signup-row {
  display: flex;
  gap: 0.5rem;
}

.signup-form input[type="text"],
.signup-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 1rem;
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s;
}
.signup-form input[type="text"]::placeholder,
.signup-form input[type="email"]::placeholder { color: var(--text-muted); }
.signup-form input[type="text"]:focus,
.signup-form input[type="email"]:focus { border-color: var(--pink); }

.signup-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
}

.signup-consent input[type="checkbox"] {
  accent-color: var(--pink);
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  cursor: pointer;
}

/* Mailchimp honeypot — keep off-screen, never display:none */
.mc-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

.signup-error {
  color: var(--pink);
  font-size: 0.88rem;
  text-align: center;
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-logo {
  width: min(68vw, 280px);
  height: auto;
  margin: 0 auto 0.4rem;
}

.footer-dates {
  color: var(--text-muted);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-link {
  color: var(--text-muted);
  transition: color 0.18s, opacity 0.18s;
  line-height: 0;
}
.social-link:hover, .social-link:focus-visible {
  color: var(--blue);
  outline: none;
}

/* Brand colors */
.social-link--facebook { color: #1877F2; }
.social-link--facebook:hover, .social-link--facebook:focus-visible { color: #1877F2; opacity: 0.75; }

.social-link--spotify { color: #1DB954; }
.social-link--spotify:hover, .social-link--spotify:focus-visible { color: #1DB954; opacity: 0.75; }

/* Instagram uses inline SVG gradient — no color override needed */
.social-link--instagram:hover, .social-link--instagram:focus-visible { opacity: 0.75; }

.footer-presented-by {
  font-size: 1.44rem;
  letter-spacing: 0.1em;
  color: rgba(237, 232, 224, 0.65);
  text-transform: lowercase;
  margin: 0;
}

.footer-presented-by a {
  color: var(--blue);
  text-decoration: none;
  opacity: 0.9;
}

.footer-presented-by a:hover {
  text-decoration: underline;
  opacity: 1;
}

.footer-ig-link {
  opacity: 0.85;
  transition: opacity 0.18s;
}
.footer-ig-link:hover { opacity: 1; text-decoration: none; }


/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 4px 40px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
  font-family: sans-serif;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  /* same frosted-glass treatment as the section scroll arrows */
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  opacity: 0.7;
  transition: opacity 0.18s, background 0.18s, border-color 0.18s, color 0.18s;
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  opacity: 1;
  background: rgba(0, 0, 0, 0.65);
  border-color: var(--blue);
  color: var(--blue);
  outline: none;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* keep the photo clear of the arrows on narrow screens */
@media (max-width: 600px) {
  .lightbox img { max-width: calc(100vw - 8rem); }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-nav svg { width: 20px; height: 20px; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
/* At 880px and below, move presented-by above the arrow instead of overlapping it */
@media (max-width: 880px) {
  .hero-presented-by {
    bottom: calc(1.25rem + 44px + 0.75rem);
    letter-spacing: 0.06em;
  }
}

@media (max-width: 660px) {
  .ticket-info-grid {
    grid-template-columns: 1fr;
  }

  .shirt-stack {
    /* auto margins disable grid stretch, so set the width explicitly —
       without it the stack (whose children are all absolute) collapses to 0 */
    width: min(340px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .gallery-strip img { height: 230px; }

  .signup-form {
    flex-direction: column;
    align-items: stretch;
  }
  .signup-form input[type="email"] { min-width: unset; }

  .hero-cta { flex-direction: column; align-items: center; }
}
