:root {
  --leaf: #3f6b4f;
  --leaf-deep: #24402f;
  --blossom: #fae3e6;
  --cream: #fdfaf2;
  --petal: #d9758b;
  --petal-soft: #f6c9d2;
  --butter: #f3d978;
  --ink: #22312a;
  --muted: #6c7a70;
  --display: "Cormorant Garamond", Georgia, serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 300; margin: 0; line-height: 1; }
h2 { font-size: clamp(2.8rem, 8vw, 5.5rem); letter-spacing: -0.02em; margin-bottom: 1.5rem; }
h2 em { font-style: italic; color: var(--petal); }

.section-no {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  transition: background 0.3s, box-shadow 0.3s;
}
.topbar.scrolled { background: rgba(253, 250, 242, 0.92); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(63, 107, 79, 0.12); }
.mono { font-size: 1.6rem; text-decoration: none; color: var(--leaf); }
.mono i, .footer-mono i { color: var(--petal); }
.topbar nav { display: flex; gap: 2rem; }
.topbar nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
}
.topbar nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--petal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.topbar nav a:hover::after { transform: scaleX(1); }
.pill {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: var(--cream);
  background: var(--leaf);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  transition: background 0.25s;
}
.pill:hover { background: var(--petal); color: var(--leaf-deep); }

@media (max-width: 720px) { .topbar nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 7rem clamp(1.25rem, 6vw, 6rem) 4rem;
  background:
    radial-gradient(circle at 85% 20%, var(--blossom) 0, transparent 45%),
    radial-gradient(circle at 5% 95%, rgba(63, 107, 79, 0.12) 0, transparent 40%),
    var(--cream);
}

.hero-label {
  border: 1.5px solid var(--leaf);
  outline: 1px solid var(--leaf);
  outline-offset: 6px;
  padding: clamp(1.75rem, 4vw, 3rem);
  text-align: center;
  color: var(--leaf);
  background: var(--cream);
}
.label-line {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 0;
}
.label-line span { color: var(--petal); }
.hero h1 { margin: 1.5rem 0; }
.hero h1 .name {
  display: block;
  font-size: clamp(4rem, 11vw, 8.5rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.hero h1 .amp {
  display: block;
  font-style: italic;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--petal);
  line-height: 1;
  margin: 0.1em 0;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
  border-top: 1px solid rgba(63, 107, 79, 0.25);
}
.hero-meta div { padding-top: 1rem; font-size: 1.05rem; }
.hero-meta div + div { border-left: 1px solid rgba(63, 107, 79, 0.25); }
.hero-meta small {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-art { position: relative; justify-self: center; width: min(440px, 100%); }
.arch {
  aspect-ratio: 3 / 4.2;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  border: 8px solid var(--cream);
  box-shadow: 0 0 0 1.5px var(--leaf), 0 30px 60px -20px rgba(36, 64, 47, 0.45);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

.badge {
  position: absolute;
  width: clamp(110px, 14vw, 150px);
  left: -12%;
  bottom: 8%;
  animation: spin 18s linear infinite;
}
.badge circle { fill: var(--butter); }
.badge text {
  font-family: var(--mono);
  font-size: 15.5px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  fill: var(--leaf-deep);
}
.badge-center {
  position: absolute;
  left: -12%;
  bottom: 8%;
  width: clamp(110px, 14vw, 150px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: var(--leaf-deep);
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--leaf);
  color: var(--petal-soft);
  overflow: hidden;
  padding: 1.1rem 0;
  transform: rotate(-1.5deg) scale(1.03);
  margin-block: -1rem;
  position: relative;
  z-index: 2;
}
.marquee-track { display: flex; width: max-content; animation: scroll 32s linear infinite; }
.marquee span {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-style: italic;
  white-space: nowrap;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Countdown ---------- */
.aging {
  background: var(--leaf-deep);
  color: var(--cream);
  text-align: center;
  padding: clamp(5rem, 10vw, 8rem) 1.25rem clamp(4rem, 8vw, 6rem);
}
.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--petal-soft);
  margin: 0;
}
.kicker.small { color: rgba(253, 250, 242, 0.6); margin-top: 2rem; }
.clock {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1rem, 4vw, 3.5rem);
  margin-top: 2rem;
}
.clock div { display: flex; flex-direction: column; align-items: center; }
.clock span {
  font-size: clamp(3.5rem, 11vw, 7.5rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.clock div:first-child span { color: var(--petal-soft); font-style: italic; }
.clock small {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(253, 250, 242, 0.6);
  margin-top: 0.5rem;
}

/* ---------- Evening ---------- */
.evening {
  background: var(--blossom);
  padding: clamp(5rem, 12vw, 9rem) clamp(1.25rem, 5vw, 3rem);
}
.evening-head { max-width: 1050px; margin: 0 auto 4rem; position: relative; }
.date-big {
  position: absolute;
  right: 0;
  top: 0;
  margin: 0;
  font-size: clamp(3rem, 12vw, 9rem);
  line-height: 1;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--leaf);
  opacity: 0.35;
  pointer-events: none;
}

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 4.5rem;
}
.vine {
  position: absolute;
  left: 1.25rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: rgba(63, 107, 79, 0.15);
}
.vine-fill {
  width: 100%;
  height: 100%;
  background: var(--leaf);
  transform-origin: top;
  transform: scaleY(0);
}
.moment { position: relative; padding-bottom: 3.5rem; }
.moment:last-child { padding-bottom: 0; }
.moment::before {
  content: "";
  position: absolute;
  left: calc(-3.25rem - 9px);
  top: 0.35rem;
  width: 18px;
  height: 18px;
  border-radius: 50% 0 50% 0;
  background: var(--blossom);
  border: 2px solid var(--leaf);
  transform: rotate(45deg);
  transition: background 0.4s;
}
.moment.lit::before { background: var(--petal); }
.moment time {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--leaf);
  font-weight: 700;
}
.moment h3 { font-size: clamp(2rem, 5vw, 3rem); margin: 0.4rem 0 0.6rem; }
.moment p { margin: 0; color: var(--muted); }

