:root {
  --baby: #f8d9e1;
  --baby-soft: #fdeef2;
  --baby-deep: #f1b9c9;
  --blush: #e9a7ba;
  --rose: #b4627c;
  --ink: #6a3d4d;
  --muted: #a07686;
  --paper: #fffafb;
  --line: rgba(180, 98, 124, .22);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background:
    radial-gradient(900px 600px at 10% -5%, #fff 0%, transparent 60%),
    radial-gradient(800px 700px at 100% 30%, var(--baby) 0%, transparent 65%),
    radial-gradient(900px 700px at 0% 85%, var(--baby) 0%, transparent 60%),
    var(--baby-soft);
  background-attachment: fixed;
  overflow-x: hidden;
  min-height: 100%;
}
[hidden] { display: none !important; }
.script { font-family: var(--script); font-weight: 400; color: var(--rose); }
.eyebrow { font-size: .72rem; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem; font-weight: 400; }

/* floating petals */
.petals { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.petal {
  position: absolute; top: -8%;
  width: 12px; height: 16px;
  background: linear-gradient(135deg, #fbd0dc, #efa9bd);
  border-radius: 80% 0 80% 0;
  opacity: .55;
  animation: fall linear infinite;
  will-change: transform;
}
@keyframes fall {
  0%   { transform: translate3d(0, -10vh, 0) rotate(0deg); }
  50%  { transform: translate3d(var(--drift, 40px), 55vh, 0) rotate(200deg); }
  100% { transform: translate3d(calc(var(--drift, 40px) * -.6), 112vh, 0) rotate(420deg); }
}

/* hero */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 1.25rem;
  text-align: center;
}
.frame {
  position: relative;
  width: min(560px, 100%);
  padding: 3.2rem 1.6rem 2.8rem;
  background: rgba(255, 250, 251, .72);
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: -9px;
  border-radius: 200px 200px 14px 14px;
  box-shadow: 0 30px 70px -35px rgba(180, 98, 124, .45);
  animation: rise 1.1s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.name { margin: 0; line-height: 1; font-weight: 400; }
.name .script { display: block; font-size: clamp(3rem, 12.5vw, 4.6rem); line-height: 1.05; }
.name .surname { display: block; margin-top: .35rem; font-family: var(--serif); font-size: clamp(1.5rem, 6vw, 2rem); letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; color: var(--ink); font-weight: 500; }
.divider { display: flex; align-items: center; justify-content: center; gap: .9rem; margin: 1.6rem auto; width: 70%; color: var(--blush); }
.divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--blush)); }
.divider span:last-child { background: linear-gradient(270deg, transparent, var(--blush)); }
.divider svg { width: 26px; height: 26px; }
.date { font-family: var(--serif); font-size: 1.55rem; letter-spacing: .12em; margin: 0 0 1.6rem; font-weight: 500; }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; max-width: 380px; margin: 0 auto 2rem; }
.countdown div { padding: .7rem .2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.countdown b { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1; font-weight: 600; color: var(--rose); font-variant-numeric: tabular-nums; }
.countdown small { display: block; margin-top: .35rem; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.countdown.today { display: block; font-family: var(--script); font-size: 2rem; color: var(--rose); border: 0; }

.cta, .btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  font-family: var(--sans); font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 500;
  color: #fff; background: linear-gradient(135deg, #e9a7ba, #d98aa3);
  border: 0; border-radius: 999px; padding: 1rem 2rem;
  box-shadow: 0 12px 24px -12px rgba(180, 98, 124, .8);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.cta:hover, .btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(180, 98, 124, .85); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--rose); border: 1px solid var(--blush); box-shadow: none; }
.btn.ghost:hover:not(:disabled) { background: var(--baby-soft); box-shadow: none; }

/* floating blooms */
.bloom { color: var(--baby-deep); }
.hero .bloom { position: absolute; z-index: 0; opacity: .75; }
.b1 { width: 150px; height: 150px; top: 4%; left: -40px; transform: rotate(-12deg); }
.b2 { width: 110px; height: 110px; bottom: 8%; right: -26px; transform: rotate(20deg); color: var(--blush); }
.b3 { width: 70px; height: 70px; top: 22%; right: 6%; transform: rotate(8deg); }

