:root {
  --cream: #fffaf5;
  --paper: #fffdfb;
  --rose: #c77886;
  --rose-deep: #8d4d5b;
  --peach: #f3c4ae;
  --lavender: #ded4eb;
  --blue: #d9eaf0;
  --mint: #dcebe3;
  --ink: #43373a;
  --muted: #776b6c;
  --line: rgba(141, 77, 91, .2);
  --white: #fff;
  --shadow: 0 22px 70px rgba(122, 78, 90, .14);
  --max: 1120px;
  --serif: "Bodoni 72", "Iowan Old Style", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  line-height: 1.6;
}

a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: .98; letter-spacing: -.045em; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--rose-deep);
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }

.section {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
  padding-block: clamp(72px, 10vw, 132px);
}
.eyebrow {
  margin: 0 0 15px;
  color: var(--rose-deep);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
}
.section-heading { max-width: 680px; }
.section-heading--left { text-align: left; }
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading h2 { margin: 0 0 22px; font-size: clamp(2.8rem, 7vw, 6.3rem); font-weight: 400; }
.section-heading > p:last-child { max-width: 600px; margin-bottom: 0; color: var(--muted); font-size: 1.03rem; line-height: 1.75; }
.section-heading--center > p:last-child { margin-inline: auto; }

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: start center;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: #f0c2c5;
}
.hero__media, .hero__veil { position: absolute; inset: 0; }
.hero__media { z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero__veil {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(73, 43, 55, .57) 0%, rgba(73, 43, 55, .12) 25%, rgba(73, 43, 55, 0) 52%, rgba(73, 43, 55, .16) 100%),
    linear-gradient(90deg, rgba(73, 43, 55, .2), transparent 60%);
}
.hero__copy {
  width: min(calc(100% - 36px), 600px);
  padding-top: clamp(60px, 10svh, 105px);
  text-align: center;
  text-shadow: 0 2px 18px rgba(65, 34, 45, .28);
}
.hero__copy .eyebrow { color: #fff4f1; }
.hero h1 { max-width: 530px; margin: 0 auto; font-size: clamp(3.1rem, 12vw, 6.8rem); font-weight: 400; }
.hero__lead { max-width: 390px; margin: 24px auto 28px; color: rgba(255,255,255,.92); font-size: .98rem; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--light { color: var(--rose-deep); background: rgba(255,255,255,.92); box-shadow: 0 12px 28px rgba(86, 47, 59, .18); }
.button--primary { color: var(--white); background: var(--rose-deep); box-shadow: 0 12px 26px rgba(141, 77, 91, .2); }
.button--outline { color: var(--rose-deep); border-color: var(--rose-deep); background: transparent; }
.button--full { width: 100%; }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; width: 23px; height: 38px; border: 1px solid rgba(255,255,255,.72); border-radius: 999px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: white; transform: translateX(-50%); animation: cue 1.6s infinite; }
@keyframes cue { 0% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 15px); } }

.welcome { position: relative; display: grid; min-height: 65svh; place-items: center; overflow: hidden; text-align: center; background: var(--cream); }
.welcome__mark { margin-bottom: 30px; color: rgba(199,120,134,.25); font-family: var(--serif); font-size: clamp(7rem, 22vw, 13rem); line-height: .65; }
.cloud { position: absolute; width: 140px; height: 35px; border-radius: 999px; background: rgba(217,234,240,.8); opacity: .68; }
.cloud::before, .cloud::after { content: ""; position: absolute; bottom: 0; border-radius: 50%; background: inherit; }
.cloud::before { left: 23px; width: 55px; height: 55px; }
.cloud::after { right: 22px; width: 43px; height: 43px; }
.cloud--one { top: 19%; left: -50px; transform: scale(.7) rotate(-5deg); }
.cloud--two { right: -47px; bottom: 17%; transform: scale(.58) rotate(5deg); }