.venue {
  max-width: 1050px;
  margin: 6rem auto 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
}
.venue-card {
  background: var(--leaf);
  color: var(--cream);
  padding: clamp(2rem, 5vw, 3.25rem);
  border-radius: 24px 24px 24px 0;
}
.venue-card.alt { background: var(--cream); color: var(--ink); border: 1.5px solid var(--leaf); border-radius: 24px 0 24px 24px; }
.venue-card h3 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.venue-card p { margin: 0 0 1.5rem; }
.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--petal-soft);
  margin-bottom: 1rem !important;
}
.venue-card.alt .tag { color: var(--petal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--leaf-deep);
  background: var(--petal-soft);
  border: 0;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); background: var(--petal); }
.btn-gold { background: var(--leaf); color: var(--cream); }
.btn-gold:hover { background: var(--petal); color: var(--leaf-deep); }

/* ---------- Stay ---------- */
.stay {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
  max-width: 1150px;
  margin-inline: auto;
  padding: clamp(5rem, 12vw, 9rem) clamp(1.25rem, 5vw, 3rem);
}
.ticket {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  border: 1.5px dashed var(--leaf);
  border-radius: 16px;
  max-width: 460px;
  position: relative;
}
.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px dashed var(--leaf);
  transform: translateY(-50%);
}
.ticket::before { left: -12px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -12px; clip-path: inset(0 50% 0 0); }
.ticket-half { flex: 1; text-align: center; padding: 1.25rem 0.5rem; }
.ticket-half small,
.ticket-half span {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticket-half strong { display: block; font-weight: 400; font-size: 2.2rem; color: var(--leaf); line-height: 1.2; }
.ticket-arrow { font-size: 1.6rem; color: var(--petal); }
.fine { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); margin-top: 1rem; }

.note {
  margin: 1.5rem 0 0;
  padding: 0.9rem 1.1rem;
  max-width: 460px;
  font-size: 1rem;
  background: var(--blossom);
  border-left: 3px solid var(--petal);
  border-radius: 0 12px 12px 0;
}
.note strong { font-weight: 500; color: var(--leaf); }

.stay-art { justify-self: center; position: relative; }
.circle-photo {
  width: clamp(230px, 28vw, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  outline: 1.5px solid var(--leaf);
  outline-offset: 12px;
}
.circle-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.stay-art::after {
  content: "✦";
  position: absolute;
  right: -0.5rem;
  top: 0;
  font-size: 2.5rem;
  color: var(--petal);
}

/* ---------- Remy ---------- */
.remy { padding: 0 clamp(1.25rem, 5vw, 3rem) clamp(5rem, 12vw, 9rem); }
.remy-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.remy-photo { width: min(340px, 100%); margin: 1rem auto 0; }
.remy-photo img { object-position: 50% 35%; }

/* ---------- FAQ ---------- */
.faq {
  background: var(--blossom);
  padding: clamp(5rem, 12vw, 9rem) clamp(1.25rem, 5vw, 3rem);
}
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px dashed var(--petal); }
.faq details:first-of-type { border-top: 1px dashed var(--petal); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  color: var(--leaf);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--petal);
  transition: transform 0.3s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--petal); outline-offset: 4px; }
.faq details p { margin: 0 0 1.5rem; color: var(--muted); max-width: 62ch; }
.faq details a { color: var(--leaf); }

/* ---------- Footer ---------- */
.footer {
  background: var(--leaf-deep);
  color: rgba(253, 250, 242, 0.6);
  text-align: center;
  padding: 4rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.footer p { margin: 0; }
.footer-mono {
  font-family: var(--display);
  font-size: 4rem !important;
  letter-spacing: 0 !important;
  color: var(--cream);
  text-transform: none;
  margin-bottom: 0.5rem !important;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s ease; }
.reveal.visible { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 6rem; }
  .hero-art { order: -1; width: min(320px, 80%); }
  .badge, .badge-center { left: -18%; }
  .stay { grid-template-columns: 1fr; }
  .stay-art { order: -1; }
  .venue { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .date-big { position: static; margin-top: -0.5rem; }
  .timeline { padding-left: 3.25rem; }
  .vine { left: 0.75rem; }
  .moment::before { left: calc(-2.5rem - 9px); }
}

/* ---------- Password gate ---------- */
.gate { display: none; }
.locked body { overflow: hidden; }
.locked body > :not(.gate) { visibility: hidden; }
.locked .gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: var(--blossom);
}
.gate-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.gate-mono { font-size: 3rem; color: var(--leaf); margin: 0; line-height: 1; }
.gate-card .section-no { margin: 0; }
.gate-card label { font-size: 1rem; color: var(--ink); }
.gate-card input {
  width: 100%;
  font: inherit;
  text-align: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--leaf);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
}
.gate-card input:focus { outline: 2px solid var(--petal); outline-offset: 2px; }
.gate-card .btn { cursor: pointer; }
.gate-error { min-height: 1.4em; margin: 0; font-family: var(--mono); font-size: 0.8rem; color: var(--petal); }
