@import url("https://fonts.googleapis.com/css2?family=Italiana&family=Montserrat:wght@300;400;500;600&display=swap");

:root {
  --forest: #23372f;
  --forest-dark: #14231d;
  --sage: #839486;
  --cream: #f7f2e9;
  --sand: #e4d7c4;
  --gold: #b69561;
  --ink: #1f2924;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(27, 43, 35, 0.13);
  --radius: 28px;
  --serif: "Italiana", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: var(--white);
  background: var(--forest-dark);
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end center;
  overflow: hidden;
  color: var(--white);
  background: var(--forest-dark);
}

.hero__media, .hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero__overlay {
  background:
    linear-gradient(180deg, rgba(9, 18, 14, .08) 20%, rgba(9, 18, 14, .76) 100%),
    linear-gradient(90deg, rgba(9, 18, 14, .1), transparent 48%, rgba(9, 18, 14, .1));
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(92%, 720px);
  padding: 0 20px 11svh;
  text-align: center;
}

.eyebrow, .section-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hero .eyebrow { color: #f0d9b6; }

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 18vw, 8.4rem);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.03em;
}

.hero h1 span {
  display: inline-block;
  margin: 0 .1em;
  color: #ead4b2;
  font-size: .48em;
  vertical-align: .25em;
}

.hero__date {
  margin: 26px 0 32px;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  z-index: 3;
  width: 24px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 20px;
  transform: translateX(-50%);
}
.scroll-cue span {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollCue 1.8s infinite;
}

.section {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 88px 22px;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}
.section-heading--left { margin-left: 0; text-align: left; }

.section h2, .closing-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 8vw, 4.8rem);
  font-weight: 400;
  line-height: 1.04;
}
.section-heading p:last-child { margin: 20px auto 0; max-width: 610px; }

.story {
  position: relative;
  padding-top: 120px;
  padding-bottom: 120px;
}
.story__ornament {
  margin-bottom: 30px;
  color: rgba(35,55,47,.12);
  font-family: var(--serif);
  font-size: clamp(4.2rem, 20vw, 9rem);
  line-height: .8;
  text-align: center;
}

.video-section { padding-top: 25px; }
.video-frame {
  position: relative;
  width: min(100%, 430px);
  margin: 0 auto;
  overflow: hidden;
  background: #101914;
  border: 8px solid rgba(255,255,255,.8);
  border-radius: 32px;
  box-shadow: var(--shadow);
  aspect-ratio: 9 / 16;
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 30px 22px;
  color: white;
  background:
    linear-gradient(180deg, rgba(20,35,29,.04), rgba(20,35,29,.88)),
    url("assets/images/video-poster.png") center / cover;
  text-align: center;
  opacity: 0;
  pointer-events: none;
}
.video-fallback strong { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.video-fallback span { font-size: .86rem; }
.video-frame.is-video-unavailable video { visibility: hidden; }
.video-frame.is-video-unavailable .video-fallback { opacity: 1; }

.event-section { padding-top: 120px; }
.event-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 32px;
  align-items: center;
  max-width: 830px;
  margin: 0 auto;
  padding: 34px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.event-card__date {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: white;
  background: var(--forest);
  border-radius: 20px;
}
.event-card__date strong {
  font-family: var(--serif);
  font-size: 4.6rem;
  font-weight: 400;
  line-height: .9;
}
.event-card__date span {
  font-size: .74rem;
  letter-spacing: .2em;
}
.event-card__type {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.event-card h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.1;
}
.event-card p { margin: 5px 0; }

.event-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .copy-button:focus-visible,
.stepper button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(182,149,97,.45);
  outline-offset: 3px;
}
.button--primary { color: white; background: var(--forest); }
.button--outline { color: var(--forest); border-color: var(--forest); background: transparent; }
.button--light { color: var(--forest-dark); background: rgba(255,255,255,.92); }
.button--full { width: 100%; }

.countdown-section { width: 100%; max-width: none; padding-inline: 0; }
.countdown-card {
  padding: 76px 20px;
  color: white;
  background: var(--forest);
  text-align: center;
}
.countdown-card .section-kicker { color: #dec49e; }
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 38px auto 0;
}
.countdown-grid div {
  padding: 20px 8px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
}
.countdown-grid strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 8vw, 4.4rem);
  font-weight: 400;
  line-height: 1;
}
.countdown-grid span {
  display: block;
  margin-top: 8px;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.countdown-finished { margin: 30px 0 0; font-family: var(--serif); font-size: 2rem; }

.split-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 38px;
  background: #eee5d8;
  border-radius: var(--radius);
}
.split-card__icon {
  display: grid;
  place-items: center;
  width: 92px;
  aspect-ratio: 1;
  color: var(--gold);
  border: 1px solid rgba(182,149,97,.5);
  border-radius: 50%;
  font-size: 2.2rem;
}
.split-card h2 { font-size: 3.2rem; }
.split-card p:last-child { margin-bottom: 0; }