/* rsvp */
.rsvp { position: relative; z-index: 1; padding: 3.5rem 1.25rem 4.5rem; display: flex; justify-content: center; }
.card {
  position: relative; width: min(600px, 100%);
  padding: 3rem 1.6rem 2.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 40px 80px -45px rgba(180, 98, 124, .55);
  text-align: center;
  overflow: hidden;
}
.card .corner { position: absolute; width: 110px; height: 110px; top: -34px; right: -30px; transform: rotate(14deg); opacity: .9; }
.card h2.script { margin: 0 0 1.1rem; font-size: 3.6rem; line-height: 1; }
.lead { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; margin: 0 auto 1.6rem; max-width: 34ch; }

.field { display: block; text-align: left; margin: 0 0 1.1rem; position: relative; }
.field > span { display: block; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; font-weight: 400; }
.field em { text-transform: none; letter-spacing: 0; font-style: italic; font-family: var(--serif); font-size: .95rem; }
input[type="text"], textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px stops iOS zoom */
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink);
  padding: .85rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; outline: none;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
textarea { resize: vertical; min-height: 92px; }
input[type="text"]:focus, textarea:focus { border-color: var(--blush); box-shadow: 0 0 0 4px rgba(233, 167, 186, .25); }
.count { position: absolute; right: .6rem; bottom: -1.15rem; font-size: .68rem; color: var(--muted); }

.status { min-height: 1.4rem; margin: 1rem 0 0; font-size: .9rem; color: var(--muted); }
.status.err { color: #b0415f; }

.results { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .6rem; }
.results button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left;
  font-family: var(--serif); font-size: 1.2rem; color: var(--ink);
  padding: .9rem 1.1rem; background: var(--baby-soft); border: 1px solid var(--line); border-radius: 14px; cursor: pointer;
  transition: background .2s, transform .2s; -webkit-tap-highlight-color: transparent;
}
.results button:hover { background: var(--baby); transform: translateY(-1px); }
.results small { font-family: var(--sans); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--rose); white-space: nowrap; }

.notice { background: var(--baby-soft); border: 1px dashed var(--blush); color: var(--rose); border-radius: 12px; padding: .7rem 1rem; font-size: .88rem; margin: -.6rem 0 1.2rem; }

.bulk { display: flex; justify-content: center; align-items: center; gap: .7rem; margin-bottom: 1rem; color: var(--muted); font-size: .8rem; flex-wrap: wrap; }
.link { background: none; border: 0; padding: .3rem; font: inherit; font-size: .8rem; color: var(--rose); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.members { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .7rem; text-align: left; }
.member { padding: .9rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.member .nm { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; margin-bottom: .6rem; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.choice button {
  font-family: var(--sans); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  padding: .75rem .4rem; border-radius: 10px; cursor: pointer; color: var(--muted);
  background: var(--paper); border: 1px solid var(--line); transition: all .18s ease; -webkit-tap-highlight-color: transparent;
}
.choice button.on-yes { background: linear-gradient(135deg, #e9a7ba, #d98aa3); color: #fff; border-color: transparent; }
.choice button.on-no  { background: #efe6e9; color: #7d6770; border-color: #d9c8ce; }

.progress { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 1.6rem 0 .9rem; }
.actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.actions .btn { flex: 1 1 140px; max-width: 240px; padding-left: 1rem; padding-right: 1rem; }

.done-bloom { width: 70px; height: 70px; margin: 0 auto .4rem; display: block; color: var(--blush); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.view h3.script { margin: 0 0 .6rem; font-size: 2.8rem; line-height: 1.1; }
.done-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .4rem; font-family: var(--serif); font-size: 1.15rem; }
.done-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .9rem; background: var(--baby-soft); border-radius: 10px; text-align: left; }
.done-list em { font-style: normal; font-family: var(--sans); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; align-self: center; color: var(--rose); }
.done-list li.no em { color: var(--muted); }

/* honeypot */
.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.foot { position: relative; z-index: 1; text-align: center; padding: 1rem 1rem 3rem; color: var(--muted); }
.foot .script { font-size: 2rem; margin: 0; }
.foot p:last-child { margin: .2rem 0 0; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; }

@media (max-width: 420px) {
  .frame { padding: 3rem 1rem 2.4rem; border-radius: 160px 160px 14px 14px; }
  .countdown b { font-size: 1.45rem; }
  .card { padding: 2.8rem 1.1rem 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .petal, .done-bloom, .frame { animation: none !important; }
  html { scroll-behavior: auto; }
}
