/* Tu & Ân · pine forest, mist and paper. Mobile first; desktop shows the same column, wider. */
:root {
  --ink: #2b2a22;
  --muted: #6d6a5c;
  --paper: #f7efdc;
  --paper-2: #fbf6ea;
  --paper-edge: #e6d6b2;
  --pine: #2f5d4a;
  --pine-soft: #dfe7dc;
  --mimosa: #d9a91a;
  --mimosa-soft: #f6e7b4;
  --rod: #c9b48a;
  --rod-dark: #9c875e;
  --danger: #a3402c;
  --f-display: "Newsreader", Georgia, serif;
  --f-body: "Lora", Georgia, serif;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: #1b1d18; color: var(--ink); font: 16px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; height: 100%; }
button, input, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--mimosa); outline-offset: 3px; }

/* ---------- intro stage ---------- */
/* Annie's scene and the invitation are two full-width sections of one page, joined by a band of mist */
.stage { position: relative; height: 100svh; overflow: hidden; background: #d8d2bf; z-index: 1; }
.frame { position: absolute; inset: 0; }
.frame video, .frame .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame video { opacity: 0; transition: opacity .3s ease-out; }
.frame video.on { opacity: 1; }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26svh; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgb(226 224 210 / 0), rgb(226 224 210 / .12) 35%, rgb(226 224 210 / .45) 70%, rgb(226 224 210 / .8)); }
.tapzone { position: absolute; inset: 0; z-index: 2; background: none; border: 0; cursor: pointer; }
.tapzone:disabled { cursor: default; }
.pill { position: absolute; padding: 8px 14px; border-radius: 999px; border: 0; font: 500 12px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; }
.skip { top: calc(14px + env(safe-area-inset-top, 0px)); left: 14px; background: rgb(0 0 0 / .4); color: #fff; cursor: pointer; z-index: 3; }
.stage.opened .skip { display: none; }
.hint { left: 50%; bottom: 9%; translate: -50% 0; background: rgb(255 252 242 / .9); color: var(--ink);
  font: italic 400 17px/1 var(--f-display); letter-spacing: .02em; text-transform: none; padding: 12px 20px;
  box-shadow: 0 6px 20px rgb(0 0 0 / .15); z-index: 2; opacity: 0; transition: opacity .5s; pointer-events: none; white-space: nowrap; }
.hint.on { opacity: 1; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { translate: -50% -5px; } }

/* hero: the painted venue loops behind the names; its top dissolves out of the same mist */
.hero { position: relative; height: 100svh; display: grid; place-items: center; color: #fffaf0; overflow: hidden;
  background: #cfcbb8 url("media/hero-poster.jpg?v=2") center / cover; }
@media (min-aspect-ratio: 1/1) {
  .hero { background-image: url("media/hero-poster-wide.jpg?v=3"), url("media/hero-poster.jpg?v=2"); }
}
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 34svh; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgb(226 224 210 / .8), rgb(226 224 210 / .45) 30%, rgb(226 224 210 / .12) 65%, rgb(226 224 210 / 0)); }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0;
  background: radial-gradient(ellipse 95% 50% at 50% 50%, rgb(22 27 20 / .62), rgb(22 27 20 / .25) 70%, rgb(22 27 20 / .12)),
              linear-gradient(180deg, rgb(20 24 18 / .3), transparent 30%, transparent 70%, rgb(20 24 18 / .4)); }
.hero-text { position: relative; z-index: 3; text-align: center; display: grid; justify-items: center; gap: .55rem; padding: 0 8%;
  text-shadow: 0 1px 12px rgb(0 0 0 / .45); }
