:root {
  --ivory: #fbf7f2;
  --cream: #f4ede4;
  --paper: #fffdf9;
  --blush: #e8c4c4;
  --rose: #c9a0a0;
  --champagne: #c9b08a;
  --gold: #b8956a;
  --gold-deep: #9a784f;
  --sage: #a8b5a0;
  --ink: #2c2622;
  --muted: #6f655d;
  --line: rgba(44, 38, 34, 0.12);
  --shadow: 0 24px 60px rgba(44, 38, 34, 0.08);
  --radius: 22px;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-script: "Great Vibes", cursive;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-deep);
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--ivory);
  padding: 8px 12px;
  z-index: 200;
}

.skip-link:focus {
  top: 12px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.container.narrow {
  width: min(720px, calc(100% - 40px));
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}

.eyebrow.light {
  color: rgba(251, 247, 242, 0.82);
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

.ornament {
  color: var(--champagne);
  margin: 8px 0 20px;
}

.ornament.gold {
  color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

.btn:hover {
  transform: translateY(-1px);
  color: var(--ink);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: #fff;
}

.btn-outline,
.btn-ghost {
  border-color: var(--gold);
  color: var(--gold-deep);
  background: transparent;
}

.btn-header {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.header-solid .btn-header {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-deep);
}

.btn-gift {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(184, 149, 106, 0.38);
  white-space: nowrap;
}

.btn-gift:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: #fff;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-header-rsvp {
  display: none;
}

@media (min-width: 1101px) {
  .btn-header-rsvp {
    display: inline-flex;
  }
}

.btn-lg {
  min-height: 54px;
  padding: 0 34px;
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.75rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

.site-header.header-solid {
  background: rgba(251, 247, 242, 0.94);
  color: var(--ink);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(44, 38, 34, 0.06);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: inherit;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.brand-amp {
  font-family: var(--font-script);
  color: var(--gold);
  font-size: 1.6rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  position: relative;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  margin: 6px auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  transform: translateY(-3.75px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.88;
}

.nav-list a:hover {
  opacity: 1;
  color: inherit;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
  text-align: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(44, 38, 34, 0.18) 0%, rgba(44, 38, 34, 0.32) 55%, rgba(44, 38, 34, 0.48) 100%),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.06);
  animation: kenburns 22s ease-out forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 20%, rgba(44, 38, 34, 0.28) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px;
  width: min(920px, 100%);
}

.couple-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.15em 0.35em;
  margin: 8px 0 12px;
}

.couple-name {
  font-size: clamp(3.2rem, 9vw, 7.4rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.02em;
}

.couple-amp {
  font-family: var(--font-script);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--blush);
  line-height: 0.8;
}

.hero-date {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-subtitle {
  max-width: 520px;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 300;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 110px));
  gap: 12px;
  justify-content: center;
  margin: 0 auto 36px;
}

.count-item {
  background: rgba(251, 247, 242, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 16px 8px 14px;
}

.count-value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1;
}

.count-label {
  display: block;
  margin-top: 6px;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
}

.scroll-hint span {
  display: block;
  width: 4px;
  height: 8px;
  margin: 6px auto 0;
  background: #fff;
  border-radius: 4px;
  animation: drip 1.8s ease-in-out infinite;
}

.story {
  background: var(--paper);
}

.story-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 72px;
  align-items: center;
}

.story-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 180px 180px 28px 28px;
  box-shadow: var(--shadow);
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 520px;
  animation: gentlezoom 18s ease-in-out infinite alternate;
}

.story-copy h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-style: italic;
}

.details {
  background:
    linear-gradient(180deg, var(--cream), var(--ivory));
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.info-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(184, 149, 106, 0.12);
}

.info-card h3 {
  font-size: 1.8rem;
  font-style: italic;
  color: var(--gold-deep);
}

.location {
  background: var(--paper);
}

.location-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.venue-name {
  font-size: 2rem;
  font-style: italic;
}

.address {
  font-size: 1.05rem;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
  background: var(--cream);
}

.map-frame iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

.program {
  background: var(--ivory);
}

.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 680px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 92px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--gold), var(--blush));
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 36px;
  padding: 0 0 40px;
  position: relative;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 86px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--gold);
}

.timeline-time {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold-deep);
  padding-top: 2px;
}

