/* ============================================
   ST. DAVID 90s REUNION — design system
   ============================================ */

:root {
  --ink: #1a0935;
  --ink-2: #240e44;
  --ink-3: #2e1356;
  --cream: #f5efe3;
  --cream-2: #ede4d0;
  --pink: #ff2d8c;
  --blue: #1fd6ff;
  --lime: #3dff7a;
  --hot: #ff5b1f;

  --shadow-pink: 0 0 24px rgba(255, 45, 140, 0.55), 0 0 60px rgba(255, 45, 140, 0.25);
  --shadow-blue: 0 0 24px rgba(31, 214, 255, 0.55), 0 0 60px rgba(31, 214, 255, 0.25);
  --shadow-lime: 0 0 24px rgba(61, 255, 122, 0.55), 0 0 60px rgba(61, 255, 122, 0.25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle film-grain texture across the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.5;
}

/* Soft vignettes / blobs */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 800px 600px at 10% 0%, rgba(255, 45, 140, 0.18), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 20%, rgba(31, 214, 255, 0.15), transparent 60%),
    radial-gradient(ellipse 900px 700px at 50% 100%, rgba(61, 255, 122, 0.08), transparent 60%);
  pointer-events: none;
}

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

/* ============================================
   Typography
   ============================================ */

.display {
  font-family: "Anton", "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.86;
  text-transform: uppercase;
}

.subdisplay {
  font-family: "Bebas Neue", "Anton", Impact, sans-serif;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.handwritten {
  font-family: "Permanent Marker", cursive;
  font-weight: 400;
}

.mono {
  font-family: "JetBrains Mono", "Menlo", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.label-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
}

.label-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* Neon glow utility */
.glow-pink { color: var(--pink); text-shadow: 0 0 18px rgba(255,45,140,0.6), 0 0 38px rgba(255,45,140,0.35); }
.glow-blue { color: var(--blue); text-shadow: 0 0 18px rgba(31,214,255,0.6), 0 0 38px rgba(31,214,255,0.35); }
.glow-lime { color: var(--lime); text-shadow: 0 0 18px rgba(61,255,122,0.6), 0 0 38px rgba(61,255,122,0.35); }

/* ============================================
   Layout helpers
   ============================================ */

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  position: relative;
  padding: 96px 0;
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .wrap { padding: 0 18px; }
}

/* Hairline divider with neon dot */
.rule {
  height: 1px;
  background: rgba(245,239,227,0.12);
  position: relative;
  margin: 0;
}
.rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--pink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow-pink);
}

/* ============================================
   Nav
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,9,53,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245,239,227,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  max-width: 1400px;
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: var(--shadow-pink);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  0%, 70%, 100% { opacity: 1; }
  80% { opacity: 0.2; }
}
.nav-brand-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}
.nav-brand-text span { opacity: 0.55; }

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav-links a {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover {
  opacity: 1;
  color: var(--blue);
}
@media (max-width: 760px) {
  .nav-links a:not(.btn-rsvp) { display: none; }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  color: var(--cream);
  border: 1.5px solid var(--cream);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-pink {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  box-shadow: var(--shadow-pink);
}
.btn-pink:hover { background: #ff4ea0; box-shadow: 0 0 32px rgba(255,45,140,0.7), 0 0 80px rgba(255,45,140,0.35); }

.btn-lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  box-shadow: var(--shadow-lime);
}
.btn-lime:hover { background: #d6ff5a; }

.btn-ghost {
  border-color: rgba(245,239,227,0.4);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow-blue); }

.btn-xl {
  padding: 20px 36px;
  font-size: 1.5rem;
  letter-spacing: 0.14em;
}

/* ============================================
   Polaroid
   ============================================ */

.polaroid {
  position: relative;
  background: var(--cream);
  padding: 12px 12px 44px 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.55), 0 4px 12px rgba(0,0,0,0.4);
  display: inline-block;
  color: #1a0935;
  border-radius: 2px;
}
.polaroid-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e6dec9;
}
.polaroid-photo-wrap {
  position: relative;
  overflow: hidden;
  background: #1a0935;
}
.polaroid-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  text-align: center;
  font-family: "Permanent Marker", cursive;
  font-size: 1.05rem;
  color: #1a0935;
  line-height: 1;
  padding: 0 8px;
}
.polaroid-tape {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 78px;
  height: 24px;
  background: rgba(61, 255, 122, 0.55);
  border: 1px dashed rgba(255,255,255,0.25);
  backdrop-filter: blur(2px);
}
.polaroid-tape.tape-pink { background: rgba(255, 45, 140, 0.5); }
.polaroid-tape.tape-blue { background: rgba(31, 214, 255, 0.5); }

/* ============================================
   Countdown
   ============================================ */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 640px;
}
.cd-cell {
  position: relative;
  background: rgba(26,9,53,0.6);
  border: 1.5px solid rgba(245,239,227,0.12);
  border-radius: 10px;
  padding: 18px 8px 14px;
  text-align: center;
  overflow: hidden;
}
.cd-cell::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(245,239,227,0.08);
  z-index: 1;
}
.cd-digit {
  font-family: "Anton", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1;
  color: var(--lime);
  text-shadow: 0 0 16px rgba(61,255,122,0.55), 0 0 36px rgba(61,255,122,0.3);
  position: relative;
  z-index: 2;
  font-variant-numeric: tabular-nums;
}
.cd-label {
  margin-top: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
  position: relative;
  z-index: 2;
}

