/* Kidung Sunda. Palette and original ornaments from the supplied Figma design. */
@font-face { font-family: 'GFS Didot'; src: url('../fonts/gfs-didot-v18.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
body.theme-thm30 {
    --sunda-ink: #fffcf3; --sunda-panel: #f4ece4; --sunda-light: #673232;
    --sunda-accent: #956f29; --sunda-accent-ink: #7a5a1f; --sunda-muted: #6e524d; --sunda-red: #673232;
    --sunda-line: #b88d4e55; --theme-focus: #673232;
    margin: 0; background: var(--sunda-ink); color: var(--sunda-light);
    font: 400 15px/1.8 var(--invie-font-body, 'Manrope'),sans-serif; -webkit-font-smoothing: antialiased;
}
.theme-thm30 *, .theme-thm30 *::before, .theme-thm30 *::after { box-sizing: border-box; }
.theme-thm30 :where(h1,h2,h3,p,figure,blockquote) { margin: 0; }
.theme-thm30 :is(h1,h2,h3) { font-family: var(--invie-font-heading, 'GFS Didot'),Georgia,serif; font-weight: 400; line-height: 1.18; overflow-wrap: anywhere; }
.theme-thm30 h2 { font-size: clamp(2.2rem,3.6vw,3.65rem); }.theme-thm30 h3 { font-size: clamp(1.8rem,2.8vw,2.6rem); }
.theme-thm30 p { text-wrap: pretty; }.theme-thm30 :is(a,button,input,textarea,select) { -webkit-tap-highlight-color: transparent; }
.theme-thm30 a { color: inherit; text-decoration: none; }.theme-thm30 button { cursor: pointer; font: inherit; }.theme-thm30 button:disabled { opacity: .55; cursor: wait; }
.theme-thm30 img { display: block; max-width: 100%; }.theme-thm30 :is(button,input,textarea,select) { max-width: 100%; }.theme-thm30 [hidden] { display: none !important; }
.theme-thm30 ::selection { color: #fffcf3; background: #673232; }.theme-thm30:not([data-theme-state='open']) { overflow: hidden; }
.thm30-page { width: 100%; position: relative; overflow: clip; }
/* Preserve responsive geometry throughout the cover hand-off. */
.theme-thm30 .thm30-invitation { visibility: visible; opacity: 1; outline: 0; }
.theme-thm30 [data-theme-section] { content-visibility: visible; contain-intrinsic-size: none; scroll-margin-top: 20px; }
.thm30-kicker { color: var(--sunda-accent-ink); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; line-height: 1.9; text-transform: uppercase; }
.thm30-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 14px 28px; border: 1px solid #b58b43; border-radius: 5px; background: #673232; color: #fffcf3; font-size: 12px; font-weight: 600; letter-spacing: .035em; transition: box-shadow .25s,transform .25s; }
.thm30-button:hover { box-shadow: 0 7px 22px #67323225; transform: translateY(-2px); }.theme-thm30 a.thm30-button { color: #fffcf3; }
.theme-thm30 .thm30-button.thm30-button--gold { border-color: #b58b43; background: #ffc871; color: #4f2424; }
.theme-thm30 .thm30-button.thm30-button--ink { border-color: #b58b43; background: var(--sunda-light); color: var(--sunda-ink); }
.theme-thm30 .thm30-button.thm30-button--paper { color: var(--sunda-light); background: transparent; }
.thm30-text-link { display: inline-flex; gap: 14px; align-items: center; min-height: 44px; padding-block: 8px; border: 0; border-bottom: 1px solid var(--sunda-line); background: transparent; color: var(--sunda-accent-ink) !important; font-size: 12px; }
.thm30-divider { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--sunda-accent-ink); margin: 24px 0; font-size: 8px; }
.thm30-divider::before,.thm30-divider::after { content: ''; width: 70px; height: 1px; background: linear-gradient(90deg,transparent,var(--sunda-accent)); }.thm30-divider::after { transform: rotate(180deg); }
/* The source flourish is vertical; rotate its original square inside a shallow slot. */
.thm30-flourish { position: relative; display: block; width: 240px; max-width: 80%; height: 32px; margin: 0 auto 30px; overflow: hidden; pointer-events: none; }
.thm30-flourish::before { content: ''; position: absolute; width: 240px; height: 240px; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(-90deg); background: url('../img/sunda-divider.webp') center / contain no-repeat; }
.thm30-cover { position: fixed !important; z-index: 50; inset: 0; overflow: auto; overflow-x: hidden; isolation: isolate; background: #fffcf3; transition: opacity .85s ease,visibility .85s; }
.thm30-cover::before { content: ''; position: fixed; z-index: -1; inset: 0; background: url('../img/sunda-toile.webp') center / 580px auto repeat; opacity: .2; pointer-events: none; }
.thm30-cover__stage { position: relative; width: min(100% - 120px,1320px); min-height: 100svh; margin: auto; padding: 65px 0; display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.15fr); align-items: center; gap: 5%; }
.thm30-cover__frame { position: relative; z-index: 2; width: 100%; margin-inline: auto; padding: 30px 18px; text-align: center; isolation: isolate; animation: thm30-enter 2s ease both; }
.thm30-cover__frame::before { content: ''; position: absolute; z-index: -1; inset: -30px -50px; background: radial-gradient(ellipse,#fffcf3 28%,#fffcf3ba 58%,transparent 74%); }
.thm30-cover__portrait { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .035; mask-image: linear-gradient(transparent,#000 40%,transparent); }
.thm30-cover h1 { font-size: clamp(3.5rem,5vw,5rem); color: #673232; letter-spacing: -.035em; margin-top: 18px; }.thm30-cover h1 span { display: block; max-width: 100%; overflow-wrap: anywhere; }.thm30-cover h1 i { display: block; margin: 4px 0; font: italic .42em var(--invie-font-heading, 'Cormorant Garamond'),serif; color: #a07837; }.thm30-cover--long h1 { font-size: clamp(2.4rem,4vw,4rem); }
.thm30-cover time { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.thm30-cover__guest { display: grid; gap: 6px; margin: 26px auto; overflow-wrap: anywhere; }.thm30-cover__guest span { color: #84645e; font-size: 12px; }.thm30-cover__guest strong { font-size: 15px; font-weight: 500; }
.thm30-cover__border { --thm30-repeat: 240px; position: fixed; z-index: 3; inset-block: 18px; width: 24px; background: url('../img/sunda-divider.webp') center 0 / 240px var(--thm30-repeat) repeat-y; animation: thm30-weave 40s linear infinite; pointer-events: none; opacity: .75; }
.thm30-cover__border--left { left: 12px; }.thm30-cover__border--right { right: 12px; animation-direction: reverse; }
.thm30-cover__landscape { position: relative; align-self: center; min-height: 590px; isolation: isolate; border-radius: 48% 48% 4px 4px; border: 1px solid #b58b4355; overflow: hidden; background: linear-gradient(#fffcf333,#c5a5a866); animation: thm30-enter 2s .1s ease both; }
.thm30-cover__landscape::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('../img/sunda-toile.webp') center / cover; opacity: .3; }
.thm30-cover__hills { position: absolute; inset: auto 0 0; width: 100%; height: 45%; object-fit: cover; opacity: .65; }
.theme-thm30 .thm30-cover__house { position: absolute; width: 116%; max-width: none; height: auto; left: -8%; bottom: 36px; filter: drop-shadow(0 18px 10px #67323220); }
.thm30-cover__landscape-label { position: absolute; inset: auto 0 27px; display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 12px; letter-spacing: .2em; color: #fffcf3; }.thm30-cover__landscape-label i { width: 30px; height: 1px; background: currentColor; }
.theme-thm30.thm30-is-open .thm30-cover { opacity: 0; visibility: hidden; pointer-events: none; }
.thm30-ornaments { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.thm30-scrollwork { position: absolute; width: clamp(100px,15vw,210px); height: auto; bottom: 1%; opacity: .75; transform-origin: 70% 90%; animation: thm30-sway 12s ease-in-out infinite; }
.thm30-scrollwork--left { left: -4%; }.thm30-scrollwork--right { right: -4%; scale: -1 1; animation-delay: -6s; }
.thm30-cover > .thm30-ornaments { z-index: 2; position: fixed; }.thm30-cover .thm30-scrollwork { bottom: -30px; width: 150px; }
.thm30-ornament-entry { position: absolute; width: 180px; top: 14%; left: -75px; }.thm30-ornament-entry--right { left: auto; right: -75px; top: auto; bottom: 8%; scale: -1 1; }
.thm30-flower { width: 100%; height: auto; transform-origin: 50% 70%; animation: thm30-sway 16s ease-in-out infinite; opacity: .72; filter: drop-shadow(0 12px 16px #6732321c); }
.thm30-dust { position: absolute; inset: 0; }.thm30-dust i { position: absolute; left: 17%; top: 75%; width: 5px; height: 8px; border-radius: 90% 0 90% 0; background: #b18b49; animation: thm30-drift 14s ease-in-out infinite; opacity: 0; }
.thm30-dust i:nth-child(2) { left: 33%; top: 39%; animation-delay: -4s; }.thm30-dust i:nth-child(3) { left: 69%; top: 68%; animation-delay: -7s; }.thm30-dust i:nth-child(4) { left: 85%; top: 29%; animation-delay: -2s; }.thm30-dust i:nth-child(5) { left: 8%; top: 31%; animation-delay: -6s; }.thm30-dust i:nth-child(6) { left: 53%; top: 88%; animation-delay: -1s; }
@keyframes thm30-enter { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes thm30-weave { to { background-position: center calc(-1 * var(--thm30-repeat)); } }
@keyframes thm30-sway { 0%,100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg) translateY(-5px); } }
@keyframes thm30-drift { 0%,100% { opacity: 0; transform: translate(0,-20px) rotate(0); } 40% { opacity: .65; } 80% { opacity: .1; transform: translate(22px,55px) rotate(70deg); } }
.thm30-motion-ready [data-thm30-reveal] { transition: opacity 1.4s ease,transform 1.4s cubic-bezier(.2,.7,.2,1); }
.thm30-motion-ready [data-thm30-reveal]:not(.is-visible) { opacity: 0; transform: translateY(28px); }
.thm30-motion-ready .thm30-ornament-entry:not(.is-visible) { transform: translateX(-55px); }
.thm30-motion-ready .thm30-gift-card:not(.is-visible) { transform: translateY(20px) scale(.92); }
.thm30-motion-ready .thm30-gallery__piece { transition-delay: var(--reveal-delay,0s); }
.theme-thm30:is([data-motion-paused='true'],[data-page-hidden='true']) :is(.thm30-scrollwork,.thm30-flower,.thm30-dust i,.thm30-cover__border) { animation-play-state: paused !important; }
.theme-thm30[data-motion-paused='true'] [data-thm30-reveal] { opacity: 1; transform: none; transition: none; }
.thm30-section { position: relative; padding: 100px max(7vw,calc((100vw - 1140px)/2)); border-bottom: 1px solid var(--sunda-line); isolation: isolate; }
.thm30-section > :not(dialog) { position: relative; min-width: 0; }.thm30-section > .thm30-ornaments { position: absolute; }
.thm30-heading { max-width: 780px; text-align: center; margin: 0 auto 60px; }.thm30-heading .thm30-kicker { margin-bottom: 18px; }.thm30-heading p:not(.thm30-kicker) { max-width: 570px; margin: 22px auto 0; color: var(--sunda-muted); font-size: 13px; }
.thm30-intro { padding-top: 0; background: #fffcf3; }.thm30-intro::before { content: ''; position: absolute; z-index: -1; inset: 0; opacity: .08; background: url('../img/sunda-toile.webp') center / 580px auto; }
.thm30-nav { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 25px 0; border-bottom: 1px solid var(--sunda-line); }.thm30-nav__brand { font: 30px/1.1 var(--invie-font-heading, 'GFS Didot'),serif; color: #673232 !important; }.thm30-nav__links { display: flex; gap: 28px; flex-wrap: wrap; }.thm30-nav__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
.thm30-intro__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: clamp(40px,7vw,100px); padding: 75px 0; }.thm30-intro__copy { text-align: center; width: min(100%,550px); margin: auto; }.thm30-intro__copy h2 { font-size: clamp(2.8rem,4.5vw,4.7rem); margin-top: 22px; }.thm30-intro__copy em { color: #a37b41; font: italic 1.12em var(--invie-font-heading, 'Cormorant Garamond'),serif; }.thm30-intro__copy > p:not(.thm30-kicker) { font-size: 15px; max-width: 540px; margin: auto; color: var(--sunda-muted); }.thm30-intro__copy .thm30-text-link { margin-top: 18px; }
.thm30-intro__portrait { position: relative; width: min(100%,470px); margin: auto; padding: 12px; border: 1px solid #ae864e; border-radius: 45% 45% 3px 3px; background: #fffcf3; box-shadow: 16px 16px 0 #6732320a; }
.thm30-intro__hero { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: inherit; background: #673232; }.thm30-intro__hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }.thm30-intro__hero figcaption { position: absolute; inset: auto 0 0; padding: 55px 20px 18px; text-align: center; background: linear-gradient(transparent,#311818dc); color: #fffcf3; font: italic 30px var(--invie-font-heading, 'Cormorant Garamond'),serif; }.thm30-intro__monogram { font: 100px var(--invie-font-heading, 'Cormorant Garamond'),serif; color: #ffc871; }
.thm30-countdown { display: flex; justify-content: center; align-items: center; gap: 42px; padding: 28px; border: 1px solid #b88d4e55; border-radius: 8px; background: #673232; color: #ffc871; --sunda-accent: #ffc871; --sunda-accent-ink: #ffc871;}.thm30-countdown > p { max-width: 150px; }.thm30-countdown > div { display: grid; min-width: 55px; text-align: center; }.thm30-countdown strong { font: 42px/1.3 var(--invie-font-heading, 'GFS Didot'),serif; }.thm30-countdown span { color: #f1dac1; font-size: 12px; letter-spacing: .1em; }
.thm30-couple { color: #ffecd4; --sunda-muted: #f0d8c1; --sunda-accent: #ffc871; --sunda-accent-ink: #ffc871; --sunda-line: #ffc87155; --theme-focus: #ffc871; background: #fffcf3; }
/* The toile stays a quiet texture behind copy (about 12%). */
.thm30-couple::before,.thm30-events::before { content: ''; position: absolute; z-index: -2; inset: 0; background: linear-gradient(#fffcf3e0,#fffcf3e0),url('../img/sunda-toile.webp') center / 510px auto repeat; }
.thm30-couple::after { content: ''; position: absolute; z-index: -1; inset: 50px max(3vw,calc((100vw - 1260px)/2)); background: #673232; border: 1px solid #b68855; border-radius: 32px; box-shadow: 0 10px 40px #67323218; }
.thm30-couple__profiles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8%; max-width: 950px; margin: 55px auto 0; }.thm30-profile { text-align: center; min-width: 0; }
.theme-thm30 .thm30-profile__media { position: relative; width: min(90%,290px); aspect-ratio: 543 / 752; margin: 0 auto 30px; overflow: hidden; }
.thm30-profile__frame { position: absolute; inset: 0; background: url('../img/sunda-bilik-frame.svg') center / 100% 100% no-repeat; filter: drop-shadow(0 10px 18px #2b131330); }
.thm30-profile { position: relative; }
.thm30-profile__ornament { position: absolute; z-index: 1; width: 150px; top: -20px; left: -75px; pointer-events: none; }
.thm30-profile__ornament--right { left: auto; right: -75px; scale: -1 1; }
.thm30-motion-ready .thm30-profile__ornament { transition: transform 1.5s ease; }
.thm30-motion-ready .thm30-profile:not(.is-visible) .thm30-profile__ornament { transform: translateX(-45px); }
.theme-thm30[data-motion-paused='true'] .thm30-profile__ornament { transform: none; transition: none; }
.thm30-profile__media > img,.thm30-profile__monogram { position: absolute; inset: 14.6% 15% 14.6%; width: 70%; height: 70.8%; object-fit: cover; }
.thm30-profile__monogram { display: grid; place-items: center; color: #ffc871; font: 90px var(--invie-font-heading, 'Cormorant Garamond'),serif; background: #4f2424; }
.thm30-profile__copy h3 { color: #ffc871; margin: 10px auto 18px; max-width: 420px; }.thm30-profile__copy > p:not(.thm30-kicker) { font-size: 15px; color: var(--sunda-muted); max-width: 330px; margin: auto; }.thm30-profile__copy .thm30-text-link { margin-top: 12px; }.thm30-profile--name-long h3,.thm30-profile--name-xlong h3 { font-size: 1.8rem; }
.thm30-events__tickets { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px; }
.thm30-event > .thm30-ornament-entry { z-index: 1; width: 140px; top: -20px; bottom: auto; left: -60px; pointer-events: none; }
.thm30-event > .thm30-ornament-entry--right { left: auto; right: -60px; }
.thm30-event { position: relative; padding: 40px 32px; text-align: center; border: 1px solid #b68855; background: #673232; color: #ffecd4; --sunda-muted: #f0d8c1; --sunda-accent: #ffc871; --sunda-accent-ink: #ffc871; --sunda-line: #ffc87155; --theme-focus: #ffc871; border-radius: 24px; }
.thm30-event__date { padding: 16px 0 28px; margin-bottom: 26px; border-bottom: 1px solid var(--sunda-line); }.thm30-event__date time { display: grid; }.thm30-event__date span,.thm30-event__date small { font-size: 12px; letter-spacing: .17em; }.thm30-event__date strong { color: #ffc871; font: 72px/1.1 var(--invie-font-heading, 'GFS Didot'),serif; margin: 14px 0; }.thm30-event__copy h3 { margin: 10px 0 18px; }.thm30-event__copy > strong { display: block; font-size: 14px; margin: 20px 0 7px; }.thm30-event__copy address { font-style: normal; color: var(--sunda-muted); font-size: 12px; }.thm30-event__time { font-size: 14px; }.thm30-event__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 24px; }
/* One map control: open, the map takes the card's width; the button and the maps link stay centred like the card. */
.thm30-event__map[open] { align-self: stretch; }.thm30-event__map > summary { margin-inline: auto; }.thm30-event__map .theme-v2-map__open { justify-self: center; color: var(--sunda-accent-ink); font-size: 13px; }
.thm30-quote { text-align: center; padding-bottom: 0; overflow: hidden; background: #f4efeb url('../img/sunda-paper.webp') center / 760px; }
.thm30-quote::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 35%,#67323255); }
.thm30-quote blockquote { max-width: 760px; margin: auto; }.thm30-quote__mark { display: none; }.thm30-quote blockquote p { font: 400 clamp(1.4rem,2.5vw,2.2rem)/1.65 var(--invie-font-heading, 'GFS Didot'),serif; }.thm30-quote cite { display: block; color: #84603a; font-style: normal; letter-spacing: .14em; font-size: 12px; margin-top: 30px; }
.thm30-quote__house { width: min(100%,740px); height: auto; margin: 50px auto -6px; }

/* Photo stories and accessible invitation interactions. */
.thm30-story__timeline { position: relative; max-width: 950px; margin: auto; }
.thm30-story__timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent,var(--sunda-accent),transparent); }
.thm30-story-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 40px 0; }
.thm30-story-entry--even .thm30-story-entry__visual { order: 2; }
.thm30-story-entry__visual figure { position: relative; }
.thm30-story-entry__visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; padding: 7px; border: 1px solid var(--sunda-line); border-radius: 2px; }
.thm30-story-entry__visual figcaption { position: absolute; bottom: 20px; left: 25px; font: 45px var(--invie-font-heading, "Cormorant Garamond"),serif; text-shadow: 0 2px 10px #000; font-variant-numeric: lining-nums; }
.thm30-story-entry__placeholder { min-height: 220px; display: grid; place-items: center; background: url('../img/sunda-house.webp') center / min(90%,320px) auto no-repeat; color: var(--sunda-accent-ink); }.thm30-story-entry__placeholder span { display: none; }
.thm30-story-entry__chapter { color: var(--sunda-accent-ink); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; }
.thm30-story-entry__copy time { font-size: 12px; color: var(--sunda-muted); }.thm30-story-entry__copy h3 { margin: 14px 0; }.thm30-story-entry__copy > p:last-child { color: var(--sunda-muted); font-size: 13px; }
.thm30-gallery { background: #f4ece4; }
.thm30-gallery__collage { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; align-items: start; }
.thm30-gallery__piece { position: relative; min-width: 0; padding: 7px; border: 1px solid var(--sunda-line); background: transparent; color: var(--sunda-light); }
.thm30-gallery__piece img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }.thm30-gallery__piece:nth-child(3n+2) { margin-top: 50px; }
.thm30-gallery__piece > span { position: absolute; bottom: 16px; right: 20px; font-size: 12px; text-shadow: 0 1px 6px #000; }.thm30-gallery__piece small { display: block; padding: 10px; }
.thm30-gallery-dialog { padding: 18px; width: min(900px,94vw); max-height: 94dvh; color: var(--sunda-light); background: var(--sunda-ink); border: 1px solid var(--sunda-accent); }
.thm30-gallery-dialog::backdrop { background: #311818eb; }.thm30-gallery-dialog button { border: 1px solid var(--sunda-line); color: var(--sunda-light); background: transparent; padding: 8px 12px; }
.thm30-gallery-dialog__bar,.thm30-gallery-dialog__controls { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 12px; }.thm30-gallery-dialog figure { margin: 14px 0; }.thm30-gallery-dialog figure img { max-height: 65dvh; width: 100%; object-fit: contain; }.thm30-gallery-dialog figcaption { text-align: center; font-size: 12px; }
.thm30-rsvp__layout, .thm30-wishes__guestbook { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; }
.thm30-rsvp__aside h2 { margin: 15px 0 24px; }.thm30-rsvp__aside > p:not(.thm30-kicker) { color: var(--sunda-muted); font-size: 15px; }.thm30-rsvp__deadline strong { display: block; color: var(--sunda-accent-ink); }
.thm30-rsvp__mark { width: min(100%,320px); aspect-ratio: 672 / 246; background: url('../img/sunda-house.webp') center / contain no-repeat; margin: 35px 0; }.thm30-rsvp__mark span { display: none; }
.thm30-form { padding: 32px; background: #f4ece4; border: 1px solid var(--sunda-line); display: grid; gap: 20px; align-content: start; }
.thm30-field { min-width: 0; margin: 0; padding: 0; border: 0; }.thm30-field > label,.thm30-field legend { display: block; padding: 0; font-size: 12px; margin-bottom: 8px; color: var(--sunda-accent-ink); }
.thm30-field :is(input:not([type="radio"]),textarea,select) { width: 100%; padding: 12px 14px; border: 1px solid #956f2940; border-radius: 0; background: #fffcf3; color: var(--sunda-light); font: 13px/1.8 var(--invie-font-body, "Manrope"),sans-serif; }.thm30-field textarea { resize: vertical; }.thm30-field ::placeholder { color: #856961; opacity: 1; }
.thm30-attendance__options { display: grid; gap: 8px; }.thm30-attendance__options label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--sunda-line); font-size: 12px; cursor: pointer; }.thm30-attendance__options label:has(input:checked) { background: #956f2912; border-color: var(--sunda-accent); }.thm30-attendance input { accent-color: var(--sunda-accent); }
.thm30-form__status { font-size: 12px; color: #673232; overflow-wrap: anywhere; }.thm30-form__status:empty { display: none; }.thm30-form__status[data-status="error"] { color: #a33826; }
.thm30-wishes { background: #f3e7df; }.thm30-wishes__featured { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-bottom: 40px; }.thm30-wish-card { position: relative; padding: 30px; border: 1px solid var(--sunda-line); }.thm30-wish-card__number { color: var(--sunda-accent-ink); font-size: 12px; }.thm30-wish-card blockquote { margin: 12px 0 22px; font: 24px/1.5 var(--invie-font-heading, "Cormorant Garamond"),serif; }.thm30-wish-card figcaption { display: flex; gap: 12px; align-items: center; font-size: 12px; }.thm30-wish-card figcaption img,.thm30-wish-card__initial { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; }.thm30-wish-card__initial { display: grid; place-items: center; border: 1px solid var(--sunda-line); }.thm30-wish-card small { display: block; color: var(--sunda-muted); font-size: 12px; }
.thm30-wishes__messages-head { display: flex; gap: 15px; justify-content: space-between; align-items: center; }.thm30-wishes__messages-head h3 { margin-top: 10px; }.thm30-wishes__messages ul { list-style: none; padding: 0; margin: 25px 0 0; max-height: 490px; overflow: auto; }.thm30-wishes__messages li { display: flex; gap: 16px; border-bottom: 1px solid var(--sunda-line); padding: 22px 0; font-size: 15px; overflow-wrap: anywhere; }.thm30-wishes__messages li > span,.thm30-wishes__messages time { color: var(--sunda-accent-ink); font-size: 12px; }.thm30-wishes__messages time { display: block; }.thm30-wishes__messages li p { margin-top: 10px; color: var(--sunda-muted); }
.thm30-gift__accounts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px; }.thm30-gift-card { padding: 30px; border: 1px solid var(--sunda-line); background: linear-gradient(135deg,#f3e7df,#fffcf3); }.thm30-gift-card__masthead { display: flex; justify-content: space-between; font-size: 12px; color: var(--sunda-accent-ink); letter-spacing: .08em; }.thm30-gift-card__bank { display: flex; gap: 15px; align-items: center; margin: 22px 0; }.thm30-gift-card__bank img { max-width: 75px; max-height: 35px; padding: 6px; background: #fff; border-radius: 3px; }.thm30-gift-card__bank strong { font-size: 12px; }.thm30-gift-card__account { display: grid; margin-bottom: 25px; overflow-wrap: anywhere; }.thm30-gift-card__account span,.thm30-gift-card__account small { color: var(--sunda-muted); font-size: 12px; }.thm30-gift-card__account strong { font: 29px/1.8 var(--invie-font-heading, "Cormorant Garamond"),serif; color: var(--sunda-accent-ink); }
.thm30-dresscode,.thm30-livestream,.thm30-health { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; align-items: center; }.thm30-dresscode h2,.thm30-livestream h2,.thm30-health h2 { margin: 14px 0 22px; font-size: 2.8rem; }.thm30-dresscode p:not(.thm30-kicker),.thm30-livestream p:not(.thm30-kicker),.thm30-health p:not(.thm30-kicker) { font-size: 15px; color: var(--sunda-muted); }.thm30-dresscode small { display: block; margin-top: 15px; font-size: 12px; }.thm30-dresscode__palette { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }.thm30-dresscode__swatch { display: flex; gap: 12px; align-items: center; font-size: 12px; }.thm30-dresscode__swatch > span { width: 45px; height: 60px; flex: 0 0 45px; border: 1px solid var(--sunda-line); border-radius: 0; background: var(--thm30-swatch); }.thm30-dresscode__swatch small { margin-top: 3px; }
/* Beside the copy, the swatches sit as one centred group instead of two far-apart columns. */
@media (min-width: 761px) { .thm30-dresscode__palette { grid-template-columns: repeat(2, minmax(0, max-content)); justify-content: center; column-gap: 56px; } }
.thm30-livestream { background: #f3e7df; }.thm30-livestream__signal { display: none; }.thm30-livestream__access { padding: 30px; border: 1px solid var(--sunda-line); }.thm30-livestream__meta { display: grid; margin-bottom: 24px; }.thm30-livestream__meta span { font-size: 12px; letter-spacing: .14em; color: var(--sunda-accent-ink); }.thm30-livestream dd { margin: 0; overflow-wrap: anywhere; }.thm30-health__grid { list-style: none; padding: 0; }.thm30-health-card { padding: 18px 0; border-bottom: 1px solid var(--sunda-line); }.thm30-health-card__number { margin-right: 10px; color: var(--sunda-accent-ink); font-size: 12px; }.thm30-health-card strong { font-size: 13px; }

/* Botanical story pages and a rounded maroon RSVP panel. */
.thm30-story::after,.thm30-gallery::after { content: ''; position: absolute; inset: 0; z-index: -1; background: url('../img/sunda-toile.webp') center / 510px auto; opacity: .1; }
.thm30-story__banner { max-width: 940px; margin: 0 auto 40px; overflow: hidden; }.thm30-story__banner img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; mask-image: linear-gradient(#000 72%,transparent); }
.thm30-story-entry__visual { position: relative; max-width: 280px; width: 100%; margin: auto; }
.thm30-story-entry__visual::after { content: ''; position: absolute; width: 100px; height: 100px; right: -20px; bottom: -15px; background: url('../img/sunda-flower.webp') center / contain no-repeat; pointer-events: none; }
.thm30-story-entry__visual img { aspect-ratio: 3 / 4; border-radius: 50%; border: 1px solid #b18b49; padding: 6px; }.thm30-story-entry__visual figcaption { left: 35px; color: #fffcf3; }
.thm30-story-entry__placeholder { border-radius: 50%; background: #673232; color: #ffc871; aspect-ratio: 3 / 4; font: 65px var(--invie-font-heading, 'Cormorant Garamond'),serif; }
.thm30-gallery { background: #fffcf3; }.thm30-gallery__piece { border: 1px solid #b18b4980; background: #fffcf3; padding: 8px; }
.thm30-gallery__piece::after { content: ''; position: absolute; right: -12px; bottom: -15px; width: 85px; height: 85px; background: url('../img/sunda-flower.webp') center / contain no-repeat; pointer-events: none; }
.thm30-gallery__piece > span { color: #fffcf3; z-index: 1; right: 15px; bottom: 18px; }.thm30-gallery__piece:nth-child(3n+2) { --reveal-delay: .16s; }.thm30-gallery__piece:nth-child(3n) { --reveal-delay: .32s; }
.thm30-rsvp { margin-inline: max(3vw,calc((100vw - 1260px)/2)); padding: 90px 5vw; border-radius: 150px 150px 0 0; background: #673232; color: #ffecd4; --sunda-muted: #f0d8c1; --sunda-accent: #ffc871; --sunda-accent-ink: #ffc871; --sunda-line: #ffc87155; --theme-focus: #ffc871; }
.thm30-rsvp .thm30-ornament-entry { top: 30px; bottom: auto; width: 120px; left: -52px; }
.thm30-rsvp .thm30-ornament-entry--right { left: auto; right: -52px; }
.thm30-rsvp__mark { width: 100%; background: none; aspect-ratio: auto; margin: 40px 0 0; font: 90px/1 var(--invie-font-heading, 'GFS Didot'),serif; opacity: .4; }.thm30-rsvp__mark span { display: block; }
.thm30-rsvp .thm30-form { border-radius: 18px; border-color: #ffc87144; background: #4f2424; }
.thm30-rsvp .thm30-field :is(input:not([type='radio']),textarea,select) { color: #673232; background: #fffcf3; border-radius: 5px; }
.thm30-rsvp .thm30-form__status { color: #ffecd4; }.thm30-rsvp .thm30-form__status[data-status='error'] { color: #ffc871; }
.thm30-wishes { background: #f4e8df; }.thm30-wishes .thm30-form,.thm30-wish-card { background: #fffcf3; border-radius: 12px; }
.thm30-gift { background: #fffcf3 url('../img/sunda-paper.webp') center / 760px; }
.thm30-gift-card { border-radius: 12px; border: 1px solid #b88d4e55; background: #fffdf7; box-shadow: 0 10px 35px #67323208; }
.thm30-dancer { width: 125px; height: auto; margin: 0 auto 28px; filter: sepia(1) saturate(0) brightness(.65); opacity: .45; }
.thm30-dresscode,.thm30-livestream { background: #673232; color: #ffecd4; --sunda-muted: #f0d8c1; --sunda-accent: #ffc871; --sunda-accent-ink: #ffc871; --sunda-line: #ffc87155; --theme-focus: #ffc871; }
.theme-thm30 .thm30-livestream .thm30-button.thm30-button--paper { color: #ffc871; }.thm30-dresscode__swatch > span { width: 46px; height: 46px; border-radius: 50%; }
.thm30-closing { position: relative; overflow: hidden; padding: 100px 8vw 85px; text-align: center; isolation: isolate; background: #fffcf3 url('../img/sunda-paper.webp') center / 760px; }
.thm30-closing__media { position: absolute; inset: 0; z-index: -1; }.thm30-closing__media img { width: 100%; height: 100%; object-fit: cover; opacity: .055; }.thm30-closing__monogram { display: none; }
.thm30-closing__copy { position: relative; max-width: 850px; margin: auto; }.thm30-closing__thanks { font: 26px var(--invie-font-heading, 'GFS Didot'),serif; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 28px !important; }.thm30-closing .thm30-dancer { width: 95px; }
.thm30-closing h2 { font-size: clamp(3rem,6vw,5rem); margin: 25px 0; color: #673232; }.thm30-closing h2 i { font: italic .65em var(--invie-font-heading, 'Cormorant Garamond'),serif; margin-inline: 15px; color: #956f29; }.thm30-closing__copy > p:not(.thm30-kicker):not(.thm30-closing__thanks) { font-size: 15px; color: var(--sunda-muted); max-width: 470px; margin: auto; }.thm30-closing time { display: block; margin: 24px 0; font-size: 12px; letter-spacing: .15em; }.thm30-closing small { display: block; font-size: 12px; color: var(--sunda-muted); margin-top: 40px; }.thm30-closing--names-long h2,.thm30-closing--names-xlong h2 { font-size: clamp(2.3rem,4.6vw,3.8rem); }
.thm30-closing .thm30-ornament-entry { top: auto; bottom: 0; width: 240px; }.thm30-closing .thm30-ornament-entry--left { left: -60px; }.thm30-closing .thm30-ornament-entry--right { right: -60px; }
.thm30-sr-status { position: fixed; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 1100px) {
    .thm30-section { padding: 80px 6vw; }.thm30-intro { padding-top: 0; }.thm30-rsvp__layout,.thm30-wishes__guestbook { gap: 35px; }.thm30-quote { padding-bottom: 0; }
    .thm30-cover__stage { width: calc(100% - 80px); gap: 4%; }.thm30-cover__frame { padding-inline: 0; }.thm30-cover h1 { font-size: 4.4rem; }.thm30-cover--long h1 { font-size: 2.8rem; }.thm30-cover__landscape { min-height: 520px; }
    .thm30-couple::after { inset-inline: 20px; }.thm30-rsvp { padding: 75px 6vw; border-radius: 100px 100px 0 0; }
}
@media (max-width: 760px) {
    .theme-thm30 { font-size: 14px; }
    body.theme-thm30 [data-theme-cover] { padding: 0; }
    .thm30-cover__stage { width: 100%; padding: 32px 0 0; display: block; }
    .thm30-cover__frame { width: min(100% - 48px,490px); padding: 10px 10px 0; }
    .thm30-cover .thm30-flourish { margin-bottom: 20px; width: 210px; }.thm30-cover h1 { font-size: clamp(3rem,13vw,4.8rem); margin-top: 18px; }.thm30-cover--long h1 { font-size: clamp(2.1rem,8vw,3rem); }
    .thm30-cover .thm30-divider { margin-block: 18px; }.thm30-cover__guest { margin: 20px 0; }.thm30-cover__guest span { font-size: 12px; }
    .thm30-cover__border { --thm30-repeat: 200px; width: 16px; background-size: 200px var(--thm30-repeat); opacity: .4; }.thm30-cover__border--left { left: 0; }.thm30-cover__border--right { right: 0; }
    .thm30-cover::before { background-size: 100% auto; opacity: .4; }
    .thm30-cover__landscape { position: absolute; inset: auto 0 0; min-height: 0; height: clamp(112px,28dvh,235px); aspect-ratio: auto; margin: 0; border: 0; border-radius: 0; background: none; animation: none; }.thm30-cover__landscape::before { display: none; }.thm30-cover__landscape-label { display: none; }.theme-thm30 .thm30-cover__house { width: auto; max-width: none; height: 100%; left: 50%; bottom: 0; translate: -50% 0; object-fit: contain; }.thm30-cover__hills { height: 52%; object-fit: cover; }.thm30-cover .thm30-scrollwork { width: 95px; opacity: .6; }
    .thm30-section { padding: 65px 25px; }.thm30-intro { padding-top: 0; }.thm30-nav { gap: 16px; padding-block: 18px; }.thm30-nav__links { gap: 13px; }.thm30-nav__links a { font-size: 12px; }.thm30-nav__brand { font-size: 24px; }
    .thm30-intro__grid { grid-template-columns: minmax(0,1fr); gap: 40px; padding: 45px 0; }.thm30-intro__copy h2 { font-size: clamp(2.5rem,10vw,3.5rem); }.thm30-intro__portrait { width: min(94%,390px); }.thm30-intro__hero figcaption { font-size: 25px; }
    .thm30-countdown { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; padding: 24px 14px; }.thm30-countdown > p { grid-column: 1 / -1; max-width: none; text-align: center; margin-bottom: 8px; }.thm30-countdown > div { min-width: 0; }.thm30-countdown strong { font-size: 31px; }.thm30-countdown span { font-size: 12px; }
    .thm30-heading { margin-bottom: 40px; }.thm30-heading p:not(.thm30-kicker) { font-size: 15px; }.thm30-couple { padding: 80px 42px; }.thm30-couple::after { inset: 30px 18px; border-radius: 24px; }.thm30-couple__profiles { grid-template-columns: 1fr; gap: 60px; margin-top: 40px; }.theme-thm30 .thm30-profile__media { width: min(100%,240px); }.thm30-profile__copy { max-width: 390px; margin: auto; }
    .thm30-ornament-entry { width: 155px; left: -65px; }.thm30-ornament-entry--right { left: auto; right: -65px; }.thm30-couple .thm30-ornament-entry--right { bottom: 16%; }
    .thm30-events__tickets { grid-template-columns: minmax(0,1fr); gap: 28px; }.thm30-event { padding: 30px 24px; }.thm30-event__date strong { font-size: 65px; }.thm30-event__actions { flex-direction: column; }
    .thm30-quote { padding-bottom: 0; }.theme-thm30 .thm30-quote__house { max-width: none; width: calc(100% + 120px); margin-left: -60px; margin-top: 45px; }
    .thm30-story__banner img { aspect-ratio: 4 / 3; }.thm30-story-entry { grid-template-columns: minmax(0,.7fr) minmax(0,1fr); gap: 22px; padding: 28px 0; }.thm30-story-entry--even { grid-template-columns: minmax(0,1fr) minmax(0,.7fr); }.thm30-story-entry__copy h3 { font-size: 1.5rem; }.thm30-story-entry__copy > p:last-child { font-size: 15px; }.thm30-story-entry__visual::after { width: 66px; height: 66px; right: -15px; }.thm30-story-entry__placeholder { min-height: 150px; font-size: 45px; }.thm30-story__timeline::before { display: none; }
    .thm30-gallery__collage { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 12px; }.thm30-gallery__piece { padding: 5px; }.thm30-gallery__piece:nth-child(3n+2) { margin-top: 0; }.thm30-gallery__piece:nth-child(6n+1),.thm30-gallery__piece:nth-child(6n) { grid-column: 1 / -1; }.thm30-gallery__piece:nth-child(6n+1) img,.thm30-gallery__piece:nth-child(6n) img { aspect-ratio: 4 / 5; }.thm30-gallery__piece::after { width: 70px; height: 70px; }.thm30-gallery-dialog { padding: 12px; }
    .thm30-gift__accounts,.thm30-rsvp__layout,.thm30-wishes__guestbook,.thm30-wishes__featured,.thm30-dresscode,.thm30-livestream,.thm30-health { grid-template-columns: 1fr; gap: 28px; }.thm30-rsvp { margin: 0 14px; border-radius: 100px 100px 0 0; padding: 75px 26px 45px; }.thm30-rsvp__aside { text-align: center; }.thm30-rsvp__mark { display: none; }.thm30-form { padding: 24px 20px; }.thm30-wish-card { padding: 24px; }.thm30-gift-card { padding: 26px; }.thm30-dresscode h2,.thm30-livestream h2,.thm30-health h2 { font-size: 2.25rem; }
    .thm30-closing { padding: 65px 40px 80px; }.thm30-closing h2 span,.thm30-closing h2 i { display: block; }.thm30-closing h2 i { line-height: 1.4; }.thm30-closing .thm30-ornament-entry { width: 170px; bottom: -20px; }
}
@media (max-width: 359px) {
    .thm30-cover h1 { font-size: 3rem; }.thm30-cover--long h1 { font-size: 2rem; }.thm30-nav__links { gap: 9px; }.thm30-section { padding-inline: 20px; }.thm30-couple { padding-inline: 36px; }.thm30-rsvp { padding-inline: 20px; }.thm30-cover .thm30-button { padding-inline: 18px; font-size: 12px; }
    .thm30-story-entry,.thm30-story-entry--even { grid-template-columns: minmax(0,1fr); gap: 28px; }.thm30-story-entry--even .thm30-story-entry__visual { order: 0; }.thm30-story-entry__visual { max-width: 170px; }.thm30-story-entry__copy { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .theme-thm30 *, .theme-thm30 *::before, .theme-thm30 *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }.theme-thm30 [data-thm30-reveal] { opacity: 1 !important; transform: none !important; }.thm30-dust { display: none; }
}

/* Keep decorative flowers inside a narrow edge lane so they never compete
   with profile copy, event details, RSVP fields, or closing text. */
body.theme-thm30 .thm30-ornaments { contain: paint; }
body.theme-thm30 .thm30-cover .thm30-scrollwork { width: 120px; bottom: -36px; opacity: .55; }
body.theme-thm30 .thm30-cover .thm30-scrollwork--left { left: -92px; }
body.theme-thm30 .thm30-cover .thm30-scrollwork--right { right: -92px; }
body.theme-thm30 .thm30-profile__ornament { width: 130px; left: -102px; }
body.theme-thm30 .thm30-profile__ornament--right { left: auto; right: -102px; }
body.theme-thm30 .thm30-event { overflow: hidden; }
body.theme-thm30 .thm30-event > .thm30-ornament-entry { width: 110px; top: -12px; left: -78px; }
body.theme-thm30 .thm30-event > .thm30-ornament-entry--right { left: auto; right: -78px; }
body.theme-thm30 .thm30-rsvp .thm30-ornament-entry { width: 100px; left: -76px; }
body.theme-thm30 .thm30-rsvp .thm30-ornament-entry--right { left: auto; right: -76px; }
body.theme-thm30 .thm30-closing .thm30-ornament-entry { width: 180px; bottom: -18px; }
body.theme-thm30 .thm30-closing .thm30-ornament-entry--left { left: -140px; }
body.theme-thm30 .thm30-closing .thm30-ornament-entry--right { right: -140px; }
@media (max-width: 760px) {
    body.theme-thm30 .thm30-cover .thm30-scrollwork { width: 90px; bottom: -26px; }
    body.theme-thm30 .thm30-cover .thm30-scrollwork--left { left: -70px; }
    body.theme-thm30 .thm30-cover .thm30-scrollwork--right { right: -70px; }
    body.theme-thm30 .thm30-profile__ornament { width: 96px; left: -78px; }
    body.theme-thm30 .thm30-profile__ornament--right { left: auto; right: -78px; }
    body.theme-thm30 .thm30-event > .thm30-ornament-entry { width: 90px; left: -66px; }
    body.theme-thm30 .thm30-event > .thm30-ornament-entry--right { left: auto; right: -66px; }
    body.theme-thm30 .thm30-rsvp > .thm30-ornaments { display: none; }
    body.theme-thm30 .thm30-closing .thm30-ornament-entry { width: 120px; bottom: -12px; }
    body.theme-thm30 .thm30-closing .thm30-ornament-entry--left { left: -98px; }
    body.theme-thm30 .thm30-closing .thm30-ornament-entry--right { right: -98px; }
}

/* Floating controls use the shared dock (theme-system.css), coloured for this theme. */
.thm30-dock { --theme-dock-bg: #673232ee; --theme-dock-fg: #ffc871; --theme-dock-border: #b18b49; --theme-dock-bg-on-dark: #fffcf3f2; --theme-dock-fg-on-dark: #673232; --theme-dock-border-on-dark: #b18b49; }
/* Decorative motion is paused from labelled buttons on the cover and in the closing, away from the music control. */
.thm30-motion-toggle { display: flex; min-height: 44px; margin: 14px auto 0; padding: 0 8px; align-items: center; border: 0; background: none; color: inherit; font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; opacity: .85; }
.thm30-motion-toggle:hover { opacity: 1; }
.thm30-motion-toggle--cover { position: absolute; z-index: 6; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); min-height: 36px; margin: 0; padding: 0 14px; border: 1px solid #b18b49; border-radius: 999px; background: #673232ee; color: #ffc871; letter-spacing: .08em; text-decoration: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .thm30-motion-toggle { display: none; } }

/* The gilded rococo frame read as European; the couple now sit in a woven
   bamboo (bilik) panel framed in carved wood with kawung corner medallions. */
.thm30-profile__media > img,.thm30-profile__monogram { inset: 8.6% 9.2%; width: 81.6%; height: 82.8%; }



/* Revisions after the 2026-10-15 review ------------------------------------ */

/* Guestbook numbers stay on one line beside the entry. */
.thm30-wishes__messages li > span { flex: none; min-width: 2.4ch; white-space: nowrap; }

/* Phones: the story chapters and gift accounts swipe sideways, one card at a
   time with the next peeking in, instead of stacking into a very long page. */
@media (max-width: 760px) {
    .thm30-story__timeline,
    .thm30-gift__accounts {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: 8px;
    }
    .thm30-story__timeline::-webkit-scrollbar,
    .thm30-gift__accounts::-webkit-scrollbar { display: none; }
    .thm30-story__timeline::before { display: none; }
    .thm30-story-entry,
    .thm30-gift-card {
        flex: 0 0 86%;
        min-width: 0;
        scroll-snap-align: start;
    }
    .thm30-story-entry { align-content: start; padding: 0; }
    .thm30-story__timeline:focus-visible,
    .thm30-gift__accounts:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
}

/* Swipe rails scroll sideways only: slides still waiting off-screen fade in without rising, so they never lengthen the rail. */
@media (max-width: 760px) {
    .thm30-story__timeline, .thm30-gift__accounts { overflow-y: hidden; }
    .thm30-motion-ready .thm30-story__timeline [data-thm30-reveal]:not(.is-visible),
    .thm30-motion-ready .thm30-gift__accounts [data-thm30-reveal]:not(.is-visible) { transform: none; }
}

/* Gallery: two tracks per photo on wider screens centre a short last row, and a lone last photo on mobile sits in the middle. */
@media (min-width: 761px) {
    .thm30-gallery__collage { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .thm30-gallery__piece { grid-column: span 2; }
    .thm30-gallery__piece:last-child:nth-child(3n+1) { grid-column: 3 / span 2; }
    .thm30-gallery__piece:nth-last-child(2):nth-child(3n+1) { grid-column: 2 / span 2; }
}
@media (max-width: 760px) {
    .thm30-gallery__piece:last-child:is(:nth-child(6n+2), :nth-child(6n+4)) { grid-column: 1 / -1; }
    .thm30-gallery__piece:last-child:is(:nth-child(6n+2), :nth-child(6n+4)) img { aspect-ratio: 4 / 5; }
}

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

/* Video, Kirim Kado and event counts (2026-10 revision) ------------------------- */

/* Films sit in the gallery's own mats: one film centred, two or more in pairs with an odd last
   film centred under them. */
.thm30-video { --theme-video-gap: 28px; --theme-video-radius: 0; --theme-video-border: transparent; --theme-video-frame: #673232; --theme-video-button: #fffcf3; --theme-video-button-text: #673232; }
.thm30-video .theme-video__list { display: flex; flex-wrap: wrap; justify-content: center; }
.thm30-video .theme-video__item { flex: 0 1 100%; padding: 8px; border: 1px solid #b18b4980; background: #fffcf3; }
.thm30-video:not([data-video-count="1"]) .theme-video__item { flex-basis: calc((100% - var(--theme-video-gap)) / 2); }
.theme-thm30 .thm30-video .theme-video__play { --theme-focus: #ffffff; border-radius: 16px; }
.theme-thm30 .thm30-video .theme-video__play:focus-visible { box-shadow: 0 0 0 9px rgb(103 50 50 / 50%); }
body.theme-thm30 .thm30-video .theme-video__caption { margin: 10px 0 4px; color: var(--sunda-accent-ink); font: italic 500 1.3rem/1.4 var(--invie-font-heading, "Cormorant Garamond"), Georgia, serif; }

/* Kirim Kado: each address on a card in the gift-card look, the delivery label as its masthead.
   One card sits centred; two share a row. */
.thm30-gift-address .theme-gift-address__list { gap: 25px; width: 100%; }
.thm30-gift-address .theme-gift-address__card { flex: 0 1 34rem; align-items: flex-start; gap: 0; padding: 30px; border: 1px solid #b88d4e55; border-radius: 12px; background: #fffdf7; box-shadow: 0 10px 35px #67323208; color: inherit; text-align: left; }
.thm30-gift-address .theme-gift-address__list:not([data-address-count="1"]) .theme-gift-address__card { flex-basis: calc((100% - 25px) / 2); max-width: 34rem; }
.thm30-gift-address .theme-gift-address__card::before { content: "Alamat pengiriman"; margin-bottom: 22px; color: var(--sunda-accent-ink); font-size: 12px; letter-spacing: .08em; line-height: 1.6; }
.thm30-gift-address .theme-gift-address__card:lang(en)::before { content: "Delivery address"; }
body.theme-thm30 .thm30-gift-address .theme-gift-address__label { color: var(--sunda-muted); font-size: 12px; letter-spacing: 0; text-transform: none; opacity: 1; }
body.theme-thm30 .thm30-gift-address .theme-gift-address__name { margin: 2px 0 10px; color: var(--sunda-accent-ink); font: 500 clamp(1.65rem, 2.3vw, 1.9rem)/1.25 var(--invie-font-heading, "Cormorant Garamond"), Georgia, serif; }
body.theme-thm30 .thm30-gift-address .theme-gift-address__phone a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration-color: var(--sunda-line); }
body.theme-thm30 .thm30-gift-address .theme-gift-address__address { max-width: none; font-size: 14px; line-height: 1.75; }
body.theme-thm30 .thm30-gift-address .theme-gift-address__note { margin-top: 10px; color: var(--sunda-muted); font-size: 13px; opacity: 1; }
body.theme-thm30 .thm30-gift-address .theme-gift-address__copy { margin-top: auto; }
.thm30-gift-address .theme-gift-address__card > :nth-last-child(2) { margin-bottom: 24px; }

/* One event sits centred and a little wider; an odd last event centres under the pair above. */
@media (min-width: 761px) {
    .thm30-events__tickets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .thm30-events__tickets > .thm30-event { grid-column: span 2; }
    .thm30-events__tickets > .thm30-event:last-child:nth-child(odd) { grid-column: 2 / span 2; }
    .thm30-events__tickets[data-event-count="1"] { grid-template-columns: minmax(0, 680px); justify-content: center; }
    .thm30-events__tickets[data-event-count="1"] > .thm30-event:only-child { grid-column: 1; }
}

@media (max-width: 760px) {
    .thm30-video:not([data-video-count="1"]) .theme-video__item { flex-basis: 100%; }
    .thm30-video .theme-video__item { padding: 5px; }
    .thm30-gift-address .theme-gift-address__list[data-address-count] .theme-gift-address__card { flex-basis: 100%; max-width: none; padding: 26px; }
}

/* The film mat takes the event cards' maroon and soft corners. */
.thm30-video { --theme-video-radius: 14px; }
.thm30-video .theme-video__item { padding: 10px; border: 1px solid #b68855; border-radius: 24px; background: #673232; box-shadow: 0 10px 35px #67323214; }
body.theme-thm30 .thm30-video .theme-video__caption { color: #ffc871; }
@media (max-width: 760px) {
    .thm30-video { --theme-video-radius: 11px; }
    .thm30-video .theme-video__item { padding: 6px; border-radius: 17px; }
}

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

/* Preview audit (2026-10-26) ------------------------------------------------ */

/* The cover's pause pill clears the gilded side border; on phones the flourish starts below it. */
.thm30-motion-toggle--cover { right: max(48px, env(safe-area-inset-right)); }
@media (max-width: 760px) { .thm30-motion-toggle--cover { top: max(8px, env(safe-area-inset-top)); right: max(24px, env(safe-area-inset-right)); } }
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) { .thm30-cover__frame { padding-top: 44px; } }

/* The hills sit at the foot of the cover arch (they were cropped to a sliver), so the house stands on
   them and the white TATAR PASUNDAN label reads against them. */
.thm30-cover__hills { object-position: center bottom; }

/* In a swipe card the oval sits above its chapter, as on the smallest phones, instead of squeezing the
   text into a narrow column beside it. */
@media (max-width: 760px) {
    .thm30-story-entry, .thm30-story-entry--even { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .thm30-story-entry--even .thm30-story-entry__visual { order: 0; }
    .thm30-story-entry__visual { max-width: 170px; }
    .thm30-story-entry__copy { text-align: center; }
}
