:root {
  --pink: #ff2e91;
  --yellow: #ffde59;
  --ink: #241b2f;
  --cream: #fff8e7;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Work Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    repeating-linear-gradient(135deg, rgba(255,46,145,0.08) 0 20px, rgba(255,222,89,0.08) 20px 40px, rgba(0,0,0,0) 40px 60px),
    var(--cream);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Shrikhand', cursive;
  letter-spacing: 0.5px;
  margin: 0 0 0.5rem;
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background-image:
    linear-gradient(0deg, rgba(0,0,0,0.18), rgba(0,0,0,0.18)),
    radial-gradient(1200px 600px at 10% -10%, rgba(255,222,89,0.8), rgba(255,222,89,0) 60%),
    radial-gradient(800px 400px at 90% 10%, rgba(255,46,145,0.75), rgba(255,46,145,0) 60%),
    linear-gradient(180deg, #fff8e7, #ffeec9),
    var(--hero-photo);
  background-size: auto, auto, auto, auto, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
  border-bottom: 6px solid var(--pink);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(5.5rem + env(safe-area-inset-top)) 1.25rem calc(3.5rem + env(safe-area-inset-bottom));
  text-align: center;
}

.badge {
  display: inline-block;
  background: var(--pink);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 1px;
  transform: rotate(-3deg);
  box-shadow: 0 6px 0 #b3155c;
}

.title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin-top: 1rem;
  color: #fff;
  text-shadow:
    -2px -2px 0 #fff,
    3px 3px 0 var(--yellow),
    6px 6px 0 rgba(255,46,145,0.45);
}
.title span { color: var(--pink); }

.tagline {
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  margin: 0.5rem 0 1.25rem;
  opacity: 0.9;
}

.details {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.details li strong { color: var(--pink); }

.cta {
  display: inline-block;
  background: var(--pink);
  color: var(--yellow);
  text-decoration: none;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  border: 3px solid #2a0c1d;
  box-shadow: 0 6px 0 #2a0c1d;
  transform: translateY(0);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.cta:hover { transform: translateY(2px); box-shadow: 0 4px 0 #2a0c1d; }
.cta:active { transform: translateY(6px); box-shadow: 0 0 0 #2a0c1d; }

/* Secondary (ghost) button: same palette */
.cta.ghost { background: var(--pink); color: var(--yellow); border-color: #2a0c1d; }

/* Sections */
main { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.about, .schedule, .gallery { margin-top: 2.5rem; }

.about p { max-width: 65ch; margin: 0.5rem auto 0; }

.schedule h2, .gallery h2, .about h2, .info h2 {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: var(--pink);
  color: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--pink);
}

.info-list { margin: 0.25rem 0 0; padding-left: 1.1rem; }
.info-list li { margin: 0.25rem 0; }


.card {
  background: white;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 1rem 1rem 0.75rem;
  margin: 1rem 0;
  box-shadow: 6px 6px 0 rgba(36,27,47,0.2);
}
.act { color: var(--pink); font-size: 1.5rem; }
.time { font-weight: 700; }
.blurb { margin-top: 0.25rem; }

/* Gallery */
.grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--yellow);
  transition: transform 150ms ease;
  content-visibility: auto;
  contain-intrinsic-size: 300px 225px;
}
.grid img:hover { transform: rotate(-1deg) scale(1.02); }

/* Footer */
.footer {
  text-align: center;
  padding: calc(2rem + env(safe-area-inset-bottom)) 1rem 2rem;
  border-top: 6px solid var(--yellow);
  background: linear-gradient(180deg, #ffeec9, #fff8e7);
}

/* Small-screen tweaks (iPhone) */
@media (max-width: 480px) {
  .hero-inner { padding: calc(4.5rem + env(safe-area-inset-top)) 1rem 2.5rem; }
  .tagline { margin-bottom: 1rem; }
  .details { flex-direction: column; gap: 0.5rem; }
  .cta { padding: 1rem 1.25rem; font-size: 1.05rem; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@supports not (aspect-ratio: 4 / 3) {
  .grid img { height: 180px; }
}

@media (prefers-color-scheme: dark) {
  body { background: #1a1321; color: #f7e9ff; }
  .hero { border-bottom-color: #ff66b6; }
  .title { text-shadow: -2px -2px 0 #1a1321, 3px 3px 0 var(--yellow), 6px 6px 0 rgba(255,46,145,0.5); }
  .card { background: #22192c; border-color: #f7e9ff; }
  .schedule h2, .gallery h2, .about h2 { border-color: #f7e9ff; }
  .cta { border-color: #120914; box-shadow: 0 6px 0 #120914; }
  .cta.ghost { color: var(--yellow); border-color: #120914; }
  .grid img { border-color: #f7e9ff; box-shadow: 4px 4px 0 var(--pink); }
}

/* Sticky mobile info bar */
.sticky-info {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: rgba(255, 248, 231, 0.9);
  backdrop-filter: blur(8px);
  border-top: 2px solid var(--ink);
  box-shadow: 0 -8px 16px rgba(0,0,0,0.08);
  padding: calc(0.5rem + env(safe-area-inset-bottom)) 0.75rem 0.5rem;
}
.sticky-info.hidden { display: none; }
.sticky-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.sticky-copy { font-weight: 600; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.sticky-copy .sep { opacity: 0.6; }
.sticky-actions { display: flex; align-items: center; gap: 0.5rem; }
.cta.small { padding: 0.6rem 0.9rem; font-size: 0.95rem; }
.sticky-actions .close {
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  width: 36px; height: 36px;
  font-size: 20px; line-height: 1;
}

@media (min-width: 640px) {
  .sticky-info { left: 50%; right: auto; transform: translateX(-50%); width: min(640px, 100%); border: 2px solid var(--ink); border-bottom: 0; border-radius: 12px 12px 0 0; }
}

@media (prefers-color-scheme: dark) {
  .sticky-info { background: rgba(26, 19, 33, 0.9); }
  .sticky-actions .close { background: #1a1321; color: #f7e9ff; }
}
