/* Velvet invitation: colour is an accent; paper, silk and ink give chapters a rhythm. */
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished{--design-paper:#faf6ee!important;--design-silk:#ece5d9!important;--velvet-ink:#302a24;--velvet-muted:#605950;--velvet-line:#bda47766;--sg-serif:Georgia,'Times New Roman',serif;--sg-sans:Arial,sans-serif;background:var(--design-paper);color:var(--velvet-ink)}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished>section{--chapter-ink:var(--velvet-ink);--chapter-muted:var(--velvet-muted);--chapter-accent:#876632;--chapter-panel:#ffffff80;--chapter-line:var(--velvet-line);background:var(--design-paper);color:var(--chapter-ink);padding-block:clamp(44px,14cqw,82px)}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished>section:is([data-sg-chapter="schedule"],[data-sg-chapter="flowers"],[data-sg-chapter="accommodation"],[data-sg-chapter="menu"],[data-sg-chapter="prewedding"],[data-sg-chapter="faq"]){background:var(--design-silk);background-image:none!important}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished>section:is([data-sg-chapter="cover"],[data-sg-chapter="format"],[data-sg-chapter="video"],[data-sg-chapter="rsvp"]){--chapter-ink:#fcf3e4;--chapter-muted:#e8dfd0;--chapter-accent:#e2c58f;--chapter-panel:#ffffff08;--chapter-line:#d2b77b55;background:linear-gradient(155deg,var(--design-mid),var(--design-deep));color:var(--chapter-ink)}
/* Understated engraved borders mark the dark chapters without crossing the text. */
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished>section:is([data-sg-chapter="format"],[data-sg-chapter="video"],[data-sg-chapter="rsvp"])::before{content:"";position:absolute;pointer-events:none;z-index:-1;inset:14px;border:1px solid #d1b47835;border-radius:18px}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished>section:is([data-sg-chapter="location"],[data-sg-chapter="story"],[data-sg-chapter="contacts"]){background-image:linear-gradient(#faf6eef5,#faf6eef5),url('/assets/sacred-garden/embossed-paper.webp')!important;background-size:cover}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished>section[data-sg-chapter="cover"]{position:relative;display:flex;align-items:center;justify-content:center;min-height:var(--sg-screen,100svh);padding:clamp(40px,16cqw,84px) 8% 48px;text-align:center;background-image:linear-gradient(155deg,var(--design-mid),var(--design-deep))!important}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished>section[data-sg-chapter="cover"]::before{content:"";position:absolute;inset:14px;z-index:-1;border:1px solid #d4b97866;border-radius:120px 120px 18px 18px;clip-path:none;background:none;transform:none}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished>section[data-sg-chapter="cover"]::after{content:"";position:absolute;inset:20px;z-index:-1;border:1px solid #d4b97826;border-radius:116px 116px 14px 14px;background:none;transform:none;width:auto;height:auto;pointer-events:none}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished :is(.preview-monogram,.monogram){position:relative;flex:0 0 auto;width:clamp(72px,26cqw,110px);height:auto;aspect-ratio:1;margin:0 auto clamp(18px,6cqw,28px);border:1px solid #d4bb83;border-radius:50%;transform:none;box-shadow:0 0 0 5px #d4bb830c;background-color:#ffffff05;color:#f4ddb0}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished :is(.preview-monogram,.monogram)>b{transform:none;font:italic clamp(16px,5cqw,24px)/1 Georgia,serif;color:#f4ddb0}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished :is(.preview-monogram,.monogram).has-photo{width:min(200px,62cqw,100%);height:auto;aspect-ratio:1;background-size:cover;background-position:center;border-radius:50%;margin-inline:auto;align-self:center}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished :is(.preview-monogram,.monogram).has-photo>b{position:absolute;left:50%;right:auto;bottom:-10px;display:flex;justify-content:center;align-items:center;gap:4px;transform:translateX(-50%);width:max-content;min-width:54px;height:25px;margin:0;padding:0 10px;border:1px solid #d4bb8399;border-radius:999px;background:var(--design-deep);font:italic 11px/1 Georgia,serif}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished [data-sg-chapter="cover"]>:is(.preview-kicker,.section-kicker){font:600 clamp(8px,2.5cqw,11px)/1.7 Arial,sans-serif;letter-spacing:.18em;color:#e2c58f;margin:0 0 18px}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished [data-sg-chapter="cover"] h1{width:100%;max-width:100%;margin:0;font:italic 400 clamp(28px,10cqw,58px)/1.16 Georgia,serif;color:#fcf3e4;text-shadow:none;letter-spacing:-.025em}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished [data-sg-chapter="cover"] h1>span{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished [data-sg-chapter="cover"] h1 small{display:block;margin:6px 0;font:italic .48em/1.4 Georgia,serif;color:#e2c58f}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished .preview-line{display:none}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished :is(.preview-message,.cover-message){max-width:340px;margin:clamp(16px,5cqw,24px) auto 0!important;font:italic 400 clamp(12px,3.8cqw,18px)/1.65 Georgia,serif;color:#e8dfd0}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished :is(.preview-date,.date-card){box-sizing:border-box;display:block;width:100%;max-width:340px;min-width:0;margin:clamp(18px,6cqw,26px) auto 0;padding:16px 8px;border:0;border-block:1px solid #d4bb8344;border-radius:0;background:none;box-shadow:none;text-align:center;transform:none}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished :is(.preview-date-line,.date-card>b){font:400 clamp(18px,6cqw,28px)/1.4 Georgia,serif;color:#fcf3e4}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished .preview-date-line{display:flex;align-items:baseline;justify-content:center;gap:5px;flex-wrap:wrap}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished .preview-date-line>*{font:inherit;color:inherit}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished :is(.preview-date>small,.date-card>span){display:block;margin-top:8px;color:#e8dfd0;font:600 8px/1.6 Arial,sans-serif;letter-spacing:.14em}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished :is(.preview-scroll-cue,.scroll-cue){position:absolute;bottom:22px;left:0;right:0;color:#dfc78e;font:600 7px/1.7 Arial,sans-serif;letter-spacing:.14em}
/* Light chapters need ink-coloured figures and copy, including their nested cards. */
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished [data-sg-chapter="countdown"] :is(b,em){color:var(--chapter-ink)}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished [data-sg-chapter="schedule"] :is(b,strong){color:#876632}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished [data-sg-chapter="faq"] :is(summary,p,b){color:var(--chapter-ink)}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished [data-sg-chapter="contacts"] :is(h3,p){color:var(--chapter-ink)}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished :is(.preview-footer,.footer){background:var(--design-deep);color:#dfc78e}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished>section[data-sg-chapter="schedule"] :is(.preview-schedule-item,.schedule-item)>span{color:var(--chapter-ink)}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished>section[data-sg-chapter="faq"] :is(.preview-faq>article,.faq-list details)>:is(b,p,summary){color:var(--chapter-ink)}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished>section[data-sg-chapter="gifts"] :is(.preview-gift-price,.gift-card .card-copy>b){color:#76582b}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished>section[data-sg-chapter="childhood"] :is(.child-separator,.preview-childhood>b){color:#876632}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished>section[data-sg-chapter="rsvp"] h2{color:var(--chapter-ink);font-style:italic;font-size:clamp(32px,9.5cqw,56px)}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished>section .preview-dress-screen{color:var(--chapter-ink)}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished>section{--chapter-accent:#705224}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished>section:is([data-sg-chapter="cover"],[data-sg-chapter="format"],[data-sg-chapter="video"],[data-sg-chapter="rsvp"]){--chapter-accent:#e2c58f;background-color:var(--design-deep);background-image:linear-gradient(155deg,var(--design-mid),var(--design-deep))!important}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished>section[data-sg-chapter="cover"]::before,:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished>section[data-sg-chapter="cover"]::after{width:auto;height:auto;max-width:none;aspect-ratio:auto}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished>section :is(h2,h3)::before,:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished>section :is(h2,h3)::after{content:none}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished>section[data-sg-chapter="gallery-section"]{--chapter-ink:#302a24;--chapter-muted:#605950;--chapter-accent:#705224;--chapter-line:#bda47766;background:var(--design-paper)!important}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished>section[data-sg-chapter="gallery-section"]>:is(small,.section-kicker){position:static;display:block;inset:auto;margin:0 0 24px;padding:0;background:none;border:0;border-radius:0;box-shadow:none;color:var(--chapter-ink);transform:none}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished :is(.preview-gallery-controls,.gallery-controls){position:static;transform:none;inset:auto;backdrop-filter:none}
#invitation-preview[data-template]:where(:not([data-template="sacred"])).sg-finished .preview-dress-screen>header>:is(span,b){display:none}
#invitation-preview[data-template]:where(:not([data-template="sacred"])).sg-finished .preview-gifts-note{color:var(--chapter-muted)!important;opacity:1}
#invitation-preview[data-template]:where(:not([data-template="sacred"])).sg-finished .preview-contact-photo{color:#605950;background:var(--design-silk)}
:is(#invitation-preview[data-template]:where(:not([data-template="sacred"])),#invitation[data-theme]:where(:not([data-theme="sacred"]))).sg-finished>section[data-sg-chapter="schedule"] :is(b,strong){color:#705224}
#invitation-preview[data-template]:where(:not([data-template="sacred"])).sg-finished :is(.preview-gift-price,.preview-prewedding-details){color:#705224!important}
#invitation[data-theme]:where(:not([data-theme="sacred"])).sg-finished .gallery-section>.section-kicker{color:var(--chapter-ink)!important;backdrop-filter:none}
#invitation-preview[data-template]:where(:not([data-template="sacred"])).sg-finished .preview-gift-copy>small{color:#705224!important}

#invitation-preview[data-template]:where(:not([data-template="sacred"])).sg-finished .preview-gift-copy>b{color:#705224!important}
