:root {
  --paper: #faf8f3;
  --paper-tint: #eef6f4;
  --ink: #2b3a3a;
  --muted: #6b7c7b;
  --teal-deep: #1f5c5c;
  --teal: #2a8a86;
  --turq: #40bfb4;
  --gold: #b8935a;
  --line: #d9e3e0;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --script: "Great Vibes", "Snell Roundhand", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(250, 248, 243, .92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-mark {
  font-family: var(--script); font-size: 28px; line-height: 1;
  color: var(--teal-deep); text-decoration: none;
}
.nav-mark span { color: var(--gold); }
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; color: var(--teal-deep);
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a:focus-visible { border-bottom-color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 1000px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 96px 20px 80px;
  background:
    radial-gradient(60% 50% at 50% 40%, rgba(64, 191, 180, .10), transparent 70%),
    var(--paper);
  overflow: hidden;
}
.hero-inner { position: relative; max-width: 760px; animation: rise 1.2s ease both; }
.heart-line { width: min(260px, 60vw); color: var(--gold); margin-bottom: 8px; }
.eyebrow {
  font-size: 14px; letter-spacing: .34em; text-transform: uppercase; color: var(--muted);
}
.names {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(64px, 15vw, 132px); line-height: 1.05;
  color: var(--teal-deep);
  margin: 14px 0 10px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .18em;
}
.names .amp { color: var(--gold); font-size: .8em; }
.rule {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--gold); font-size: 13px; margin: 26px auto 22px;
}
.rule::before, .rule::after { content: ""; width: 72px; height: 1px; background: var(--gold); opacity: .6; }
.date {
  font-size: clamp(26px, 5vw, 36px); letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-deep); font-weight: 500;
}
.place { color: var(--muted); font-size: 18px; margin-top: 6px; }

.countdown {
  display: inline-grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 34px auto 30px;
}
.countdown div {
  min-width: 72px; padding: 12px 6px 10px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, .6);
}
.countdown b {
  display: block; font-weight: 500; font-size: 32px; line-height: 1.1;
  color: var(--teal-deep); font-variant-numeric: tabular-nums;
}
.countdown span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.countdown.done { display: block; font-family: var(--script); font-size: 40px; color: var(--teal); }

.tagline { font-size: 15px; letter-spacing: .28em; text-transform: uppercase; color: var(--teal-deep); }
.tagline em { letter-spacing: .12em; }

.scroll-cue {
  position: absolute; bottom: 22px; left: 50%; translate: -50% 0;
  color: var(--gold); animation: bob 2.4s ease-in-out infinite;
}

/* ---------- Leaves ---------- */
.leaf { position: absolute; color: var(--teal); pointer-events: none; opacity: .5; }
.leaf-tl { width: 190px; height: 320px; top: -40px; left: -50px; rotate: 140deg; }
.leaf-br { width: 210px; height: 350px; bottom: -70px; right: -50px; rotate: -35deg; }
.leaf-side { width: 150px; height: 250px; top: 60px; right: -50px; rotate: -150deg; opacity: .28; }
.leaf-foot { position: static; width: 60px; height: 100px; rotate: 90deg; color: var(--turq); opacity: .7; margin-bottom: -18px; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 96px 20px; text-align: center; overflow: hidden; }
.section-tint { background: var(--paper-tint); }
.wrap { max-width: 1000px; margin: 0 auto; position: relative; }
.wrap.narrow { max-width: 620px; }
.kicker { font-size: 13px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
h2 {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(48px, 9vw, 72px); line-height: 1.15;
  color: var(--teal-deep); margin: 6px 0 44px;
}
.lede { font-size: 22px; font-style: italic; color: var(--ink); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 36px 24px 32px;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 10px 30px -22px rgba(31, 92, 92, .5);
}
.icon { width: 46px; height: 46px; color: var(--teal); margin-bottom: 14px; }
.card h3 {
  font-size: 14px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--teal-deep);
}
.card-time { font-family: var(--script); font-size: 34px; color: var(--gold); line-height: 1.3; margin: 6px 0 4px; }
.card-main { font-size: 21px; font-weight: 500; line-height: 1.3; }
.card-sub { color: var(--muted); font-size: 17px; margin-top: 4px; }
.btn {
  margin-top: auto; translate: 0 12px;
  display: inline-block; padding: 10px 24px;
  font-family: var(--serif); font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; color: #fff; background: var(--teal-deep);
  border-radius: 999px; transition: background .2s, transform .2s;
}
.card .btn { margin-top: 22px; translate: none; }
.btn:hover, .btn:focus-visible { background: var(--teal); transform: translateY(-1px); }