.hero-text > * { margin: 0; opacity: 0; translate: 0 10px; transition: opacity .9s ease, translate .9s ease; }
.hero.on .hero-text > * { opacity: 1; translate: 0 0; transition-delay: calc(1s + var(--i, 0) * .22s); }
/* the guest's own name is the first thing they read: its own line, large and upright */
.h-greet { display: grid; justify-items: center; gap: .15rem; }
.h-invite { font: italic 400 clamp(1.05rem, 4.4vw, 1.3rem)/1.3 var(--f-display); opacity: .92; }
.h-guest { font: 500 clamp(1.75rem, 8vw, 2.6rem)/1.15 var(--f-display); letter-spacing: .01em; color: #fff8e6;
  text-wrap: balance; max-width: 18ch; padding-bottom: .3rem; border-bottom: 1px solid rgb(246 231 180 / .55); }
.h-status { display: inline-block; padding: 8px 18px; border-radius: 999px; background: rgb(255 250 240 / .18); border: 1px solid rgb(255 250 240 / .5);
  color: #fffaf0; text-decoration: none; font: 500 clamp(.92rem, 3.7vw, 1.02rem)/1.35 var(--f-body); letter-spacing: .02em; backdrop-filter: blur(4px);
  margin-top: .35rem !important; }
.h-status span { white-space: nowrap; }
.h-status.accept { background: rgb(47 93 74 / .55); }
.h-status[hidden] { display: none; }
.h-eyebrow { font: 500 clamp(.82rem, 3.4vw, .92rem)/1.4 var(--f-body); letter-spacing: .32em; text-transform: uppercase; margin-top: .4rem !important; }
.h-names { font: 400 clamp(3.6rem, 17vw, 5.4rem)/1.1 "Great Vibes", "Newsreader", cursive; margin: .1em 0 .05em !important; }
.h-names .amp { font-size: .55em; padding: 0 .08em; color: #f6e7b4; }
.h-date { font: italic 400 clamp(1.3rem, 5.4vw, 1.55rem)/1.3 var(--f-display); }
.h-place { font: 500 clamp(.88rem, 3.6vw, .98rem)/1.4 var(--f-body); letter-spacing: .22em; text-transform: uppercase; }
.h-save { margin-top: 1rem !important; background: none; border: 0; border-bottom: 1px solid currentColor; color: inherit; cursor: pointer;
  font: 500 clamp(.86rem, 3.5vw, .95rem)/1.6 var(--f-body); letter-spacing: .28em; text-transform: uppercase; padding: 6px 2px; }
.h-cue { position: absolute; z-index: 3; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); left: 50%; translate: -50% 0; color: #fffaf0; text-decoration: none;
  font-size: 1.4rem; opacity: 0; transition: opacity 1s 2.6s; animation: nudge 1.8s ease-in-out infinite; }
