/* Shared reflow rules: the composition follows its container, not a phone model. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-width:0}
main,section,header,footer,form,fieldset{min-width:0}
button,input,textarea,select{max-width:100%}
button,a{overflow-wrap:break-word}
img,video,svg{max-width:100%}

/* Keep a single demo label clear of language links and opening controls. */
body.demo-page{--demo-top-space:48px;--demo-top-space:calc(48px + env(safe-area-inset-top,0px))}
body.demo-page .demo-watermark:not(.demo-watermark-card){position:relative;display:block;height:var(--demo-top-space);z-index:1000;overflow:visible}
body.demo-page .demo-watermark:not(.demo-watermark-card) .demo-watermark-caption{position:fixed;top:8px;top:calc(8px + env(safe-area-inset-top,0px));max-width:calc(100% - 32px)}
body.demo-page.has-opening:not(.is-opened) .demo-watermark:not(.demo-watermark-card) .demo-watermark-caption{max-width:calc(100% - 132px)}
/* The demo caption stays in the viewport while the guest scrolls; this independent language control
   sits at the top of the page, level with it, scrolls away and keeps the template's colors. The
   cover copy stays hidden. */
.demo-watermark-langs{position:absolute;top:calc(8px + env(safe-area-inset-top,0px));right:max(12px,env(safe-area-inset-right,0px));z-index:1001;pointer-events:auto}
.demo-watermark-langs .cv-langs{display:inline-flex;gap:0;margin:0;padding:2px;border:1px solid color-mix(in srgb,var(--inv-text,#58443a) 18%,transparent);border-radius:999px;background:color-mix(in srgb,var(--inv-surface,#fffaf4) 94%,transparent);color:var(--inv-text,#58443a);box-shadow:0 2px 12px #24180e1f;font:600 10px/1 system-ui,sans-serif;letter-spacing:.04em}
.demo-watermark-langs .cv-langs a{display:grid;place-items:center;min-width:34px;height:26px;min-height:26px;padding:0 7px;border-radius:999px;color:inherit;text-decoration:none}
.demo-watermark-langs .cv-langs a[aria-current="true"]{background:var(--inv-accent,#58443a);color:var(--inv-on-accent,#fffaf4)}
.demo-watermark-langs .cv-langs a:focus-visible{outline:2px solid var(--inv-accent,#58443a);outline-offset:1px}
body.demo-page .demo-watermark:not(.demo-watermark-card):has(.demo-watermark-langs) .demo-watermark-caption{max-width:calc(100% - 160px)}
body.demo-page .cv-langs:not(.demo-watermark-langs .cv-langs){visibility:hidden}
html.js body.demo-page.has-opening:not(.is-opened) .demo-watermark-langs{visibility:hidden}
@media(max-width:359px){.demo-watermark-langs .cv-langs a{min-width:28px;padding:0 5px}body.demo-page .demo-watermark:not(.demo-watermark-card):has(.demo-watermark-langs) .demo-watermark-caption{max-width:calc(100% - 124px);padding-inline:8px;letter-spacing:0}}
body.guest-body.demo-page{padding-top:calc(46px + var(--demo-top-space))}
.demo-page .guest-demo-bar{top:var(--demo-top-space)}
/* On the burgundy cover, let the cover color continue behind the demo label on phones.
   Move the canvas up by its reserved demo space, then restore that space inside the hero
   so the medallion and invitation text keep their original position. */
@media(max-width:600px){
  body.cv-kk.demo-page main{margin-top:calc(-1 * var(--demo-top-space,0px))}
  body.cv-kk.demo-page .kk-hero{padding-top:calc(22px + var(--demo-top-space,0px))}
}

/* Date, time and venue share an alignment and stay together when they wrap. */
.sc-cover .sc-meta{--sc-meta-align:center;display:flex;flex-direction:column;align-items:var(--sc-meta-align);align-self:var(--sc-meta-align);gap:8px;min-width:0;max-width:100%;text-align:center}
.sc-cover .sc-names:focus{outline:none}
.sc-cover .sc-meta .sc-date,.sc-cover .sc-meta .sc-venue{align-self:var(--sc-meta-align);margin:0;max-width:100%;min-width:0;overflow-wrap:anywhere}
.sc-cover .sc-meta .sc-date>div{min-width:0}
.sc-cover .sc-meta .sc-date{flex-wrap:wrap}
.sc-cover .sc-meta .sc-venue{white-space:normal}
.sc-cover:is(.sc-layout-orbit,.sc-layout-horizon,.sc-layout-feather,.sc-layout-ribbon,.sc-layout-path,.sc-layout-landscape,.sc-layout-cinema,.sc-layout-receipt,.sc-layout-letter,.sc-layout-atlas,.sc-layout-spotlight,.sc-layout-studio,.sc-layout-postage) .sc-meta{--sc-meta-align:flex-start;text-align:left}
.sc-cover:is(.sc-layout-crescent,.sc-layout-editorial,.sc-layout-diptych,.sc-layout-cutout,.sc-layout-wave,.sc-layout-gingham) .sc-meta{--sc-meta-align:flex-end;text-align:right}
.sc-cover.sc-layout-path .sc-meta{margin-left:21px;max-width:calc(100% - 21px)}
.sc-cover.sc-layout-path .sc-meta .sc-date{padding-left:12px}
.sc-cover.sc-layout-landscape .sc-kicker,.sc-cover.sc-layout-crescent .sc-kicker{align-self:flex-start}
.sc-cover.sc-layout-crescent .sc-kicker{align-self:flex-end}
.sc-cover.sc-layout-cloud .sc-copy{padding-right:7%}
.sc-cover.sc-layout-cloud .sc-heading{width:100%;max-width:100%}
.sc-cover.sc-layout-cloud .sc-meta{--sc-meta-align:flex-start;text-align:left}

/* Framed art occupies a flexible row after the text instead of a percentage offset. */
.sc-cover[data-art-window=true] .sc-art-slot{position:relative;flex:1 0 auto;align-self:center;width:90%;min-height:260px;min-height:clamp(220px,75cqw,520px);margin:16px auto 22px}
.sc-cover[data-art-window=true] .sc-art-slot>.sc-art{inset:0;z-index:0;width:100%;height:100%}
.sc-cover[data-art-window=true] .sc-art-slot img{object-position:center bottom}
.sc-cover[data-art-window=true] .sc-copy{gap:12px}
.sc-cover[data-art-window=true] .sc-meta{--sc-meta-align:center;text-align:center}
.sc-cover.sc-layout-window .sc-day{font-size:40px}
.sc-cover.sc-layout-album .sc-art-slot,.sc-cover.sc-layout-polaroid .sc-art-slot{width:82%;margin-block:24px 32px}
.sc-cover.sc-layout-porthole .sc-art-slot{width:96%}

/* Covers can grow for content; short phones do not inherit an 820px minimum. */
.sc-cover{--sc-min-height:100vh;min-height:var(--sc-min-height)}
.sc-cover .sc-copy{min-height:var(--sc-min-height);height:auto}
@supports(height:100svh){.sc-cover{--sc-min-height:calc(100svh - var(--demo-top-space,0px))}}
.collection-card .sc-cover{--sc-min-height:150cqw;height:auto;min-height:0}
.collection-card .sc-copy{min-height:480px;min-height:150cqw;height:auto}
.design-art .invite-cover.collection-card{height:auto;max-height:none;aspect-ratio:auto}
.collection-card .sc-cover[data-art-window=true] .sc-art-slot{min-height:160px;min-height:45cqw;flex-grow:1;margin-block:10px 18px}
.collection-card .sc-title{font-size:26px;font-size:clamp(22px,7cqw,36px)}
.collection-card .sc-names{font-size:25px;font-size:clamp(22px,7cqw,36px)}
.collection-card .sc-meta .sc-date,.collection-card .sc-meta .sc-venue{font-size:12px;line-height:1.55}
.collection-card .sc-meta .sc-clock{font-size:11px;letter-spacing:.06em}
.collection-card .sc-meta .sc-date{padding:5px 10px}
.collection-card .sc-meta .sc-venue{padding:4px 10px}
.collection-card .sc-meta{gap:7px}

/* Child characters have a separate illustration below all editable cover content. */
.sc-cover[data-art-scene=true] .sc-copy{gap:14px;padding:6% 7% 7%}
.sc-cover[data-art-scene=true] .sc-heading{width:100%;max-width:100%;padding:0;background:none;box-shadow:none}
.sc-cover[data-art-scene=true] .sc-title{max-width:none;font-size:28px;font-size:clamp(26px,6.5cqw,44px);line-height:1.2;letter-spacing:-.035em}
.sc-cover[data-art-scene=true] .sc-names{width:100%;margin-inline:0;padding:0;border:0;border-radius:0;background:none;font-size:32px;font-size:clamp(30px,8cqw,50px)}
.sc-cover[data-art-scene=true] .sc-meta{flex-direction:row;flex-wrap:wrap;justify-content:var(--sc-meta-align);align-items:center;align-self:stretch;gap:10px 24px}
.sc-cover[data-art-scene=true] .sc-meta .sc-date,.sc-cover[data-art-scene=true] .sc-meta .sc-venue{align-self:center;padding:0;border:0;background:none}
.sc-cover[data-art-scene=true] .sc-meta .sc-day{display:none}
/* Explicit width keeps WebKit's aspect ratio independent of negative margins. */
.sc-cover[data-art-scene=true] .sc-art-slot{position:relative;flex:0 0 auto;align-self:stretch;width:116.28%;width:100cqw;aspect-ratio:10/11;margin:4px -8.14% 0;overflow:hidden}
.sc-cover[data-art-scene=true] .sc-art-slot>.sc-art{inset:0;z-index:0;width:100%;height:100%;border:0}
.sc-cover[data-art-scene=true] .sc-art-slot img{object-fit:cover;object-position:center bottom}

.sc-cover.sc-child-balloons .sc-art-slot{aspect-ratio:2/3}
/* Page: 4:5 keeps the balloon top, the animals and the scarf; only the lower clouds are cropped. */
.sc-cover.sc-child-balloons[data-art-scene=true]:not([data-card=true]) .sc-art-slot{aspect-ratio:4/5}
.sc-cover.sc-child-balloons[data-art-scene=true]:not([data-card=true]) .sc-art-slot img{object-position:center 8%}
/* The sky's top edge fades into the page colour (no hard band between the names and the picture). */
.sc-cover.sc-child-balloons[data-art-scene=true]:not([data-card=true]) .sc-art-slot{border:0;border-radius:0;box-shadow:none;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 15%);mask-image:linear-gradient(to bottom,transparent,#000 15%)}
/* Demo page lifts the language pill by 22px; pull the names up the same amount so no empty strip remains. */
@media(max-width:600px){body.collection-page.demo-page .sc-cover.sc-child-balloons .sc-heading{margin-top:-22px}}
.collection-card .sc-cover[data-art-scene=true] .sc-copy{min-height:0;gap:10px}
.collection-card .sc-cover[data-art-scene=true] .sc-title{font-size:24px;font-size:clamp(22px,6.5cqw,32px)}
.collection-card .sc-cover[data-art-scene=true] .sc-names{font-size:26px;font-size:clamp(24px,7.5cqw,36px)}
.collection-card .sc-cover[data-art-scene=true] .sc-art-slot{margin-top:2px;margin-bottom:-8.14%}

/* Folded screens use one column; wider foldables have useful two-column cards. */
@media(min-width:540px) and (max-width:1050px){.atelier .design-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 24px}}
@media(max-width:359px){
 .atelier .catalog-page{padding-inline:14px}
 .atelier .catalog-heading h1{font-size:34px}
 .atelier .category-tabs{gap:6px}
 .atelier .pill{padding-inline:12px;white-space:normal;text-align:center;line-height:1.35}
 .sc-cover .sc-copy{padding-inline:6%;gap:10px}
 .sc-cover .sc-title{font-size:28px}
 .sc-cover .sc-names{font-size:28px}
 .collection-card .sc-title,.collection-card .sc-names{font-size:22px}
 .sc-cover .sc-kicker{letter-spacing:.12em;max-width:100%;overflow-wrap:anywhere}
 .collection-page .cv-block{padding-inline:18px}
 .lv-cover{padding-inline:18px}
 .lv-cover.love-felt{padding-left:38px;padding-right:18px}
 .lv-reply{padding-inline:18px}
}
@media(max-width:600px){
 #rsvp input:not([type=radio]):not([type=checkbox]):not([type=hidden]),#rsvp textarea,#rsvp select{font-size:16px}
 .inv-music{right:12px;right:max(12px,env(safe-area-inset-right));bottom:12px;bottom:max(12px,env(safe-area-inset-bottom))}
 .inv-gallery-dialog{max-height:90vh;max-height:90dvh}
}
@media(max-height:500px) and (min-width:500px){.sc-cover{--sc-min-height:640px}.lv-cover{min-height:640px}.lv-frame{min-height:580px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

@media(hover:none){.atelier .design-art:hover .invite-cover{transform:none}}
/* Readable fallbacks for engines without container-relative typography. */
@supports not (width:1cqw){
 .sc-cover .sc-title{font-family:var(--sc-heading,Georgia,serif);font-size:32px;line-height:1.2}
 .sc-cover .sc-names{font-family:var(--sc-heading,Georgia,serif);font-size:30px;line-height:1.25}
 .collection-card .sc-title,.collection-card .sc-names{font-size:24px}
 .sc-cover .sc-kicker{font-size:11px}
 .sc-cover .sc-meta{font-size:14px}
 .collection-card .sc-copy{min-height:460px}
 .lv-cover{width:100%;max-width:520px;min-height:100vh}
 .lv-cover .lv-frame{min-height:calc(100vh - 54px)}
 .lv-cover .lv-heading span{font-size:48px}
 .lv-cover .lv-heading em{font-size:42px}
 .lv-cover .lv-body,.lv-cover .lv-button{font-size:16px}
 .lv-cover .lv-eyebrow,.lv-cover .lv-caption,.lv-cover .lv-secondary{font-size:12px}
 .lv-cover .lv-breathing-space{min-height:220px}
 .lv-cover .lv-art-wrap{height:280px}
 .st-cover .st-in{width:100%;max-width:480px}
 .st-cover .st-names{font-size:38px}
 .st-cover .st-date{font-size:18px}
 .st-cover .st-kicker,.st-cover .st-when,.st-cover .st-venue{font-size:12px}
 .st-cover .st-art{width:180px}
}
@supports not (background:color-mix(in srgb,white 50%,transparent)){
 .sc-cover .sc-date,.sc-cover .sc-venue,.sc-cover .sc-body,.sc-cover .sc-greeting:not(:empty){background:var(--sc-paper,#fff4e5)}
}
/* A card's demo badge has its own footer instead of covering dates or the pictured CTA. */
.atelier .design-art.demo-card{padding-bottom:36px;background:var(--paper,#faf7f1)}
.atelier .design-art .demo-watermark-card{inset:auto 0 0;height:36px}
.atelier .design-art .demo-watermark-card .demo-watermark-caption{top:auto;bottom:6px;left:8px;max-width:calc(100% - 16px);box-shadow:none}

/* Cover links belong to the invitation's typography; the illustration stays unobstructed. */
.sc-cover .sc-face{position:relative;isolation:isolate;min-width:0}
.sc-cover .sc-face{display:flex;flex-direction:column;width:100%;max-width:100%;flex:1 1 auto}
.sc-cover .sc-copy{min-width:0;max-width:100%;flex:1 1 auto}
.sc-cover[data-has-entry=true] .sc-copy{min-height:max(0px,calc(var(--sc-min-height) - 78px))}
.sc-cover .sc-entry{position:relative;z-index:2;flex:0 0 auto;width:100%;min-width:0;padding:14px 7% 16px;background:transparent;color:var(--inv-text);text-align:center}
.sc-cover.sc-photo-filled .sc-entry{color:#fff;text-shadow:0 2px 16px #0009}
.collection-page,.lv-page{background-color:var(--inv-bg)}

/* Keep the collection cover's own surface behind the fixed demo badge on phones.
   Body padding otherwise exposes the page color as a contrasting strip above it. */
.collection-page.demo-page main{margin-top:calc(-1 * var(--demo-top-space,0px))}
.collection-page.demo-page .sc-cover{--sc-demo-base-height:var(--sc-min-height);min-height:calc(var(--sc-demo-base-height) + var(--demo-top-space,0px));padding-top:var(--demo-top-space,0px)}
.collection-page.demo-page .sc-cover .sc-face{min-height:var(--sc-demo-base-height)}
/* Full-bleed portraits continue behind the demo strip while their text stays in place. */
.collection-page.demo-page .sc-cover:not([data-art-window=true]):not([data-art-scene=true]):not(.sc-orchard-light):not(.sc-birthday-confetti-poster):not(.sc-moon-cradle):not(.sc-first-path):not(.sc-ala-kiyiz-heirloom) .sc-face>.sc-art{top:calc(-1 * var(--demo-top-space,0px))}
.collection-page.demo-page .sc-photo-filled:is(.sc-garden-proposal,.sc-letter-to-you,.sc-blue-hour-window,.sc-ala-kiyiz-heirloom,.sc-our-polaroid-year,.sc-first-path,.sc-orchard-light) .sc-photo-backdrop,
.collection-page.demo-page .sc-photo-filled:is(.sc-garden-proposal,.sc-letter-to-you,.sc-blue-hour-window,.sc-ala-kiyiz-heirloom,.sc-our-polaroid-year,.sc-first-path,.sc-orchard-light) .sc-photo-shade{top:calc(-1 * var(--demo-top-space,0px))}
.collection-page.demo-page .sc-photo-filled:is(.sc-our-polaroid-year,.sc-first-path,.sc-orchard-light) .sc-photo-backdrop{height:calc(var(--sc-photo-lead-height,54svh) + var(--demo-top-space,0px))}
.collection-page.demo-page .sc-photo-filled.sc-our-polaroid-year .sc-photo-backdrop{--sc-photo-lead-height:49svh}
.collection-page.demo-page .sc-photo-filled.sc-first-path .sc-photo-backdrop{--sc-photo-lead-height:47svh}
.sc-cover .sc-entry .cover-entry,.lv-cover .lv-actions .cover-entry,.guest-invitation .invite-cover .invitation-open.cover-entry,.guest-invitation .story-opening .cover-entry{display:flex;align-items:center;justify-content:center;gap:14px;min-height:48px;width:fit-content;max-width:100%;margin:0 auto;padding:7px 2px;border:0;border-radius:0;background:none;box-shadow:none;color:inherit;font:italic 500 22px/1.4 'Cormorant Garamond',Georgia,serif;letter-spacing:0;text-transform:none;text-decoration:none;overflow-wrap:anywhere;filter:none;transform:none;cursor:pointer}
.cover-entry .cover-entry-label{min-width:0;text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent);text-decoration-thickness:1px;text-underline-offset:.3em}
.cover-entry .cover-entry-mark{display:grid;place-items:center;flex:none;width:32px;height:32px;border:1px solid color-mix(in srgb,currentColor 35%,transparent);border-radius:50%;transition:transform .2s,border-color .2s}
.cover-entry .cover-entry-chevron{display:block;width:15px;height:15px;background:currentColor;-webkit-mask:url('/static/icons/atelier/chevron-down.svg') center/contain no-repeat;mask:url('/static/icons/atelier/chevron-down.svg') center/contain no-repeat}
.cover-entry:hover .cover-entry-mark{transform:translateY(2px);border-color:currentColor}
.cover-entry:focus-visible{outline:2px solid currentColor;outline-offset:6px}
.sc-font-script .sc-entry .cover-entry{font:400 22px/1.5 var(--sc-heading)}
.sc-font-round .sc-entry .cover-entry,.sc-font-display .sc-entry .cover-entry,.lv-cover:is(.love-comic,.love-puzzle) .lv-actions .cover-entry{font:600 14px/1.5 'Manrope',system-ui,sans-serif}
.sc-font-mono .sc-entry .cover-entry,.lv-cover.love-mixtape .lv-actions .cover-entry{font:500 14px/1.5 ui-monospace,'Courier New',monospace}
.sc-cover.sc-layout-ticket .sc-entry,.sc-cover.sc-layout-receipt .sc-entry{border-top:1px dashed color-mix(in srgb,currentColor 20%,transparent)}
/* The receipt cover lays its text over the full photo: the call to open sits on a paper pill so it reads on any photo. */
.sc-cover.sc-layout-receipt:not(.sc-photo-filled) .sc-entry .cover-entry{padding:9px 18px;border:1px solid color-mix(in srgb,var(--inv-text) 16%,transparent);border-radius:999px;background:color-mix(in srgb,var(--inv-bg) 88%,transparent);box-shadow:0 5px 18px rgb(0 0 0 / .14);color:var(--inv-text)}
.sc-cover.sc-layout-bookplate .sc-entry{border-top:3px double color-mix(in srgb,currentColor 20%,transparent)}
.love-card .lv-cover .lv-actions .cover-entry{min-height:0;padding:2cqi 0;font-size:4.5cqi;gap:2cqi}
.love-card .cover-entry .cover-entry-mark{width:7cqi;height:7cqi}
.love-card .cover-entry .cover-entry-chevron{width:3.5cqi;height:3.5cqi}
@media(prefers-reduced-motion:reduce){.cover-entry .cover-entry-mark{transition:none}.cover-entry:hover .cover-entry-mark{transform:none}}
@media(max-width:680px){.sc-cover[data-has-entry=true][data-art-window=false][data-art-scene=false] .sc-copy{min-height:max(150cqw,calc(var(--sc-min-height) - 78px))}}

.guest-invitation .invite-cover .invitation-open.cover-entry{margin-top:24px}

.guest-invitation .cover-story .cover-entry{text-shadow:0 1px 5px #0008}
.guest-invitation .cover-story .cover-entry-mark{filter:drop-shadow(0 1px 3px #0006)}

/* Families and signatures inherit the invitation's typography and palette. */
body .celebration-hosts,body .celebration-closing{box-sizing:border-box;position:relative;isolation:isolate;max-width:620px;margin:0 auto;padding:46px 24px;text-align:center;color:var(--inv-text);overflow-wrap:anywhere}
body .celebration-hosts{padding:12px 0}
body .celebration-flourish{display:block;margin:0 auto 20px;font:400 32px/1 Georgia,serif;color:var(--inv-accent)}
body .celebration-hosts-title{margin:0 0 32px;font:400 clamp(27px,6vw,38px)/1.25 var(--cv-display,var(--inv-font-heading,Georgia,serif));text-wrap:balance;color:inherit;background:none;-webkit-text-fill-color:currentColor}
body .celebration-families{display:flex;flex-wrap:wrap;justify-content:center;gap:32px 24px}
body .celebration-family{flex:1 1 200px;min-width:0;max-width:100%}
body .celebration-side{margin:0 0 12px;font:500 10px/1.8 'Manrope',system-ui,sans-serif;letter-spacing:.15em;text-transform:uppercase;color:inherit}
body .celebration-family-names{margin:0;font:400 clamp(25px,5.6vw,36px)/1.4 var(--cv-display,var(--inv-font-heading,Georgia,serif));white-space:pre-line;text-wrap:balance}
body .celebration-closing{margin-top:30px;padding:62px 24px 40px}
body .celebration-closing-message{max-width:390px;margin:0 auto 32px;font:400 clamp(20px,4.6vw,27px)/1.55 var(--cv-display,var(--inv-font-heading,Georgia,serif));white-space:pre-line;text-wrap:balance}
body .celebration-signature{display:flex;flex-direction:column;align-items:center;gap:10px;margin:0;font:400 clamp(36px,9vw,64px)/1.2 var(--cv-script,var(--cv-display,Georgia,serif))}
body .celebration-name{display:block;max-width:100%;text-wrap:balance}
body .celebration-and{font:400 13px/1.8 'Manrope',system-ui,sans-serif;letter-spacing:.15em}
body[data-interior="editorial"] .celebration-hosts{border-top:1px solid var(--si-line);border-bottom:1px solid var(--si-line);padding:32px 0}
body[data-interior="editorial"] .celebration-signature{font-family:var(--si-display);letter-spacing:-.035em}
body[data-interior="heritage"] .celebration-hosts{border-block:3px double var(--si-line);padding:32px 14px}
body[data-interior="heritage"] .celebration-family{border-inline:1px solid var(--si-line);padding-inline:14px}
body[data-interior="ceremony"] .celebration-hosts,body[data-interior="moonlight"] .celebration-hosts{border:1px solid var(--si-line);border-radius:150px 150px 0 0;padding:54px 24px 32px}
body[data-interior="garden"] .celebration-closing .celebration-flourish{font-size:48px;transform:rotate(-15deg)}
body[data-interior="garden"] .celebration-family-names,body[data-interior="silk"] .celebration-family-names{font-family:var(--si-script);font-size:clamp(26px,5.6vw,36px)}
body[data-interior="correspondence"] .celebration-hosts{padding:34px 20px;border-block:1px solid var(--si-line);background:var(--si-wash)}
body[data-interior="landscape"] .celebration-closing{border-top:1px solid var(--si-line)}
@media(max-width:480px){body .celebration-families{flex-direction:column;gap:30px}body .celebration-family{flex:auto}body .celebration-closing{padding:48px 22px 30px}body .celebration-signature{font-size:clamp(34px,10vw,48px)}}
@media(max-width:480px){
  body .celebration-closing{margin-top:16px;padding:32px 18px 18px}
  body .celebration-closing .celebration-flourish{margin-bottom:12px;font-size:28px}
  body .celebration-closing-message{margin-bottom:14px;font-size:clamp(18px,5vw,23px);line-height:1.4}
  body .cv-footer{margin:20px auto 0;padding:20px 16px 20px;gap:18px}
  body .cv-made{margin-top:0}
  body.cv-kc .kc-top{position:absolute;top:12px;left:22px;right:22px;justify-content:flex-end}
  body.cv-kc .cv-langs{border:1px solid color-mix(in srgb,var(--inv-bg) 14%,transparent);background:#F4EEE6;color:var(--inv-bg);box-shadow:0 4px 16px rgb(0 0 0 / .24)}
  body.cv-kc .kc-horns{top:22px;width:min(92%,360px);max-width:360px;opacity:.42;-webkit-mask-image:linear-gradient(to bottom,#000 68%,transparent 100%);mask-image:linear-gradient(to bottom,#000 68%,transparent 100%)}
}

/* Collection covers share the same language-control slot. Keep it near the demo label
   and on a neutral, solid surface that stays readable over light, dark, or photo artwork. */
@media(max-width:600px){
  body.collection-page.demo-page .sc-languages{transform:translateY(-22px)}
  body.collection-page .sc-languages .cv-langs{border:1px solid rgb(52 43 48 / .2);background:#F4EEE6;color:#302b30;box-shadow:0 4px 14px rgb(24 22 49 / .18)}
  body.collection-page .sc-languages .cv-langs a[aria-current="true"]{background:var(--inv-accent);color:var(--inv-on-accent,#fff)}
}

/* RSVP feedback inherits the invitation's paper, ink and accent. */
#rsvp .rsvp-attendance{min-width:0;margin:0;padding:0;border:0}
#rsvp [hidden]{display:none!important}
#rsvp .rsvp-message{display:flex;align-items:flex-start;gap:12px;margin:20px 0;padding:16px 18px;border:1px solid color-mix(in srgb,var(--inv-accent) 35%,transparent);border-inline-start:3px solid var(--inv-accent);border-radius:6px;background:color-mix(in srgb,var(--inv-accent) 7%,var(--inv-surface));color:var(--inv-text);font:inherit;font-size:14px;line-height:1.65;text-align:start;letter-spacing:normal;overflow-wrap:anywhere;scroll-margin-block:25vh}
#rsvp .rsvp-message svg{flex:0 0 20px;margin-top:2px;color:var(--inv-accent)}
#rsvp .rsvp-message:focus-visible{outline:2px solid var(--inv-accent);outline-offset:4px}
#rsvp [aria-invalid=true]:not([type=radio]){border-color:var(--inv-accent);box-shadow:0 2px 0 var(--inv-accent)}
#rsvp form[aria-busy=true] button[type=submit]{cursor:progress;opacity:.65}
/* Template samples disable the whole form (fieldset[disabled], v.o.Preview): the submit button keeps its full colours so the design reads; it still cannot be pressed. */
#rsvp fieldset[disabled] button[type=submit]:disabled{opacity:1;cursor:default}
body[data-interior] #rsvp .rsvp-message{border-radius:2px;border-color:var(--si-line);border-inline-start-color:var(--inv-accent);background:var(--si-wash)}
body[data-interior=heritage] #rsvp .rsvp-message,body[data-interior=ceremony] #rsvp .rsvp-message{border-block-style:double;border-block-width:3px}
#rsvp .lv-choices input:checked+span{color:var(--inv-text)!important;font-weight:500}
#rsvp .lv-choices label:has(input:checked){background:color-mix(in srgb,var(--inv-accent) 8%,var(--inv-surface));border-color:var(--inv-accent)}

/* Compact language choices on every invitation cover. */
body .cv-langs,body .live-language{display:inline-flex;gap:0;padding:3px}
body .cv-langs a,body .live-language a{display:grid;place-items:center;min-width:34px;min-height:32px;height:32px;padding:0 7px;font-size:10px;line-height:1;letter-spacing:.04em}
body .invite-languages{gap:2px;font-size:10px}
body .invite-languages>a,body .invite-languages>span{display:grid;place-items:center;min-width:34px;min-height:32px;padding:0 7px}

/* D050: give the style-cover language switcher more breathing room on phones. */
@media(max-width:600px){.st-cover>.cv-langs{top:6px;right:10px;gap:1px;padding:2px}.st-cover>.cv-langs>a{min-width:30px;min-height:28px;height:28px;padding:0 5px;font-size:9px;letter-spacing:.02em}}

/* Keep the baby and first-step portraits' faces inside the child-art crop. */
.sc-cover.sc-moon-cradle[data-art-scene=true] .sc-art-slot img,.sc-cover.sc-first-path[data-art-scene=true] .sc-art-slot img{object-position:center top}

/* D049: keep portrait cover copy distinct from arbitrary uploaded or fallback photos. */
.sc-cover.sc-photo-template .sc-heading{position:relative;isolation:isolate;width:fit-content;max-width:100%;color:var(--inv-text);text-shadow:none}
.sc-cover.sc-photo-template.sc-layout-ribbon .sc-heading{align-self:flex-start}
.sc-cover.sc-photo-template .sc-heading::before{content:"";position:absolute;z-index:-1;inset:-.45em -.7em;pointer-events:none;border:1px solid color-mix(in srgb,var(--inv-text) 14%,transparent);border-radius:12px;background:color-mix(in srgb,var(--sc-paper) 96%,transparent);box-shadow:0 8px 24px rgb(0 0 0 / .13)}
.sc-cover.sc-photo-template .sc-heading :is(.sc-title,.sc-kicker){color:var(--inv-text);text-shadow:none}
.sc-cover.sc-photo-template .sc-heading .sc-names{color:color-mix(in srgb,var(--inv-text) 72%,var(--inv-accent));text-shadow:none}
.sc-cover.sc-photo-template .sc-heading .sc-names em{color:color-mix(in srgb,var(--inv-text) 72%,var(--inv-accent))}
.sc-cover.sc-photo-filled .sc-heading :is(.sc-title,.sc-kicker,.sc-names,.sc-names em){color:var(--sc-paper);text-shadow:none}
.sc-cover.sc-photo-filled .sc-heading::before{border-color:color-mix(in srgb,var(--sc-paper) 28%,transparent);background:color-mix(in srgb,var(--inv-text) 96%,transparent)}
.sc-cover.sc-photo-template .sc-languages .cv-langs{border:1px solid color-mix(in srgb,var(--inv-text) 18%,transparent);background:color-mix(in srgb,var(--sc-paper) 96%,transparent);color:var(--inv-text);box-shadow:0 4px 14px rgb(0 0 0 / .12)}
.sc-cover.sc-photo-template .sc-meta .sc-date,.sc-cover.sc-photo-template .sc-meta .sc-venue{color:var(--inv-text);text-shadow:none;background:color-mix(in srgb,var(--sc-paper) 97%,transparent);box-shadow:0 4px 14px rgb(0 0 0 / .1)}

/* D049: make the older child-scene header and its illustration read as one cover. */
.sc-cover[data-art-scene=true]:not([data-card=true]) .sc-heading{padding:12px 16px;border:1px solid color-mix(in srgb,var(--inv-text) 14%,transparent);border-radius:20px;background:color-mix(in srgb,var(--sc-paper) 76%,white);box-shadow:0 8px 24px rgb(0 0 0 / .07)}
.sc-cover[data-art-scene=true]:not([data-card=true]) .sc-languages .cv-langs{border:1px solid color-mix(in srgb,var(--inv-text) 18%,transparent);background:color-mix(in srgb,var(--sc-paper) 96%,transparent);color:var(--inv-text);box-shadow:0 4px 14px rgb(0 0 0 / .1)}
.sc-cover[data-art-scene=true]:not([data-card=true]) .sc-art-slot{border:1px solid color-mix(in srgb,var(--inv-accent) 36%,transparent);border-top:5px solid var(--inv-accent);border-radius:22px 22px 0 0;box-shadow:0 -8px 24px rgb(0 0 0 / .1)}
/* Entry link over a photo cover: a paper pill keeps the caption readable on any picture. */
.sc-olive-nikah .sc-entry .cover-entry,.sc-pressed-flower-letter .sc-entry .cover-entry,.sc-amber-promise .sc-entry .cover-entry{padding:9px 18px;border:1px solid color-mix(in srgb,var(--inv-text) 16%,transparent);border-radius:999px;background:color-mix(in srgb,var(--inv-bg) 90%,transparent);box-shadow:0 5px 18px rgb(0 0 0 / .14);color:var(--inv-text);text-shadow:none}
.sc-ala-jip-path .sc-entry .cover-entry{padding:9px 18px;border:1px solid color-mix(in srgb,var(--inv-text) 16%,transparent);border-radius:999px;background:color-mix(in srgb,var(--inv-bg) 90%,transparent);box-shadow:0 5px 18px rgb(0 0 0 / .14);color:var(--inv-text);text-shadow:none}
/* Every cover's entry link sits on a paper pill: it must read over any photo or painting. */
.sc-cover .sc-entry .cover-entry{padding:9px 18px;border:1px solid color-mix(in srgb,var(--inv-text) 16%,transparent);border-radius:999px;background:color-mix(in srgb,var(--inv-bg) 90%,transparent);box-shadow:0 5px 18px rgb(0 0 0 / .14);color:var(--inv-text);text-shadow:none}
/* The client's fonts, one rule per kind of text (D061, D062) over every layout's own faces; the opening scene keeps the template's. */
body.inv-font-b :is(p,li,dd,dt,small,span,a,button,label,input,textarea,select,time,td,th,div,strong,em,b,i):not(.inv-opening *,svg *){font-family:var(--inv-font-b)!important}
body.inv-font-h :is(h1,h2,h3,h4,h5,[class*="title"]):not(.inv-opening *,svg *),body.inv-font-h :is(h1,h2,h3,h4,h5,[class*="title"]):not(.inv-opening *,svg *) *:not(svg *){font-family:var(--inv-font-h)!important}
body.inv-font-n :is([class*="name"],[class*="amp"]):not(.inv-opening *,svg *),body.inv-font-n :is([class*="name"]):not(.inv-opening *,svg *) *:not(svg *){font-family:var(--inv-font-n)!important}
body.inv-script-n.cv-kyl :is([class*="name"]):not(.inv-opening *,svg *),body.inv-script-n:lang(ky) :is([class*="name"]):not(.inv-opening *,svg *),body.inv-script-h.cv-kyl :is(h1,h2,h3):not(.inv-opening *,svg *),body.inv-script-h:lang(ky) :is(h1,h2,h3,h4,h5,[class*="title"]):not(.inv-opening *,svg *){font-family:'Bad Script',cursive!important}
/* A text the client took off the page is drawn empty by the template (D062). */
body.has-hidden-copy :is(h2,h3,p,a,button,legend,label,small):empty{display:none!important}

/* Cover text block is centred on every layout that used to hang it on the left (2026-11-13: «стоит слева, не очень смотрится»).
   The side rules/bars that marked the left edge move to the top edge so the centred block keeps its accent. */
.sc-cover:is(.sc-layout-path,.sc-layout-landscape,.sc-layout-cloud,.sc-layout-orbit,.sc-layout-horizon,.sc-layout-cinema,.sc-layout-receipt,.sc-layout-spotlight,.sc-layout-doorway,.sc-layout-atlas,.sc-layout-polaroid,.sc-layout-ticket){--sc-meta-align:center}
.sc-cover:is(.sc-layout-path,.sc-layout-landscape,.sc-layout-cloud,.sc-layout-orbit,.sc-layout-horizon,.sc-layout-cinema,.sc-layout-receipt,.sc-layout-spotlight,.sc-layout-doorway,.sc-layout-atlas,.sc-layout-polaroid,.sc-layout-ticket) :is(.sc-copy,.sc-heading,.sc-meta,.sc-date){align-items:center;text-align:center}
.sc-cover:is(.sc-layout-path,.sc-layout-landscape,.sc-layout-cloud,.sc-layout-orbit,.sc-layout-horizon,.sc-layout-cinema,.sc-layout-receipt,.sc-layout-spotlight,.sc-layout-doorway,.sc-layout-atlas,.sc-layout-polaroid,.sc-layout-ticket) :is(.sc-heading,.sc-kicker,.sc-meta,.sc-date){align-self:center;margin-left:0;max-width:100%}
.sc-cover:is(.sc-layout-path,.sc-layout-landscape,.sc-layout-cloud,.sc-layout-orbit,.sc-layout-horizon,.sc-layout-cinema,.sc-layout-receipt,.sc-layout-spotlight,.sc-layout-doorway,.sc-layout-atlas,.sc-layout-polaroid,.sc-layout-ticket) .sc-meta{--sc-meta-align:center;justify-content:center}
.sc-cover:is(.sc-layout-path,.sc-layout-landscape,.sc-layout-cloud,.sc-layout-orbit,.sc-layout-horizon,.sc-layout-cinema,.sc-layout-receipt,.sc-layout-spotlight,.sc-layout-doorway,.sc-layout-atlas,.sc-layout-polaroid,.sc-layout-ticket) .sc-names{justify-content:center}
.sc-cover:is(.sc-layout-path,.sc-layout-landscape,.sc-layout-orbit,.sc-layout-spotlight,.sc-layout-doorway) .sc-heading{width:100%;max-width:100%}
.sc-cover:is(.sc-layout-path,.sc-layout-spotlight) .sc-heading{padding:14px 18px 0;border-left:0;border-top:3px dashed var(--inv-accent)}
.sc-cover.sc-layout-spotlight .sc-heading{border-top-style:solid;border-top-width:2px}
.sc-cover.sc-layout-orbit .sc-copy{padding-inline:7%}
.sc-cover:is(.sc-layout-path,.sc-layout-orbit) .sc-meta .sc-date{border-left:0;padding-left:14px}

/* Birthday collection covers (cherry-supper, child-cosmos, child-princess, child-snow), demo page only: the cover's own language switcher is hidden
   there, but its 40px slot and an empty greeting kept the kicker + name ~90px under the demo header. The slot is dropped and the gap above the text equals the gap
   between the date and the picture (--cv-gap). The scene picture goes 4:5 so its bottom edge stays where it was. Real invitations (visible switcher) are untouched. */
body.collection-page.demo-page:is(.sc-tpl-cherry-supper, .sc-tpl-child-cosmos, .sc-tpl-child-princess, .sc-tpl-child-snow) { --cv-gap: 24px; } /* 24px from the visible language pill (ends at 40px; the demo header box ends at 48px) */
body.collection-page.demo-page:is(.sc-tpl-cherry-supper, .sc-tpl-child-cosmos, .sc-tpl-child-princess, .sc-tpl-child-snow) .sc-cover:not([data-card="true"]) :is(.sc-languages, .sc-greeting:empty) { display: none; }
body.collection-page.demo-page:is(.sc-tpl-cherry-supper, .sc-tpl-child-cosmos, .sc-tpl-child-princess, .sc-tpl-child-snow) .sc-cover:not([data-card="true"]) .sc-copy { padding-top: calc(var(--cv-gap) - 8px); }
body.collection-page.demo-page:is(.sc-tpl-child-cosmos, .sc-tpl-child-princess, .sc-tpl-child-snow) .sc-cover[data-art-scene="true"]:not([data-card="true"]) .sc-art-slot { margin-top: calc(var(--cv-gap) - 14px); }
@media (max-width: 600px) { body.collection-page.demo-page:is(.sc-tpl-child-cosmos, .sc-tpl-child-princess, .sc-tpl-child-snow) .sc-cover[data-art-scene="true"]:not([data-card="true"]) .sc-art-slot { aspect-ratio: 4 / 5; } }

/* An opening is a fixed overlay without a scrollbar and the page behind it has one on desktop (classic scrollbars): when the overlay left, the whole page moved 7px
   sideways (a crisp picture such as the marble ballroom jumped visibly; hand-over gate: 40 % stray pixels). The gutter is reserved up front, so the page keeps its width. */
html.js:has(body.has-opening) { scrollbar-gutter: stable; }