/* ---------- Motif ---------- */
.swatches { display: flex; justify-content: center; margin: -8px 0 30px; }
.swatches i {
  width: clamp(48px, 13vw, 72px); aspect-ratio: 1; border-radius: 50%;
  border: 3px solid var(--paper-tint); margin-left: -12px;
  box-shadow: 0 6px 16px -8px rgba(31, 92, 92, .6);
}
.swatches i:first-child { margin-left: 0; }

/* ---------- Entourage ---------- */
.ent { margin: 0 auto 46px; max-width: 760px; }
.ent-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; max-width: 760px; margin: 0 auto; }
.ent h3 {
  font-size: 14px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--teal-deep); margin-bottom: 12px;
}
.ent h3::after { content: ""; display: block; width: 36px; height: 1px; background: var(--gold); margin: 10px auto 0; }
.ent li, .ent p { font-size: 21px; line-height: 1.55; }
.ent .tba { font-style: italic; color: var(--muted); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.cols .wide { grid-column: 1 / -1; }
.ent-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ent h4 { font-family: var(--script); font-weight: 400; font-size: 30px; color: var(--gold); line-height: 1.2; }

/* ---------- RSVP ---------- */
.rsvp {
  text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 32px 28px; box-shadow: 0 10px 30px -22px rgba(31, 92, 92, .5);
}
.field { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.field > label, .field > legend {
  display: block; padding: 0; margin-bottom: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-deep);
}
.field i { font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--muted); font-size: 15px; }
.rsvp input[type="text"], .rsvp select, .rsvp textarea {
  width: 100%; padding: 11px 14px;
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px;
}
.rsvp textarea { resize: vertical; }
.rsvp input:focus-visible, .rsvp select:focus-visible, .rsvp textarea:focus-visible {
  outline: 2px solid var(--turq); outline-offset: 1px; border-color: var(--turq);
}
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: block; text-align: center; padding: 12px 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  transition: background .2s, color .2s, border-color .2s;
}
.choice input:checked + span { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--turq); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rsvp-status { min-height: 1.6em; font-size: 17px; color: #a2413a; margin-bottom: 8px; }
.rsvp .btn { display: block; width: 100%; border: 0; cursor: pointer; padding: 14px 24px; }
.rsvp .btn:disabled { opacity: .6; cursor: progress; transform: none; }
.rsvp-thanks { outline: none; }
.thanks-script { font-family: var(--script); font-size: 54px; color: var(--teal); line-height: 1.2; }

/* ---------- Footer ---------- */
.footer {
  background: var(--teal-deep); color: #eaf5f3; text-align: center;
  padding: 64px 20px 56px;
}
.footer-script { font-family: var(--script); font-size: clamp(38px, 8vw, 56px); line-height: 1.2; }
.footer-caps { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; opacity: .8; margin-top: 10px; }
.footer-mark { font-family: var(--script); font-size: 34px; margin-top: 40px; }
.footer-mark span { color: var(--gold); font-family: var(--serif); font-size: 18px; vertical-align: middle; margin: 0 6px; }
.footer-date { font-size: 13px; letter-spacing: .4em; opacity: .7; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes bob { 50% { transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-inner, .scroll-cue { animation: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  body { font-size: 18px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 10px; letter-spacing: .12em; }
  .rsvp { padding: 26px 18px; }
  .choice { grid-template-columns: 1fr; }
  .section { padding: 72px 16px; }
  .hero { padding-inline: 16px; }
  .names { flex-direction: column; align-items: center; line-height: .95; }
  .eyebrow { font-size: 12px; letter-spacing: .26em; }
  .tagline { font-size: 13px; letter-spacing: .2em; }
  .countdown div { min-width: 0; width: 19vw; max-width: 76px; }
  .countdown b { font-size: 26px; }
  .countdown span { font-size: 9px; letter-spacing: .12em; }
  .leaf-tl { width: 130px; height: 220px; }
  .leaf-br { width: 140px; height: 240px; }
  .leaf-side { display: none; }
  .ent-pair, .cols, .ent-trio { grid-template-columns: 1fr; }
  .ent-pair .ent { margin-bottom: 40px; }
  .ent-trio { gap: 14px; }
}