.hero.on .h-cue { opacity: .85; }
.eyebrow { font: 500 11px/1.4 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.names { font: italic 400 clamp(2.6rem, 11vw, 3.6rem)/1 var(--f-display); margin: .2em 0 .1em; }
.names .amp { color: var(--mimosa); font-size: .7em; padding: 0 .15em; }
@keyframes nudge { 50% { translate: -50% 5px; } }

/* floating controls */
.sound, .lang { position: fixed; z-index: 30; border: 0; cursor: pointer; box-shadow: 0 6px 18px rgb(0 0 0 / .22); }
.sound { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; border-radius: 50%;
  background: var(--pine); color: #fff; display: grid; place-items: center; }
.sound .bars { display: flex; gap: 2px; align-items: end; height: 16px; }
.sound .bars i { width: 3px; background: #fff; border-radius: 1px; height: 30%; }
.sound.playing .bars i { animation: eq .9s ease-in-out infinite; }
.sound.playing .bars i:nth-child(2) { animation-delay: -.3s; } .sound.playing .bars i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 50% { height: 100%; } }
.lang { top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; padding: 8px 12px; border-radius: 999px;
  background: rgb(255 252 242 / .92); color: var(--pine); font: 600 12px/1 var(--f-body); letter-spacing: .12em; }

/* ---------- invitation content ---------- */
main { position: relative; z-index: 1; padding: 0 0 40px; background: #f3ebd7; display: grid; }
/* Each section is its own sheet of a paper suite: a full-width band in its own soft tint, meeting the one above
   at a torn, deckled edge. The content stays in the same centred column. */
main > section, main > footer { --sec-bg: var(--paper); position: relative; background: var(--sec-bg);
  padding: 64px 20px 72px; display: grid; gap: 20px; grid-template-columns: minmax(0, 36rem); justify-content: center; }
main > section + section::before, main > section + footer::before { content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px;
  background: var(--sec-bg); pointer-events: none;
  -webkit-mask: var(--torn) repeat-x 0 0 / 240px 14px; mask: var(--torn) repeat-x 0 0 / 240px 14px; }
main { --torn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 14' preserveAspectRatio='none'%3E%3Cpath d='M0 14V8l9-2 8 3 11-5 10 4 9-3 12 4 8-5 11 3 9-2 10 5 12-4 8 2 11-5 9 4 10-3 12 5 8-4 11 2 9-3 10 4 11-2 32 2V14z'/%3E%3C/svg%3E"); }
/* Only the two creams from Tu's reference video, alternating so each section still reads as its own sheet */
main { --cream-a: #f6eee0; --cream-b: #f3ebd7; }
main > section[aria-labelledby="countdown-title"] { --sec-bg: var(--cream-a); padding-top: 56px; }
main > #story  { --sec-bg: var(--cream-b); }
main > #day    { --sec-bg: var(--cream-a); }
main > #wear   { --sec-bg: var(--cream-b); }
main > #travel { --sec-bg: var(--cream-a); }
main > #faq    { --sec-bg: var(--cream-b); }
main > #rsvp   { --sec-bg: var(--cream-a); }
main > footer  { --sec-bg: var(--cream-b); padding-bottom: 40px; gap: 10px; }
.sec-head { display: grid; justify-items: center; gap: 8px; text-align: center; }
.sec-head svg { width: 64px; height: 22px; color: var(--pine); opacity: .7; }
.ornament { width: auto; height: auto; max-width: min(210px, 58vw); max-height: 132px; object-fit: contain; margin-bottom: 2px; }
h2 { font: italic 400 2.1rem/1.15 var(--f-display); margin: 0; color: var(--pine); text-wrap: balance; }
h3 { font: 500 1.2rem/1.3 var(--f-display); margin: 0; text-wrap: balance; }
p { margin: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.todo { background: linear-gradient(transparent 60%, var(--mimosa-soft) 60%); border-bottom: 1.5px dashed var(--mimosa); color: #6b5410; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px;
  border: 1.5px solid var(--pine); background: var(--pine); color: #fff; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--pine); }
.btn.insta { text-decoration: none; }
.insta-handle { margin-top: .4rem; font-size: .85rem; letter-spacing: .02em; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* countdown */
.sec-sub { font: italic 400 1.08rem/1.4 var(--f-display); text-wrap: balance; margin-top: -4px; }
.countdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.countdown div { background: var(--paper-2); border: 1px solid var(--paper-edge); border-radius: var(--radius); padding: 14px 6px; text-align: center; }
.countdown b { display: block; font: 400 2.2rem/1 var(--f-display); color: var(--pine); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* story timeline: same thread and badges as the program (.program) */
.timeline { --tl: #b4693f; --tl-soft: #f3e2d4; list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 25px; top: 26px; bottom: 26px; width: 1.5px; background: rgb(180 105 63 / .35); }
.timeline li { position: relative; display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; row-gap: 6px; align-items: start; }
.timeline li > * { grid-column: 2; }
.timeline li > .ico { grid-column: 1; grid-row: 1 / span 3; position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%;
  background: var(--tl-soft); border: 1.5px solid rgb(180 105 63 / .55); color: var(--tl); display: grid; place-items: center;
  box-shadow: 0 0 0 5px var(--sec-bg, var(--paper)); }
.timeline .ico svg { width: 22px; height: 22px; }
.timeline li > .when { margin-top: 6px; }
.timeline .when { font: 600 .82rem/1.2 var(--f-body); letter-spacing: .1em; color: var(--tl); }
.polaroid { background: #fff; padding: 8px 8px 22px; box-shadow: 0 8px 22px rgb(60 50 20 / .14); border-radius: 3px; width: min(78%, 300px); rotate: -2deg; margin-top: 6px; }
.timeline li:nth-child(even) .polaroid { rotate: 2deg; justify-self: end; }
.polaroid img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 90vh; }
.lightbox::backdrop { background: rgb(20 22 18 / .88); }
.lightbox img { max-height: 86vh; width: auto; margin: auto; border-radius: 4px; }
.lightbox .close { position: fixed; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; font-size: 24px; cursor: pointer; }

/* the day */
.card { background: var(--paper-2); border: 1px solid var(--paper-edge); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; }
/* Details card, after the planner's design: optional polaroid, a small label, the place, then icon rows */
.venue { text-align: left; gap: 10px; padding: 26px 24px; }
.venue .venue-art { justify-self: center; width: min(88%, 340px); rotate: -1.5deg; margin: 0 0 10px; }
.venue .venue-art img { aspect-ratio: 4 / 3; }
.venue .venue-label { font: 400 1.05rem/1.3 var(--f-display); color: var(--muted); letter-spacing: .02em; margin: 0; }
.venue .name { font: 500 1.35rem/1.25 var(--f-display); margin: 0 0 4px; }
.venue .facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.venue .facts li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: center; }
.venue .facts svg { width: 20px; height: 20px; color: #b4693f; }
.venue .venue-note { margin: 2px 0 4px; }
.venue #ics { width: 100%; margin-top: 8px; border-color: #b4693f; color: #b4693f; }
.venue #ics svg { width: 18px; height: 18px; }
/* the program is a second header inside "Thông tin ngày vui": same look as the section headers, with room above */
.sub-section { display: grid; gap: 20px; margin-top: 40px; }
.program-day { font: 600 .78rem/1.3 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--mimosa); margin: 14px 0 2px; }
.program { --tl: #b4693f; --tl-soft: #f3e2d4; list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 26px; position: relative; }
/* the thread: one thin line through the centre of every icon */
.program::before { content: ""; position: absolute; left: 25px; top: 26px; bottom: 26px; width: 1.5px; background: rgb(180 105 63 / .35); }
.program li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.program .ico { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; background: var(--tl-soft);
  border: 1.5px solid rgb(180 105 63 / .55); color: var(--tl); display: grid; place-items: center; box-shadow: 0 0 0 5px var(--sec-bg, var(--paper)); }
.program .ico svg { width: 22px; height: 22px; }
.program h3 { font: 500 1.22rem/1.3 var(--f-display); margin: 4px 0 2px; }
.program time { display: block; font: 600 .95rem/1.4 var(--f-body); color: var(--tl); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.program p { color: var(--muted); font-size: 1rem; margin-top: 2px; }
/* scroll fade-in (app.js revealContent) */
.reveal { opacity: 0; translate: 0 18px; transition: opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; translate: 0 0; }

/* lists */
.palette { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; }
.palette li { display: grid; justify-items: center; gap: 6px; font: 400 .92rem/1.2 var(--f-display); color: var(--muted); }
.palette i { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 3px 10px rgb(60 50 20 / .18); }
.travel-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.travel-items li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 16px; border: 1px solid var(--paper-edge); border-radius: var(--radius); background: var(--paper-2); }
.travel-items .t-ico { font-size: 1.5rem; line-height: 1.2; text-align: center; }
.travel-items h3 { font: 500 1.1rem/1.3 var(--f-display); margin: 0 0 4px; }
.travel-items p { margin: 0; color: var(--muted); }
.tips { margin: 0; padding-left: 1.1rem; display: grid; gap: 8px; }
.tips li::marker { color: var(--mimosa); }
.faq details { border-bottom: 1px solid var(--paper-edge); padding: 14px 2px; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--mimosa); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 8px; color: var(--muted); }

/* rsvp: a paper reply card in four steps */
#rsvp .sec-head svg { display: none; }
#rsvp h2 { font: 400 clamp(2.6rem, 11vw, 3.4rem)/1.1 "Great Vibes", var(--f-display); color: #4a3a2a; }
/* once the card shows the guest's answer it has its own happy Annie; don't show two */
#rsvp:has(.done) .rsvp-art { display: none; }
.rsvp-art { width: 132px; height: 132px; object-fit: cover; object-position: 50% 38%; border-radius: 50%; margin: 0 auto -6px;
  border: 5px solid #fffaf0; box-shadow: 0 8px 22px rgb(60 50 20 / .15); }
.rsvp-intro { font: italic 400 1.1rem/1.4 var(--f-display); color: #8a6a4a; }
.small { font-size: .88rem; }
.rsvp { --field: #f3e8d4; --field-line: #e3d2b2; --accent: #b4693f; --accent-soft: #f0dccb;
  background: #f6eee1; border-radius: 22px; padding: 26px 20px 22px; box-shadow: 0 14px 40px rgb(60 50 20 / .07); display: grid; gap: 14px; }
.rsvp .dots { display: flex; gap: 8px; justify-content: center; align-items: center; }
.rsvp .dots i { width: 12px; height: 12px; border-radius: 6px; border: 1.5px solid #d3a98a; transition: width .3s, background .3s; }
.rsvp .dots i.past { background: #d3a98a; border-color: #d3a98a; }
.rsvp .dots i.now { width: 34px; background: var(--accent); border-color: var(--accent); }
.rsvp .step-label { text-align: center; font: 500 .8rem/1.3 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: #8a5f3e; margin: 4px 0 2px; }
.rsvp .step-body { display: grid; gap: 12px; }
.rsvp .q-label, .rsvp label.field { font: 500 1rem/1.3 var(--f-display); color: #4a3a2a; margin: 6px 0 0; }
.rsvp label.field { display: grid; gap: 8px; }
.rsvp input[type=text], .rsvp input[type=tel], .rsvp input[type=email], .rsvp textarea, .rsvp select {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--field-line); background: var(--field); color: var(--ink);
  font: 400 1rem/1.4 var(--f-display); appearance: none; }
.rsvp input::placeholder, .rsvp textarea::placeholder { color: #a8957a; }
.rsvp textarea { min-height: 140px; resize: vertical; }
.rsvp input:focus, .rsvp textarea:focus, .rsvp select:focus { outline: none; border-color: var(--accent); }
.rsvp .select { position: relative; }
.rsvp .select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid #8a6a4a; border-bottom: 1.5px solid #8a6a4a; translate: 0 -70%; rotate: 45deg; pointer-events: none; }
.attend-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.attend { display: grid; justify-items: center; gap: 6px; padding: 16px 6px; border-radius: 12px; border: 1.5px solid var(--field-line); background: var(--field);
  font: 400 .98rem/1.2 var(--f-display); color: #4a3a2a; cursor: pointer; }
.attend .ico { font-size: 1.2rem; color: #8a7a66; }
.attend.on { border-color: var(--accent); background: var(--accent-soft); }
.attend.on .ico { color: var(--accent); }
.attend-row.two { grid-template-columns: repeat(2, 1fr); }
.attend-row.two .attend { padding: 13px 8px; }
.attend-col { display: grid; gap: 12px; }
.attend.attend-choice { grid-auto-flow: column; justify-content: center; align-items: center; gap: 12px; padding: 20px 14px; font-size: 1.1rem; }
.attend.attend-choice .ico { font-size: 1.25rem; }
.attend.decline-opt { grid-auto-flow: column; justify-content: center; align-items: center; gap: 10px; padding: 13px 12px; margin-top: 2px; text-align: left; }
.rsvp .sub-block { display: grid; gap: 10px; padding: 14px; border-radius: 12px; background: #f0e3d4; }
.rsvp fieldset.person { border: 1px solid var(--field-line); border-radius: 12px; padding: 10px 12px 12px; margin: 0; display: grid; gap: 8px; }
.rsvp fieldset.person legend { font: 500 .95rem/1.2 var(--f-display); color: #8a5f3e; padding: 0 6px; }
.admin-banner { margin: 0; padding: 8px 12px; border-radius: 10px; background: #2f5d4a; color: #fff; text-align: center; font: 500 .9rem/1.3 var(--f-body); }
.rsvp .change-note { margin: -4px 2px 0; }
.rsvp .leg-label { font: 500 .92rem/1.2 var(--f-display); color: #6d5a44; margin-top: 4px; }
.rsvp .leg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 8px; }
.rsvp .leg input[type=text] { grid-column: 1 / -1; }
.rsvp input[type=time] { width: 100%; padding: 12px 8px; border-radius: 12px; border: 1.5px solid var(--field-line); background: var(--field); color: var(--ink);
  font: 400 1rem/1.4 var(--f-display); min-width: 0; }
.rsvp .per-person { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 10px; align-items: center; }
.rsvp .per-person > span { font: 500 1rem/1.3 var(--f-display); overflow-wrap: anywhere; }
.rsvp .sent-at { margin: -4px 0 0; }
.event-list { display: grid; gap: 10px; }
.event { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--field-line); background: #f0e3d4; cursor: pointer; }
.event.on { border-color: #d9b99b; }
.event input, .rsvp .check input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.event span { display: grid; gap: 2px; }
.event b { font: 500 1.08rem/1.3 var(--f-display); }
.event small { color: #8a6a4a; font: 400 .92rem/1.3 var(--f-display); }
.rsvp .check { display: flex; gap: 12px; align-items: center; font: 400 1rem/1.3 var(--f-display); cursor: pointer; }
.rsvp .nav { display: flex; gap: 12px; border-top: 1px solid var(--field-line); padding-top: 18px; margin-top: 4px; }
.rsvp .nav .btn { flex: 2; background: var(--accent); border-color: var(--accent); font-family: var(--f-display); font-size: 1.05rem; padding: 14px 18px; }
.rsvp .nav .btn.ghost { flex: 1; background: transparent; color: #4a3a2a; border-color: #d9c4a3; }
.rsvp .error { color: var(--danger); font-size: .9rem; text-align: center; min-height: 1.2em; margin: 0; }
.rsvp .done { text-align: center; display: grid; gap: 14px; justify-items: center; }
.rsvp .done img { width: 150px; height: 150px; object-fit: cover; object-position: 50% 30%; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 8px 22px rgb(60 50 20 / .15); }
.rsvp .done .q { font: italic 400 1.35rem/1.35 var(--f-display); text-wrap: balance; }
.rsvp .done .btn { background: transparent; color: var(--accent); border-color: var(--accent); }
.answers { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; text-align: left; width: 100%; margin: 4px 0; padding: 14px 16px;
  background: #fbf5ea; border: 1px solid var(--field-line); border-radius: 12px; font: 400 1rem/1.4 var(--f-display); }
.answers dt { color: #8a6a4a; font-size: .9rem; padding-top: 1px; }
.answers dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.summary { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font: 400 1.02rem/1.4 var(--f-display); }
.badge { display: inline-block; padding: 1px 10px; border-radius: 999px; font: 500 .82rem/1.6 var(--f-body); }
.badge.accept { background: #e2efe6; color: #2f6b45; } .badge.decline { background: #f5e1dc; color: #a3402c; }
.hp { position: absolute; left: -9999px; }

footer { text-align: center; justify-items: center; }
footer .names { font: italic 400 2.4rem/1 var(--f-display); }

@media (min-width: 720px) {
  /* wider screens: more air inside each paper band, never a gap between them */
  main > section, main > footer { padding-top: 88px; padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero, .hero-text > *, .h-cue { transition-duration: .01s !important; transition-delay: 0s !important; }
  .hint.on, .h-cue, .sound.playing .bars i { animation: none; }
}

/* the line under the optional email field */
.field-hint { margin: -4px 0 0; }
