:root{--wine:#813637;--wine-dark:#602729;--cream:#fbf8f2;--paper:#f3ede2;--ink:#3f3834;--muted:#85776d;--line:#ded4c6;--serif:'Cormorant Garamond',Georgia,serif;--script:'Dancing Script','Brush Script MT',cursive;--sans:'Be Vietnam Pro',Arial,sans-serif;font-family:var(--sans);color:var(--ink);font-size:16px;font-synthesis:none;scroll-behavior:smooth;scroll-padding-top:24px}
*{box-sizing:border-box}body{margin:0;background:#efeae3;background-image:radial-gradient(#c0b3a825 .7px,transparent .7px);background-size:5px 5px}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button{color:inherit}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}img{max-width:100%;display:block}button:focus-visible,a:focus-visible{outline:2px solid var(--wine);outline-offset:5px}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--wine);outline-offset:2px}[hidden]{display:none!important}.svg-library{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.invitation{position:relative;max-width:520px;margin:28px auto 0;background:var(--cream);box-shadow:0 8px 65px #66504112;overflow:clip}.eyebrow{font:500 .68rem/1.8 var(--sans);letter-spacing:.2em;text-align:center;margin:0 0 12px}.script{font-family:var(--script);font-weight:500;font-size:3.1rem;line-height:1.3;color:var(--wine);margin:0 0 26px}.section{padding:68px 36px;text-align:center;position:relative}.section>p:not([class]){font:400 1.13rem/1.8 var(--serif);margin:0 0 26px}.fine-print{font-size:.75rem;line-height:1.7;color:var(--muted);margin:18px 0 0}.button{border:1px solid var(--wine);color:var(--cream);background:var(--wine);display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:13px 22px;font:400 .85rem/1.5 var(--sans);border-radius:2px;transition:background .2s,transform .2s}.button:hover{background:var(--wine-dark);transform:translateY(-1px)}.button svg{width:19px;height:19px}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:none;border:0;border-bottom:1px solid var(--wine);padding:10px 0;color:var(--wine);font-size:.8rem}.text-button svg{width:18px;height:18px}.desktop-note{position:fixed;top:50%;left:calc(50% - 555px);width:235px;transform:translateY(-50%);text-align:center}.monogram{font:500 3.8rem/1 var(--serif);color:var(--wine);display:block;margin-bottom:45px}.monogram .monogram-amp{font:italic 2.3rem var(--serif);margin:0 5px}.desktop-note>.eyebrow{font-size:.64rem;letter-spacing:.24em}.side-names{font:500 2.8rem/1.25 var(--script);color:var(--wine);margin:20px 0 26px}.side-names .side-amp{font-size:1.7rem}.side-rule{width:35px;height:1px;background:#b5a18b;margin:0 auto 24px}.side-date{font:.95rem var(--serif);letter-spacing:.2em}.side-caption{font:italic 1.15rem/1.7 var(--serif);color:var(--muted);margin:20px 0 40px}.side-nav{position:fixed;left:calc(50% + 320px);top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:25px;text-align:center}.side-nav>a{display:flex;flex-direction:column;align-items:center;gap:9px;color:#8b7f73;font-size:.65rem;transition:color .2s}.side-nav>a:hover{color:var(--wine)}.side-nav svg{width:24px;height:24px}.nav-album{font:30px/24px Georgia}
.hero{padding-top:44px}.hero>.eyebrow{font-size:.65rem;margin-bottom:16px}.hero h1{font:500 3.25rem/1.25 var(--script);color:var(--wine);text-align:center;margin:0 14px 17px}.hero h1>span{font:italic 2rem var(--serif);margin:0 5px}.hero-date{display:flex;gap:15px;align-items:center;justify-content:center;font:.85rem var(--serif);letter-spacing:.25em;margin-bottom:34px}.hero-date>span{height:1px;width:40px;background:var(--line)}.hero-photo{position:relative;margin:0 22px}.hero-photo>img{width:100%;height:auto;aspect-ratio:1135/1550;object-fit:cover;object-position:50% 46%;filter:saturate(.85)}.photo-script{position:absolute;top:28px;left:25px;font:500 2.5rem/1.1 var(--script);transform:rotate(-8deg);color:var(--wine);text-shadow:0 1px 6px #ffffff80}.photo-corner{position:absolute;bottom:16px;left:0;right:0;text-align:center;color:white;font:italic .9rem var(--serif);letter-spacing:.03em;text-shadow:0 1px 4px #0008}.hero-caption{display:flex;justify-content:space-between;align-items:center;padding:20px 25px 24px;border-bottom:1px solid var(--line)}.hero-caption>span{font:italic 1.5rem var(--serif);color:var(--wine)}.hero-caption>a{font:.6rem var(--sans);letter-spacing:.14em;display:flex;gap:9px;align-items:center}.hero-caption>a>span{font-size:1.2rem}
.date-section{padding-top:58px}.intro{font:1.15rem/1.8 var(--serif);margin:0 0 18px}.couple-script{font:500 2.8rem/1.15 var(--script);color:var(--wine);margin:20px 0 30px}.couple-script>span{font:italic 1.8rem var(--serif)}.date-display{display:flex;align-items:center;justify-content:center;gap:18px;margin:30px 0 18px}.date-display>div{font:.7rem/1.9 var(--sans);letter-spacing:.07em;width:95px;text-align:center}.date-display>div>span{font:1.2rem var(--serif);letter-spacing:.15em}.date-display>strong{font:500 5.4rem/1 var(--serif);padding:0 25px;border-left:1px solid #b9a99a;border-right:1px solid #b9a99a;color:var(--wine)}.event-time{font:1rem/1.7 var(--serif);margin:0 0 34px}.calendar-paper{background:#fffdf8;border:1px solid #e8dfd2;max-width:350px;margin:0 auto 15px;padding:22px 23px 18px;transform:rotate(-2deg);box-shadow:2px 6px 0 #eae3d6;position:relative}.calendar-paper:before{content:'';position:absolute;background:#c9bca54d;width:75px;height:21px;top:-9px;left:calc(50% - 38px);transform:rotate(5deg)}.calendar-heading{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:15px;padding-bottom:12px;border-bottom:1px solid var(--line);color:var(--wine)}.calendar-heading>span:first-child{font:2rem var(--script)}.calendar-heading>span:last-child{font:.85rem var(--serif);letter-spacing:.1em}.calendar{display:grid;grid-template-columns:repeat(7,1fr);row-gap:5px;align-items:center;justify-items:center}.calendar>span{width:32px;height:32px;display:grid;place-items:center;font:1.1rem var(--serif);position:relative;isolation:isolate}.calendar>span.weekday{font:.6rem var(--sans);color:var(--muted);height:26px}.calendar>span.wedding-date{color:white;font-weight:600}.calendar>span.wedding-date:before{content:'♥';position:absolute;inset:-4px -1px;color:var(--wine);font:39px/40px Georgia;z-index:-1}.calendar-footer{font:italic .9rem var(--serif);color:var(--muted);margin:16px 0 0}
.couple-section{background:#f1ebe2;padding-left:28px;padding-right:28px}.couple-section>.eyebrow{font-size:.62rem}.couple-portraits{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:0 0 40px}.portrait{margin:0;position:relative}.portrait-bride{transform:rotate(-4deg);margin-top:10px}.portrait-groom{transform:rotate(4deg);margin-top:50px}.portrait>img{width:100%;aspect-ratio:3/4;height:auto;object-fit:cover;padding:7px 7px 0;background:#fff;box-shadow:1px 4px 13px #5a45381c}.portrait figcaption{padding:14px 7px 18px;background:white;box-shadow:1px 6px 10px #5a453812}.portrait figcaption small{display:block;font:.55rem var(--sans);letter-spacing:.18em;margin-bottom:4px;color:var(--muted)}.portrait figcaption span{font:2rem var(--script);color:var(--wine)}.portrait-amp{position:absolute;z-index:2;left:calc(50% - 19px);top:43%;font:italic 3.5rem var(--serif);color:var(--wine);text-shadow:2px 2px 0 #faf5ec}.couple-quote{font:italic 1.3rem/1.65 var(--serif);color:var(--wine);margin:0}
.story-section{padding:65px 30px;background:var(--cream)}.story-paper{padding:48px 36px 30px;background:#eee7da;transform:rotate(1deg);position:relative;box-shadow:3px 4px 0 #ded5c6,-5px 5px 0 #eee7dc;border:1px solid #e1d7c7;background-image:radial-gradient(#8c81702a .5px,transparent .5px);background-size:4px 4px}.paper-tape{position:absolute;top:-13px;left:calc(50% - 48px);width:96px;height:30px;background:#bda88d55;transform:rotate(-6deg);clip-path:polygon(2% 0,98% 2%,100% 94%,1% 100%)}.story-paper>.eyebrow{font-size:.65rem}.story-paper .script{font-size:2.6rem;margin-bottom:25px}.story-paper>p:not([class]){font:1.17rem/1.8 var(--serif);text-align:justify;margin:0 0 18px}.story-signature{font:1.7rem/1.5 var(--script);color:var(--wine);margin:25px 0 18px}.story-heart{width:22px;height:22px;color:var(--wine);margin:0 auto}.families-section{padding-top:10px}.families{display:grid;grid-template-columns:1fr 22px 1fr;gap:8px;align-items:center;margin:28px -12px 35px}.family-title{font:1.9rem var(--script);color:var(--wine)}.families p{font:.98rem/1.9 var(--serif);margin:10px 0}.families small{font:italic .9rem var(--serif);color:var(--muted)}.family-heart{color:var(--wine);font-size:1.7rem}.family-invite{font:1rem/1.8 var(--serif);margin:0}.families-section>.couple-script{margin-bottom:0;line-height:1.1}.families-section>.couple-script>span{font-size:1.4rem}
.venue-section{position:relative;padding-bottom:0}.venue-photo{height:420px;overflow:hidden}.venue-photo>img{width:100%;height:100%;object-fit:cover;object-position:center 42%}.venue-card{margin:-45px 26px 0;padding:35px 22px 38px;position:relative;background:#fffdf8;border:1px solid var(--line);outline:1px solid #fffdf8;outline-offset:5px;text-align:center}.venue-card .script{font-size:2.8rem;margin-bottom:18px}.venue-name{font:500 1.8rem/1.3 var(--serif);margin:0 0 12px;color:var(--wine)}.venue-address{font:.8rem/1.7 var(--sans);color:var(--muted);margin:0 0 22px}.venue-details{display:flex;justify-content:center;align-items:center;gap:19px;margin-bottom:24px}.venue-details strong{font:2.5rem var(--serif);color:var(--wine);padding-right:19px;border-right:1px solid var(--line)}.venue-details span{font:.7rem/1.9 var(--sans);letter-spacing:.1em}.venue-card .button{font-size:.75rem}
.timeline-section{padding-left:24px;padding-right:24px}.timeline{display:grid;grid-template-columns:repeat(3,1fr);position:relative;margin:34px 0 45px}.timeline:after{content:'';position:absolute;top:119px;left:16.666%;right:16.666%;border-top:1px dashed #c9b4a1}.timeline>div{position:relative}.timeline>div:after{content:'';position:absolute;width:6px;height:6px;background:var(--wine);border:3px solid var(--cream);box-sizing:content-box;top:113px;left:calc(50% - 6px);border-radius:50%;z-index:1}.timeline img{width:67px;height:67px;object-fit:contain;margin:0 auto 13px}.timeline span{font:1.35rem var(--serif);color:var(--wine);display:block}.timeline p{font:.73rem var(--sans);margin:30px 0 0}.dress-code{border-top:1px solid var(--line);padding-top:28px}.dress-code>span{font:.6rem var(--sans);letter-spacing:.2em;color:var(--muted)}.swatches{display:flex;justify-content:center;gap:10px;margin:18px 0}.swatches>i{display:block;width:25px;height:25px;border-radius:50%;background:var(--swatch);border:1px solid #9b8b7925;box-shadow:0 0 0 4px var(--cream),0 0 0 5px #a28c6d30}.dress-code p{font:italic 1rem var(--serif);color:var(--muted);margin:0}
.album-section{padding:50px 22px;background:#f1ebe2}.album-section>.script{font-size:2.7rem}.album-section>.eyebrow{font-size:.58rem}.album-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}.album-photo{display:block;width:100%;padding:0;border:0;background:#d8d0c6;overflow:hidden;min-width:0;min-height:0;position:relative}.album-photo::before{content:"";display:block;padding-top:133.333333%}.album-photo>img{position:absolute;inset:0;height:100%;width:100%;object-fit:cover;transition:transform .5s}.album-photo:hover>img{transform:scale(1.035)}.album-photo:nth-child(8n+1):has(+ .album-photo + .album-photo){grid-row:span 2}.album-photo:nth-child(8n+1):has(+ .album-photo + .album-photo)::before{padding-top:0}.album-photo:nth-child(8n+2):not(:last-child)::before,.album-photo:nth-child(8n+3)::before{padding-top:75%}.album-photo:nth-child(8n+6){grid-column:1/-1}.album-photo:nth-child(8n+6)::before{padding-top:62.5%}.album-photo:nth-child(8n+6)>img{object-position:50% 25%}.album-section>.fine-print{font-size:.7rem}.wish-form input,.wish-form textarea{display:block;width:100%;border:1px solid #d8cbbd;border-radius:1px;background:#fffdf9;padding:13px 14px;min-height:48px;color:var(--ink);font-size:.85rem;line-height:1.6;margin-top:8px}.wish-form .button{width:100%}.form-note{font:.65rem/1.8 var(--sans);color:var(--muted);text-align:center;margin:12px 0 0}.form-result{font-size:.8rem;line-height:1.8;color:var(--wine);padding:15px;background:#eee6d9;margin:18px 0 0;text-align:center;border:1px solid #d8c6b3}
.countdown-section{background:var(--wine);color:var(--cream);padding:42px 30px 38px;text-align:center;position:relative}.countdown-section:before,.countdown-section:after{content:'';position:absolute;left:12px;right:12px;height:1px;background:#e6cfaa45;top:12px}.countdown-section:after{top:auto;bottom:12px}.countdown-section .eyebrow{font-size:.6rem;color:#eee0d0}.countdown-section .script{color:var(--cream);font-size:2.7rem;margin-bottom:25px}.countdown{display:flex;align-items:flex-start;justify-content:center;gap:12px}.countdown>div{min-width:53px}.countdown strong{display:block;font:400 3.4rem/1 var(--serif);font-variant-numeric:tabular-nums}.countdown span{display:block;font-size:.54rem;letter-spacing:.18em;color:#e5cfc6;margin-top:10px}.countdown>b{font:2rem var(--serif);color:#cdaea0;margin-top:4px}.countdown-section>p:last-child{font:italic 1rem/1.7 var(--serif);color:#e7d9cb;margin:25px 0 0}
.wishes-section{padding:60px 32px}.wishes-section>.script{margin-bottom:16px}.wish-form{margin-top:30px;text-align:left}.wish-form input{margin-bottom:12px}.wish-form textarea{resize:vertical;max-height:300px;margin-bottom:14px}.wish-list{display:flex;flex-direction:column;gap:12px;margin:28px 0}.wish-card{text-align:left;padding:20px;background:#f1eadd;border:1px solid #e5dacc;position:relative}.wish-card:after{content:'♡';position:absolute;right:18px;top:14px;color:#b18b79;font:1.5rem var(--serif)}.wish-card strong{font:600 1.1rem var(--serif);color:var(--wine);display:block;margin-right:25px}.wish-card p{font:1.1rem/1.7 var(--serif);margin:9px 0 10px;white-space:pre-wrap;overflow-wrap:anywhere}.wish-card small{font:.6rem var(--sans);color:var(--muted)}.wish-list>.wish-card:nth-child(n+5){display:none}
.thank-you{position:relative;height:660px;color:white;text-align:center;display:flex;align-items:flex-end;justify-content:center;isolation:isolate}.thank-you>img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:center 45%}.thank-you:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 25%,#291b1b0d 42%,#291b1bbd 100%);z-index:-1}.thank-you>div{padding:35px 16px 45px}.thank-you .script{font-size:4.3rem;color:white;margin:0 0 15px}.thank-you p{font:1.1rem/1.8 var(--serif);margin:0}.thank-you .footer-signature{font:2.2rem var(--script);margin:20px 0 12px}.thank-you span{font:.67rem var(--sans);letter-spacing:.2em}.page-credit{text-align:center;padding:30px 15px 32px;font:.58rem var(--sans);letter-spacing:.14em}.page-credit>span{color:var(--wine);font-size:1rem;margin-left:8px}.page-credit>small{display:block;font-size:.58rem;color:var(--muted);letter-spacing:0;margin-top:10px}
.toast{position:fixed;z-index:60;bottom:calc(24px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);width:max-content;background:var(--wine-dark);color:white;padding:13px 20px;font-size:.8rem;line-height:1.7;text-align:center;box-shadow:0 3px 15px #0002;border-radius:3px}dialog{border:1px solid var(--line);padding:42px 28px 32px;width:calc(100% - 32px);max-width:420px;max-height:calc(100dvh - 32px);overflow-y:auto;background:var(--cream);color:var(--ink);text-align:center;box-shadow:0 10px 80px #30211f40;overscroll-behavior:contain}dialog::backdrop{background:#211a17a6;backdrop-filter:blur(4px)}dialog .script{font-size:2.7rem;margin-bottom:14px}dialog>p:not([class]){font:1.05rem/1.7 var(--serif)}.dialog-close{position:absolute;right:8px;top:8px;width:40px;height:40px;background:none;border:0;display:grid;place-items:center;z-index:2;color:var(--wine)}.dialog-close>svg{width:21px;height:21px}.gift-tabs{display:flex;background:#efe7dc;padding:4px;margin:24px 0 22px}.gift-tabs>button{flex:1;background:none;border:0;font-size:.8rem;min-height:40px}.gift-tabs>button[aria-selected=true]{background:var(--cream);color:var(--wine);box-shadow:0 1px 3px #0001}.gift-qr{background:white;max-width:190px;width:100%;margin:0 auto 20px;padding:10px;line-height:0}.gift-qr svg{width:100%;height:auto;stroke:none;fill:initial;display:block}.gift-dialog #gift-person{font:500 1.3rem var(--serif);letter-spacing:.12em;margin:0 0 12px}.gift-note{font:.85rem/1.9 var(--serif);color:var(--muted);margin:18px 0 0}.lightbox{max-width:1100px;width:calc(100% - 28px);background:#1b1512;border:0;padding:0;overflow:hidden;height:calc(100dvh - 40px);color:white}.lightbox .dialog-close{color:white;background:#0007;border-radius:50%}.lightbox>img{height:calc(100% - 38px);width:100%;object-fit:contain}.lightbox>p{height:38px;margin:0;display:grid;place-items:center;font-size:.8rem}.lightbox-prev,.lightbox-next{position:absolute;top:45%;width:44px;height:60px;background:#0007;border:0;color:white;font:2.2rem var(--serif);z-index:2}.lightbox-prev{left:0}.lightbox-next{right:0}.floating-heart{position:fixed;bottom:24px;left:var(--left);color:var(--heart-color);font:var(--size) Georgia;z-index:50;pointer-events:none;animation:heart-float 2.8s ease-out forwards}body.modal-open{overflow:hidden}
@keyframes heart-float{from{transform:translate(0,0) rotate(0);opacity:1}to{transform:translate(var(--drift),-65vh) rotate(25deg);opacity:0}}@keyframes music-wiggle{0%,100%{transform:rotate(-10deg)}50%{transform:rotate(10deg)}}
@media(min-width:1450px){.desktop-note{left:calc(50% - 610px)}}
@media(max-width:1160px){.desktop-note{left:calc(50% - 470px);width:180px}.side-names{font-size:2.4rem}.side-nav{left:calc(50% + 300px)}}
@media(max-width:1000px){.desktop-note{display:none}.side-nav{left:calc(50% + 290px)}.invitation{margin-top:18px}}
@media(max-width:720px){.side-nav{display:none}.invitation{margin-top:0}.section{scroll-margin-top:8px}}
@media(max-width:520px){body{background:var(--cream)}.invitation{width:100%;box-shadow:none}.hero{padding-top:32px}.hero h1{font-size:clamp(2.4rem,9.1vw,3rem)}.hero h1>span{font-size:1.6rem}.hero-photo{margin:0 14px}.hero-photo>img{aspect-ratio:1135/1480}.hero>.eyebrow{font-size:.57rem}.hero-date{margin-bottom:25px}.hero-caption{padding:18px 20px}.hero-caption>span{font-size:1.35rem}.photo-script{font-size:2.2rem;top:24px;left:18px}.section{padding:52px 26px}.script{font-size:2.8rem}.eyebrow{font-size:.59rem;letter-spacing:.16em}.couple-script{font-size:2.55rem}.date-display{gap:10px}.date-display>strong{font-size:4.8rem;padding:0 18px}.date-display>div{font-size:.61rem;width:85px}.event-time{font-size:.95rem}.calendar-paper{padding-left:18px;padding-right:18px}.calendar>span{width:30px}.couple-section{padding-left:22px;padding-right:22px}.couple-portraits{gap:17px}.portrait figcaption span{font-size:1.8rem}.portrait figcaption small{font-size:.5rem}.story-section{padding:55px 25px}.story-paper{padding:40px 26px 24px}.story-paper .script{font-size:2.3rem}.story-paper>p:not([class]){font-size:1.1rem}.story-signature{font-size:1.5rem}.families-section{padding-top:10px}.families p{font-size:.92rem}.family-title{font-size:1.75rem}.families-section>.eyebrow{font-size:.58rem}.venue-photo{height:350px}.venue-card{margin:-35px 22px 0;padding:30px 15px}.venue-card .script{font-size:2.6rem}.timeline-section{padding-left:20px;padding-right:20px}.timeline-section>.script{font-size:2.7rem}.timeline p{font-size:.65rem}.timeline img{width:60px;height:67px}.album-section{padding:45px 15px}.album-section>.script{font-size:2.3rem}.album-section>.eyebrow{font-size:.52rem}.countdown-section{padding:40px 20px 35px}.countdown-section .script{font-size:2.4rem}.countdown{gap:8px}.countdown>div{min-width:48px}.countdown strong{font-size:3rem}.countdown-section>p:last-child{font-size:.92rem}.wishes-section{padding-left:26px;padding-right:26px}.thank-you{height:590px}.wish-form input,.wish-form textarea{font-size:1rem}.form-note{font-size:.63rem}.section>p:not([class]){font-size:1.1rem}}
@media(max-width:360px){.section{padding-left:20px;padding-right:20px}.hero h1{font-size:2.3rem}.script{font-size:2.5rem}.date-display{gap:5px}.date-display>strong{padding:0 12px}.calendar-paper{padding-left:11px;padding-right:11px}.portrait figcaption span{font-size:1.6rem}.families p{font-size:.85rem}.countdown{gap:6px}.countdown>div{min-width:43px}.countdown strong{font-size:2.6rem}.countdown-section .script{font-size:2.15rem}.story-paper{padding-left:20px;padding-right:20px}}.timeline p{font-size:.875rem}.button,.venue-card .button{font-size:.875rem}.date-display>div{font-size:.875rem}.date-display>div:first-child{font-size:.75rem}.wish-form .form-note{font-size:.75rem}
@media(max-width:380px){.timeline p{font-size:.78rem}}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}.floating-heart{display:none}}

.hero h1>.person-name,.couple-script>.person-name{font:inherit;margin:0}.date-display>div>.month-label{font:inherit;letter-spacing:inherit}.page-credit>[data-content]{font:inherit;color:inherit;margin:0;text-transform:uppercase}.gift-qr>img{display:block;width:100%;height:auto}

.button:disabled{opacity:.65;cursor:wait;transform:none}
#heart-rain .floating-heart{top:var(--top);bottom:auto;left:var(--left);width:var(--size);height:var(--size);margin-top:calc(var(--size) / -2);margin-left:calc(var(--size) / -2);fill:var(--heart-fill);stroke:currentColor;stroke-width:1.3;animation:heart-burst var(--duration) cubic-bezier(.12,.65,.3,1) both}
@keyframes heart-burst{0%{opacity:0;transform:translate(0,0) scale(.35) rotate(0)}12%{opacity:1}75%{opacity:.85}100%{opacity:0;transform:translate(var(--drift),var(--rise)) scale(1.15) rotate(var(--turn))}}

@media(prefers-reduced-motion:reduce){#heart-rain .floating-heart{display:none}}


/* Keep the page scrollbar subtle and in the invitation's warm palette. */
:root {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #b58b80 #efe8df;
}
@supports selector(::-webkit-scrollbar) {
  :root {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
  :root::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  :root::-webkit-scrollbar-track {
    background: #efe8df;
  }
  :root::-webkit-scrollbar-thumb {
    min-height: 48px;
    border: 1px solid #efe8df;
    border-radius: 999px;
    background: #b58b80;
    background-clip: padding-box;
  }
  :root::-webkit-scrollbar-thumb:hover {
    background-color: var(--wine);
  }
  :root::-webkit-scrollbar-thumb:active {
    background-color: var(--wine-dark);
  }
  :root::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
  }
}

.mobile-scrollbar {
  display: none;
  pointer-events: none;
}
@media (max-width: 720px), (pointer: coarse) {
  :root {
    scrollbar-gutter: auto;
  }
  /* Hide the native bar only after the replacement has been created. */
  :root.mobile-scrollbar-ready {
    scrollbar-width: none;
  }
  :root.mobile-scrollbar-ready::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
  .mobile-scrollbar {
    display: block;
    position: fixed;
    z-index: 25;
    top: max(8px, env(safe-area-inset-top, 0px));
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    right: max(2px, env(safe-area-inset-right, 0px));
    width: 6px;
    border-radius: 999px;
    background: #e7dbcf80;
  }
  .mobile-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: inherit;
    background: #ad7d70;
    box-shadow: inset 0 0 0 1px #81363720;
  }
}

/* The record shares the floating controls' position and spacing. */
.music-disc{position:relative;width:54px;height:54px;padding:0;border:0;border-radius:50%;background:none;box-shadow:0 3px 14px #30211f26}
.record-surface{display:grid;place-items:center;width:100%;height:100%;border:2px solid #302925;border-radius:50%;background:repeating-radial-gradient(circle,#25211f 0 1px,#403934 1px 2px,#24201e 2px 4px);animation:record-spin 7s linear infinite;animation-play-state:paused}
.record-label{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:var(--wine);box-shadow:0 0 0 2px #bb967e55}
.record-label svg{width:11px;height:11px;color:var(--cream);fill:currentColor;stroke-width:1}
.music-disc[aria-pressed=true] .record-surface{animation-play-state:running}
.music-status{position:absolute;right:-3px;bottom:-3px;display:grid;place-items:center;width:21px;height:21px;border:2px solid var(--cream);border-radius:50%;background:var(--cream);color:var(--wine);box-shadow:0 1px 4px #30211f20;pointer-events:none}
.music-status svg{width:12px;height:12px;stroke-width:2.5}
.music-status .music-play{fill:currentColor;stroke:none}
.music-status .music-pause{display:none}
.music-disc[aria-pressed=true] .music-play{display:none}
.music-disc[aria-pressed=true] .music-pause{display:block}
@keyframes record-spin{to{transform:rotate(360deg)}}
@media(max-width:720px){.music-disc{width:50px;height:50px}}
@media(prefers-reduced-motion:reduce){.record-surface{animation:none}}

/* Keep displayed dates, times and counters on the same upright numeral family. */
.invitation-intro .intro-date,
.side-date,
.hero-date time,
.calendar-heading > span:last-child,
.calendar > span,
.venue-details,
.venue-details strong,
.venue-details span,
.timeline > div > span,
.countdown strong,
.thank-you [data-content="date.display"],
#album-slide-count,
#photo-counter,
#gift-account-number {
  font-family: var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
}
.invitation-intro .intro-date {
  font-size: clamp(.8rem, 3vw, .9rem);
  letter-spacing: .12em;
}
.side-date {
  font-size: .8rem;
  letter-spacing: .14em;
}
.hero-date time {
  font-size: .875rem;
  letter-spacing: .12em;
}
.calendar > span:not(.weekday) {
  font-size: .875rem;
  line-height: 1;
}
.venue-details > strong {
  font-size: clamp(1.5rem, 6.5vw, 1.9rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .015em;
}
.timeline > div > span {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .02em;
}
.thank-you [data-content="date.display"],
#album-slide-count {
  font-size: .75rem;
  letter-spacing: .1em;
}
.ceremony-date {
  margin: 30px -10px 18px;
  color: var(--ink);
  font-variant-numeric: lining-nums proportional-nums;
}
.ceremony-date .ceremony-heading {
  margin: 0 0 10px;
  font: 600 clamp(1.1rem, 4.3vw, 1.6rem)/1.35 var(--serif);
}
.ceremony-date .event-time {
  margin: 0 0 12px;
  font: 500 clamp(1rem, 4vw, 1.35rem)/1.5 var(--serif);
}
.ceremony-date .event-time strong {
  font: inherit;
  font-variant-numeric: lining-nums proportional-nums;
}
.ceremony-date .date-display {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0;
}
.ceremony-date .date-display > div {
  display: grid;
  place-content: center;
  width: auto;
  min-height: clamp(58px, 17vw, 82px);
  border-top: 1px solid #9f958b;
  border-bottom: 1px solid #9f958b;
  font: 500 clamp(1.05rem, 4.5vw, 1.65rem)/1.2 var(--serif);
  font-variant-numeric: lining-nums proportional-nums;
  letter-spacing: -.025em;
  white-space: nowrap;
}
.ceremony-date .date-display > div:last-child {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .2em;
}
.ceremony-date .date-display > div > span {
  font: inherit;
  font-variant-numeric: lining-nums proportional-nums;
  letter-spacing: inherit;
}
.ceremony-date .date-display > strong {
  padding: 0;
  border: 0;
  color: var(--wine);
  font: 500 clamp(4.75rem, 22vw, 6.75rem)/1 var(--serif);
  font-variant-numeric: lining-nums proportional-nums;
  letter-spacing: -.055em;
}
.ceremony-date > .lunar-date {
  margin: 10px 0 0;
  font: 400 clamp(1rem, 3.8vw, 1.2rem)/1.5 var(--serif);
  font-variant-numeric: lining-nums proportional-nums;
}
.ceremony-date > .lunar-date:empty {
  display: none;
}

.dialog-close:focus,
.dialog-close:focus-visible {
  outline: none;
  box-shadow: none;
}
.dialog-close:focus-visible > svg {
  stroke-width: 2;
}

.gift-bank {
  margin: 0 auto 20px;
  max-width: 300px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.gift-bank > div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  text-align: left;
}
.gift-bank dt {
  color: var(--muted);
  font: 400 .7rem/1.5 var(--sans);
  white-space: nowrap;
}
.gift-bank dd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin: 0;
  color: var(--wine-dark);
  font: 500 .78rem/1.6 var(--sans);
}
.gift-bank dd > span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#gift-account-number {
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.gift-copy {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
}
.gift-copy img {
  width: 16px;
  height: 16px;
  opacity: .55;
}
.gift-copy:hover,
.gift-copy:focus-visible {
  background: var(--paper);
}
.gift-copy[data-feedback]::after {
  content: attr(data-feedback);
  position: absolute;
  right: 0;
  bottom: calc(100% + 4px);
  z-index: 1;
  width: max-content;
  max-width: 180px;
  padding: 6px 9px;
  border-radius: 3px;
  background: var(--wine-dark);
  color: var(--cream);
  font: 400 .7rem/1.5 var(--sans);
  pointer-events: none;
}

.countdown-section {
  background: var(--cream);
  color: var(--wine);
}
.countdown-section::before,
.countdown-section::after {
  background: var(--line);
}
.countdown-section .eyebrow,
.countdown-section .script {
  color: var(--wine);
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2.5vw, 12px);
  max-width: 380px;
  margin: 0 auto;
}
.countdown > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 98px;
  padding: 16px 4px;
  background: var(--wine);
  border: 1px solid var(--wine-dark);
  border-radius: 4px;
  color: var(--cream);
}
.countdown strong {
  font: 500 clamp(1.45rem, 6vw, 1.95rem)/1.2 var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: .015em;
}
.countdown span {
  margin: 0;
  font: 400 .75rem/1.4 var(--sans);
  letter-spacing: .02em;
  color: var(--cream);
}
.countdown-section > p:last-child {
  color: var(--muted);
}

.venue-card > .eyebrow {
  margin-bottom: 18px;
}
.venue-location + .venue-location {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

/* A small ivory bouquet joins the couple's names. */
.couple-flowers {
  display: inline-block;
  width: 60px;
  height: 40px;
  object-fit: contain;
  vertical-align: middle;
}
.intro-couple .couple-flowers {
  display: block;
  margin: 0 auto;
}
.side-names .couple-flowers {
  width: 54px;
  height: 36px;
}
.date-section > .couple-script {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.footer-signature .couple-flowers {
  width: 36px;
  height: 24px;
}
.side-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.side-names > .side-amp {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.couple-heart {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  stroke-width: 1.3;
}
.families-section > .couple-script > .couple-join {
  display: grid;
  place-items: center;
  line-height: 1;
  padding: 4px 0;
}
.portrait-amp {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
}
.portrait-amp .couple-heart {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 1px 2px var(--cream));
}
.thank-you .footer-signature > span {
  font: inherit;
  letter-spacing: inherit;
}
.page-credit > .credit-names {
  font: inherit;
  color: inherit;
  margin: 0;
}
.credit-names > [data-content] {
  text-transform: uppercase;
}

/* A full-width photograph opens into the cream paper of the invitation. */
.invitation {
  margin-top: 0;
}
.hero {
  padding-top: 0;
}
.hero .hero-photo {
  margin: 0;
  height: 88vh;
  height: 88svh;
  min-height: 520px;
  max-height: 780px;
  isolation: isolate;
}
.hero .hero-photo > img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 50% 30%;
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    transparent 48%,
    #fbf8f22b 61%,
    #fbf8f2b3 77%,
    var(--cream) 100%);
}
.hero-titles {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 20px;
  left: 20px;
  text-align: center;
}
.hero-titles > .eyebrow {
  margin: 0 0 12px;
  font-size: .6rem;
  letter-spacing: .18em;
  color: var(--wine-dark);
}
.hero .hero-titles > h1 {
  margin: 0;
  font: 500 clamp(2.8rem, 12vw, 3.8rem)/1.15 var(--script);
}
.hero-titles > h1 > .person-name {
  display: block;
  overflow-wrap: anywhere;
}
.hero .hero-titles .hero-name-join {
  display: grid;
  place-items: center;
  margin: 7px 0;
  line-height: 1;
}
.hero-name-join .couple-heart {
  width: 18px;
  height: 18px;
}
.hero .hero-caption {
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  padding: 14px 20px 27px;
  border-bottom: 0;
}
.hero .hero-date {
  margin: 0;
  gap: 18px;
  color: var(--wine-dark);
  font-size: 1.05rem;
}
.hero .hero-caption > a {
  color: var(--muted);
  font-size: .58rem;
  letter-spacing: .16em;
}

/* Clear family details and prominent names, including on narrow invitations. */
.families-section > .eyebrow {
  font-size: .7rem;
  letter-spacing: .14em;
}
.families-section .families {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  margin: 28px 0 34px;
}
.families-section .family-heart {
  display: none;
}
.families-section .family-title {
  display: block;
  font: 600 2rem/1.3 var(--serif);
  color: var(--wine);
}
.families-section .families p {
  margin: 14px 0 8px;
  font: 500 1.2rem/1.55 var(--serif);
  color: var(--ink);
  white-space: nowrap;
}
.families-section .families small {
  font: 500 1.1rem/1.5 var(--serif);
  color: var(--ink);
}
.families-section > .family-invite {
  font: 400 1.15rem/1.65 var(--serif);
}
.families-section > .couple-script {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 28px 0 0;
}
.families-section > .couple-script > br {
  display: none;
}
.families-section > .couple-script > .person-name {
  max-width: 100%;
  font: 500 clamp(3rem, 14vw, 4rem)/1.25 var(--script);
  overflow-wrap: anywhere;
}
.families-section > .couple-script > span:not(.person-name) {
  font: italic 400 2.2rem/1.2 var(--serif);
}
@media (max-width: 520px) {
  .families-section {
    padding-inline: 12px;
  }
  .families-section .families {
    gap: 12px;
  }
  .families-section .family-title {
    font-size: 1.9rem;
  }
  .families-section .families p {
    font-size: clamp(.95rem, 4.3vw, 1.2rem);
  }
}
@media (max-width: 360px) {
  .families-section .families small {
    font-size: 1rem;
  }
}

/* Two overlapping ink fingerprints mark the wedding day. */
.calendar > span.wedding-date {
  color: #fffdf8;
  font-weight: 700;
  text-shadow: 0 1px 2px #602729;
}
.calendar > span.wedding-date::before {
  content: '';
  inset: -6px -7px;
  background: url('./assets/images/decorations/wedding-fingerprint-heart.webp') center / contain no-repeat;
  transform: rotate(-8deg);
}

/* Let the calendar breathe across the invitation instead of inside a tilted card. */
.date-section .calendar-paper {
  width: calc(100% + 32px);
  max-width: none;
  margin: 26px -16px 22px;
  padding: 18px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}
.calendar-paper::before {
  display: none;
}
.calendar-paper .calendar-heading {
  gap: 12px;
  margin-bottom: 18px;
  padding: 0 12px;
  border-bottom: 0;
}
.calendar-paper .calendar-heading > span:first-child {
  font-size: clamp(1.4rem, 6vw, 1.8rem);
  white-space: nowrap;
}
.calendar-heading > .calendar-month {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: .8rem;
  white-space: nowrap;
}
.calendar-month small {
  color: var(--muted);
  font: 400 .7rem/1.5 var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
}
.calendar-paper .calendar {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  row-gap: clamp(12px, 3.5vw, 20px);
}
.calendar-paper .calendar > span {
  width: 100%;
  max-width: 46px;
  height: 46px;
}
.calendar-paper .calendar > span:not(.weekday) {
  font-size: .95rem;
}
.calendar-paper .calendar > .weekday {
  height: 26px;
  font-size: .65rem;
  color: var(--muted);
}
.calendar-paper .calendar > .wedding-date::before {
  inset: -2px -4px;
}
.calendar-paper .calendar-footer {
  margin-top: 24px;
}

/* Opening the invitation focuses this heading without drawing a control frame. */
.hero h1:focus,
.hero h1:focus-visible {
  outline: none;
  box-shadow: none;
}

/* A few handwritten lines and a signature, like a page in a guestbook. */
.wish-form {
  margin-top: 34px;
}
.wish-letter-greeting {
  display: block;
  margin-bottom: 12px;
  color: var(--wine);
  font: 400 2rem/1.4 var(--script);
}
.wish-form textarea {
  margin: 0;
  padding: 0 2px;
  min-height: 112px;
  border: 0;
  border-radius: 0;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 33px, #ded4c680 33px, #ded4c680 34px);
  color: var(--ink);
  font: 400 1.12rem/34px var(--serif);
  resize: none;
}
.wish-form input:focus,
.wish-form input:focus-visible,
.wish-form textarea:focus,
.wish-form textarea:focus-visible {
  outline: none;
  box-shadow: none;
}
.wish-form textarea::placeholder,
.wish-form input::placeholder {
  color: #a39789;
  opacity: 1;
}
.wish-letter-signature {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 23px;
}
.wish-letter-signature label {
  color: var(--muted);
  font: italic 1.05rem/1.5 var(--serif);
  white-space: nowrap;
}
.wish-letter-signature input {
  flex: 1;
  width: 0;
  min-width: 0;
  max-width: 180px;
  min-height: 36px;
  margin: 0;
  padding: 4px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font: 400 1.1rem/1.5 var(--serif);
}
.wish-letter-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.wish-form .wish-send {
  width: auto;
  min-width: 150px;
  min-height: 46px;
  padding: 11px 20px;
  gap: 9px;
  border: 1px solid var(--wine);
  border-radius: 999px;
  background: var(--wine);
  color: var(--cream);
  font: 500 .8rem/1.5 var(--sans);
}
.wish-form .wish-send > svg {
  width: 18px;
  height: 18px;
}
.wish-form .wish-send:hover {
  background: var(--wine-dark);
  border-color: var(--wine-dark);
  color: var(--cream);
  transform: none;
}
.wish-form .form-result {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: italic 1rem/1.6 var(--serif);
}
.wish-list {
  gap: 0;
  margin: 38px 0 0;
}
.wish-list .wish-card {
  display: flex;
  flex-direction: column;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid #ded4c680;
  background: transparent;
}
.wish-list .wish-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.wish-list .wish-card::after {
  content: none;
}
.wish-list .wish-card p {
  order: 0;
  margin: 0;
  font: 400 1.15rem/1.7 var(--serif);
}
.wish-list .wish-card strong {
  order: 1;
  margin: 10px 0 0;
  text-align: right;
  font: 500 1.4rem/1.4 var(--script);
  overflow-wrap: anywhere;
}

/* Up to five small wishes drift upward opposite the floating controls. */
.floating-wishes {
  --wish-rise: clamp(160px, 45vh, 280px);
  position: fixed;
  z-index: 19;
  left: calc(18px + env(safe-area-inset-left, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: min(220px, calc(100vw - 108px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  height: var(--wish-rise);
  overflow: hidden;
  pointer-events: none;
}
.floating-wish {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 5px 9px;
  border: 0;
  border-radius: 4px;
  background: #fbf8f2dc;
  color: var(--ink);
  text-align: left;
  pointer-events: auto;
  animation: wish-drift-up var(--wish-lifetime, 15000ms) linear both;
}
.floating-wishes.is-paused .floating-wish {
  animation-play-state: paused;
}
.floating-wishes.is-suspended,
body.modal-open .floating-wishes {
  visibility: hidden;
}
@keyframes wish-drift-up {
  0% { opacity: 0; transform: translateY(10px); }
  8% { opacity: 1; }
  50% { opacity: .9; }
  80% { opacity: .55; }
  100% { opacity: 0; transform: translateY(calc(0px - var(--wish-rise))); }
}
.floating-wish-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  font: 400 .75rem/1.4 var(--sans);
}
.floating-wish-name {
  display: inline;
  margin: 0;
  color: var(--wine);
  font: inherit;
  font-weight: 500;
}
.floating-wish-name::after {
  content: ':';
}
.floating-wish-message {
  display: inline;
  font: inherit;
  white-space: normal;
}
.wish-detail-dialog .dialog-close {
  width: auto;
  min-width: 48px;
  padding: 0 10px;
  font: 400 .75rem var(--sans);
}
#wish-detail-name {
  display: block;
  color: var(--wine);
  font: 600 1.4rem/1.4 var(--serif);
  overflow-wrap: anywhere;
}
#wish-detail-message {
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .floating-wishes {
    left: calc(12px + env(safe-area-inset-left, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: min(200px, calc(100vw - 96px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  }
}
@supports (height: 1svh) {
  .floating-wishes {
    --wish-rise: clamp(160px, 45svh, 280px);
  }
}
@media (max-height: 520px) {
  .floating-wish-text { -webkit-line-clamp: 1; }
}
.floating-wishes.is-reduced {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: auto;
  max-height: var(--wish-rise);
}
.floating-wishes.is-reduced .floating-wish {
  position: relative;
  flex-shrink: 0;
  opacity: 1;
  transform: none;
  animation: none;
}

/* All three controls stay evenly spaced in the bottom-right corner. */
.floating-actions{position:fixed;bottom:calc(18px + env(safe-area-inset-bottom,0px));right:calc(18px + env(safe-area-inset-right,0px));z-index:20;display:flex;flex-direction:column;align-items:center;gap:12px}
.floating-action{position:relative;display:grid;place-items:center;width:54px;height:54px;padding:0;border:1px solid #d5b4ab;border-radius:50%;background:var(--cream);color:var(--wine);box-shadow:0 3px 14px #30211f26;transition:transform .2s,background .2s,box-shadow .2s}
.floating-action>svg{width:23px;height:23px;stroke-width:1.6}
.gift-action{background:var(--wine);border-color:var(--wine);color:var(--cream)}
.heart-action{background:#f5e7e3}
.heart-action>svg{fill:transparent;transition:fill .2s}
.heart-action.is-loved>svg{fill:currentColor}
.floating-action:active{transform:scale(.94)}
.floating-action::after{content:attr(aria-label);position:absolute;right:calc(100% + 12px);top:50%;padding:7px 12px;border:1px solid var(--line);border-radius:5px;background:var(--cream);color:var(--wine);font-size:.875rem;line-height:1.5;white-space:nowrap;box-shadow:0 2px 10px #30211f10;opacity:0;transform:translate(4px,-50%);pointer-events:none;transition:opacity .2s,transform .2s}
.floating-action:focus-visible::after{opacity:1;transform:translate(0,-50%)}
@media(hover:hover){.floating-action:hover{transform:translateY(-2px);box-shadow:0 5px 18px #30211f30}.gift-action:hover{background:var(--wine-dark)}.heart-action:hover{background:#eed8d2}.floating-action:hover::after{opacity:1;transform:translate(0,-50%)}}
@media(max-width:720px){.floating-actions{bottom:calc(12px + env(safe-area-inset-bottom,0px));right:calc(12px + env(safe-area-inset-right,0px))}.floating-action{width:50px;height:50px}.toast{bottom:calc(202px + env(safe-area-inset-bottom,0px))}}
@media(prefers-reduced-motion:reduce){.floating-action,.floating-action::after,.heart-action>svg{transition:none}.floating-action:hover,.floating-action:active{transform:none}}

/* Offset the rhythm of each control without competing with click transforms. */
.floating-action {
  animation: action-drift 4.8s ease-in-out infinite;
}
.gift-action {
  animation-delay: -1.6s;
}
.heart-action {
  animation-duration: 5.6s;
  animation-delay: -3s;
}
.gift-action > svg {
  transform-origin: 50% 65%;
  animation: gift-sway 5.4s ease-in-out infinite;
}
.heart-action > svg {
  transform-origin: center;
  animation: heart-idle-beat 3.6s ease-in-out infinite;
}
.gift-action::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid #81363755;
  border-radius: inherit;
  pointer-events: none;
  animation: gift-halo 4.8s ease-out infinite;
}
@keyframes action-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}
@keyframes gift-sway {
  0%, 65%, 100% { transform: rotate(0); }
  72% { transform: rotate(-9deg); }
  79% { transform: rotate(8deg); }
  86% { transform: rotate(-5deg); }
  93% { transform: rotate(3deg); }
}
@keyframes heart-idle-beat {
  0%, 38%, 100% { transform: scale(1); }
  12% { transform: scale(1.15); }
  22% { transform: scale(1.02); }
  30% { transform: scale(1.1); }
}
@keyframes gift-halo {
  0%, 52%, 100% { opacity: 0; transform: scale(1); }
  60% { opacity: .5; transform: scale(1); }
  92% { opacity: 0; transform: scale(1.24); }
}
.floating-action:focus-visible,
.floating-action:focus-visible > svg,
.floating-action:focus-visible::before,
.floating-action:active,
.floating-action:active > svg,
.floating-action:active::before,
.motion-paused .floating-action,
.motion-paused .floating-action > svg,
.motion-paused .floating-action::before {
  animation-play-state: paused;
}
@media (hover: hover) {
  .floating-action:hover,
  .floating-action:hover > svg,
  .floating-action:hover::before {
    animation-play-state: paused;
  }
}
@media (prefers-reduced-motion: reduce) {
  .floating-action,
  .floating-action > svg,
  .floating-action::before {
    animation: none;
    translate: none;
  }
  .floating-action::before {
    display: none;
  }
}
