/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-serif);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }

/* Tokens */
:root {
  --color-terracotta: #9F6C56;
  --color-terracotta-dark: #7F4622;
  --color-olive: #4B5532;
  --color-slate: #8F929F;
  --color-cream: #FAF3EA;
  --color-white: #FFFFFF;
  --color-ink: #2E2A25;

  --font-script: 'Pinyon Script', cursive;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Jost', sans-serif;

  --section-padding: 6rem 1.5rem;
}

/* Reveal on scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.js .reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Photo sections (full-bleed background + color overlay) */
.photo-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding: var(--section-padding);
  color: var(--color-white);
}
.photo-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.photo-section > * {
  position: relative;
  z-index: 2;
}
.photo-section--warm::before {
  background: linear-gradient(180deg, rgba(159,108,86,0.55), rgba(46,42,37,0.65));
}
.photo-section--cool::before {
  background: linear-gradient(180deg, rgba(143,146,159,0.55), rgba(46,42,37,0.65));
}

/* Solid color sections */
.solid-section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-padding);
  gap: 1.25rem;
}
.solid-section--terracotta { background: var(--color-terracotta); color: var(--color-white); }
.solid-section--olive { background: var(--color-olive); color: var(--color-white); }
.solid-section--slate { background: var(--color-slate); color: var(--color-white); }
.solid-section--cream { background: var(--color-cream); color: var(--color-ink); }

/* Shared typography */
.script-title {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
}
.label {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--color-terracotta), var(--color-olive));
  color: var(--color-white);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover, .btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Monogram */
.monogram {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Icons */
.icon {
  color: currentColor;
  margin: 0 auto;
}

/* Hero */
.hero__scroll-cue {
  margin-top: 2.5rem;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Gallery */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 60rem;
  width: 100%;
}
.gallery__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 480px) {
  .script-title { font-size: clamp(2rem, 10vw, 3rem); }
  .btn { padding: 0.8rem 1.8rem; font-size: 0.75rem; }
  #itinerary ul { max-width: 100%; }
  .solid-section, .photo-section { padding: 4rem 1.25rem; }
}

/* Contrast fix: legibility of body text over slate/terracotta backgrounds */
.solid-section--slate,
.solid-section--terracotta {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* Falling wedding emojis */
.falling-emoji {
  position: fixed;
  top: -3rem;
  font-size: 1.8rem;
  pointer-events: none;
  z-index: 9999;
  animation: fall linear forwards;
}
@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .falling-emoji { display: none; }
}

/* Location choice modal */
.location-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
.location-modal.is-open {
  display: flex;
}
.location-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(46, 42, 37, 0.6);
}
.location-modal__panel {
  position: relative;
  background: var(--color-cream);
  color: var(--color-ink);
  padding: 2.5rem 2rem 2rem;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  max-width: 20rem;
  width: 90%;
}
.location-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-ink);
  cursor: pointer;
  line-height: 1;
}
