/* A small letter above Home; all artwork, fonts and colours reuse Bazm assets. */
.gathering-popup{width:min(380px,calc(100% - 32px));max-height:calc(100svh - 32px);padding:0;border:0;border-radius:1px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;background:#471820;color:#f3e8d2;box-shadow:0 26px 75px #08030699;scrollbar-width:thin;scrollbar-color:#aa865e #471820}
.gathering-popup::backdrop{background:#16070de0;backdrop-filter:blur(3px)}
.gathering-popup[open]{animation:gathering-popup-arrive .45s cubic-bezier(.2,.75,.25,1) both}
.gathering-popup-closed,.gathering-popup-letter{position:relative;min-height:534px;text-align:center}
.gathering-popup-closed{padding:30px 24px 20px;background:repeating-linear-gradient(0deg,#c8a57a06 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,#13070e12 0 1px,transparent 1px 4px),linear-gradient(125deg,#59232f,#34101c);border:1px solid #c8a57a70}
.gathering-popup-closed:before{content:'';position:absolute;inset:9px;border:1px solid #c8a57a33;pointer-events:none}
.gathering-popup-close{position:absolute;z-index:5;top:6px;right:6px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:none;border:0;color:inherit;font:26px/1 Georgia,serif}
.gathering-popup-eyebrow{font:10px/1.7 Arial,sans-serif;letter-spacing:1.8px;margin:9px 17px;color:#c8a57a}
.gathering-popup h2{font:400 37px/1.08 Cormorant,Georgia,serif;letter-spacing:-.6px;margin:26px 0 15px;text-wrap:balance;overflow-wrap:anywhere}.gathering-popup h2 em{font-weight:400}
.gathering-popup-flourish{display:flex;align-items:center;justify-content:center;gap:12px;color:#c8a57a;font:22px/1.4 Georgia,serif}
.gathering-popup-flourish:before,.gathering-popup-flourish:after{content:'';width:40px;height:1px;background:#c8a57a66}
.gathering-popup-envelope{position:relative;isolation:isolate;height:183px;margin:26px 1px 0;transform:rotate(-4deg);background:linear-gradient(140deg,#74303b,#481923 65%);border:1px solid #c8a57a65;box-shadow:0 15px 25px #10060b66;perspective:900px;transition:transform .4s ease,opacity .4s ease}
.gathering-popup-envelope:before{content:'';position:absolute;inset:7px;border:1px dashed #c8a57a50;pointer-events:none}
.gathering-popup-fold{position:absolute;inset:0;background:linear-gradient(32deg,transparent 49.7%,#c8a57a55 50%,transparent 50.5%),linear-gradient(-32deg,transparent 49.7%,#c8a57a55 50%,transparent 50.5%)}
.gathering-popup-flap{position:absolute;left:0;top:0;right:0;height:105px;clip-path:polygon(0 0,100% 0,50% 100%);background:linear-gradient(175deg,#8a4650,#56212e);filter:drop-shadow(0 4px 2px #16070d66);transform-origin:center top;transition:transform .4s ease}
.gathering-popup-seal{position:absolute;left:50%;top:58px;transform:translateX(-50%);width:74px;height:74px;border-radius:46% 51% 48% 53%;border:1px solid #b68356;background:radial-gradient(circle at 28% 25%,#a05247,#65232b 69%,#38121d);box-shadow:0 5px 7px #1b080e88,inset 0 0 0 4px #66232b,inset 0 0 0 5px #c8a57a6b;transition:transform .25s,opacity .25s}
.gathering-popup-seal:hover{transform:translateX(-50%) rotate(-7deg) scale(1.04)}.gathering-popup-seal .brand-mark{--brand-width:49px;--brand-ink:#e5c594;margin:auto;transform:rotate(-9deg)}
.gathering-popup-address{position:absolute;bottom:13px;left:18px;text-align:left;font:italic 18px/1.05 Cormorant,Georgia,serif;color:#e1c9ab}
.gathering-popup-postmark{position:absolute;bottom:12px;right:15px;border:1px solid #c8a57a55;border-radius:50%;height:48px;width:48px;display:flex;align-items:center;justify-content:center;transform:rotate(-15deg);font:9px/1.5 Arial,sans-serif;letter-spacing:1px;color:#d3b58d}
.gathering-popup-hint{font:italic 20px/1.35 Cormorant,Georgia,serif;color:#e1c9ab;margin:29px 0 4px}
.gathering-popup-later{display:inline-block;min-height:44px;padding:8px 12px;border:0;background:none;color:#d2b99d;text-decoration:underline;text-decoration-color:#c8a57a55;text-underline-offset:5px;font:17px/1.4 Cormorant,Georgia,serif}
.gathering-popup.is-unsealing .gathering-popup-flap{transform:rotateX(155deg)}.gathering-popup.is-unsealing .gathering-popup-seal{opacity:0;transform:translateX(-50%) scale(1.15)}.gathering-popup.is-unsealing .gathering-popup-envelope{transform:translateY(12px) rotate(-1deg)}
.gathering-popup-letter{padding:32px 27px 18px;color:#592a31;background:repeating-linear-gradient(0deg,#a88d6308 0 1px,transparent 1px 4px),radial-gradient(ellipse at 50% 0,#fcf5e5,#ead8b8);box-shadow:inset 0 0 0 9px #eddfc6,inset 0 0 0 10px #a27e5755;transform-origin:center bottom}
.gathering-popup.is-open .gathering-popup-letter{animation:gathering-paper-arrive .5s cubic-bezier(.2,.75,.25,1) both}
.gathering-popup-letter:before{content:'❦';position:absolute;top:19px;left:22px;color:#98683e;font:25px/1 Georgia,serif}
.gathering-popup-letter .gathering-popup-close{top:5px;right:5px;color:#592a31;background:#eddfc6}
.gathering-popup-logo{--brand-width:85px;--brand-ink:#823b3d;margin:6px auto 13px;transform:rotate(-5deg)}
.gathering-popup-letter .gathering-popup-eyebrow{color:#805e48;letter-spacing:1.4px;margin:7px 0}
.gathering-popup-letter h2{font-size:40px;line-height:1.02;letter-spacing:-.8px;margin:13px 0 17px}
.gathering-popup-introduction{font:italic 20px/1.35 Cormorant,Georgia,serif;margin:0 0 17px;overflow-wrap:anywhere}
.gathering-popup-details{border-block:1px solid #a98c6559;margin:0 0 16px;padding:14px 0}
#gathering-popup-date{font:11px/1.8 Arial,sans-serif;letter-spacing:1px;margin:0 0 7px;text-transform:uppercase}
#gathering-popup-venue{font:22px/1.2 Cormorant,Georgia,serif;margin:0;overflow-wrap:anywhere}
.gathering-popup-signature{font:italic 19px/1.3 Cormorant,Georgia,serif;margin:12px 0 13px}
.gathering-popup-view{display:flex;align-items:center;justify-content:center;gap:24px;border:1px solid #73353c;background:#592a31;color:#f3e8d2;width:100%;min-height:46px;padding:10px 12px;font:20px/1.25 Cormorant,Georgia,serif;text-decoration:none}
.gathering-popup-view:hover{background:#73353c}.gathering-popup-letter .gathering-popup-later{color:#805e48}
.gathering-popup :focus-visible{outline:2px solid #e5c594;outline-offset:3px}.gathering-popup-letter :focus-visible{outline-color:#73353c}#gathering-popup-title:focus{outline:none}
.gathering-letter-button{position:fixed;z-index:21;bottom:max(22px,env(safe-area-inset-bottom));right:24px;display:flex;align-items:center;justify-content:center;width:46px;height:46px;min-height:46px;padding:0;border:1px solid #c8a57a70;border-radius:50%;background:radial-gradient(circle at 30% 20%,#602735,#35111df5);color:#ddc499;box-shadow:0 4px 16px #10050b40,inset 0 0 0 3px #35111d66;transition:background .2s,transform .2s}
.gathering-letter-button:hover{background:#602534;transform:translateY(-2px)}.gathering-letter-button:focus-visible{outline:2px solid #e5c594;outline-offset:4px}body.has-dialog .gathering-letter-button{visibility:hidden}
.invitation-announcement{grid-column:2;max-width:510px;width:100%;color:var(--quiet);border-block:1px solid #c8a57a40;padding:14px 0;margin:0 auto}
.invitation-announcement summary{font:italic 21px/1.4 Cormorant,Georgia,serif;padding:5px 0;min-height:44px}.invitation-announcement p{font:22px/1.5 Cormorant,Georgia,serif;margin:15px 0 7px;white-space:pre-line;overflow-wrap:anywhere}
@keyframes gathering-popup-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes gathering-paper-arrive{from{opacity:.25;transform:translateY(18px) rotate(-2deg)}to{opacity:1;transform:none}}
@media(max-width:900px){.gathering-letter-button{right:17px;bottom:calc(114px + env(safe-area-inset-bottom))}}
@media(max-width:380px){.gathering-popup-closed{padding-inline:19px}.gathering-popup h2{font-size:34px}.gathering-popup-letter{padding-inline:23px}.gathering-popup-letter h2{font-size:35px}.gathering-popup-introduction{font-size:19px}.gathering-popup-eyebrow{font-size:9px;letter-spacing:1.5px}}
@media(max-height:650px){.gathering-popup{max-height:calc(100svh - 20px)}}
@media(prefers-reduced-motion:reduce){.gathering-popup[open],.gathering-popup.is-open .gathering-popup-letter{animation:none}.gathering-popup-envelope,.gathering-popup-flap,.gathering-popup-seal,.gathering-letter-button{transition:none}.gathering-letter-button:hover{transform:none}}
