:root {
  --primary: #5C2018;
  --primary-rgb: 92, 32, 24;
  --paper: #FAF8F5;
  --paper-rgb: 250, 248, 245;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Lora', serif;
  background-color: var(--paper);
  color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-blend-mode: overlay;
  background-size: 200px;
}

html.no-scroll,
body.no-scroll {
  overflow: hidden;
  touch-action: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
}

/* Scroll reveal animations */
.reveal-element {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-element.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Hero section animations */
.hero-content {
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-content.visible {
  opacity: 1;
}

@media (max-width: 767px) {
  #heroContent {
    justify-content: flex-start;
    padding-top: 34vh;
  }

  .hero-invite {
    max-width: 80%;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    line-height: 1.35;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .hero-desc-block {
    padding-top: 12vh;
  }
}

/* Curtain tap indicator pulse */
@keyframes tapPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.5); opacity: 0; }
}

.tap-pulse {
  animation: tapPulse 2s ease-in-out infinite;
}

/* Scroll indicator bounce */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

/* RSVP attendance button active state */
.attendance-btn.active {
  background-color: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

/* Wavy clip path for thank you card */
.wavy-card {
  clip-path: polygon(
    0% 8%, 4% 4%, 8% 0%, 15% 2%, 22% 0%, 29% 2%, 36% 0%, 43% 2%, 50% 0%,
    57% 2%, 64% 0%, 71% 2%, 78% 0%, 85% 2%, 92% 0%, 96% 4%, 100% 8%,
    98% 15%, 100% 22%, 98% 29%, 100% 36%, 98% 43%, 100% 50%, 98% 57%,
    100% 64%, 98% 71%, 100% 78%, 98% 85%, 100% 92%, 96% 96%, 92% 100%,
    85% 98%, 78% 100%, 71% 98%, 64% 100%, 57% 98%, 50% 100%, 43% 98%,
    36% 100%, 29% 98%, 22% 100%, 15% 98%, 8% 100%, 4% 96%, 0% 92%,
    2% 85%, 0% 78%, 2% 71%, 0% 64%, 2% 57%, 0% 50%, 2% 43%, 0% 36%,
    2% 29%, 0% 22%, 2% 15%
  );
}

/* Gold scratch card canvas styles */
.scratch-canvas {
  cursor: pointer;
  transition: opacity 0.7s ease;
}

/* Prewed photo slider (Splide) */
.prewed-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* Splide arrow overrides */
#prewedSplide .splide__arrow {
  background: rgba(255, 255, 255, 0.7);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  opacity: 1;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

#prewedSplide .splide__arrow:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-50%) scale(1.05);
}

#prewedSplide .splide__arrow svg {
  fill: var(--primary);
  width: 18px;
  height: 18px;
}

#prewedSplide .splide__arrow--prev {
  left: 0.5rem;
}

#prewedSplide .splide__arrow--next {
  right: 0.5rem;
}

/* Splide track padding for arrows */
#prewedSplide .splide__track {
  border-radius: 16px;
}

/* Splide slide padding */
#prewedSplide .splide__slide {
  padding: 0;
}

/* Confetti canvas overlay */
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 50;
}

/* Sonner-like toast notification styles (not needed but kept for completeness) */
input::placeholder, textarea::placeholder {
  color: #9ca3af;
}

/* Focus styles */
input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.15);
}

/* Wish card styles */
.wish-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wish-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.06);
}

/* Skeleton loading pulse */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