/* ============================================
   Marquee
   ============================================ */

.marquee {
  overflow: hidden;
  border-top: 1.5px solid var(--cream);
  border-bottom: 1.5px solid var(--cream);
  background: var(--ink);
  padding: 14px 0;
  position: relative;
}
.marquee-track {
  display: inline-flex;
  gap: 36px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  padding-left: 36px;
}
.marquee-track > span {
  font-family: "Anton", sans-serif;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 36px;
}
.marquee-track > span::after {
  content: "\2605";
  color: var(--pink);
  text-shadow: var(--shadow-pink);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-pink { background: var(--pink); }
.marquee-pink .marquee-track > span { color: var(--ink); }
.marquee-pink .marquee-track > span::after { color: var(--ink); text-shadow: none; }
.marquee-pink { border-color: var(--pink); }

/* ============================================
   Cards (food / music / venue)
   ============================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 56px;
}
@media (max-width: 960px) {
  .card-grid { grid-template-columns: 1fr; gap: 56px; }
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.feature-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}
.feature-title {
  font-family: "Anton", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.feature-body {
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(245,239,227,0.78);
}
.feature-tag {
  display: inline-block;
  padding: 6px 10px;
  background: var(--lime);
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 4px;
}

/* ============================================
   Extras (asymmetric grid)
   ============================================ */

.extras {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.extra {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(245,239,227,0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
}
.extra-title {
  font-family: "Anton", sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
  line-height: 0.95;
}
.extra-body {
  font-size: 0.92rem;
  color: rgba(245,239,227,0.72);
  line-height: 1.5;
}
.extra-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}

.extra.span-4 { grid-column: span 4; }
.extra.span-5 { grid-column: span 5; }
.extra.span-6 { grid-column: span 6; }
.extra.span-7 { grid-column: span 7; }
.extra.span-8 { grid-column: span 8; }

@media (max-width: 960px) {
  .extra.span-4, .extra.span-5, .extra.span-6, .extra.span-7, .extra.span-8 {
    grid-column: span 12;
  }
}

.extra-pink { border-color: rgba(255,45,140,0.35); background: linear-gradient(180deg, rgba(255,45,140,0.06), rgba(255,45,140,0)); }
.extra-blue { border-color: rgba(31,214,255,0.35); background: linear-gradient(180deg, rgba(31,214,255,0.06), rgba(31,214,255,0)); }
.extra-lime { border-color: rgba(61,255,122,0.35); background: linear-gradient(180deg, rgba(61,255,122,0.06), rgba(61,255,122,0)); }

/* ============================================
   RSVP form
   ============================================ */

.rsvp-shell {
  border: 1.5px solid rgba(245,239,227,0.18);
  border-radius: 24px;
  padding: 64px 56px;
  background:
    radial-gradient(ellipse 600px 400px at 90% 0%, rgba(255,45,140,0.18), transparent 70%),
    radial-gradient(ellipse 600px 400px at 0% 100%, rgba(31,214,255,0.16), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  position: relative;
  overflow: hidden;
}
@media (max-width: 720px) {
  .rsvp-shell { padding: 36px 24px; }
}

.rsvp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
}
@media (max-width: 720px) {
  .rsvp-grid { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.75;
}
.field input, .field select {
  background: rgba(26,9,53,0.6);
  border: 1.5px solid rgba(245,239,227,0.18);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--cream);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(31,214,255,0.16);
}
.field input::placeholder { color: rgba(245,239,227,0.35); }

.radio-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.radio-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid rgba(245,239,227,0.18);
  border-radius: 10px;
  background: rgba(26,9,53,0.4);
  cursor: pointer;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.radio-pill:hover { border-color: rgba(245,239,227,0.4); }
.radio-pill.active {
  border-color: var(--lime);
  background: rgba(61,255,122,0.08);
}
.radio-pill .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(245,239,227,0.4);
  position: relative;
  flex-shrink: 0;
}
.radio-pill.active .dot { border-color: var(--lime); }
.radio-pill.active .dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(61,255,122,0.7);
}

/* ============================================
   Footer / fine print
   ============================================ */

.fineprint {
  background: var(--cream);
  color: var(--ink);
  padding: 56px 0 32px;
}
.fineprint-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: end;
}
@media (max-width: 720px) {
  .fineprint-inner { grid-template-columns: 1fr; }
}
.fineprint-title {
  font-family: "Anton", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  line-height: 0.9;
}
.fineprint-row {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-top: 1px solid rgba(26,9,53,0.18);
  padding-top: 18px;
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Audio bar */
.audio-bar {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  background: rgba(26,9,53,0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245,239,227,0.15);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  cursor: pointer;
  transition: border-color 0.2s;
}
.audio-bar:hover { border-color: var(--pink); }
.audio-bar .eq {
  display: flex;
  align-items: end;
  gap: 2px;
  height: 14px;
}
.audio-bar .eq span {
  width: 3px;
  background: var(--lime);
  border-radius: 2px;
  height: 4px;
}
.audio-bar.playing .eq span {
  animation: eqBounce 0.9s ease-in-out infinite;
}
.audio-bar.playing .eq span:nth-child(2) { animation-delay: 0.15s; }
.audio-bar.playing .eq span:nth-child(3) { animation-delay: 0.3s; }
.audio-bar.playing .eq span:nth-child(4) { animation-delay: 0.45s; }
@keyframes eqBounce {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}
