@import url('https://fonts.googleapis.com/css2?family=Creepster&display=swap');

:root {
  --color-bg:         #0f0a1e;
  --color-primary:    #ff2d9e;
  --color-secondary:  #e8e500;
  --color-text:       #e0d0f0;
  --color-header-bg:  #1a0a2e;
  --color-border:     #ff2d9e;
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
}

/* ── Header ──────────────────────────────────────────────── */
header {
  background: linear-gradient(135deg, var(--color-header-bg) 0%, #0f0a1e 100%);
  border-bottom: 2px solid var(--color-primary);
  text-align: center;
  padding: 2rem 1rem 1.5rem;
}

header h1 {
  font-family: 'Creepster', cursive;
  font-size: 2.6rem;
  color: var(--color-secondary);
  letter-spacing: .04em;
  animation: glowpulse 2.5s ease-in-out infinite;
}

header p {
  font-size: 1rem;
  color: var(--color-primary);
  margin-top: .35rem;
  text-shadow: 0 0 8px var(--color-primary);
}

@keyframes glowpulse {
  0%, 100% { text-shadow: 0 0 18px var(--color-secondary), 0 0 36px rgba(232,229,0,.4); }
  50%       { text-shadow: 0 0 30px var(--color-secondary), 0 0 60px rgba(232,229,0,.75), 0 0 90px rgba(232,229,0,.25); }
}

main { max-width: 720px; margin: 0 auto; padding: 2rem 1rem 4rem; }

/* ── Invite ─────────────────────────────────────────────── */
#invite {
  display: none;
  justify-content: center;
  padding: 1rem 0 2rem;
}

#invite img {
  max-width: 100%;
  height: auto;
  border-radius: .5rem;
  box-shadow: 0 0 40px rgba(255,45,158,.35), 0 0 80px rgba(232,229,0,.12);
}

/* ── Gallery grid ────────────────────────────────────────── */
#gallery { display: none; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
}

.grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: .5rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255,45,158,.5);
}

/* ── Lightbox ────────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#lightbox.open { display: flex; }

#lb-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: .5rem;
  object-fit: contain;
}

.lb-btn {
  position: fixed;
  background: rgba(255,45,158,.2);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.lb-btn:hover { background: rgba(255,45,158,.4); }

#lb-close { top: 1rem; right: 1rem; }
#lb-prev  { left: 1rem; top: 50%; transform: translateY(-50%); }
#lb-next  { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ── Video thumbnails ────────────────────────────────────── */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: .5rem;
  overflow: hidden;
  cursor: pointer;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-wrap::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 0 12px rgba(0,0,0,.8);
  background: rgba(0,0,0,.25);
  transition: background .15s;
}

.video-wrap:hover::after { background: rgba(0,0,0,.45); }

/* ── Lightbox video ──────────────────────────────────────── */
#lb-video {
  display: none;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: .5rem;
}

#lb-video.active { display: block; }
#lb-img.hidden   { display: none; }

/* ── Archive link ────────────────────────────────────────── */
.archive-link {
  display: block;
  text-align: center;
  margin-top: 3rem;
  color: var(--color-primary);
  text-decoration: none;
  font-size: .9rem;
  opacity: .7;
  text-shadow: 0 0 8px rgba(255,45,158,.4);
}
.archive-link:hover { opacity: 1; }