.teaser { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 8vw, 110px); align-items: center; background: var(--paper); }
.video-frame { width: min(100%, 420px); margin-inline: auto; padding: 9px; border: 1px solid rgba(141,77,91,.22); border-radius: 30px; background: var(--lavender); box-shadow: var(--shadow); }
.video-frame video { width: 100%; aspect-ratio: 9 / 16; border-radius: 21px; background: #eadde6; object-fit: contain; }
.video-frame[hidden] { display: none; }

.details { background: var(--cream); }
.event-card { display: grid; grid-template-columns: minmax(170px, .7fr) 1.3fr; margin-top: 40px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.event-card__date { display: grid; min-height: 300px; place-items: center; align-content: center; padding: 32px 20px; color: var(--rose-deep); background: var(--peach); text-align: center; }
.event-card__date span { font-size: .68rem; font-weight: 800; letter-spacing: .18em; }
.event-card__date strong { margin: 13px 0 8px; font-family: var(--serif); font-size: clamp(6rem, 13vw, 9rem); font-weight: 400; line-height: .72; }
.event-card__content { padding: clamp(30px, 5vw, 60px); }
.detail-label { margin: 0 0 16px; color: var(--rose-deep); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.event-card h3 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(1.95rem, 5vw, 4.6rem); font-weight: 400; line-height: 1; }
.event-card__content > p:not(.detail-label):not(.event-reference) { margin-bottom: 28px; color: var(--muted); font-size: 1.05rem; }
.event-reference { margin: 0 0 28px; color: var(--muted); font-size: .82rem; letter-spacing: .03em; }
.event-actions { display: flex; flex-wrap: wrap; gap: 11px; }

.countdown-section { width: 100%; padding: 0; color: var(--white); background: var(--rose-deep); }
.countdown-section__inner { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; padding-block: clamp(70px, 9vw, 120px); }
.countdown-section .eyebrow { color: #f7d4d0; }
.countdown-section h2 { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 8vw, 7rem); font-weight: 400; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 900px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.28); border-bottom: 1px solid rgba(255,255,255,.28); }
.time-unit { padding: 28px 12px; text-align: center; border-right: 1px solid rgba(255,255,255,.2); }
.time-unit:last-child { border-right: 0; }
.time-unit strong { display: block; color: #f9d8d3; font-family: var(--serif); font-size: clamp(2.4rem, 8vw, 6.7rem); font-weight: 400; line-height: .8; }
.time-unit span { display: block; margin-top: 16px; color: rgba(255,255,255,.7); font-size: .65rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.countdown-finished { margin: 30px 0 0; color: #f9d8d3; font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.8rem); }

.rsvp { background: var(--paper); }
.rsvp-card { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(30px, 8vw, 100px); padding: clamp(28px, 5vw, 62px); background: var(--lavender); box-shadow: var(--shadow); }
.rsvp-card__intro h2 { font-size: clamp(3.7rem, 9vw, 7.2rem); }
.rsvp-card__intro > p:last-child { color: var(--muted); }
.rsvp-form { display: grid; gap: 17px; align-content: center; }
.rsvp-form label, .guest-field { display: grid; gap: 7px; }
.rsvp-form label > span, .guest-field legend { padding: 0; font-size: .76rem; font-weight: 800; letter-spacing: .03em; }
.rsvp-form input, .rsvp-form select { width: 100%; min-height: 51px; padding: 12px 14px; color: var(--ink); border: 1px solid rgba(67,55,58,.22); border-radius: 10px; outline: none; background: rgba(255,255,255,.75); transition: border-color .18s ease, box-shadow .18s ease; }
.rsvp-form input:focus, .rsvp-form select:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(199,120,134,.15); }
.guest-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.guest-field[hidden] { display: none; }
.stepper { display: grid; grid-template-columns: 45px minmax(0, 1fr) 45px; gap: 8px; }
.stepper button { min-height: 49px; color: var(--rose-deep); border: 1px solid var(--rose-deep); border-radius: 50%; cursor: pointer; background: transparent; font-size: 1.3rem; }
.stepper input { text-align: center; font-weight: 800; }
.stepper input[type=number] { appearance: textfield; -moz-appearance: textfield; }
.stepper input[type=number]::-webkit-inner-spin-button, .stepper input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field-error { display: none; margin: 0; color: #a63e49; font-size: .75rem; font-weight: 700; line-height: 1.35; }
.field-error.is-visible { display: block; }
.rsvp-form [aria-invalid="true"] { border-color: #a63e49; box-shadow: 0 0 0 3px rgba(166,62,73,.14); }

.closing { position: relative; display: flex; min-height: min(78svh, 760px); align-items: flex-end; isolation: isolate; overflow: hidden; background: var(--peach); }
.closing__visual, .closing__veil { position: absolute; inset: 0; }
.closing__visual { z-index: -2; }
.closing__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 72%; }
.closing__veil { z-index: -1; background: linear-gradient(180deg, rgba(67,55,58,.02) 24%, rgba(67,55,58,.82) 100%); }
.closing__content { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; padding-block: 80px 74px; color: var(--white); }
.closing__content .eyebrow { color: #f8e1db; }
.closing__content h2 { margin: 0; font-family: var(--serif); font-size: clamp(4.7rem, 13vw, 10.5rem); font-weight: 400; line-height: .78; }
.closing__content h2 span { color: #f6c9c7; }
.closing__content > p:last-child { margin: 26px 0 0; font-size: .78rem; font-weight: 800; letter-spacing: .2em; }
.closing__content i { color: #f6c9c7; font-style: normal; }

.footer { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; padding: 30px 0 calc(50px + env(safe-area-inset-bottom)); text-align: center; }
.ronda-signature { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-decoration: none; }
.ronda-signature strong { color: var(--rose-deep); letter-spacing: .15em; }
.floating-cta { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 20; display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 13px 20px; color: var(--white); border-radius: 999px; background: var(--rose-deep); box-shadow: 0 16px 34px rgba(141,77,91,.28); font-size: .8rem; font-weight: 800; text-decoration: none; opacity: 0; pointer-events: none; transform: translateY(18px); transition: opacity .2s ease, transform .2s ease; }
.floating-cta.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.toast { position: fixed; right: 18px; bottom: 80px; z-index: 30; max-width: calc(100% - 36px); padding: 12px 16px; color: var(--white); border-radius: 12px; background: rgba(67,55,58,.95); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .teaser { grid-template-columns: 1fr 1fr; gap: 30px; }
  .rsvp-card { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 680px) {
  .section { width: min(calc(100% - 28px), var(--max)); padding-block: 65px; }
  .hero { min-height: 100svh; }
  .hero__copy { width: min(calc(100% - 28px), 520px); padding-top: 62px; }
  .hero h1 { font-size: clamp(3rem, 12.5vw, 5rem); }
  .hero__lead { font-size: .9rem; }
  .hero__copy .button { width: 100%; }
  .welcome { min-height: 62svh; }
  .welcome__mark { margin-bottom: 22px; }
  .teaser { display: block; }
  .teaser__heading { margin-bottom: 32px; }
  .video-frame { width: min(100%, 430px); }
  .event-card { grid-template-columns: 1fr; }
  .event-card__date { min-height: 170px; padding: 27px 20px; }
  .event-card__date strong { font-size: clamp(5.8rem, 23vw, 8rem); }
  .event-card__content { padding: 30px 24px; }
  .event-actions { flex-direction: column; }
  .event-actions .button { width: 100%; }
  .countdown-section__inner { width: min(calc(100% - 28px), var(--max)); }
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .time-unit { padding: 24px 6px; }
  .time-unit:nth-child(2) { border-right: 0; }
  .time-unit:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.2); }
  .time-unit span { font-size: .58rem; }
  .rsvp-card { padding: 28px 20px; }
  .closing__content { width: min(calc(100% - 28px), var(--max)); }
  .footer { width: min(calc(100% - 28px), var(--max)); }
  .floating-cta { right: 14px; left: 14px; }
  .toast { right: 14px; left: 14px; max-width: none; text-align: center; }
}
@media (max-width: 430px) {
  .hero__copy { padding-top: 55px; }
  .hero h1 { font-size: clamp(2.75rem, 12.7vw, 4.3rem); }
  .hero__lead { margin-block: 19px 23px; }
  .section-heading h2 { font-size: clamp(2.65rem, 13.5vw, 4.7rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
