/* Sekar Jawa — an invitation in the form of a keepsake book. */
body.theme-thm32 {
    --paper:#f6f0e3; --paper-deep:#e9dfc9; --ink:#353f31; --olive:#3e4b36;
    --muted:#777766; --gold:#9b7c4e; --line:#a999763e; --theme-focus:#87622c;
    --thm32-desktop-book-height:min(560px,calc(100dvh - 235px),calc((100vw - 140px)/1.36));
    margin:0; color:var(--ink); background:#eae5da;
    font:400 13px/1.7 var(--invie-font-body, 'Manrope'),sans-serif; -webkit-font-smoothing:antialiased;
    overflow:hidden; width:100%; height:100svh; height:100dvh;
}
.theme-thm32 *, .theme-thm32 *::before,.theme-thm32 *::after { box-sizing:border-box; }
.theme-thm32 :where(h1,h2,h3,p,figure,blockquote) { margin:0; }
.theme-thm32 :is(h1,h2,h3) { font-family:var(--invie-font-heading, 'Cormorant Garamond'),Georgia,serif; font-weight:500; line-height:1.08; overflow-wrap:anywhere; }
.theme-thm32 h2 { font-size:clamp(2rem,3.1vw,3.25rem); letter-spacing:-.03em; }
.theme-thm32 h3 { font-size:clamp(1.65rem,2.3vw,2.5rem); }
.theme-thm32 a { color:inherit; text-decoration:none; }
.theme-thm32 button { font:inherit; cursor:pointer; }
.theme-thm32 button:disabled { opacity:.35; cursor:default; }
.theme-thm32 img { display:block; max-width:100%; }
.theme-thm32 :is(input,textarea,select,button) { max-width:100%; }
.theme-thm32 [hidden] { display:none!important; }
.theme-thm32 ::selection { background:#bba376; color:#fff9ec; }
.theme-thm32 :is(a,button,input,textarea,select) { -webkit-tap-highlight-color:transparent; }
.thm32-loader { position:fixed; z-index:100; inset:0; display:grid; place-items:center; align-content:center; gap:14px; background:#eae5da; color:var(--ink); pointer-events:none; opacity:1; visibility:visible; transition:opacity .55s ease,visibility .55s ease; }
.thm32-loader.is-loaded { opacity:0; visibility:hidden; }
.thm32-loader__ornament { position:absolute; width:min(26vw,180px); height:min(26vw,180px); color:var(--gold); opacity:.24; fill:none; stroke:currentColor; stroke-width:1; animation:thm32-loader-orbit 16s linear infinite; }
.thm32-loader__mark { display:flex; align-items:center; justify-content:center; gap:5px; color:var(--olive); font:italic 46px/.8 var(--invie-font-heading, 'Cormorant Garamond'),serif; letter-spacing:-.08em; animation:thm32-loader-breathe 1.8s ease-in-out infinite; }
.thm32-loader__mark i { color:var(--gold); font-size:18px; font-style:normal; }
.thm32-loader p { color:var(--muted); font-size:9px; letter-spacing:.16em; text-transform:uppercase; }
.thm32-loader__rule { position:relative; display:block; width:96px; height:1px; background:var(--line); overflow:hidden; }
.thm32-loader__rule::after { content:''; position:absolute; inset:0 auto 0 0; width:35%; background:var(--gold); animation:thm32-loader-progress 1.1s ease-in-out infinite; }
@keyframes thm32-loader-breathe { 0%,100% { transform:translateY(0) scale(.98); opacity:.72; } 50% { transform:translateY(-4px) scale(1.02); opacity:1; } }
@keyframes thm32-loader-progress { 0% { transform:translateX(-110%); } 100% { transform:translateX(310%); } }
@keyframes thm32-loader-orbit { to { transform:rotate(360deg); } }
.thm32-world { position:relative; width:100%; height:100%; min-height:0; background:radial-gradient(ellipse at 50% 42%,#f5f1e9 0,#eae5da 67%,#e0dacd 100%); isolation:isolate; }
.thm32-grain { position:absolute; inset:0; pointer-events:none; z-index:0; opacity:.05; background-image:radial-gradient(#655c44 .4px,transparent .65px),radial-gradient(#fff9ed .5px,transparent .75px); background-size:3px 5px,5px 3px; background-position:0 0,2px 1px; mix-blend-mode:multiply; }
.thm32-javanese-ornament { position:absolute; z-index:1; left:2.5vw; bottom:2.5vh; width:142px; height:142px; pointer-events:none; color:var(--gold); opacity:.24; }
.thm32-javanese-ornament svg { display:block; width:100%; height:100%; overflow:visible; }
.thm32-javanese-ornament__kawung { fill:none; stroke:currentColor; stroke-width:1.15; }
.thm32-javanese-ornament__janur { fill:none; stroke:currentColor; stroke-width:1.05; stroke-linecap:round; }
.thm32-javanese-ornament__janur path:nth-child(2) { opacity:.72; }
.thm32-javanese-ornament__janur path:nth-child(3) { opacity:.5; }
.thm32-masthead { position:absolute; z-index:30; top:0; left:0; width:100%; height:100px; padding:20px 5vw; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.thm32-wordmark { font:italic 44px/.7 var(--invie-font-heading, 'Cormorant Garamond'),serif; letter-spacing:-.04em; }
.thm32-wordmark span { display:block; font:600 7px/2.8 var(--invie-font-body, 'Manrope'),sans-serif; letter-spacing:.22em; text-align:center; margin-top:8px; }
.thm32-masthead>p { font-size:10px; color:var(--muted); letter-spacing:.08em; }
.thm32-index-toggle { display:flex; align-items:center; gap:20px; border:0; border-bottom:1px solid var(--line); background:transparent; padding:10px 0; font-size:11px!important; }
.thm32-index-toggle span { font-size:18px; }
.thm32-world-footer { position:absolute; bottom:20px; inset-inline:5vw; display:flex; align-items:center; justify-content:space-between; gap:20px; color:var(--muted); font-size:8px; letter-spacing:.04em; }
.thm32-world-footer,.thm32-reader { z-index:30; }
.thm32-reader { position:relative; }
.thm32-world-footer>p { font-size:10px; }
.thm32-world-footer i { font-style:normal; padding-inline:8px; }
.thm32-world-footer>span:first-child { max-width:32%; overflow-wrap:anywhere; }
.thm32-kicker { font-size:8px; line-height:1.8; font-weight:600; letter-spacing:.19em; text-transform:uppercase; color:var(--gold); }
.thm32-divider { display:flex; align-items:center; justify-content:center; gap:15px; margin:22px auto; font-size:13px; color:var(--gold); }
.thm32-divider::before,.thm32-divider::after { content:''; width:42px; height:1px; background:var(--line); }
.thm32-button { display:inline-flex; align-items:center; justify-content:center; gap:16px; min-height:44px; padding:10px 20px; border:1px solid var(--olive); background:var(--olive); color:var(--paper)!important; font-size:10px!important; transition:background .2s,transform .2s; }
.thm32-button:hover { background:#556246; transform:translateY(-1px); }
.thm32-button--paper { background:transparent; color:var(--olive)!important; }
.thm32-text-link { display:inline-flex; align-items:center; gap:10px; border:0; border-bottom:1px solid var(--line); background:none; padding:7px 0; min-height:44px; color:var(--gold)!important; font-size:10px; }

/* Hardcover: artwork and live typography remain separate. */
.thm32-cover { position:absolute!important; z-index:10; inset:104px 0 56px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:26px; transition:opacity .65s,visibility .65s; }
.thm32-cover__book { position:relative; height:var(--thm32-desktop-book-height); aspect-ratio:.68; border-radius:2px 5px 5px 2px; background:#384332; transform:perspective(1800px) rotateY(-9deg) rotateZ(-2deg); transform-style:preserve-3d; box-shadow:-18px 28px 34px #353b3440,2px 2px 0 #46513b,6px 5px 0 #d8cdb3,9px 6px 0 #34402e; animation:thm32-book-float 7s ease-in-out infinite; }
.thm32-cover__book::after { content:''; position:absolute; inset:0; z-index:3; border-radius:inherit; background:linear-gradient(90deg,#0005 0,transparent 3%,#ffffff12 6%,transparent 10%,transparent 94%,#0002 100%); pointer-events:none; }
.thm32-cover__art { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.thm32-cover__edge { position:absolute; inset:0; border:1px solid #b49c685c; margin:11px; pointer-events:none; }
.thm32-cover__copy { position:absolute; inset:0; color:#eee1bc; padding:34px 20px; display:flex; flex-direction:column; align-items:center; text-align:center; }
.thm32-cover__copy .thm32-kicker { color:#d5c497; font-size:7px; }
:is(.thm32-cover,.thm32-opening) h1 { font-size:clamp(2.5rem,4.7dvh,3.5rem); margin:20px 0 15px; line-height:.88; width:100%; text-shadow:0 1px 1px #192014; }
:is(.thm32-cover,.thm32-opening) h1 span { display:block; }
:is(.thm32-cover,.thm32-opening) h1 i { font-size:.45em; line-height:1.45; font-weight:400; }
.thm32-cover--long h1 { font-size:clamp(1.5rem,3.5dvh,2.45rem); }
.thm32-cover__subtitle { font-size:6px; letter-spacing:.22em; }
:is(.thm32-cover,.thm32-opening) time { font-size:8px; letter-spacing:.22em; margin-top:15px; }
.thm32-cover__seal { position:absolute; bottom:22px; border:1px solid #dfce9b88; border-radius:50%; width:33px; height:33px; display:grid; place-items:center; font:italic 18px var(--invie-font-heading, 'Cormorant Garamond'),serif; color:#dccc9f; }
.thm32-cover__margin { position:absolute; left:12%; top:18%; bottom:30%; display:flex; flex-direction:column; align-items:center; justify-content:space-between; gap:20px; color:#8b8979; }
.thm32-cover__margin p { writing-mode:vertical-rl; font-size:8px; letter-spacing:.2em; }
.thm32-cover__margin>span { font-size:8px; letter-spacing:.12em; }
.thm32-cover__welcome { text-align:center; display:grid; justify-items:center; gap:11px; padding-inline:20px; max-width:100%; }
.thm32-cover__welcome>p { font-size:10px; color:var(--muted); }
.thm32-cover__welcome strong { margin-left:5px; color:var(--ink); font-weight:600; }
.thm32-open-button { min-width:205px; border:1px solid var(--olive); border-radius:40px; padding:13px 22px; color:var(--paper)!important; background:var(--olive); display:flex; align-items:center; justify-content:space-between; gap:40px; font-size:11px!important; transition:background .2s,box-shadow .2s; }
.thm32-open-button:hover { background:#546046; box-shadow:0 6px 15px #38433220; }
.thm32-cover__welcome>small { font:italic 15px var(--invie-font-heading, 'Cormorant Garamond'),serif; color:#888273; }
.thm32-cover__actions { display:flex; justify-content:center; align-items:center; gap:10px; max-width:100%; }
.thm32-cover__motion { border:1px solid var(--gold); border-radius:40px; padding:10px 12px; min-height:44px; background:transparent; color:var(--olive); font-size:10px!important; }
.theme-thm32[data-book-motion='reduce'] .thm32-open-button { min-width:0; gap:12px; padding-inline:14px; }
.theme-thm32.thm32-is-open .thm32-cover { opacity:0; visibility:hidden; pointer-events:none; }
.theme-thm32.thm32-is-opening .thm32-cover__book { visibility:hidden; }
.theme-thm32.thm32-is-opening :is(.thm32-cover__margin,.thm32-cover__welcome) { opacity:0; transition:opacity .2s; }
@keyframes thm32-book-float { 0%,100% { transform:perspective(1800px) rotateY(-9deg) rotateZ(-2deg) translateY(0); } 50% { transform:perspective(1800px) rotateY(-5deg) rotateZ(-1deg) translateY(-5px); } }

/* Each semantic section is a real HTML spread; forms remain selectable. */
.thm32-book-scene { position:absolute; inset:110px 5vw 83px; display:flex; flex-direction:column; justify-content:center; align-items:center; outline:0; opacity:0; }
.theme-thm32:is(.thm32-is-opening,.thm32-is-open) .thm32-book-scene { opacity:1; }
.theme-thm32.thm32-is-opening .thm32-book-scene { pointer-events:none; }
.theme-thm32.thm32-is-opening .thm32-reader { opacity:0; }
.theme-thm32[data-book-turning='true'] .thm32-reader { opacity:0; pointer-events:none; }
.theme-thm32[data-theme-version='v2'] .thm32-book-scene:focus-visible,
.theme-thm32[data-theme-version='v2'] .thm32-book__pages>[data-theme-section]:focus-visible { outline:none!important; }
.thm32-book { --book-height:var(--thm32-desktop-book-height); position:relative; width:calc(var(--book-height)*1.36); height:var(--book-height); max-height:100%; background:var(--paper); border-radius:3px 7px 7px 3px; box-shadow:0 28px 45px -12px #3f463348,0 6px 8px #3d443028; perspective:800px; }
.thm32-book__binding { position:absolute; inset:-5px -6px -10px; border-radius:5px; background:#405038; z-index:-1; box-shadow:inset 0 0 0 1px #8e9a7650; }
.thm32-book__binding::after { content:''; position:absolute; inset:5px 3px 3px; background:repeating-linear-gradient(0deg,#d6cbb5 0 1px,#f2ead9 1px 2px); border-radius:3px; }
.thm32-paper-edges { position:absolute; z-index:2; left:6px; bottom:4px; width:calc(100% - 12px); height:9px; overflow:visible; pointer-events:none; fill:none; stroke:#eee5d1; stroke-width:1.25; }
.thm32-paper-edges path:nth-child(2) { stroke:#b6a585; stroke-width:.65; }
.thm32-book__pages { position:relative; height:100%; width:100%; background:var(--paper); overflow:hidden; border-radius:3px; }
.thm32-book__pages>[data-theme-section] { position:absolute; inset:0; width:100%; height:100%; margin:0; padding:34px 44px 38px; background:var(--paper); overflow-y:auto; overflow-x:hidden; scrollbar-width:thin; scrollbar-color:#bcae8e transparent; overscroll-behavior:contain; content-visibility:visible!important; contain-intrinsic-size:none!important; visibility:hidden; pointer-events:none; opacity:0; scroll-margin:0; }
.thm32-book__pages>[data-theme-section].is-current { visibility:visible; pointer-events:auto; opacity:1; }
.thm32-book__pages>[data-theme-section] { touch-action:pan-y; }
.thm32-book__pages>[data-theme-section]:focus { outline:0; }
.thm32-book__pages>[data-theme-section]::before,
.thm32-turn-clone::before { content:''; position:absolute; z-index:0; inset:13px; border:1px solid #9b7c4e26; pointer-events:none; background:
    radial-gradient(ellipse at 0 0,transparent 0 32px,#9b7c4e12 33px 34px,transparent 35px),
    radial-gradient(ellipse at 100% 100%,transparent 0 32px,#9b7c4e12 33px 34px,transparent 35px); }
.thm32-book__pages>[data-theme-section] > *, .thm32-turn-clone > * { position:relative; z-index:1; }
.thm32-book__spine { position:absolute; z-index:5; top:0; bottom:0; left:50%; width:34px; translate:-50% 0; background:linear-gradient(90deg,transparent,#5141260a 25%,#463c2925 48%,#fefbecaa 52%,#53472910 72%,transparent); pointer-events:none; }
.thm32-book__ribbon { position:absolute; z-index:6; width:16px; height:32px; bottom:-23px; left:calc(50% + 28px); background:#9b7c4e; clip-path:polygon(0 0,100% 0,100% 100%,50% 78%,0 100%); }
.thm32-page-folio { position:absolute; z-index:6; bottom:12px; inset-inline:22px; display:flex; justify-content:space-between; font-size:8px; color:#9b927e; pointer-events:none; }
.thm32-reader { width:min(100%,720px); margin-top:24px; display:flex; align-items:center; justify-content:space-between; gap:22px; }
.thm32-reader button { display:flex; align-items:center; gap:17px; border:0; background:none; padding:4px 12px; min-width:100px; min-height:44px; font-size:21px; color:var(--ink); }
.thm32-reader button:last-child { justify-content:flex-end; }
.thm32-reader small { font:10px var(--invie-font-body, 'Manrope'),sans-serif; }
.thm32-reader>div { text-align:center; min-width:100px; }
.thm32-reader>div>span { font-size:7px; letter-spacing:.12em; color:var(--gold); }
.thm32-reader p { font:italic 21px/1.15 var(--invie-font-heading, 'Cormorant Garamond'),serif; margin-top:3px; }
.thm32-turn-sheet { position:absolute; z-index:12; width:50%; height:100%; top:0; right:0; transform-origin:left center; transform-style:preserve-3d; pointer-events:none; will-change:transform; }
.thm32-turn-sheet.is-backward { right:auto; left:0; transform-origin:right center; }
.thm32-turn-segment { position:absolute; height:100%; top:0; left:0; transform-origin:left center; transform-style:preserve-3d; }
.thm32-turn-sheet.is-backward .thm32-turn-segment { left:auto; right:0; transform-origin:right center; }
.thm32-turn-face { position:absolute; inset:0 -1px 0 -1px; overflow:hidden; backface-visibility:hidden; -webkit-backface-visibility:hidden; background:var(--paper); }
.thm32-turn-face::after { content:''; position:absolute; inset:0; background:#4c3b21; opacity:var(--leaf-shade,0); pointer-events:none; }
.thm32-turn-face--front { transform:translateZ(.3px); }
.thm32-turn-face--back { transform:rotateY(180deg) translateZ(.3px); }
.thm32-turn-underlay { position:absolute; z-index:7; top:0; left:0; width:50%; height:100%; overflow:hidden; background:var(--paper); pointer-events:none; }
.thm32-turn-underlay.is-backward { left:auto; right:0; }
.thm32-turn-underlay.is-backward>.thm32-turn-clone { translate:-50% 0; }
.thm32-turn-shadow { position:absolute; z-index:9; inset:0; opacity:0; pointer-events:none; transform-origin:center; background:linear-gradient(90deg,transparent 15%,#40301b66 48%,#40301b99 51%,transparent 88%); }
.thm32-turn-shadow.is-backward { scale:-1 1; }
.thm32-book { touch-action:pinch-zoom; }
.thm32-cover__book { touch-action:pinch-zoom; cursor:grab; }
.thm32-book.is-dragging { cursor:grabbing; user-select:none; }
.thm32-turn-clone { position:absolute; top:0; left:0; padding:34px 44px 38px; height:100%; width:200%; background:var(--paper); }
.thm32-turn-face>.thm32-turn-clone { translate:1px 0; }
/* A separate stage keeps the hardcover in 3D while the paper is revealed. */
.thm32-opening { position:fixed; z-index:20; inset:0; perspective:1200px; pointer-events:none; }
.thm32-opening__leaf { position:absolute; transform-origin:left center; transform-style:preserve-3d; will-change:transform; }
.thm32-opening__face { position:absolute; inset:0; overflow:hidden; backface-visibility:hidden; -webkit-backface-visibility:hidden; background:var(--paper); box-shadow:0 18px 32px #353b3440; border-radius:2px 5px 5px 2px; }
.thm32-opening__face::after { content:''; position:absolute; inset:0; background:#192312; opacity:var(--cover-shade,0); pointer-events:none; }
.thm32-opening__face--front { transform:translateZ(2px); }
.thm32-opening__face--back { transform:rotateY(180deg) translateZ(2px); }
.thm32-opening__artwork { position:absolute; inset:0; }
.thm32-opening__face--back>.thm32-turn-clone { translate:none; }
.thm32-heading { max-width:670px; margin:0 auto 24px; text-align:center; }
.thm32-heading .thm32-kicker { margin-bottom:10px; }
.thm32-heading>p:not(.thm32-kicker) { max-width:480px; margin:10px auto 0; font-size:10px; color:var(--muted); }
.thm32-heading h2 { font-size:clamp(1.8rem,2.5vw,2.7rem); }
.thm32-heading--split { display:flex; text-align:left; gap:40px; justify-content:space-between; max-width:none; align-items:end; }
.thm32-heading--split>p { max-width:300px!important; margin:0!important; }
.thm32-batik-corner { position:absolute; inset:14px; border:1px solid var(--line); pointer-events:none; }
.thm32-batik-corner>span { position:absolute; top:-10px; left:50%; translate:-50% 0; color:var(--gold); background:var(--paper); padding:0 12px; }

/* Opening spread. */
.thm32-intro,.thm32-turn-clone.thm32-intro { display:grid; grid-template-columns:1fr 1fr; gap:72px; align-items:center; }
.thm32-intro__copy { text-align:center; min-width:0; }
.thm32-intro__copy h2 { margin-top:21px; font-size:clamp(2.5rem,4.2vw,4.4rem); line-height:.97; }
.thm32-intro__copy h2 em { color:#8b7150; font-weight:400; }
.thm32-intro__copy>p:not(.thm32-kicker) { max-width:330px; margin-inline:auto; font-size:10px; color:var(--muted); }
.thm32-intro__copy p.thm32-intro__signature { font:italic 29px var(--invie-font-heading, 'Cormorant Garamond'),serif; color:var(--olive); margin-top:20px; }
.thm32-countdown { display:flex; justify-content:center; gap:20px; padding-top:21px; margin-top:21px; border-top:1px solid var(--line); }
.thm32-countdown>div { display:grid; text-align:center; min-width:32px; }
.thm32-countdown strong { font:32px/1 var(--invie-font-heading, 'Cormorant Garamond'),serif; color:var(--olive); }
.thm32-countdown span { margin-top:5px; font-size:7px; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); }
.thm32-intro__hero { width:100%; position:relative; transform:rotate(2deg); padding:9px 9px 40px; background:#fffbf0; box-shadow:3px 5px 12px #52432725; margin:auto; }
.thm32-intro__hero>img,.thm32-intro__monogram { width:100%; height:clamp(250px,calc(100dvh - 400px),480px); object-fit:cover; }
.thm32-intro__monogram { display:grid; place-items:center; background:#ddd7c6; color:var(--olive); font:100px var(--invie-font-heading, 'Cormorant Garamond'),serif; }
.thm32-intro__hero::before { content:''; position:absolute; z-index:2; width:80px; height:24px; top:-10px; left:50%; translate:-50% 0; background:#d1c2a4a6; transform:rotate(-5deg); }
.thm32-intro__hero figcaption { position:absolute; bottom:12px; inset-inline:16px; display:flex; align-items:center; justify-content:space-between; gap:10px; font:italic 17px var(--invie-font-heading, 'Cormorant Garamond'),serif; }
.thm32-intro__hero figcaption i { font-size:24px; font-style:normal; }
.thm32-photo-note { position:absolute; writing-mode:vertical-rl; right:-26px; top:50%; translate:0 -50%; font:italic 14px var(--invie-font-heading, 'Cormorant Garamond'),serif; color:var(--gold); }

/* Portraits, agenda, and the little details. */
.thm32-couple__profiles { display:grid; grid-template-columns:1fr 1fr; gap:90px; max-width:900px; margin:auto; }
.thm32-profile { text-align:center; min-width:0; }
.thm32-profile__media { width:min(100%,215px); aspect-ratio:4/4.8; margin:0 auto 18px; padding:7px; background:#fffbf0; box-shadow:2px 3px 9px #52432720; transform:rotate(-2deg); position:relative; }
.thm32-profile:nth-child(2) .thm32-profile__media { transform:rotate(2deg); }
.thm32-profile__media img,.thm32-profile__monogram { width:100%; height:100%; object-fit:cover; }
.thm32-profile__media { overflow:hidden; }
.thm32-profile__monogram { display:grid; place-items:center; background:#dfd8c3; font:80px var(--invie-font-heading, 'Cormorant Garamond'),serif; }
.thm32-profile__copy h3 { margin:7px auto 10px; font-size:clamp(1.6rem,2.4vw,2.3rem); max-width:330px; }
.thm32-profile--name-long h3,.thm32-profile--name-xlong h3 { font-size:1.6rem; }
.thm32-profile__copy>p:not(.thm32-kicker) { max-width:280px; margin:auto; font-size:10px; color:var(--muted); }
.thm32-events__tickets { display:grid; grid-template-columns:1fr 1fr; gap:65px; }
.thm32-event { min-width:0; text-align:center; border:1px solid #b3a07b; padding:17px 20px 20px; position:relative; }
.thm32-event::before { content:'✦'; display:block; color:var(--gold); margin-bottom:8px; font-size:18px; }
.thm32-event__date { padding-bottom:15px; border-bottom:1px solid var(--line); margin-bottom:15px; }
.thm32-event__date time { display:grid; }
.thm32-event__date span,.thm32-event__date small { font-size:8px; letter-spacing:.15em; }
.thm32-event__date strong { font:58px/1.1 var(--invie-font-heading, 'Cormorant Garamond'),serif; }
.thm32-event__copy h3 { margin:9px 0 12px; font-size:2rem; }
.thm32-event__copy>strong { display:block; margin:14px 0 6px; font-size:11px; font-weight:600; }
.thm32-event__time,.thm32-event__copy address { font-size:10px; font-style:normal; }
.thm32-event__copy address { color:var(--muted); }
.thm32-event__actions { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:6px 15px; margin-top:16px; }
.thm32-event__map { text-align:left; font-size:10px; margin-top:12px; }
.thm32-event__map summary { cursor:pointer; padding:8px; }
.thm32-event__map iframe { width:100%; height:190px; border:0; }
.thm32-dresscode,.thm32-health,.thm32-livestream { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:70px; }
.thm32-dresscode__copy h2,.thm32-health__copy h2,.thm32-livestream__copy h2 { margin:15px 0; }
.thm32-dresscode__copy>p:not(.thm32-kicker),.thm32-health__copy>p:not(.thm32-kicker),.thm32-livestream__copy>p:not(.thm32-kicker) { font-size:11px; color:var(--muted); }
.thm32-dresscode__copy small { display:block; margin-top:20px; color:var(--gold); font-size:9px; }
.thm32-dresscode__palette { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:1fr 1fr; gap:25px; }
.thm32-dresscode__swatch { text-align:center; }
.thm32-dresscode__swatch>span { display:block; width:85px; height:100px; margin:0 auto 12px; background:var(--thm32-swatch); border-radius:50% 50% 0 0; box-shadow:inset 0 0 0 1px #0001; }
.thm32-dresscode__swatch strong,.thm32-dresscode__swatch small { display:block; font-size:10px; font-weight:500; }
.thm32-dresscode__swatch small { font-size:8px; color:var(--muted); }
.thm32-livestream__screen { min-width:0; }
.thm32-livestream__screen iframe { width:100%; aspect-ratio:4/3; border:0; }
.thm32-livestream__poster { display:grid; place-items:center; min-height:270px; background:var(--olive); color:var(--paper); padding:35px; text-align:center; }
.thm32-livestream__poster span { font:55px var(--invie-font-heading, 'Cormorant Garamond'),serif; }
.thm32-livestream__actions { display:flex; gap:15px; flex-wrap:wrap; margin-top:20px; }
.thm32-livestream__signal { display:inline-flex; align-items:center; gap:8px; width:fit-content; padding:6px 11px; border:1px solid var(--line); color:var(--gold); }
.thm32-livestream__signal>span { width:5px; height:5px; border-radius:50%; background:currentColor; }
.thm32-livestream__signal strong { font:600 9px/1.4 var(--invie-font-body, 'Manrope'),sans-serif; letter-spacing:.07em; text-transform:uppercase; }
.thm32-livestream__access { padding:18px; border:1px solid var(--line); background:#e9dfc940; }
.thm32-livestream__meta { display:grid; gap:5px; margin-bottom:15px; }
.thm32-livestream__meta>span { font-size:9px; letter-spacing:.12em; text-transform:uppercase; color:var(--gold); }
.thm32-livestream__meta>strong { font:500 25px/1.15 var(--invie-font-heading, 'Cormorant Garamond'),serif; }
.thm32-livestream__access dl { display:grid; gap:10px; margin:0 0 15px; }
.thm32-livestream__access dl>div { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.thm32-livestream__access :is(dt,dd) { margin:0; font-size:11px; overflow-wrap:anywhere; }
.thm32-livestream__access dt,.thm32-livestream__pending { color:var(--muted); }
.thm32-health__grid { list-style:none; padding:0; margin:0; display:grid; gap:20px; }
.thm32-health-card { display:grid; grid-template-columns:35px 1fr; gap:3px 15px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.thm32-health-card__number { grid-row:1/3; font:25px var(--invie-font-heading, 'Cormorant Garamond'),serif; color:var(--gold); }
.thm32-health-card strong { font-size:12px; font-weight:500; }
.thm32-health-card p { font-size:10px; color:var(--muted); }
.thm32-quote { display:flex; flex-direction:column; justify-content:center; text-align:center; }
.thm32-quote::before { content:'✦'; font-size:33px; color:var(--gold); margin-bottom:35px; }
.thm32-quote blockquote { width:min(100%,650px); margin:auto; }
.thm32-quote blockquote p { font:italic 500 clamp(1.6rem,3vw,2.8rem)/1.35 var(--invie-font-heading, 'Cormorant Garamond'),serif; }
.thm32-quote__mark { display:none; }
.thm32-quote cite { display:block; margin-top:28px; font-style:normal; font-size:8px; letter-spacing:.18em; color:var(--gold); }
.thm32-quote__brush { display:none; }
.thm32-story__timeline { display:grid; gap:32px; }
.thm32-story-entry { display:grid; grid-template-columns:1fr 1fr; gap:65px; align-items:center; }
.thm32-story-entry:nth-child(even) .thm32-story-entry__visual { order:2; }
.thm32-story-entry__visual figure { position:relative; transform:rotate(-2deg); padding:8px; background:#fffbf0; box-shadow:2px 3px 8px #52432720; }
.thm32-story-entry__visual img { width:100%; aspect-ratio:4/3; object-fit:cover; }
.thm32-story-entry__visual figcaption { position:absolute; bottom:12px; right:20px; font:40px var(--invie-font-heading, 'Cormorant Garamond'),serif; color:white; text-shadow:0 1px 5px #0008; }
.thm32-story-entry__placeholder { display:grid; place-items:center; height:180px; background:#ddd7c6; color:var(--olive); }
.thm32-story-entry__placeholder span { font:60px var(--invie-font-heading, 'Cormorant Garamond'),serif; }
.thm32-story-entry__placeholder strong { font:italic 30px var(--invie-font-heading, 'Cormorant Garamond'),serif; }
.thm32-story-entry__chapter { font-size:8px; letter-spacing:.15em; color:var(--gold); text-transform:uppercase; }
.thm32-story-entry__copy time { font-size:8px; color:var(--muted); }
.thm32-story-entry__copy h3 { margin:10px 0 15px; }
.thm32-story-entry__copy>p:last-child { font-size:11px; color:var(--muted); }
.thm32-gallery__collage { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.thm32-gallery__piece { position:relative; width:100%; border:0; padding:7px 7px 28px; background:#fffbf0; box-shadow:2px 3px 8px #52432720; transform:rotate(-2deg); }
.thm32-gallery__piece:nth-child(even) { transform:rotate(2deg); }
.thm32-gallery__piece:hover { transform:rotate(0) translateY(-3px); }
.thm32-gallery__piece img { width:100%; aspect-ratio:4/5; object-fit:cover; }
.thm32-gallery__piece>span { position:absolute; right:12px; bottom:7px; font-size:8px; color:var(--gold); }
.thm32-gallery__piece>small { display:block; font:italic 14px var(--invie-font-heading, 'Cormorant Garamond'),serif; text-align:left; margin-top:9px; padding-right:20px; }

/* RSVP and messages use the same backend as every other Invie theme. */
.thm32-rsvp__layout { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; min-height:100%; }
.thm32-rsvp__aside h2 { font-size:clamp(2.5rem,4vw,4rem); margin:22px 0; }
.thm32-rsvp__aside>p:not(.thm32-kicker) { font-size:11px; color:var(--muted); max-width:315px; }
.thm32-rsvp__mark { display:flex; gap:14px; color:#a18a5b66; font:italic 50px var(--invie-font-heading, 'Cormorant Garamond'),serif; margin-top:32px; }
.thm32-rsvp__deadline { margin-top:20px; display:grid; }
.thm32-form { display:grid; grid-template-columns:1fr 1fr; gap:15px; min-width:0; }
.thm32-field--wide { grid-column:1/-1; }
.thm32-field { min-width:0; }
.thm32-field label,.thm32-field legend { display:block; font-size:9px; margin-bottom:5px; color:var(--muted); }
.thm32-field :is(input[type='text'],textarea) { width:100%; border:0; border-bottom:1px solid #a18f6d77; border-radius:0; padding:10px 9px; background:#e6dcc942; color:var(--ink); font-size:11px; min-height:42px; }
.thm32-field textarea { resize:vertical; min-height:80px; }
.thm32-attendance { border:0; padding:0; margin:0; }
.thm32-attendance__options { display:flex; flex-wrap:wrap; gap:7px 15px; }
.thm32-attendance__options label { display:flex; align-items:center; gap:6px; padding:5px 0; min-height:36px; cursor:pointer; }
.thm32-attendance__options input { accent-color:var(--olive); width:15px; height:15px; }
.thm32-form__status { font-size:10px; min-height:18px; color:var(--olive); }
.thm32-form__status[data-status='error'] { color:#a53c2d; }
.thm32-wishes__featured { display:grid!important; grid-auto-flow:column; grid-auto-columns:calc((100% - 22px)/2)!important; gap:22px!important; margin-bottom:25px; }
.thm32-wish-card { padding:18px; border:1px solid var(--line); min-width:0; }
.thm32-wish-card__number { font-size:8px; color:var(--gold); }
.thm32-wish-card blockquote { font:italic 21px/1.3 var(--invie-font-heading, 'Cormorant Garamond'),serif; margin:12px 0; }
.thm32-wish-card figcaption { display:flex; gap:10px; align-items:center; }
.thm32-wish-card figcaption img,.thm32-wish-card__initial { width:28px; height:28px; object-fit:cover; border-radius:50%; }
.thm32-wish-card__initial { display:grid; place-items:center; background:#ded4bb; font-size:12px; }
.thm32-wish-card figcaption strong { font-size:10px; font-weight:500; }
.thm32-wish-card figcaption small { display:block; font-size:8px; color:var(--muted); }
.thm32-wishes__guestbook { display:grid; grid-template-columns:1fr 1fr; gap:70px; margin-top:20px; }
.thm32-wishes__form>.thm32-kicker { grid-column:1/-1; }
.thm32-wishes__messages-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.thm32-wishes__messages h3 { font-size:1.8rem; }
.thm32-wishes__messages ul { list-style:none; padding:0; margin:12px 0; }
.thm32-wishes__messages li { display:flex; gap:15px; padding:12px 0; border-bottom:1px solid var(--line); font-size:10px; }
.thm32-wishes__messages li>span { color:var(--gold); font-size:8px; }
.thm32-wishes__messages li strong { display:block; font-weight:600; }
.thm32-wishes__messages li time { display:block; font-size:8px; color:var(--muted); margin-bottom:7px; }
.thm32-gift__accounts { display:grid; grid-template-columns:1fr 1fr; gap:60px; margin-top:35px; }
.thm32-gift-card { padding:25px; border:1px solid var(--line); background:#eee4ce80; }
.thm32-gift-card__masthead { display:flex; justify-content:space-between; font-size:8px; color:var(--muted); padding-bottom:12px; border-bottom:1px solid var(--line); }
.thm32-gift-card__bank { display:flex; align-items:center; gap:15px; margin:25px 0 20px; }
.thm32-gift-card__bank img { width:65px; max-height:28px; object-fit:contain; }
.thm32-gift-card__bank strong { font-size:13px; font-weight:600; }
.thm32-gift-card__account { display:grid; gap:7px; margin-bottom:22px; }
.thm32-gift-card__account span { color:var(--muted); font-size:9px; }
.thm32-gift-card__account strong { font:30px var(--invie-font-heading, 'Cormorant Garamond'),serif; overflow-wrap:anywhere; }
.thm32-gift-card__account small { font-size:10px; }
.thm32-gift__status { margin-top:20px; font-size:10px; }
.thm32-closing { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:75px; }
.thm32-closing__media { width:100%; height:90%; max-height:480px; padding:8px; background:#fffbf0; transform:rotate(-2deg); box-shadow:2px 3px 10px #52432725; }
.thm32-closing__media img { width:100%; height:100%; object-fit:cover; }
.thm32-closing__wash { display:none; }
.thm32-closing__monogram { display:grid; place-items:center; min-height:350px; background:#e2d9c1; font:130px var(--invie-font-heading, 'Cormorant Garamond'),serif; }
.thm32-closing__copy { text-align:center; position:relative; }
.thm32-closing h2 { font-size:clamp(3rem,4.8vw,4.7rem); margin:22px 0; }
.thm32-closing h2 span { display:block; }
.thm32-closing h2 i { display:block; font-weight:400; font-size:.4em; color:var(--gold); line-height:1.4; }
.thm32-closing--names-long h2,.thm32-closing--names-xlong h2 { font-size:2.8rem; }
.thm32-closing__copy>p:not(.thm32-kicker) { font-size:11px; color:var(--muted); max-width:320px; margin:auto; }
.thm32-closing time { display:block; margin-top:25px; font-size:9px; letter-spacing:.1em; color:var(--gold); }
.thm32-closing small { display:block; margin-top:28px; font-size:7px; color:var(--muted); }

/* Modal controls sit outside the book so the page turn never clips them. */
.thm32-index { border:1px solid #ad9774; background:var(--paper); color:var(--ink); width:min(560px,calc(100% - 32px)); max-height:80dvh; padding:30px; box-shadow:0 25px 80px #282d3b30; }
.thm32-index::backdrop,.thm32-gallery-dialog::backdrop { background:#29302785; backdrop-filter:blur(7px); }
.thm32-index__head { display:flex; justify-content:space-between; align-items:start; gap:15px; margin-bottom:20px; }
.thm32-index__head h2 { margin-top:8px; }
.thm32-index__head button { border:0; background:none; font-size:28px; }
.thm32-index nav { display:grid; grid-template-columns:1fr 1fr; gap:0 22px; }
.thm32-index nav button { text-align:left; border:0; border-bottom:1px solid var(--line); background:none; padding:12px 0; display:flex; align-items:center; gap:13px; color:var(--ink); font-size:11px; }
.thm32-index nav button span { color:var(--gold); font-size:8px; }
.thm32-index nav button[aria-current='page'] { font-weight:700; }
.thm32-index__note { margin-top:20px; color:var(--muted); font-size:9px; }
.thm32-gallery-dialog { border:0; padding:20px; width:min(900px,calc(100% - 30px)); max-height:92dvh; background:var(--paper); color:var(--ink); }
.thm32-gallery-dialog__bar,.thm32-gallery-dialog__controls { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.thm32-gallery-dialog__bar p { font-size:10px; }
.thm32-gallery-dialog button { border:0; background:none; padding:8px; font-size:11px; min-height:44px; }
.thm32-gallery-dialog__bar button { font-size:28px; }
.thm32-gallery-dialog figure img { max-height:68dvh; width:100%; object-fit:contain; }
.thm32-gallery-dialog figcaption { text-align:center; margin:10px 0; font:italic 19px var(--invie-font-heading, 'Cormorant Garamond'),serif; }
.thm32-gallery-dialog__controls>span { font-size:9px; color:var(--muted); }
.thm32-sound,.thm32-motion { position:fixed; z-index:35; right:5vw; bottom:47px; border:0; background:transparent; color:var(--ink); min-width:44px; min-height:44px; display:flex; align-items:center; gap:8px; padding:5px; }
.thm32-sound span { font-size:21px; }
.thm32-sound small { font-size:8px; }
.thm32-sound[aria-pressed='false'] { opacity:.55; }
.thm32-motion { right:auto; left:5vw; bottom:42px; font-size:14px; opacity:.55; }
.thm32-motion small { font-size:9px; line-height:1.3; }
.thm32-sr-status { position:fixed; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.theme-thm32:is([data-motion-paused='true'],[data-page-hidden='true']) .thm32-cover__book { animation-play-state:paused; }

@media(min-width:901px) and (max-height:760px) {
    .thm32-book__pages>[data-theme-section],.thm32-turn-clone { padding:25px 35px 32px; }
    .thm32-heading { margin-bottom:17px; }
    .thm32-heading>p:not(.thm32-kicker) { display:none; }
    .thm32-profile__media { width:160px; margin-bottom:12px; }
    .thm32-intro__copy h2 { font-size:2.8rem; }
    .thm32-intro__hero>img,.thm32-intro__monogram { height:calc(100dvh - 350px); min-height:190px; }
    .thm32-countdown { margin-top:12px; padding-top:12px; }
    .thm32-event { padding:12px; }
    .thm32-event__date { padding-bottom:8px; margin-bottom:8px; }
    .thm32-event__date strong { font-size:40px; }
    .thm32-rsvp__layout { align-items:start; }
}
@media(max-width:1100px) and (min-width:901px) {
    .thm32-book-scene { inset-inline:35px; }
    .thm32-book__pages>[data-theme-section],.thm32-turn-clone { padding-inline:30px; }
    .thm32-photo-note { right:-14px; }
    .thm32-intro,.thm32-couple__profiles,.thm32-events__tickets,.thm32-rsvp__layout,.thm32-wishes__guestbook,.thm32-gift__accounts,.thm32-story-entry,.thm32-closing { gap:45px; }
}
/* Responsive type and controls inside the two-page book. */
@media(max-width:900px) {
    .thm32-masthead { height:88px; padding:17px 6vw; }
    .thm32-masthead>p { display:none; }
    .thm32-wordmark { font-size:38px; }
    .thm32-book-scene { inset:105px 7vw 78px; }
    .thm32-book { width:min(100%,580px); height:calc(100dvh - 245px); max-height:860px; }
    .thm32-book__spine { left:0; translate:0; width:20px; background:linear-gradient(90deg,#4b3e2922,transparent); }
    .thm32-book__ribbon { left:auto; right:25px; }
    .thm32-book__pages>[data-theme-section],.thm32-turn-clone { padding:30px 30px 38px; }
    .thm32-page-folio span:first-child { visibility:hidden; }
    .thm32-turn-sheet { width:100%; }
    .thm32-turn-underlay { display:none; }
    .thm32-turn-clone { width:100%; }
    .thm32-turn-sheet.is-backward { transform-origin:right center; }
    .thm32-intro,.thm32-turn-clone.thm32-intro,.thm32-couple__profiles,.thm32-events__tickets,.thm32-rsvp__layout,.thm32-wishes__guestbook,.thm32-gift__accounts,.thm32-story-entry,.thm32-dresscode,.thm32-health,.thm32-livestream,.thm32-closing { grid-template-columns:1fr; gap:35px; }
    .thm32-turn-shadow { transform-origin:left; background:linear-gradient(90deg,#40301b99,transparent 80%); }
    .thm32-turn-shadow.is-backward { transform-origin:right; }
    .thm32-intro__copy h2 { font-size:3.25rem; margin-top:22px; }
    .thm32-intro__hero { width:80%; margin:5px auto 18px; }
    .thm32-intro__hero>img,.thm32-intro__monogram { height:auto; aspect-ratio:4/5; }
    .thm32-intro__hero figcaption { font-size:15px; }
    .thm32-couple__profiles { gap:45px; }
    .thm32-heading h2 { font-size:2.3rem; }
    .thm32-heading>p:not(.thm32-kicker) { font-size:11px; }
    .thm32-profile__media { width:230px; }
    .thm32-profile__copy h3 { font-size:2.3rem; }
    .thm32-profile__copy>p:not(.thm32-kicker) { font-size:11px; }
    .thm32-heading--split { display:block; text-align:center; }
    .thm32-heading--split>p { max-width:none!important; margin-top:15px!important; }
    .thm32-story-entry:nth-child(even) .thm32-story-entry__visual { order:0; }
    .thm32-story-entry__copy { padding-bottom:20px; }
    .thm32-gallery__collage { grid-template-columns:1fr 1fr; gap:14px; }
    .thm32-rsvp__aside h2 { font-size:3rem; }
    .thm32-rsvp__mark { display:none; }
    .thm32-rsvp__aside>p:not(.thm32-kicker) { max-width:none; }
    .thm32-form { gap:20px; }
    .thm32-field label,.thm32-field legend { font-size:10px; }
    .thm32-field :is(input[type='text'],textarea) { font-size:13px; min-height:44px; }
    .thm32-intro__copy>p:not(.thm32-kicker):not(.thm32-intro__signature),.thm32-heading>p:not(.thm32-kicker),.thm32-profile__copy>p:not(.thm32-kicker),.thm32-event__time,.thm32-event__copy address,.thm32-story-entry__copy>p:last-child,.thm32-rsvp__aside>p:not(.thm32-kicker),.thm32-dresscode__copy>p:not(.thm32-kicker),.thm32-health-card p,.thm32-livestream__copy>p:not(.thm32-kicker),.thm32-closing__copy>p:not(.thm32-kicker) { font-size:12px; line-height:1.8; }
    .thm32-wishes__featured { grid-auto-columns:100%!important; }
    .thm32-quote { min-height:100%; }
    .thm32-quote blockquote p { font-size:2rem; }
    .thm32-closing__media { height:auto; aspect-ratio:4/5; max-height:none; }
    .thm32-closing__copy { padding-bottom:20px; }
    .thm32-closing h2 { font-size:4rem; }
    .thm32-cover__book { height:min(55dvh,600px); }
    .thm32-cover__margin { left:9%; }
    .thm32-reader { margin-top:22px; width:min(100%,520px); }
    .thm32-world-footer { bottom:17px; inset-inline:6vw; }
    .thm32-world-footer>span:first-child { display:none; }
    .thm32-world-footer>p { font-size:8px; }
    .thm32-javanese-ornament { left:1vw; bottom:1.5vh; width:108px; height:108px; opacity:.16; }
    .thm32-motion { bottom:43px; left:6vw; }
    .thm32-sound { bottom:43px; right:6vw; }
}
@media(max-width:500px) {
    .thm32-open-button { min-width:180px; gap:25px; }
    .theme-thm32:not(.thm32-is-open):not(.thm32-is-opening) .thm32-motion small { display:none; }
    .thm32-javanese-ornament { width:82px; height:82px; opacity:.11; }
    .thm32-cover { inset:91px 0 61px; gap:22px; }
    .thm32-cover__book { height:min(52dvh,470px); }
    .thm32-cover__copy { padding:27px 18px; }
    :is(.thm32-cover,.thm32-opening) h1 { font-size:clamp(2.4rem,4.5dvh,3rem); margin-top:18px; }
    .thm32-cover--long h1 { font-size:clamp(1.35rem,3.4dvh,2.3rem); }
    .thm32-cover__copy .thm32-kicker { font-size:6px; }
    .thm32-cover__subtitle { font-size:5px; }
    :is(.thm32-cover,.thm32-opening) time { font-size:7px; margin-top:12px; }
    .thm32-cover__margin { display:none; }
    .thm32-cover__margin p { font-size:6px; }
    .thm32-cover__welcome>p { font-size:9px; }
    .thm32-book-scene { inset:101px 20px 80px; }
    .thm32-book { height:calc(100dvh - 245px); }
    .thm32-book__pages>[data-theme-section],.thm32-turn-clone { padding:26px 23px 38px; }
    .thm32-intro__copy h2 { font-size:2.65rem; }
    .thm32-intro__hero { width:90%; }
    .thm32-intro__copy>p:not(.thm32-kicker) { font-size:11px; }
    .thm32-photo-note { right:-21px; font-size:12px; }
    .thm32-countdown { gap:16px; }
    .thm32-reader { gap:8px; }
    .thm32-reader button { min-width:44px; padding:5px 10px; }
    .thm32-reader small { display:none; }
    .thm32-reader p { font-size:20px; }
    .thm32-index { padding:23px; }
    .thm32-index nav { grid-template-columns:1fr; }
    .thm32-heading h2 { font-size:2.05rem; }
    .thm32-gallery__piece>small { font-size:12px; }
    .thm32-dresscode__swatch>span { width:65px; height:85px; }
    .thm32-gift-card { padding:20px; }
    .thm32-gift-card__account strong { font-size:25px; }
    .thm32-attendance__options { display:grid; }
}
@media(max-height:640px) {
    .thm32-cover { gap:12px; inset-block:85px 48px; }
    .thm32-cover__book { height:47dvh; }
    .thm32-cover__copy { padding-top:20px; }
    :is(.thm32-cover,.thm32-opening) h1 { margin-top:13px; font-size:5dvh; }
    .thm32-cover--long h1 { font-size:3.5dvh; }
    .thm32-cover__welcome { gap:6px; }
    .thm32-cover__welcome>small { display:none; }
    .thm32-cover__seal { width:25px; height:25px; bottom:15px; font-size:14px; }
    .thm32-book-scene { inset-block:90px 64px; }
    .thm32-book { height:calc(100dvh - 205px); }
    .thm32-reader { margin-top:16px; }
    .thm32-sound,.thm32-motion { bottom:28px; }
    .thm32-world-footer { bottom:10px; }
}
@media(max-width:500px) {
    .theme-thm32:not(.thm32-is-open):not(.thm32-is-opening) :is(.thm32-motion,.thm32-sound) {
        top:74px; bottom:auto; width:44px; height:44px; padding:0; justify-content:center;
        border:1px solid var(--line); border-radius:50%; background:#eee9df; opacity:1;
    }
    .theme-thm32:not(.thm32-is-open):not(.thm32-is-opening) .thm32-sound small { display:none; }
}
@media(prefers-reduced-motion:reduce) {
    .theme-thm32:not([data-book-motion='full']) *, .theme-thm32:not([data-book-motion='full']) *::before,.theme-thm32:not([data-book-motion='full']) *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
.theme-thm32[data-book-motion='reduce'] *,
.theme-thm32[data-book-motion='reduce'] *::before,
.theme-thm32[data-book-motion='reduce'] *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
.theme-thm32[data-motion-paused='true'] .thm32-cover__book { animation:none; }
.theme-thm32.thm32-is-open .thm32-book { animation:thm32-open-book-float 9s ease-in-out infinite; }
@keyframes thm32-open-book-float {
    0%,100% { transform:rotateX(1deg) rotateZ(-.3deg) translateY(0); }
    50% { transform:rotateX(-1deg) rotateZ(.3deg) translateY(-3px); }
}
.theme-thm32:is([data-book-turning='true'],[data-page-hidden='true']) .thm32-book { animation-play-state:paused; }
.theme-thm32[data-motion-paused='true'] .thm32-book { animation:none; }
@media(max-height:760px) {
    .thm32-cover__welcome { gap:8px; }
    .thm32-cover__welcome>small { display:none; }
}

/* A stable camera surrounds the moving book, keeping the spine aligned with
   the curved WebGL sheet throughout opening and page turns. */
.thm32-book-rig { position:relative; flex:0 0 auto; width:calc(var(--thm32-desktop-book-height)*1.36); height:var(--thm32-desktop-book-height); }
.thm32-book-rig,.thm32-cover-rig { perspective:var(--book-camera-distance,1200px); perspective-origin:var(--book-camera-x,50%) var(--book-camera-y,50%); }
.thm32-book-pose,.thm32-cover-pose { width:100%; height:100%; transform-style:preserve-3d; transform:rotateX(var(--book-rx,0deg)) rotateY(var(--book-ry,0deg)) rotateZ(var(--book-rz,0deg)); will-change:transform; }
.thm32-opening__pose { position:absolute; inset:0; transform-style:preserve-3d; transform:rotateX(var(--book-rx,0deg)) rotateY(var(--book-ry,0deg)) rotateZ(var(--book-rz,0deg)); }
.theme-thm32 .thm32-book-pose>.thm32-book { width:100%; height:100%; max-height:none; perspective:none; animation:none; transform-style:preserve-3d; }
.theme-thm32 .thm32-cover-pose>.thm32-cover__book { position:relative; width:100%; height:100%; aspect-ratio:auto; transform:none; animation:none; }
.thm32-reader small,.thm32-sound small,.thm32-motion small { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.thm32-reader { width:min(100%,360px); gap:20px; }
.thm32-reader button { min-width:44px; justify-content:center; }
.thm32-reader button:last-child { justify-content:center; }
.thm32-reader>div { min-width:60px; }
.thm32-reader>div>span { font-size:9px; }
.theme-thm32[data-book-measuring='true'] :is(.thm32-book-pose,.thm32-cover-pose) { transform:none; }
@media(max-width:900px) {
    .thm32-book-scene { inset-inline:20px; }
    .thm32-book-rig { --thm32-spread-width:min(calc(100vw - 40px),760px); width:var(--thm32-spread-width); height:min(calc(100dvh - 235px),calc(var(--thm32-spread-width) / 1.36)); }
    .thm32-book__spine { left:50%; translate:-50% 0; width:24px; background:linear-gradient(90deg,transparent,#5141260a 25%,#463c2925 48%,#fefbecaa 52%,#53472910 72%,transparent); }
    .thm32-book__ribbon { left:calc(50% + 12px); right:auto; width:11px; height:25px; bottom:-19px; }
    .thm32-page-folio span:first-child { visibility:visible; }
    .thm32-turn-sheet { width:50%; }
    .thm32-turn-underlay { display:block; }
    .thm32-turn-clone { width:200%; }
    .thm32-turn-shadow,.thm32-turn-shadow.is-backward { transform-origin:center; background:linear-gradient(90deg,transparent 15%,#40301b66 48%,#40301b99 51%,transparent 88%); }
}
@media(max-width:500px) {
    .thm32-book-scene { inset-inline:14px; }
    .thm32-book-rig { --thm32-spread-width:calc(100vw - 28px); height:min(calc(100dvh - 235px),calc(var(--thm32-spread-width) * 1.15)); }
    .thm32-cover__copy { padding:25px 10px; }
    :is(.thm32-cover,.thm32-opening) h1 { font-size:clamp(26px,4.5dvh,38px); }
    .thm32-cover--long h1 { font-size:clamp(17px,3dvh,25px); }
    .thm32-cover__edge { margin:7px; }
    .thm32-page-folio { inset-inline:12px; bottom:8px; }
}
@media(min-width:901px) and (max-height:640px) {
    .thm32-book-rig { height:calc(100dvh - 205px); }
}
.theme-thm32 .thm32-motion { padding:8px 13px; min-width:44px; border:1px solid var(--line); border-radius:30px; background:#eee9df; opacity:1; }
.theme-thm32 .thm32-motion small { position:static; width:auto; height:auto; overflow:visible; clip-path:none; font-size:10px; }
.theme-thm32[data-book-paginated='true'] .thm32-rsvp__occasion { margin:20px auto 0; padding:14px 0; border-block:1px solid var(--line); text-align:center; }
.theme-thm32[data-book-paginated='true'] .thm32-rsvp__occasion time { display:block; font:italic 19px/1.25 var(--invie-font-heading, 'Cormorant Garamond'),serif; color:var(--olive); }
.theme-thm32[data-book-paginated='true'] .thm32-rsvp__occasion p { margin:9px 0 0; }
.theme-thm32[data-book-motion='full'] .thm32-loader__ornament { animation-duration:16s!important; animation-iteration-count:infinite!important; }
.theme-thm32[data-book-motion='full'] .thm32-loader__mark { animation-duration:1.8s!important; animation-iteration-count:infinite!important; }
.theme-thm32[data-book-motion='full'] .thm32-loader__rule::after { animation-duration:1.1s!important; animation-iteration-count:infinite!important; }
.theme-thm32[data-book-motion='full'] .thm32-loader { transition-duration:.55s!important; }
@media(max-width:500px) {
    .theme-thm32:not(.thm32-is-open):not(.thm32-is-opening) .thm32-motion { width:auto; padding-inline:12px; }
    .theme-thm32:not(.thm32-is-open):not(.thm32-is-opening) .thm32-motion small { display:inline; white-space:nowrap; }
}

/* Phones read one portrait page at a time: the page fills the screen width
   and most of its height, bound along its left edge. */
@media(max-width:600px), (max-width:900px) and (orientation:portrait) {
    .thm32-book-scene { inset-inline:16px; }
    .thm32-book-rig { --thm32-spread-width:calc(100vw - 32px); width:var(--thm32-spread-width); height:min(calc(100dvh - 215px),calc(var(--thm32-spread-width) * 1.62)); }
    .thm32-book__spine { left:0; translate:0; width:16px; background:linear-gradient(90deg,#4b3e2926,transparent); }
    .thm32-book__ribbon { left:auto; right:24px; }
    .thm32-page-folio span:first-child { visibility:hidden; }
    .thm32-reader>div>span { font-size:12px; }
}

/* Cover legibility: the date and the guest's name are information, not
   embossing. Labels on the hardcover stay at least 11px, the date 12px and
   the guest's name 18px at every width. */
.thm32-cover__copy .thm32-kicker { font-size:11px; letter-spacing:.16em; }
.thm32-cover__subtitle { font-size:11px; letter-spacing:.16em; }
:is(.thm32-cover,.thm32-opening) time { font-size:12px; letter-spacing:.16em; }
.thm32-cover__margin p,.thm32-cover__margin>span { font-size:11px; }
.thm32-cover__welcome>p { display:grid; gap:4px; justify-items:center; font-size:13px; }
.thm32-cover__welcome strong { margin-left:0; font:500 18px/1.3 var(--invie-font-heading, 'Cormorant Garamond'),serif; }
.thm32-cover__motion { font-size:12px!important; }
.theme-thm32 .thm32-text-link { font-size:12px; }
/* Controls and labels around the book meet the 12px floor. */
.thm32-index-toggle { font-size:12px!important; }
.thm32-open-button { font-size:13px!important; }
.theme-thm32 .thm32-motion small { font-size:12px; }
.thm32-page-folio { font-size:11px; }

/* Names wrap only between words: a name shrinks to its line instead (the template estimates --thm32-name-em). */
.thm32-cover h1 { container-type: inline-size; }
.thm32-cover h1 > span { font-size: min(1em, max(1rem, 92cqi / var(--thm32-name-em, 3))); overflow-wrap: break-word; }

/* The credits page: a few names from "turut mengundang" and the vendors. */
.thm32-page-credits { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-family: var(--invie-font-heading, 'Cormorant Garamond'), Georgia, serif; font-size: 17px; line-height: 1.35; color: var(--ink); }
.thm32-sheet--credits .theme-participants + .theme-participants { margin-top: 28px; }

/* Teks & Font: a text the couple writes may hold one long word (Bapak/Ibu/Saudara/i). Body text
   breaks instead of pushing past its page (headings shrink first: text-fit.js). Zero
   specificity, so the theme's own wrapping rules win. */
:where(body.theme-thm32) :where(h4, p, small, li, blockquote, figcaption, address) { overflow-wrap: break-word; }
