:root{--bg:#fffefb;--ink:#6b4936;--muted:#927a67;--line:#eee4d6;--sage:#79583c;--font:ui-rounded,'PingFang TC','Microsoft JhengHei',sans-serif}body{font-family:var(--font);background:var(--bg)}h1,h2,h3,.brand,.form-shell h3,.form-intro h2,.timeline time,.quote,#done h3{font-family:var(--font)}header{display:none}.preview{font-size:10px;background:#fff5d8;color:#81674d;padding:4px}.opening{height:250svh;position:relative;background:#fffefb}.stage{height:100svh;position:sticky;top:0;overflow:hidden;isolation:isolate}.opening-copy{position:absolute;top:12%;width:100%;text-align:center;z-index:4;will-change:transform,opacity}.opening-copy p{font-size:clamp(13px,2vw,19px);letter-spacing:.2em;margin:0 0 20px}.opening-copy h1{font-size:clamp(25px,5.5vw,43px);font-weight:500;letter-spacing:.06em;line-height:1.5;margin:0 0 22px}.opening-copy h1 span{font-size:.76em;color:inherit}.opening-copy .opening-date{font-size:clamp(15px,2vw,20px);letter-spacing:.26em}.envelope{position:absolute;width:min(64vw,490px);aspect-ratio:5/3;left:50%;top:47%;transform:translate(-50%,0);perspective:1000px;z-index:3;will-change:transform,opacity}.envelope-back,.envelope-front{position:absolute;inset:0;border-radius:12px;background:#ffe49a}.envelope-front{clip-path:polygon(0 0,50% 58%,100% 0,100% 100%,0 100%);z-index:3;background:#ffe6a1}.letter{position:absolute;inset:12% 8% 5%;border-radius:8px;background:#fffdf6;z-index:1;will-change:transform}.flap{position:absolute;inset:0;clip-path:polygon(0 0,100% 0,50% 60%);background:#f9dc8a;transform-origin:50% 0;z-index:4;backface-visibility:visible;will-change:transform}.seams{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#c79d67;stroke-width:1.3;z-index:5;pointer-events:none}.seal{position:absolute;width:17%;left:41.5%;top:42%;z-index:6;overflow:visible;will-change:transform,opacity}.scroll-hint{position:absolute;bottom:9%;width:100%;text-align:center;letter-spacing:.15em;font-size:12px;z-index:4}.scroll-hint span{display:block;font-size:28px;margin-top:8px;animation:nudge 2s ease-in-out infinite}@keyframes nudge{50%{transform:translateY(6px)}}.final-visual{position:absolute;inset:0;display:grid;place-items:center;z-index:7;background:white;clip-path:circle(0%);pointer-events:none;will-change:clip-path}.visual-wrap{position:relative;width:min(100%,calc(100svh * 1844 / 2304));line-height:0}.visual-wrap img{width:100%;height:auto;display:block}.image-rsvp{position:absolute;left:24.5%;top:83.6%;width:51%;height:8%;border-radius:100px}.image-rsvp:focus-visible{outline:3px solid #7a4d2f;outline-offset:2px}.button{background:#ffe078;color:#60452e;border-radius:99px}.secondary{border-radius:99px}.venue{background:#fff8df}.form-shell{border-radius:24px;box-shadow:none}.choice{border-radius:16px}.guest{border-radius:18px;background:#fffae9}input:not([type=radio]):not([type=checkbox]),textarea,select{border-radius:12px}input[type=radio],input[type=checkbox]{accent-color:#a17c37}footer .brand{font-family:var(--font)}.quote{letter-spacing:2px}.section{scroll-margin-top:15px}.done-flower{color:#dab43e}@media(max-width:500px){.opening-copy{top:15%}.envelope{top:45%;width:78vw}.scroll-hint{bottom:12%}.opening-copy p{margin-bottom:16px}.opening-copy h1{margin-bottom:20px}.preview{font-size:9px}.form-shell{padding:25px 18px}}@media(max-height:500px) and (orientation:landscape){.opening-copy{top:8%;width:50%;left:0}.opening-copy h1{font-size:24px}.envelope{left:75%;top:23%;width:34vw;max-height:55svh}.scroll-hint{width:50%;bottom:10%}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.opening{height:100svh}.opening-copy,.envelope,.scroll-hint{display:none}.final-visual{clip-path:none!important;pointer-events:auto}.scroll-hint span{animation:none}}
@font-face{font-family:WeddingRounded;src:url('assets/rounded.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}:root{--font:WeddingRounded,ui-rounded,'PingFang TC',sans-serif}.opening-copy h1{font-weight:400}.opening-copy{font-family:var(--font)}

/* Responsive invitation: live text, vector decoration and independent illustration. */
.opening{height:calc(225svh + max(100svh,780px))}.stage{height:max(100svh,780px);top:min(0px,calc(100svh - 780px))}.final-visual{background:var(--bg)}
.visual-wrap{width:min(1120px,100%);padding:64px 45px;display:grid;grid-template-columns:1.12fr 1fr;gap:30px;align-items:center;line-height:1.5;position:relative;isolation:isolate}
.couple-art{position:relative;z-index:1}.couple-art img{display:block;width:100%;height:auto;max-height:630px;object-fit:contain}
.invitation-copy{text-align:center;position:relative;z-index:1}.invite-kicker{font-size:11px;letter-spacing:.22em;margin:0 0 25px;color:var(--muted)}
.couple-names{display:flex;align-items:center;justify-content:center;gap:.3em;font-size:clamp(28px,3.5vw,43px);font-weight:400;letter-spacing:.035em;white-space:nowrap;margin:0 0 38px;line-height:1.5}.couple-names .ampersand{font-size:.72em}
.wedding-date{display:block;font-size:23px;letter-spacing:.19em}.date-rule{display:block;width:40px;height:4px;background:#ffdc68;border-radius:5px;margin:18px auto}.wedding-place{font-size:23px;letter-spacing:.12em;margin:0 0 40px}
.hero-rsvp{display:flex;align-items:center;justify-content:center;gap:28px;width:min(100%,350px);margin:0 auto;background:#ffdf68;color:#60432e;border-radius:100px;min-height:64px;padding:16px 30px;font-size:22px;letter-spacing:.17em;text-decoration:none;transition:background .2s,transform .2s;touch-action:manipulation}.hero-rsvp:hover{background:#ffd34d;transform:translateY(-2px)}.hero-rsvp:focus-visible{outline:3px solid #79583c;outline-offset:5px}.hero-rsvp span{font-size:30px;line-height:1}.love-note{font-size:13px;letter-spacing:.11em;margin:24px 0 0}
.decor-flower{position:absolute;display:block;color:#ffdf70;z-index:0;pointer-events:none}.decor-flower svg{display:block;width:100%;height:100%}.flower-1{width:100px;top:0;left:2%;transform:rotate(-12deg)}.flower-2{width:63px;top:7%;right:4%;transform:rotate(18deg)}.flower-3{width:62px;bottom:0;right:5%;transform:rotate(-15deg)}
@media(max-width:760px){.visual-wrap{grid-template-columns:1fr;gap:8px;width:min(560px,100%);padding:24px 25px 32px}.couple-art{width:86%;margin:auto}.couple-art img{height:350px;max-height:none}.invite-kicker{display:none}.couple-names{font-size:clamp(27px,6.7vw,36px);margin-bottom:20px}.wedding-date{font-size:19px}.date-rule{margin:12px auto}.wedding-place{font-size:20px;margin-bottom:24px}.hero-rsvp{min-height:56px;width:min(86%,330px);font-size:20px;padding:12px 22px}.love-note{font-size:11px;margin-top:20px}.flower-1{width:69px;top:20px;left:3%}.flower-2{width:47px;top:220px;right:3%}.flower-3{width:42px;bottom:145px;right:5%}}
@media(max-width:360px){.visual-wrap{padding-left:16px;padding-right:16px}.couple-art img{height:320px}.flower-3{right:2%;width:34px}.couple-names{gap:.2em}}
@media(prefers-reduced-motion:reduce){.opening{height:auto}.stage{position:relative;top:0}.hero-rsvp{transition:none}}
.invitation-copy .couple-names,.invitation-copy .couple-names span{font-family:var(--font);font-size:inherit;letter-spacing:.035em}.invitation-copy .couple-names{font-size:clamp(28px,3.5vw,43px)}.invitation-copy .couple-names .ampersand{font-size:.72em}@media(max-width:900px){.visual-wrap{grid-template-columns:1fr;gap:8px;width:min(560px,100%);padding:24px 25px 32px}.couple-art{width:86%;margin:auto}.couple-art img{height:350px;max-height:none}.invite-kicker{display:none}.invitation-copy .couple-names{font-size:clamp(27px,6.7vw,36px);margin-bottom:20px}.wedding-date{font-size:19px}.date-rule{margin:12px auto}.wedding-place{font-size:20px;margin-bottom:24px}.hero-rsvp{min-height:56px;width:min(86%,330px);font-size:20px;padding:12px 22px}.love-note{font-size:11px;margin-top:20px}.flower-1{width:69px;top:20px;left:3%}.flower-2{width:47px;top:220px;right:3%}.flower-3{width:42px;bottom:145px;right:5%}}
/* Restore the approved vertical invitation at every screen width. */
.visual-wrap{grid-template-columns:1fr;gap:8px;width:min(660px,100%);padding:18px 30px 26px}.couple-art{width:86%;margin:auto}.couple-art img{height:clamp(320px,44svh,440px);max-height:none}.invite-kicker{display:none}.invitation-copy .couple-names{font-size:clamp(27px,5.5vw,38px);margin:0 0 18px}.wedding-date{font-size:21px}.date-rule{margin:12px auto}.wedding-place{font-size:22px;margin-bottom:24px}.hero-rsvp{min-height:56px;width:min(86%,350px);font-size:21px;padding:12px 22px}.love-note{font-size:12px;margin-top:18px}.flower-1{width:75px;top:25px;left:3%}.flower-2{width:49px;top:230px;right:3%}.flower-3{width:44px;bottom:138px;right:5%}#line-field[hidden],#address-field[hidden]{display:none}@media(max-width:500px){.visual-wrap{padding:20px 22px 28px}.couple-art img{height:330px}.wedding-date{font-size:19px}.wedding-place{font-size:20px}.flower-1{width:60px}.flower-2{width:42px}.flower-3{width:36px;right:3%}.love-note{font-size:11px}}

/* Show the CTA only while it is operable; hide instantly on reverse scroll. */
.hero-rsvp{opacity:0;visibility:hidden;pointer-events:none;transition:background .2s,transform .2s}
.hero-rsvp.is-ready{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .22s ease,background .2s,transform .2s}
@media(prefers-reduced-motion:reduce){.hero-rsvp.is-ready{transition:none}}

.event-overview{text-align:center;padding-bottom:20px}.event-cards{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:32px}.event-cards article{border:1px solid var(--line);border-radius:28px;padding:32px 24px;background:#fff9e6}.event-cards h3{font-size:27px;font-weight:400;margin:12px 0}.event-cards .event-time{font-size:22px;line-height:1.6}.event-floor strong{white-space:nowrap}.count-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.count-grid input{width:100%;min-width:0}.count-total{padding:12px 14px;background:#fff9e6;border-radius:12px}#count-error{color:#8a4e32;font-size:13px}@media(max-width:600px){.event-cards{grid-template-columns:1fr;gap:16px}.event-cards article{padding:24px 20px}.count-grid{gap:8px}.count-grid label{font-size:13px}.count-grid input{padding:12px 8px}}

.name-heart{display:inline-block;width:.66em;height:.66em;vertical-align:middle;flex:none;stroke-width:2.2;color:var(--ink)}.opening-copy h1 .name-heart{margin:0 .15em;vertical-align:baseline}.line-icon{width:44px;height:44px;color:var(--ink)}.event-cards article{display:flex;flex-direction:column;align-items:center;padding:30px 24px}.event-cards .line-icon{margin-bottom:18px;background:#fff0bb;border-radius:50%;padding:8px;box-sizing:content-box}.event-cards .eyebrow{margin:0 0 10px;line-height:1.5;min-height:18px}.event-cards h3{margin:0 0 22px}.event-times{display:grid;gap:8px}.event-times p{display:grid;grid-template-columns:80px 110px;text-align:left;gap:14px;align-items:baseline;margin:0;font-size:20px;line-height:1.6}.event-times time{letter-spacing:.04em}.event-times span{font-size:18px}.event-cards .event-floor{margin:24px 0 0;font-size:15px;line-height:1.8}.timeline article{align-items:flex-start}.timeline .flow-location{font-size:13px;letter-spacing:.08em;color:var(--muted);margin:8px 0 0}.timeline .flow-note{margin:10px 0 0;line-height:1.8}.reminder-cards{display:grid;grid-template-columns:1fr 1fr;gap:20px;text-align:left}.reminder-cards article{background:#fffdf5;border:1px solid #ead9af;border-radius:22px;padding:26px}.reminder-cards h3{display:flex;align-items:center;gap:12px;font-size:19px;margin:0 0 18px}.reminder-cards .line-icon{width:28px;height:28px;flex:none}.venue-notes.reminder-cards p{margin:0;line-height:1.9}.reminder-cards ul{margin:0;padding-left:1.2em;line-height:1.9;font-size:14px}.reminder-cards li+li{margin-top:10px}.reminder-cards strong{font-size:1.15em;color:var(--ink)}@media(max-width:650px){.reminder-cards{grid-template-columns:1fr}.reminder-cards article{padding:23px}.event-cards .event-floor{font-size:14px}}

.venue-address{font-size:17px;letter-spacing:.04em}.reminder-cards .parking-card h4{font-size:15px;margin:20px 0 8px}.reminder-cards .parking-card h4:first-of-type{margin-top:0}.venue-notes .parking-card .parking-note{font-size:12px;line-height:1.8;color:var(--muted);margin-top:20px;padding-top:14px;border-top:1px solid var(--line)}.reminder-cards{align-items:start}

/* Venue and RSVP refinements */
.seating-note{display:flex;align-items:center;gap:18px;text-align:left;background:#fff6d9;border-radius:20px;padding:22px 26px;margin-top:24px}.seating-note>.line-icon{flex:0 0 34px;width:34px;height:34px}.seating-note p{margin:5px 0 0;font-size:16px}.seating-note strong{font-weight:600}.map-button{margin:15px auto 0;border-radius:999px}.parking-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;max-width:780px;margin:36px auto 0}.parking-cards article{background:#fffdf7;border:1px solid #eadfc7;border-radius:24px;padding:28px 22px}.parking-cards .line-icon{width:40px;height:40px}.parking-cards h3{font-size:21px;margin:12px 0}.parking-cards p{font-size:16px;margin:6px 0}.venue>.parking-note{max-width:780px;margin:22px auto 0;font-size:14px;color:var(--muted)}#form .count-grid{grid-template-columns:minmax(0,1fr);gap:14px}#form .count-grid label{margin:0;font-size:16px}#form .count-grid input{width:100%}.line-invite{margin:30px 0;padding:24px 18px;border-radius:22px;background:#fff6d9}#done .line-invite h3{font-size:22px;margin:0 0 12px}#done .line-invite p{font-size:16px}#done .line-invite .muted{font-size:14px}#postal-code{max-width:220px}
@media(max-width:760px){.day>div:first-child{text-align:center}.day>div:first-child .muted{max-width:24em;margin:0 auto 12px}.seating-note{padding:20px;align-items:flex-start}.parking-cards{grid-template-columns:1fr;gap:18px}.seating-note p{font-size:15px}}

/* Clear section boundaries and consistent form hierarchy. */
.event-cards .event-seats{width:100%;border-top:1px solid var(--line);padding-top:18px;margin:20px 0 0;font-size:1rem;line-height:1.8;min-height:4.75rem;text-wrap:balance}
.section-divider{display:flex;align-items:center;justify-content:center;gap:20px;max-width:400px;margin:42px auto 0;padding:0 25px;color:#ffdf70}.section-divider:before,.section-divider:after{content:"";height:1px;flex:1;background:#dfcfba}.section-divider svg{width:30px;height:30px;flex:none}.section-divider+.day{padding-top:52px}
#form h3{font-size:1.5rem;font-weight:700;line-height:1.5;margin:28px 0 24px}#form fieldset{margin:32px 0}#form legend{font-size:1.25rem;font-weight:700;line-height:1.5;margin-bottom:16px;padding:0}#form label,#form .count-grid label{font-size:1rem;font-weight:400;line-height:1.7}#form input,#form textarea,#form select{font-size:1rem}#form small,#form .muted,#form .small-note,#count-error,#error{font-size:.875rem;line-height:1.8;color:#82644d}#form small{font-weight:400}#form fieldset>.muted{margin:0 0 18px}#form .count-grid{gap:20px}#form .choice{margin:12px 0}#form .count-total,#summary{font-size:1rem}#form .count-total{margin-top:20px}#form .actions button{font-size:1rem}.steps{font-size:.875rem}.form-intro>p{font-size:1rem}.form-intro .small-note{font-size:.875rem}
@media(max-width:760px){.section-divider{max-width:300px;margin-top:24px;gap:16px}.section-divider+.day{padding-top:34px}.section-divider svg{width:26px;height:26px}.steps{font-size:.875rem;flex-wrap:wrap;justify-content:flex-start;gap:8px 18px}}

/* Option B: compact, aligned event information. */
.event-cards-compact article{align-items:stretch;text-align:left;padding:26px 30px}.event-heading{display:flex;align-items:center;gap:16px;margin-bottom:24px}.event-cards-compact .event-heading .line-icon{margin:0;width:32px;height:32px;padding:7px;flex:none}.event-cards-compact .event-heading h3{margin:0;font-size:1.5rem;line-height:1.5}.event-details{margin:0;display:grid;gap:12px}.event-details>div{display:grid;grid-template-columns:3em minmax(0,1fr);gap:20px;align-items:baseline}.event-details dt{font-size:1rem;color:var(--muted)}.event-details dd{margin:0;font-size:1.125rem;line-height:1.6;font-variant-numeric:tabular-nums}.event-standing{margin:8px 0 0;padding-left:calc(3rem + 20px);font-size:.875rem;line-height:1.7;color:var(--muted)}
@media(max-width:600px){.event-cards-compact article{padding:24px}.event-heading{margin-bottom:20px}.event-details{gap:10px}}
/* Center the approved information layout beneath the original stacked icon. */
.event-cards-compact article{align-items:center;text-align:center}.event-cards-compact .event-heading{flex-direction:column;gap:14px;margin-bottom:22px}.event-cards-compact .event-heading .line-icon{width:40px;height:40px;padding:8px}.event-cards-compact .event-details{width:210px;max-width:100%;text-align:left}.event-cards-compact .event-details>div{grid-template-columns:3em minmax(0,1fr);gap:20px}.event-cards-compact .event-standing{padding-left:0;text-align:center;margin:10px 0 0}

/* Final copy and readable type scale. */
.venue>.venue-address{font-size:1rem;color:var(--ink);line-height:1.8}.timeline h3{font-size:1.125rem}.timeline .flow-location,.timeline .flow-note,.day>.muted,.day>div>.muted{font-size:.875rem}.section .eyebrow,.form-intro>.eyebrow,#done>.eyebrow{font-size:.8125rem;line-height:1.8}.button,.secondary{font-size:1rem}#done>p{font-size:1rem}#form .required-note{font-size:.875rem;color:#82644d;margin:20px 0 0}#form em{font-size:1rem;color:#996f28}.event-cards-compact .event-details{width:100%;max-width:330px}.standing-inline{font-size:.875rem;color:var(--muted);line-height:1.7}.line-invite{padding:28px 22px;border:1px solid #e8dcc4}#done .line-button{background:#087b38;color:#fff;gap:12px;min-height:58px;padding:15px 24px;font-weight:700;box-shadow:0 5px 14px #087b381c}.line-chat-icon{width:32px;height:30px;flex:none}.line-button:focus-visible{outline:3px solid #087b38;outline-offset:4px}.edit-link{display:inline-block;background:none;border:0;border-bottom:1px solid currentColor;border-radius:0;color:var(--muted);padding:8px 2px;font-size:1rem;margin-top:10px}
@media(max-width:760px){.quote{font-size:.875rem}.line-invite{padding:24px 16px}#done .line-button{padding:14px 18px;gap:10px}}

#form .simplified-counts{margin:30px 0;gap:24px}#form .simplified-counts small{display:block;margin-top:8px}

/* Fit the whole invitation to the mobile viewport; reserve a final reveal hold. */
@media(max-width:760px){
 .opening{height:325svh}
 .stage{height:100svh;top:0}
 .visual-wrap{padding:20px 22px;gap:8px;width:min(560px,100%)}
 .couple-art{width:80%}
 .couple-art img{height:clamp(170px,36svh,300px)}
 .flower-2{top:32%}
 .flower-3{bottom:125px}
}
@media(max-width:760px) and (max-height:680px){
 .visual-wrap{padding:12px 22px;gap:4px}
 .couple-art img{height:28svh}
 .invitation-copy .couple-names{margin-bottom:10px}
 .date-rule{margin:8px auto}
 .wedding-place{margin-bottom:16px}
 .love-note{margin-top:12px}
}
@media(prefers-reduced-motion:reduce){.opening{height:auto}.stage{height:auto;min-height:100svh;position:relative;top:0}.final-visual{position:relative}}

.done-flower{width:54px;height:54px;margin:0 auto 18px}.done-flower svg{display:block;width:100%;height:100%}.form-shell{position:relative}#reply-loader{min-height:350px;padding:70px 20px;text-align:center}#reply-loader[hidden]{display:none}.reply-loading #form,.reply-loading .steps,.reply-loading #done{display:none!important}.reply-loading #reply-loader{display:block!important}#retry-load{margin:24px auto 0}

.steps[hidden]{display:none!important}