.timeline-body h3 {
  font-size: 1.7rem;
  font-style: italic;
  margin-bottom: 6px;
}

.gallery {
  background: var(--paper);
}

.gallery-grid {
  columns: 3 220px;
  column-gap: 14px;
}

.gallery-item {
  display: block;
  break-inside: avoid;
  margin: 0 0 14px;
  overflow: hidden;
  border-radius: 18px;
}

.gallery-item img {
  width: 100%;
  transition: transform 0.7s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gifts {
  background: linear-gradient(180deg, var(--ivory), var(--cream));
}

.gift-bank {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  border: 1px solid rgba(184, 149, 106, 0.16);
}

.iban-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 18px 0;
}

.iban {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  background: var(--ivory);
  padding: 10px 14px;
  border-radius: 10px;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gift-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gift-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.gift-body {
  padding: 22px;
}

.gift-price {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold-deep);
}

.gift-card.is-received {
  opacity: 0.62;
}

.gift-status {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

.rsvp {
  background: var(--paper);
}

.rsvp-form,
.content-card {
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(184, 149, 106, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rsvp-form label,
.rsvp-form fieldset {
  display: block;
  margin-bottom: 18px;
}

.rsvp-form label span,
.rsvp-form legend {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--muted);
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.choice {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.choice input {
  width: auto;
}

.hp {
  position: absolute;
  left: -9999px;
}

.form-status {
  min-height: 1.4em;
  margin-top: 16px;
  color: var(--gold-deep);
}

.form-status.is-error {
  color: #8a3b3b;
}

.pay-page h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-style: italic;
  text-align: center;
}

.pay-page .eyebrow,
.pay-page .ornament {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.pay-photo {
  margin: 0 auto 28px;
  max-width: 420px;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.pay-intro {
  text-align: center;
  margin-bottom: 28px;
}

.pay-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(184, 149, 106, 0.16);
  text-align: center;
  margin-bottom: 28px;
}

.pay-amount-label,
.pay-ref-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.pay-amount {
  margin-top: 0;
  margin-bottom: 20px;
}

.pay-steps {
  text-align: left;
  max-width: 440px;
  margin: 0 auto 24px;
  padding-left: 22px;
  color: var(--muted);
}

.pay-methods {
  margin-top: 8px;
}

.pay-method-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.pay-copy {
  width: 100%;
}

.pay-copy-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer {
  padding: 64px 0 40px;
  text-align: center;
  background: var(--ink);
  color: var(--ivory);
}

.footer-names {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-style: italic;
  margin-bottom: 4px;
}

.footer-date {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.8rem;
  opacity: 0.75;
}

.site-footer .ornament {
  color: var(--gold);
  margin: 18px auto;
}

.footer-note {
  opacity: 0.72;
  font-weight: 300;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.footer-nav a {
  color: var(--blush);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(24, 20, 18, 0.92);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 24px;
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 88vh;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: none;
}

.reveal.is-visible {
  animation: rise 0.9s ease forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes kenburns {
  to {
    transform: scale(1);
  }
}

@keyframes gentlezoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

@keyframes drip {
  0%, 100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(10px);
  }
}

@media (max-width: 1100px) {
  .story-grid,
  .location-grid,
  .card-grid,
  .gift-grid {
    grid-template-columns: 1fr;
  }

  .story-photo img {
    min-height: 420px;
  }

  .nav-toggle {
    display: block;
    color: inherit;
  }

  .btn-gift {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(251, 247, 242, 0.98);
    color: var(--ink);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 16px;
    display: none;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .timeline::before {
    left: 18px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 42px;
    gap: 8px;
  }

  .timeline-item::after {
    left: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    columns: 2 140px;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 72px 0;
  }

  .countdown {
    grid-template-columns: repeat(4, minmax(64px, 1fr));
    width: min(100%, 360px);
    gap: 8px;
  }

  .couple-title {
    flex-direction: column;
    gap: 0;
  }

  .gallery-grid {
    columns: 1;
  }

  .rsvp-form,
  .content-card,
  .gift-bank {
    padding: 24px 18px;
  }

  .hero-content {
    padding-top: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media,
  .story-photo img,
  .reveal,
  .reveal.is-visible,
  .scroll-hint span,
  .gallery-item img,
  .btn {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
