:root {
  --white: #ffffff;
  --blush: #fdf2f5;
  --petal: #fce8ee;
  --sakura: #f7c6d3;
  --rose: #e58fa9;
  --rose-deep: #c2557a;
  --ink: #4a3540;
  --muted: #8a7680;
  --line: #f3d6df;
  --bark: #8c6a5d;
  --whatsapp: #1fa855;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --script: "Great Vibes", "Snell Roundhand", cursive;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 18px;
  --shadow: 0 18px 40px -24px rgba(194, 85, 122, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rose-deep); }
[hidden] { display: none !important; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(243, 214, 223, .7);
}
.nav-mark { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: .04em; }
.nav-mark span { font-family: var(--script); color: var(--rose); font-weight: 400; }
.nav-links { display: flex; gap: clamp(10px, 2.4vw, 28px); align-items: center; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.nav-links a:hover { color: var(--rose-deep); }
.nav-cta { padding: 6px 16px; border-radius: 999px; background: var(--rose); color: #fff !important; }
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 110px 20px 70px;
  text-align: center;
  background:
    radial-gradient(1200px 600px at 50% 110%, var(--petal), transparent 70%),
    radial-gradient(600px 400px at 0% 0%, #fff5f8, transparent 70%),
    var(--white);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.greeting { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--rose-deep); margin: 0 0 6px; }
.eyebrow { text-transform: uppercase; letter-spacing: .32em; font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.names {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(64px, 14vw, 132px); line-height: 1.05;
  color: var(--ink); margin: 0;
}
.names .amp { color: var(--rose); font-size: .7em; padding: 0 .12em; }
.lede { font-family: var(--serif); font-size: 24px; font-style: italic; margin: 4px 0 18px; color: var(--muted); }
.date-line {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; align-items: center;
  font-family: var(--serif); font-size: clamp(20px, 3.4vw, 26px); font-weight: 500;
  padding: 10px 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.date-line .dot { color: var(--rose); font-size: .8em; }
#venue-short:empty, #venue-short:empty + .dot { display: none; }

.countdown { display: flex; justify-content: center; gap: clamp(10px, 3vw, 22px); margin: 30px 0 30px; }
.countdown div {
  width: clamp(66px, 18vw, 92px); padding: 12px 0 8px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
}
.countdown b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 6vw, 40px); line-height: 1; color: var(--rose-deep); }
.countdown span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.branch { position: absolute; width: clamp(150px, 24vw, 320px); z-index: 1; opacity: .95; }
.branch-left { top: 60px; left: -20px; }
.branch-right { bottom: 10px; right: -20px; transform: rotate(180deg); }
@media (max-width: 640px) {
  .branch { opacity: .55; }
}

/* falling petals */
.petals { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.petal {
  position: absolute; top: -40px;
  width: 14px; height: 18px;
  background: linear-gradient(135deg, #fbd3de, var(--rose));
  border-radius: 150% 0 150% 0;
  opacity: .75;
  animation: fall linear infinite;
}
@keyframes fall {
  0%   { transform: translate(0, -40px) rotate(0deg); }
  50%  { transform: translate(60px, 50vh) rotate(200deg); }
  100% { transform: translate(-20px, 105vh) rotate(420deg); }
}
@media (prefers-reduced-motion: reduce) {
  .petals { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 28px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--rose); color: #fff; box-shadow: 0 10px 24px -12px var(--rose-deep); }
.btn-primary:hover { background: var(--rose-deep); }
.btn-ghost { background: #fff; color: var(--rose-deep); border-color: var(--sakura); }
.btn-ghost:hover { background: var(--blush); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #178b45; }
.btn-whatsapp svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- sections ---------- */
.section { max-width: 980px; margin: 0 auto; padding: clamp(64px, 10vw, 110px) 20px 0; text-align: center; }
.kicker { text-transform: uppercase; letter-spacing: .3em; font-size: 12px; color: var(--rose-deep); margin: 0; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 6vw, 54px); margin: 4px 0 10px; line-height: 1.1; }
h3 { font-family: var(--serif); font-weight: 600; font-size: 28px; margin: 0 0 6px; line-height: 1.2; }
.sub { max-width: 620px; margin: 0 auto 34px; color: var(--muted); }
.muted { color: var(--muted); }

.intro p { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 28px); font-style: italic; max-width: 680px; margin: 16px auto 0; line-height: 1.5; }
.divider { width: 120px; height: 24px; }
.divider line { stroke: var(--sakura); stroke-width: 1.2; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 600px; text-align: left; position: relative; }
.timeline::before { content: ""; position: absolute; left: 104px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 30px; padding: 12px 0; position: relative; }
.timeline li::after {
  content: ""; position: absolute; left: 98px; top: 22px;
  width: 13px; height: 13px; border-radius: 50%; background: var(--sakura); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--rose);
}
.timeline time { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--rose-deep); text-align: right; padding-top: 2px; }
.timeline strong { font-family: var(--serif); font-weight: 600; font-size: 22px; display: block; line-height: 1.3; }
.timeline span { color: var(--muted); font-size: 15px; }
.calendar-actions { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* venue */
.venue-card {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 0; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow);
}
.venue-text { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background: var(--blush); }
.address { white-space: pre-line; margin: 0 0 10px; }
.venue-text .btn { margin-top: 14px; }
.map-wrap { min-height: 340px; background: var(--petal); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
@media (max-width: 760px) { .venue-card { grid-template-columns: 1fr; } }

/* colour theme */
.swatches { display: flex; gap: clamp(14px, 4vw, 34px); justify-content: center; flex-wrap: wrap; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 120px; }
.swatch i { width: 96px; height: 96px; border-radius: 50%; border: 1px solid var(--line); box-shadow: var(--shadow); }
.swatch b { font-weight: 500; font-size: 15px; }
.swatch small { color: var(--muted); font-size: 12px; letter-spacing: .08em; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery-empty {
  grid-column: 1 / -1; padding: 50px 20px; border: 1px dashed var(--sakura); border-radius: var(--radius);
  background: var(--blush); color: var(--muted);
}
.gallery-empty svg { width: 46px; height: 46px; display: block; margin: 0 auto 8px; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(40, 20, 30, .88); display: grid; place-items: center; padding: 20px; }
.lightbox img { max-height: 90vh; max-width: 92vw; border-radius: 10px; }
.lightbox-close { position: absolute; top: 14px; right: 18px; font-size: 40px; color: #fff; background: none; border: 0; cursor: pointer; line-height: 1; }

/* rsvp */
.rsvp-card {
  max-width: 560px; margin: 0 auto; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 38px); box-shadow: var(--shadow);
}
.field { display: block; margin: 0 0 18px; border: 0; padding: 0; }
.field > span, .field legend { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.field em { font-style: normal; color: var(--muted); font-weight: 300; }
.field input:not([type=radio]), .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: 400 16px var(--sans); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; background: var(--blush);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sakura); border-color: var(--rose); background: #fff; }
.hint { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.choice { display: grid; gap: 10px; }
.option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.option:has(input:checked) { border-color: var(--rose); background: var(--blush); }
.option input { accent-color: var(--rose-deep); width: 18px; height: 18px; margin: 0; }
.form-error { color: #b3261e; background: #fdecea; padding: 10px 14px; border-radius: 10px; font-size: 15px; }
.rsvp-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.rsvp-actions .btn { width: 100%; }
.thanks { text-align: center; }
.thanks-flower { width: 64px; height: 64px; }
.link-btn { background: none; border: 0; color: var(--rose-deep); text-decoration: underline; cursor: pointer; font: inherit; margin-top: 6px; }

/* faq + contacts */
.faq { max-width: 680px; margin: 0 auto; text-align: left; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 4px; }
.faq summary { font-family: var(--serif); font-size: 22px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rose); font-family: var(--sans); font-weight: 300; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.contacts { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.contact { background: var(--blush); border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; min-width: 200px; }
.contact b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.contact span { color: var(--muted); font-size: 14px; display: block; }
.contact a { font-size: 15px; margin-right: 12px; }

/* footer */
.footer { margin-top: clamp(70px, 10vw, 120px); padding: 50px 20px 60px; text-align: center; background: linear-gradient(180deg, #fff, var(--petal)); }
.footer-flower { width: 40px; height: 40px; }
.footer .footer-names { font-family: var(--script); font-size: 52px; margin: 0; line-height: 1.2; letter-spacing: 0; color: var(--ink); }
.footer p { margin: 2px 0; color: var(--muted); letter-spacing: .2em; }
.hashtag { color: var(--rose-deep) !important; letter-spacing: .05em !important; margin-top: 10px !important; }

@media (max-width: 640px) {
  .date-line { flex-direction: column; gap: 0; }
  .date-line .dot { display: none; }
}

/* ---------- share your photos ---------- */
.upload-card { max-width: 620px; margin: 0 auto; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow); }
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; cursor: pointer;
  padding: 34px 20px; border: 2px dashed var(--sakura); border-radius: 16px; background: var(--blush);
  transition: background .15s, border-color .15s;
}
.dropzone:hover, .dropzone.over { background: var(--petal); border-color: var(--rose); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone svg { width: 54px; height: 54px; }
.dropzone b { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--rose-deep); }
.dropzone span { color: var(--muted); font-size: 14px; }
.up-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.up-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.up-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-list small { color: var(--muted); }
.up-list b { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--petal); overflow: hidden; }
.up-list i { display: block; height: 100%; width: 0; background: var(--rose); transition: width .2s; }
.up-list li.done small { color: #2f7a45; }
.up-list li.failed small { color: #b3261e; }
.up-list li.failed i { background: #e9a39d; width: 100%; }

.my-photos { max-width: 980px; margin: 34px auto 0; }
.my-photos h3 { font-size: 24px; }
.my-photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.my-photo { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--petal); }
.my-photo img { width: 100%; height: 100%; object-fit: cover; }
.my-photo .heic { display: grid; place-items: center; height: 100%; font-size: 13px; color: var(--rose-deep); }
.my-photo-del { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }

/* ---------- thank-you card maker ---------- */
.card-maker { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 44px); align-items: start; text-align: left; }
.card-controls { display: grid; gap: 22px; }
.step h4 { margin: 0 0 10px; font-weight: 500; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.step h4 i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; font-size: 14px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.pick { padding: 0; border: 3px solid transparent; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--petal); cursor: pointer; }
.pick img { width: 100%; height: 100%; object-fit: cover; }
.pick.selected { border-color: var(--rose); box-shadow: 0 0 0 2px #fff inset; }
.pick-mono { white-space: nowrap; font-family: var(--script); font-size: 22px; color: var(--ink); background: linear-gradient(#fdf2f5, #f7c6d3); }
.field.range input { width: 100%; accent-color: var(--rose-deep); }
.card-actions { display: flex; flex-direction: column; gap: 10px; }
.card-actions .btn { width: 100%; }
.card-note { margin: 0; }
.card-note.error { color: #b3261e; }
.card-preview canvas { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 24px 50px -28px rgba(194, 85, 122, .55); background: #fff; }
@media (max-width: 760px) {
  .card-maker { grid-template-columns: 1fr; }
  .card-preview { order: -1; max-width: 420px; margin: 0 auto; width: 100%; }
}
