:root {
  /* Warm ivory canvas, dusty rose accent — design direction approved via Lovable prototype.
     Hex, not oklch: headless Chromium rendered the oklch tokens with a visible hue shift
     (muted brown came out teal) in screenshot verification — hex sidesteps that risk on
     guests' phones entirely. */
  --color-bg: #faf6ee;
  --color-text: #322621;
  --color-muted: #6e605a;
  --color-accent: #c89792;
  --color-primary: #493530;
  --color-border: #dfd5ce;
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.5;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 0.9rem 1rem;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--color-accent);
}

.lang-toggle {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
}

.lang-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.section {
  padding: 2.5rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.section-inner {
  max-width: 640px;
  margin: 0 auto;
}

h1, h2 {
  font-family: var(--font-heading);
  margin-top: 0;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--color-accent);
  margin: 0 0 2rem;
}

.divider-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-style: italic;
}

.divider-mark::before,
.divider-mark::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.section-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  min-height: 100svh;
  text-align: center;
  padding-bottom: 3rem;
  border-bottom: none;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep heads/faces in frame — there's spare empty sand/sea at the
     bottom that's safe to crop instead. Source photo re-cropped to trim
     excess empty ocean on the right (was leaving the couple squeezed
     into the left third on very wide screens). */
  object-position: 50% 8%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Text sits low over the photo — keep the top clear so faces aren't covered,
     and darken from the midpoint down so the heading stays readable. */
  background: linear-gradient(
    to bottom,
    rgba(250, 246, 238, 0) 0%,
    rgba(250, 246, 238, 0.15) 45%,
    rgba(250, 246, 238, 0.85) 65%,
    rgba(250, 246, 238, 0.98) 80%
  );
}

.hero-content {
  position: relative;
  width: 100%;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(3rem, 14vw, 6.5rem);
  line-height: 0.95;
  color: var(--color-primary);
  margin: 0;
}

.hero-amp {
  margin: 0 0.35em;
  font-style: italic;
  color: var(--color-accent);
}

.hero-break {
  display: block;
}

.hero-meta {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-primary);
}

.hero-countdown {
  margin: 0.5rem 0 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-muted);
}

.section-save-the-date,
.section-rsvp,
.section-groomsmen,
.section-wedding-registry {
  text-align: center;
}

.stitle-intro {
  max-width: 34rem;
  margin: 1rem auto 2rem;
  color: var(--color-muted);
}

.std-details {
  margin: 0 0 2rem;
}

.std-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
}

.std-row dt {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--color-accent);
}

.std-row dd {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-primary);
}

.std-map-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 0.2rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  text-decoration: none;
}

.std-map-button:hover {
  color: var(--color-primary);
}

.groomsmen-intro {
  max-width: 34rem;
  margin: 1rem auto 2.5rem;
  color: var(--color-muted);
}

.groomsmen-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.25rem;
}

.groomsmen-card {
  text-align: center;
}

.groomsmen-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
}

.groomsmen-name {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--color-primary);
}

.groomsmen-quote {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
}

.groomsmen-fact {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.section-gallery {
  text-align: center;
}

.gallery-main {
  position: relative;
  max-width: 640px;
  margin: 2rem auto 1.25rem;
  padding: 0 1.25rem;
}

.gallery-photo {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 4px;
  background: var(--color-border);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: rgba(250, 246, 238, 0.85);
  color: var(--color-primary);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-arrow:hover {
  background: var(--color-bg);
  color: var(--color-accent);
}

.gallery-arrow-prev {
  left: 1.75rem;
}

.gallery-arrow-next {
  right: 1.75rem;
}

.gallery-thumbs {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.gallery-thumb {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 4rem;
  height: 4rem;
  padding: 0;
  border-radius: 4px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb.is-active {
  border-color: var(--color-accent);
  opacity: 1;
}

.registry-title {
  margin-bottom: 0.75rem;
}

.registry-bank {
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.registry-iban-row {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.registry-iban {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  background: rgba(0, 0, 0, 0.04);
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
}

.registry-copy {
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-bg);
  background: var(--color-primary);
  border: none;
  border-radius: 4px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

.registry-copy:hover {
  background: var(--color-accent);
}

.section-footer {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 70svh;
  text-align: center;
  border-bottom: none;
  padding-top: 3.5rem;
  padding-bottom: 3rem;
}

.footer-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* This section is wide and short, so cover-fit crops heavily from top/bottom.
     Anchor near the top so heads stay in frame instead of being cropped off. */
  object-position: 50% 8%;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(250, 246, 238, 0.9) 0%,
    rgba(250, 246, 238, 0) 12%,
    rgba(250, 246, 238, 0.2) 55%,
    rgba(250, 246, 238, 0.92) 80%
  );
}

.footer-content {
  position: relative;
  width: 100%;
}

.footer-names {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 2rem;
  color: var(--color-primary);
  margin: 0;
}

.footer-note {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.footer-secret {
  transform: rotate(180deg);
  margin: 2.5rem 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  opacity: 0.55;
}

.rsvp-intro {
  margin-bottom: 1.75rem;
}

.rsvp-toggle {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-bg);
  background: var(--color-primary);
  border: none;
  border-radius: 4px;
  padding: 0.8rem 2rem;
  cursor: pointer;
}

.rsvp-toggle:hover {
  background: var(--color-accent);
}

.rsvp-panel {
  margin-top: 1.75rem;
}

.rsvp-embed {
  position: relative;
  width: 100%;
}

.rsvp-embed iframe {
  width: 100%;
  height: 1100px;
  border: none;
}

.rsvp-coming-soon {
  border: 1px dashed var(--color-border);
  border-radius: 6px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--color-muted);
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.rsvp-fallback {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .section {
    padding: 4rem 2rem;
  }

  .hero-break {
    display: none;
  }
}
