:root{color-scheme:light;--wine:#742c3c;--cream:#f9f1e5;--ink:#49202a}*{box-sizing:border-box}body{margin:0;background:#201316;color:var(--cream);font:16px/1.5 Georgia,serif}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #cc9a50;outline-offset:4px}header{max-width:1120px;margin:auto;padding:20px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px}header span{font-size:20px}header small{display:block;font:11px/1.6 system-ui,sans-serif;letter-spacing:.18em;color:#c6a6a6}header button,.under button{border:1px solid #92746c;background:transparent;color:var(--cream);border-radius:30px;padding:9px 18px}main{display:grid;justify-items:center;padding:8px 16px 28px}.envelope{position:relative;width:min(100%,510px);aspect-ratio:3/4;overflow:hidden;box-shadow:0 22px 80px #0008;container-type:inline-size;background:#b95b3c}.envelope video,.fallback{position:absolute;width:100%;height:100%;object-fit:cover;inset:0}.welcome{position:absolute;left:12%;top:15%;width:76%;border:0;background:transparent;color:#fff3df;text-shadow:0 1px 4px #642116;display:grid;justify-items:center;gap:22px;padding:20px 0;transition:opacity .18s}.eyebrow{font-size:14px;letter-spacing:.1em;text-transform:uppercase}.welcome .names{font-size:clamp(26px,7.5cqw,40px);line-height:1.15;font-style:italic;overflow-wrap:anywhere}.tap{font-size:16px;border-bottom:1px solid #f9e5c1;padding-bottom:5px}.paper{position:absolute;left:27%;top:27%;width:49%;color:var(--wine);text-align:center;opacity:0;transform:translateY(9px);transition:opacity .6s,transform .6s}.paper.visible{opacity:1;transform:none}.paper .eyebrow{font-size:clamp(12px,2.8cqw,15px);margin:0 0 14px;letter-spacing:.04em}.paper h1{font-size:clamp(23px,6.6cqw,35px);font-style:italic;font-weight:400;line-height:1.1;margin:0 0 14px;overflow-wrap:anywhere}.paper #dateLabel{font-size:clamp(13px,3.1cqw,17px);margin:0 0 10px}.links{display:grid;gap:2px;justify-items:center}.links button{border:0;background:transparent;color:var(--wine);font-weight:bold;text-decoration:underline;font-size:clamp(14px,3.1cqw,17px);min-height:40px;padding:4px}.under{min-height:92px;text-align:center;display:grid;justify-items:center;gap:4px}.under p{color:#d9bfb9;font-size:14px;margin:18px 0 4px}.under button{font-size:14px}dialog{border:1px solid #d8c3ad;border-radius:12px;background:var(--cream);color:var(--ink);width:min(520px,calc(100% - 32px));max-height:88dvh;overflow:auto;padding:26px;box-shadow:0 25px 90px #0008}dialog::backdrop{background:#180b10c9;backdrop-filter:blur(5px)}.dialoghead{display:flex;align-items:center;justify-content:space-between;gap:12px}.dialoghead h2{font-size:29px;font-weight:400;margin:0}.close{background:none;border:0;font:30px system-ui;color:var(--wine);padding:4px 10px}.muted{font:14px/1.5 system-ui,sans-serif;color:#725b58}form>label{display:grid;gap:5px;margin:15px 0;font:14px/1.5 system-ui,sans-serif}input,textarea{width:100%;background:#fffaf3;border:1px solid #b9a29b;border-radius:5px;color:var(--ink);padding:10px;font:16px/1.4 system-ui,sans-serif}textarea{resize:vertical}.primary{width:100%;background:var(--wine);color:white;border:0;border-radius:6px;padding:13px}.fileactions{display:flex;gap:16px;margin-top:16px;flex-wrap:wrap}.fileactions button,.import{font:14px system-ui,sans-serif;color:var(--wine);background:none;border:0;text-decoration:underline;cursor:pointer}.import input{display:block;max-width:220px;font-size:12px;margin-top:8px}.note{white-space:pre-line}h3{font-size:29px;font-style:italic;font-weight:400}h4{font-size:20px;margin-bottom:0}[hidden]{display:none!important}@media(max-width:420px){header{padding:16px}header span{font-size:18px}.paper{left:26%;width:50%;top:26%}.paper .eyebrow{margin-bottom:9px}.paper h1{margin-bottom:9px}.links button{min-height:36px}main{padding-inline:10px}}@media(prefers-reduced-motion:reduce){.paper,.welcome{transition:none}}

header nav{display:flex;align-items:center;gap:16px;font-size:14px}header a{color:var(--cream)}select{padding:10px;border:1px solid #b9a29b;border-radius:5px;background:#fffaf3;color:var(--ink);font:16px system-ui;width:100%}button:disabled{opacity:.55;cursor:wait}#createCopy{margin-top:20px}.honeypot{position:absolute;left:-9999px}#responseStatus:not(:empty){padding:12px;background:#e9dfcf;border-radius:6px}#editorStatus a{color:var(--wine)}@media(max-width:420px){header nav{gap:9px;font-size:12px}header button{padding:8px 12px}}

#saveShare{margin-top:12px}#copyGuestLink{margin-top:16px}#shareDialog a{color:var(--wine);text-decoration:underline}

/* A full-page piece of wedding stationery, with no floating modal chrome. */
@font-face{font-family:'Wedding Script';src:url('/fonts/great-vibes.ttf') format('truetype');font-display:swap}
@font-face{font-family:'Wedding Serif';src:url('/fonts/cormorant-garamond.ttf') format('truetype');font-display:swap;font-weight:400 700}
dialog.celebration{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;padding:0;background:var(--cream);color:var(--wine);box-shadow:none;overscroll-behavior:contain;font-family:'Wedding Serif',Georgia,serif}
.celebration::backdrop{background:var(--cream);backdrop-filter:none}
.details-navigation{max-width:1100px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 32px;color:var(--wine)}
.details-navigation>span{font-style:italic;font-size:20px;text-align:right;overflow-wrap:anywhere}
.details-back,.details-return{background:none;color:inherit;border:0;border-bottom:1px solid currentColor;padding:10px 0;min-height:44px;font-family:Georgia,serif;font-size:14px}
.details-stationery{position:relative;max-width:850px;margin:0 auto 36px;padding:55px 52px 58px;text-align:center;border:1px solid #b795645c;outline:1px solid #b795642b;outline-offset:-8px;animation:stationery-arrives .45s ease-out}
.details-kicker{font-size:14px;font-family:Georgia,serif;letter-spacing:.14em;text-transform:uppercase;margin:0 0 38px;color:var(--wine)}
.details-intro{font-size:26px;font-variant:small-caps;margin:0 0 12px}
.details-destination{font-family:'Wedding Script','Apple Chancery','URW Chancery L',Georgia,serif;font-size:clamp(48px,6.4vw,86px);line-height:1.28;font-weight:400;overflow-wrap:anywhere;margin:0 auto;max-width:740px;padding:0 12px 8px;text-wrap:balance}
.details-rule{display:flex;align-items:center;justify-content:center;gap:18px;margin:18px auto 26px;color:#a88850;max-width:250px}
.details-rule::before,.details-rule::after{content:'';height:1px;background:currentColor;flex:1;opacity:.5}
.details-rule span{font-family:'Wedding Script',Georgia,serif;font-size:32px;line-height:1}
.details-date{font-size:clamp(24px,3.3vw,32px);font-variant:small-caps;line-height:1.3;margin:0 0 6px;text-wrap:balance}
.details-time{font-size:24px;font-variant:small-caps;line-height:1.4;margin:0 0 22px}
.details-time:empty,.details-venue:empty,.details-message:empty{display:none}
.details-venue{font-size:25px;font-weight:500;margin:0 0 12px;overflow-wrap:anywhere}
.details-message{font-size:21px;line-height:1.55;white-space:pre-line;max-width:610px;margin:12px auto 0;overflow-wrap:anywhere}
.wedding-countdown{margin:44px auto 0;max-width:580px}
.wedding-countdown h3{font-style:normal;font-weight:400;font-variant:small-caps;font-size:22px;margin:0 0 20px}
.countdown-numbers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
.countdown-numbers>div{position:relative;min-width:0;padding:0 8px}
.countdown-numbers>div+div::before{content:':';position:absolute;left:-3px;top:0;font-size:36px;line-height:1.5;color:#a88850}
.countdown-numbers span{display:block;font-size:clamp(34px,5.5vw,59px);font-weight:400;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.countdown-numbers small{display:block;font-size:16px;font-variant:small-caps;margin-top:8px;letter-spacing:.05em}
.countdown-status{font-size:22px;line-height:1.4;margin:16px 0 0}
.countdown-status:empty{display:none}
.details-signature{font-family:'Wedding Script',Georgia,serif;font-size:37px;line-height:1.5;margin:32px 0 20px;overflow-wrap:anywhere}
.details-actions{display:flex;flex-direction:column;align-items:center;gap:14px}
.details-rsvp{background:var(--wine);color:var(--cream);padding:13px 48px;border:1px solid var(--wine);border-radius:2px;font-size:22px;min-height:48px}
.details-return{font-size:14px}
@keyframes stationery-arrives{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media(max-width:600px){.details-navigation{padding:14px 20px;gap:14px}.details-navigation>span{font-size:17px}.details-stationery{margin:0 12px 20px;padding:36px 22px 36px}.details-kicker{font-size:12px;line-height:1.6;letter-spacing:.1em;margin-bottom:28px}.details-intro{font-size:24px}.details-destination{font-size:clamp(40px,10.5vw,60px);padding-inline:0}.details-date{font-size:25px}.details-time,.details-venue{font-size:22px}.details-message{font-size:20px}.wedding-countdown{margin-top:34px}.wedding-countdown h3{font-size:20px}.countdown-numbers span{font-size:clamp(30px,8.5vw,46px)}.countdown-numbers>div+div::before{font-size:28px;left:-2px}.countdown-numbers small{font-size:14px;letter-spacing:0}.countdown-numbers>div{padding:0 4px}.details-signature{font-size:32px}}
@media(prefers-reduced-motion:reduce){.details-stationery{animation:none}}

/* Every theme plays one reusable opening video beneath editable wording. */
body[data-theme="winter-vow"]{--wine:#1d483e;--cream:#faf6ed;--ink:#173c33;background:#0e2521}
body[data-theme="winter-vow"] header small{color:#c8bc97}
body[data-theme="winter-vow"] .envelope{background:#eee5d6}
body[data-theme="winter-vow"] .welcome{left:22%;top:40%;width:56%;gap:13px;padding:12px 0;color:#faf6ed;text-shadow:0 1px 3px #062820}
body[data-theme="winter-vow"] .welcome .eyebrow{font-size:clamp(12px,2.7cqw,14px)}
body[data-theme="winter-vow"] .welcome .names{font-size:clamp(23px,6.2cqw,33px)}
body[data-theme="winter-vow"] .welcome .tap{font-size:14px}
/* The card and envelope share a center at 48.5% of the final video frame. */
body[data-theme="winter-vow"] .paper{left:48.5%;top:28%;width:45%;transform:translate(-50%,9px)}
body[data-theme="winter-vow"] .paper.visible{transform:translateX(-50%)}
body[data-theme="winter-vow"] .paper .eyebrow{letter-spacing:.08em;margin-bottom:14px}
body[data-theme="winter-vow"] .paper h1{font-size:clamp(23px,6.6cqw,35px);line-height:1.12;margin-bottom:14px}
body[data-theme="winter-vow"] .paper #dateLabel{margin-bottom:12px}
body[data-theme="winter-vow"] .links{gap:7px}
body[data-theme="winter-vow"] .links button{font-weight:400;text-underline-offset:5px}
body[data-theme="winter-vow"] .under p{color:#d5ceb9}
@media(max-width:420px){body[data-theme="winter-vow"] .welcome{gap:8px}body[data-theme="winter-vow"] .paper .eyebrow,body[data-theme="winter-vow"] .paper h1{margin-bottom:12px}body[data-theme="winter-vow"] .paper #dateLabel{margin-bottom:9px}}

/* Keep unusually long buyer wording and actions readable beyond the artwork's safe area. */
.invitation-overflow{width:min(100%,510px);background:var(--cream);color:var(--wine);border:1px solid #d8c3ad;padding:24px 20px;container-type:inline-size}
.invitation-overflow{text-align:center}
.invitation-overflow .eyebrow{font-size:14px;line-height:1.5;overflow-wrap:anywhere;margin:0 0 14px}
.invitation-overflow .links button{font-size:17px;min-height:44px}
.invitation-overflow #dateLabel{font-size:16px;margin:0 0 14px}

/* Little Boo baby shower stationery. */
body[data-theme="little-boo"]{--wine:#714532;--cream:#fff8ee;--ink:#51392d;background:#eee4d5;color:#51392d}
body[data-theme="little-boo"] header a,body[data-theme="little-boo"] header button,body[data-theme="little-boo"] .under button{color:#51392d}
body[data-theme="little-boo"] header small,body[data-theme="little-boo"] .under p{color:#6b725e}
body[data-theme="little-boo"] header>span{max-width:270px}
body[data-theme="little-boo"] .envelope{background:#f5edde;box-shadow:0 20px 65px #76584035;border-radius:4px}
body[data-theme="little-boo"] .welcome{left:20%;top:45%;width:60%;gap:10px;padding:0;color:#593a2d;text-shadow:none}
body[data-theme="little-boo"] .welcome .eyebrow{font-size:clamp(11px,2.5cqw,14px)}
body[data-theme="little-boo"] .welcome .names{font-size:clamp(22px,6cqw,32px)}
body[data-theme="little-boo"] .tap{border-color:#714532;font-size:14px}
body[data-theme="little-boo"] .paper{left:50%;top:24%;width:52%;transform:translate(-50%,9px)}
body[data-theme="little-boo"] .paper.visible{transform:translateX(-50%)}
body[data-theme="little-boo"] .paper .eyebrow{font-size:clamp(15px,4.3cqw,23px);text-transform:none;letter-spacing:0;line-height:1.1;font-weight:bold;text-wrap:balance;margin-bottom:14px}
body[data-theme="little-boo"] .paper h1{font-size:clamp(22px,6cqw,32px)}
body[data-theme="little-boo"] .links button{font-weight:400}
body[data-theme="little-boo"] .details-rule span{font-family:Georgia,serif;font-size:22px}
body[data-theme="little-boo"] .details-stationery{border-color:#c7a381;background:linear-gradient(135deg,#fffaf0,#f7eddd)}
#registryLink{text-decoration:none;background:#626e52;border-color:#626e52}

body[data-theme="little-boo"] .paper h1,body[data-theme="little-boo"] .welcome .names{font-family:'Wedding Script',Georgia,serif;font-style:normal;font-size:clamp(28px,7.5cqw,40px)}

/* Keep the Little Boo greeting above the ribbon, including wrapped names. */
body[data-theme="little-boo"] .welcome{
  left:12%;top:33%;width:76%;height:22%;padding:0;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto minmax(0,1fr) auto;
  gap:clamp(4px,1.2cqw,6px);text-align:center;
}
body[data-theme="little-boo"] .welcome .eyebrow{
  max-width:100%;font-size:clamp(10px,2.5cqw,13px);line-height:1.3;
}
body[data-theme="little-boo"] .welcome .names{
  min-width:0;width:100%;max-width:100%;align-self:center;
  font-size:clamp(18px,5.8cqw,30px);line-height:1.15;
  white-space:normal;overflow-wrap:anywhere;text-wrap:balance;
}
body[data-theme="little-boo"] .welcome .tap{
  font-size:clamp(12px,2.8cqw,14px);line-height:1.3;padding-bottom:3px;
}