.gifts-section { padding-top: 45px; }
.gift-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 30px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.copy-row {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.copy-row + .copy-row { border-top: 1px solid #ece5da; }
.copy-row span {
  display: block;
  margin-bottom: 3px;
  color: var(--sage);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.copy-row strong { overflow-wrap: anywhere; }
.copy-button {
  flex: 0 0 auto;
  padding: 9px 14px;
  color: var(--forest);
  background: #eef1ed;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: .76rem;
  font-weight: 600;
}

.rsvp-section { padding-top: 105px; }
.rsvp-card {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 55px;
  padding: 48px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.rsvp-form { display: grid; gap: 18px; }
.rsvp-form label, .guest-field { display: grid; gap: 7px; }
.rsvp-form label > span, .guest-field legend {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.rsvp-form input, .rsvp-form select, .rsvp-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 11px 13px;
  color: var(--ink);
  background: #faf8f4;
  border: 1px solid #dcd5ca;
  border-radius: 12px;
}
.rsvp-form select { appearance: auto; }
.rsvp-form textarea { resize: vertical; }
.field-error { display: none; margin: 0; color: #9a3d35; font-size: .72rem; font-weight: 600; }
.field-error.is-visible { display: block; }
.rsvp-form [aria-invalid="true"] { border-color: #9a3d35; box-shadow: 0 0 0 3px rgba(154,61,53,.13); }
.guest-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.guest-field[hidden] { display: none; }
.stepper {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  overflow: hidden;
  border: 1px solid #dcd5ca;
  border-radius: 12px;
}
.stepper button {
  min-height: 52px;
  color: var(--forest);
  background: #eef1ed;
  border: 0;
  cursor: pointer;
  font-size: 1.4rem;
}
.stepper input {
  border: 0;
  border-inline: 1px solid #dcd5ca;
  border-radius: 0;
  text-align: center;
  -moz-appearance: textfield;
}
.stepper input::-webkit-inner-spin-button { appearance: none; }
.closing-section {
  min-height: 70svh;
  display: grid;
  place-items: center;
  padding: 90px 20px;
  color: white;
  background:
    linear-gradient(rgba(20,35,29,.74), rgba(20,35,29,.82)),
    url("assets/images/ana-nico-boda.png") center 62% / cover;
  text-align: center;
}
.closing-section p { margin: 0 0 16px; }
.closing-section h2 { font-size: clamp(4rem, 16vw, 7.5rem); }
.closing-section span { letter-spacing: .22em; }

.floating-cta {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(420px, calc(100% - 32px));
  min-height: 54px;
  padding: 0 24px;
  color: white;
  background: var(--forest);
  border-radius: 999px;
  box-shadow: 0 12px 35px rgba(20,35,29,.28);
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
  transform: translate(-50%, 120%);
  transition: .25s ease;
}
.floating-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(78px, calc(env(safe-area-inset-bottom) + 70px));
  z-index: 100;
  width: min(calc(100% - 32px), 440px);
  padding: 13px 17px;
  color: white;
  background: rgba(20,35,29,.94);
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 15px);
  transition: .25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes scrollCue {
  0% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 16px); }
}
@media (max-width: 760px) {
  .section { padding-block: 72px; }
  .hero__content { padding-bottom: 13svh; }
  .hero__media img { object-position: center center; }

  .event-card {
    grid-template-columns: 1fr;
    padding: 24px;
    text-align: center;
  }
  .event-card__date { min-height: 130px; }

  .countdown-grid { gap: 7px; }
  .countdown-grid div { padding: 17px 4px; border-radius: 13px; }
  .countdown-grid span { font-size: .58rem; }

  .split-card {
    grid-template-columns: 1fr;
    padding: 30px 24px;
    text-align: center;
  }
  .split-card__icon { margin: 0 auto; }

  .rsvp-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px 22px;
  }
  .section-heading--left { text-align: center; }

  .copy-row { align-items: flex-start; }
  .copy-row strong { font-size: .88rem; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: clamp(3.7rem, 18vw, 5rem); }
  .hero__date { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
