/* Batik Malam (Tema Fase 5, 4 Dec 2026): a batik cloth drawn in wax at night. Base layout from cine-seri.css; this
 * file gives the palette (indigo, gold, cream), the type (Cinzel for display, Lora for reading), an indigo grade
 * over the photos, the three motifs drawn in CSS (kawung, parang, truntum; our own simple geometry, no traced
 * cloth), and the pieces: the folded cloth cover, the kawung medallion, the canting frame, parang-edged portraits,
 * cloth samples, the pendopo, the wax line, folded cloths, the long cloth gallery, the guest book and the gunungan. */
@font-face { font-family: "Cinzel"; src: url("/frontend/assets/fonts/cinzel-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/frontend/assets/fonts/lora-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/frontend/assets/fonts/lora-italic-latin.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
    --c-night: #1b1f3b; --c-ink: #efe6d0; --c-muted: rgba(239, 230, 208, .82); --c-accent: #d8b45a; /* 8:1 on indigo */ --c-accent-ink: #1b1f3b;
    --c-line: rgba(216, 180, 90, .42); --c-glass: rgba(22, 26, 52, .7); --c-field: rgba(239, 230, 208, .08);
    --c-veil: rgba(18, 21, 44, .58); --c-shade-top: rgba(18, 21, 44, .84); --c-shade-foot: rgba(18, 21, 44, .92); --c-photo-foot: rgba(18, 21, 44, .95);
    --f-display: "Cinzel", Georgia, serif; --f-script: "Lora", Georgia, serif; --f-body: "Lora", Georgia, serif;
    --ct-shine: #fff0c2;
    --gold: #c8a24a; --indigo: #1b1f3b; --cream: #efe6d0; --cream-ink: #1b1f3b; --cream-muted: #4a4560; --soga: #7a5414; /* 6:1 on cream */
    --mk: rgba(200, 162, 74, .55);
}
:root[data-scheme="light"] {
    --c-night: #efe6d0; --c-ink: #1b1f3b; --c-muted: #4a4560; --c-accent: #7a5414; /* 6:1 on cream */ --c-accent-ink: #fff8ea;
    --c-line: rgba(122, 84, 20, .34); --c-glass: rgba(248, 242, 228, .9); --c-field: rgba(255, 255, 255, .72);
    --c-veil: rgba(239, 230, 208, .78); --c-shade-top: rgba(239, 230, 208, .9); --c-shade-foot: rgba(239, 230, 208, .94); --c-photo-foot: rgba(239, 230, 208, .95);
    --ct-shine: #b8862a;
    --mk: rgba(27, 31, 59, .28);
}
.cine-backdrop { background: radial-gradient(120% 80% at 50% 18%, #2a2f58, #1b1f3b 72%); }
/* The motifs, as backgrounds that take --mk for their colour. They are declared on the pieces that wear them, so a
   piece's own --mk reaches its motif. */
.cs-sign, .bm-medallion, .bm-fold, .bm-parang-frame, .bm-sample, .bm-sample-motif, .bm-roof::after, .bm-cloth::before, .bm-long, .bm-book::before, .bm-book::after {
    --kawung: radial-gradient(ellipse 17% 27% at 50% 24%, transparent 50%, var(--mk) 54% 74%, transparent 78%),
        radial-gradient(ellipse 17% 27% at 50% 76%, transparent 50%, var(--mk) 54% 74%, transparent 78%),
        radial-gradient(ellipse 27% 17% at 24% 50%, transparent 50%, var(--mk) 54% 74%, transparent 78%),
        radial-gradient(ellipse 27% 17% at 76% 50%, transparent 50%, var(--mk) 54% 74%, transparent 78%),
        radial-gradient(circle at 50% 50%, var(--mk) 0 5%, transparent 6%),
        radial-gradient(circle at 0 0, var(--mk) 0 7%, transparent 8%), radial-gradient(circle at 100% 100%, var(--mk) 0 7%, transparent 8%),
        radial-gradient(circle at 100% 0, var(--mk) 0 7%, transparent 8%), radial-gradient(circle at 0 100%, var(--mk) 0 7%, transparent 8%);
    --parang: repeating-linear-gradient(45deg, var(--mk) 0 .2rem, transparent .2rem .45rem, var(--mk) .45rem .55rem, transparent .55rem .8rem,
        var(--mk) .8rem .86rem, transparent .86rem 1.25rem);
    --truntum: radial-gradient(circle at 25% 25%, var(--mk) 0 .1rem, transparent .12rem), radial-gradient(circle at 25% 25%, transparent .26rem, var(--mk) .28rem .36rem, transparent .38rem),
        radial-gradient(circle at 75% 75%, var(--mk) 0 .1rem, transparent .12rem), radial-gradient(circle at 75% 75%, transparent .26rem, var(--mk) .28rem .36rem, transparent .38rem),
        radial-gradient(circle at 75% 25%, var(--mk) 0 .06rem, transparent .08rem), radial-gradient(circle at 25% 75%, var(--mk) 0 .06rem, transparent .08rem);
}
.bm-amp { color: var(--c-accent); font-family: var(--f-script); font-style: italic; }

/* Indigo: the photos as if dyed in the night vat (CSS only; the files are untouched). */
.cine-slide, .cine-backdrop-video, .cine-section-photo img { filter: grayscale(1) sepia(.45) hue-rotate(185deg) saturate(1.3) brightness(.78); }
.cs-sign { background: var(--kawung); background-size: 3rem 3rem; opacity: .14; }
:root[data-scheme="light"] .cs-sign { opacity: .22; }

/* The kawung medallion: the couple's initials in a gold ring of kawung. */
.bm-medallion { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; width: 4.4rem; aspect-ratio: 1; box-sizing: border-box; border: 3px double var(--gold); border-radius: 50%;
    background: var(--kawung), #1b1f3b; background-size: 1.6rem 1.6rem; background-position: center; color: #f3dc9a; font: 600 1.3rem/1 var(--f-display); --mk: rgba(200, 162, 74, .38); }
.bm-medallion span + span::before { content: ""; display: inline-block; width: .32rem; height: .32rem; margin-right: .4rem; background: var(--gold); rotate: 45deg; vertical-align: middle; }

/* ---- Cover: the folded cloth and its paper band ------------------------------------------- */
.bm-opening { justify-content: center; align-items: center; padding-inline: 1rem; background: #1b1f3b; }
.bm-opening .cine-opening-photo { filter: grayscale(1) sepia(.45) hue-rotate(185deg) saturate(1.3) brightness(.7); }
.bm-folds { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.bm-fold { position: absolute; left: 0; right: 0; height: 50%; --mk: rgba(200, 162, 74, .3);
    background: var(--kawung), rgba(27, 31, 59, .86); background-size: 2.6rem 2.6rem; background-position: center; transition: transform .8s cubic-bezier(.6, 0, .3, 1) .35s, opacity .5s ease .75s; }
.bm-fold-top { top: 0; transform-origin: 50% 0; box-shadow: inset 0 -2.2rem 2rem -1rem rgba(0, 0, 0, .45); border-bottom: 1px solid rgba(200, 162, 74, .35); }
.bm-fold-bottom { bottom: 0; transform-origin: 50% 100%; box-shadow: inset 0 2.2rem 2rem -1rem rgba(255, 255, 255, .06); }
/* A gold kawung border round the cloth. */
.bm-folds::before { content: ""; position: absolute; inset: .7rem; z-index: 1; border: 1px solid rgba(200, 162, 74, .6); outline: 1px solid rgba(200, 162, 74, .3); outline-offset: .3rem; transition: opacity .4s ease; }
.bm-band { position: relative; z-index: 2; display: grid; justify-items: center; width: min(100%, 22rem); box-sizing: border-box; padding: 1.6rem 1.4rem 1.5rem; text-align: center;
    background: linear-gradient(180deg, #f5edda, var(--cream)); color: var(--cream-ink); border-block: 3px double var(--gold); box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, .5);
    animation: bm-arrive 1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes bm-arrive { from { opacity: 0; transform: translateY(1.5rem); } }
.bm-band .bm-medallion { margin-bottom: .9rem; }
.bm-opening .cine-opening-kicker { color: var(--soga); }
.bm-cover-names { margin: .5rem 0 0; color: var(--cream-ink); font: 600 clamp(2rem, 9.5vw, 2.6rem)/1.1 var(--f-display); letter-spacing: .04em; }
.bm-cover-names .bm-amp { color: var(--soga); }
.bm-cover-date { margin: .5rem 0 0; color: var(--cream-muted); font: italic 400 .95rem/1.4 var(--f-body); }
.bm-cover-guest { width: 100%; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid rgba(122, 84, 20, .35); }
.bm-opening .cine-guest-label { color: var(--cream-muted); }
.bm-opening .cine-guest-name { margin-top: .2rem; color: var(--cream-ink); font: 600 clamp(1.35rem, 6vw, 1.7rem)/1.25 var(--f-display); --ct-shine: #c8a24a; }
.bm-opening .cine-guest-note { margin: .4rem auto .9rem; color: var(--cream-muted); }
.bm-opening .cine-opening-cta { background: var(--indigo); color: #f3dc9a; }
.bm-opening .cine-opening-cta:focus-visible { outline-color: var(--indigo); }
.bm-opening.is-closing { background-color: transparent; }
.bm-opening.is-closing .bm-band { animation: bm-slip .45s ease-in forwards; }
@keyframes bm-slip { to { opacity: 0; transform: translateY(-1.2rem) scale(.96); } }
.bm-opening.is-closing .bm-folds::before { opacity: 0; }
.bm-opening.is-closing .bm-fold-top { transform: perspective(1400px) rotateX(-88deg); opacity: 0; }
.bm-opening.is-closing .bm-fold-bottom { transform: perspective(1400px) rotateX(88deg); opacity: 0; }
.bm-opening.is-closing .cine-opening-photo { opacity: 0; transform: scale(1.02); }
.bm-opening.is-closing .cine-opening-shade { opacity: 0; }
@media (max-height: 40rem) { .bm-opening { justify-content: flex-start; } .bm-band .bm-medallion { display: none; } }

/* ---- Home ------------------------------------------------------------------------------------ */
.bm-hero .cine-block { text-align: center; margin-inline: auto; }
.bm-medallion-big { width: 6.2rem; margin-bottom: 1.2rem; font-size: 1.8rem; }
.bm-names { margin: .6rem 0 0; color: var(--c-ink); font: 600 clamp(2.3rem, 11vw, 3.6rem)/1.12 var(--f-display); letter-spacing: .03em; text-wrap: balance; }
.bm-date { margin-top: 1rem !important; color: var(--c-accent); font: italic 400 1rem/1.4 var(--f-body); }

/* ---- Verse: the canting draws the frame ----------------------------------------------------- */
.bm-canting { position: relative; max-width: 25rem; margin: 0 auto; padding: 2.4rem 1.6rem 2rem; box-sizing: border-box; background: var(--c-glass); text-align: center; }
.bm-canting-line { position: absolute; inset: .45rem; width: calc(100% - .9rem); height: calc(100% - .9rem); overflow: visible; }
.bm-canting-line rect { fill: none; stroke: var(--c-accent); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s cubic-bezier(.5, 0, .3, 1) .2s; }
.has-reveal .bm-canting:not(.is-revealed) .bm-canting-line rect { stroke-dashoffset: 1; }
.bm-wax-dot { position: absolute; width: .7rem; height: .7rem; border-radius: 50% 50% 50% 0; background: var(--cream); box-shadow: 0 0 0 2px var(--c-accent); }
.bm-wax-dot:nth-of-type(1) { left: .1rem; top: .1rem; }
.bm-wax-dot:nth-of-type(2) { right: .1rem; top: .1rem; }
.bm-wax-dot:nth-of-type(3) { right: .1rem; bottom: .1rem; }
.bm-wax-dot:nth-of-type(4) { left: .1rem; bottom: .1rem; }
.bm-small-title { margin: 0 0 1rem; color: var(--c-accent); font: 600 .8rem/1.4 var(--f-display); letter-spacing: .3em; text-transform: uppercase; }
.bm-verse { margin: 0; }
.bm-verse + .bm-verse { margin-top: 1.2rem; }
.bm-verse blockquote { margin: 0; font: italic 400 clamp(1.1rem, 4.6vw, 1.3rem)/1.65 var(--f-body); text-wrap: pretty; }
.bm-verse figcaption { margin-top: .8rem; color: var(--c-muted); font-size: .88rem; letter-spacing: .08em; }
.bm-canting .cine-lead { margin-top: 1rem; }

/* ---- Couple: parang-edged frames ------------------------------------------------------------ */
.bm-couple .cine-block { margin-inline: auto; text-align: center; }
.bm-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; max-width: 26rem; margin: 0 auto; }
.bm-person { text-align: center; }
.bm-parang-frame { display: grid; place-items: center; aspect-ratio: 3 / 4; padding: .45rem; box-sizing: border-box; background: var(--parang), var(--indigo); --mk: rgba(200, 162, 74, .7);
    box-shadow: 0 0 0 1px var(--gold), 0 .9rem 1.8rem rgba(0, 0, 0, .35); color: #f3dc9a; font: 600 2.4rem/1 var(--f-display); }
.bm-parang-frame img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 0 0 2px var(--gold); }
.bm-role { margin-top: .9rem !important; color: var(--c-accent); font: 600 .75rem/1.3 var(--f-display); letter-spacing: .18em; text-transform: uppercase; }
.bm-person-name { margin: .35rem 0 0; font: 600 1.05rem/1.3 var(--f-display); }
.bm-parent { margin-top: .4rem !important; color: var(--c-muted); font-size: .85rem; line-height: 1.5; }
.bm-person .cine-socials { justify-content: center; }

/* ---- Story: cloth samples, a motif each ------------------------------------------------------ */
.bm-sample { width: min(70vw, 16rem); padding: 0 0 1.1rem; overflow: hidden; background: var(--c-glass); box-shadow: 0 0 0 1px var(--c-line), 0 .8rem 1.6rem rgba(0, 0, 0, .3); scroll-snap-align: start; }
.bm-sample-motif { display: grid; place-items: center; height: 3.2rem; margin: 0 !important; background: var(--motif), var(--indigo); background-size: var(--motif-size, auto); background-position: center; --mk: rgba(200, 162, 74, .6); }
.bm-sample-motif span { padding: .3rem .7rem; background: var(--cream); color: var(--cream-ink); font: 600 .75rem/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; }
.bm-motif-kawung { --motif: var(--kawung); --motif-size: 1.6rem 1.6rem; }
.bm-motif-parang { --motif: var(--parang); }
.bm-motif-truntum { --motif: var(--truntum); --motif-size: 1.5rem 1.5rem; }
.bm-sample-shot { aspect-ratio: 4 / 3; overflow: hidden; background: #2a2f58; }
.bm-sample-shot img { width: 100%; height: 100%; object-fit: cover; }
.bm-sample-date { margin: .9rem 1rem 0 !important; color: var(--c-accent); font: 600 .75rem/1.4 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.bm-sample h3 { margin: .4rem 1rem; font: 600 1.05rem/1.3 var(--f-display); }
.bm-sample p:not(.bm-sample-date, .bm-sample-motif) { margin: 0 1rem !important; color: var(--c-muted); font-size: .9rem; line-height: 1.6; }

/* ---- Events: the pendopo -------------------------------------------------------------------- */
.bm-pendopo-page .cine-block { margin-inline: auto; text-align: center; }
.bm-pendopo { position: relative; width: 100%; max-width: 25rem; box-sizing: border-box; margin: 0 auto; padding: 3.4rem 1.2rem 1rem;
    border-inline: .5rem solid transparent; border-image: linear-gradient(180deg, #e6c879, var(--gold) 40%, #8f6f28) 1; background: var(--c-glass); }
/* A joglo roof: a high middle and lower eaves, in gold. */
.bm-roof { position: absolute; left: -1.6rem; right: -1.6rem; top: -1.4rem; height: 3.4rem; background: linear-gradient(180deg, #e6c879, var(--gold)); --mk: rgba(27, 31, 59, .35);
    clip-path: polygon(34% 0, 66% 0, 78% 48%, 100% 64%, 100% 76%, 0 76%, 0 64%, 22% 48%); }
.bm-roof::after { content: ""; position: absolute; inset: 0; background: var(--parang); opacity: .5; }
.bm-event { padding: 1.1rem 0 1.2rem; text-align: center; }
.bm-event + .bm-event { border-top: 1px solid var(--c-line); }
.bm-event h3 { margin: 0; color: var(--c-accent); font: 600 clamp(1.35rem, 6vw, 1.6rem)/1.2 var(--f-display); }
.bm-event-date { margin-top: .5rem !important; font-weight: 600; font-size: .95rem; }
.bm-event-time { margin-top: .15rem !important; color: var(--c-muted); font-size: .92rem; }
.bm-event address { margin-top: .7rem; color: var(--c-muted); font-style: normal; font-size: .9rem; line-height: 1.55; }
.bm-event address strong { display: block; color: var(--c-ink); }
.bm-event .cine-directions { margin-top: .9rem; }

/* ---- Countdown: the wax line ---------------------------------------------------------------- */
.bm-countdown .cine-block { text-align: center; margin-inline: auto; }
.bm-wax-line { display: flex; justify-content: center; gap: .45rem; margin: .4rem 0 1.4rem !important; }
.bm-wax-line i { width: .75rem; height: .75rem; border-radius: 50% 50% 50% 0; rotate: -45deg; box-shadow: inset 0 0 0 1px var(--c-accent); }
.bm-wax-line i.is-set { background: var(--c-accent); box-shadow: 0 0 .6rem rgba(216, 180, 90, .55); }
.bm-clock .cine-clock-cells div { border: 1px solid var(--c-line); border-radius: 0; background: var(--c-glass); }
.bm-clock .cine-clock-cells span { color: var(--c-accent); font-family: var(--f-display); font-weight: 600; }

/* ---- Dress: folded cloths ------------------------------------------------------------------- */
.bm-cloths { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin: 0 0 1.4rem; }
.bm-cloth { width: 3rem; height: 4.4rem; border-radius: .15rem; --mk: rgba(255, 255, 255, .2);
    position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .16) 0 16%, rgba(0, 0, 0, .22) 16% 20%, transparent 20% 56%, rgba(0, 0, 0, .24) 56% 60%, transparent 60%), var(--swatch); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 .4rem .8rem rgba(0, 0, 0, .3); }
.bm-cloth::before { content: ""; position: absolute; inset: 0; background: var(--kawung); background-size: 1.2rem 1.2rem; background-position: center; }

/* ---- Gallery: a long cloth ------------------------------------------------------------------ */
.bm-gallery .cine-block { margin-inline: auto; text-align: center; }
.bm-gallery-line { color: var(--c-muted); font: italic 400 1.02rem/1.6 var(--f-body); }
.bm-long { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; width: 100%; max-width: 26rem; box-sizing: border-box; margin: 0 auto; padding: .55rem; list-style: none;
    background: var(--parang), var(--indigo); --mk: rgba(200, 162, 74, .6); box-shadow: 0 0 0 1px var(--gold), 0 1rem 2.2rem rgba(0, 0, 0, .35); }
.bm-long li:first-child { grid-column: 1 / -1; }
.bm-tile { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: #2a2f58; cursor: zoom-in; overflow: hidden; }
.bm-long li:first-child .bm-tile { aspect-ratio: 16 / 10; }
.bm-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bm-tile:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.bm-all { align-self: center; }

/* ---- RSVP: the pendopo's guest book --------------------------------------------------------- */
.bm-book { position: relative; border: 0; border-radius: 0; background: linear-gradient(180deg, #f5edda, var(--cream)); color: var(--cream-ink); text-shadow: none;
    box-shadow: 0 0 0 1px var(--gold), 0 1rem 2.4rem rgba(0, 0, 0, .35); }
.bm-book::before, .bm-book::after { content: ""; position: absolute; width: 2.6rem; height: 2.6rem; background: var(--kawung); background-size: 1.3rem 1.3rem; --mk: rgba(122, 84, 20, .55); }
.bm-book::before { left: .5rem; top: .5rem; }
.bm-book::after { right: .5rem; bottom: .5rem; }
.bm-book .cine-kicker { color: var(--soga); }
.bm-book .cine-title { color: var(--cream-ink); }
.bm-book .cine-lead, .bm-book legend, .bm-book .cine-field, .bm-book .cine-form-status { color: var(--cream-muted); }
.bm-book :is(input:not([type=radio]), select, textarea) { border-color: rgba(27, 31, 59, .3); background: #fffaf0; color: var(--cream-ink); }
.bm-book .cine-field :is(input, textarea)::placeholder { color: #6e6880; opacity: 1; }
.bm-book .cine-attendance-options label { border-color: rgba(27, 31, 59, .35); color: var(--cream-ink); }
.bm-book .cine-attendance-options input:checked + label { background: var(--indigo); border-color: var(--indigo); color: #f3dc9a; }
.bm-book .cine-submit { background: var(--indigo); color: #f3dc9a; }

/* ---- Wishes: doa restu ---------------------------------------------------------------------- */
.bm-blessings .cine-wish-list li { border: 0; border-left: 3px solid var(--c-accent); border-radius: 0; background: var(--c-glass); }

/* ---- Closing: the gunungan is set in the middle --------------------------------------------- */
.bm-close .cine-block { text-align: center; margin-inline: auto; }
.bm-gunungan { display: block; width: 6.4rem; margin: 0 auto 1.3rem; overflow: visible; transform-origin: 50% 100%; }
.bm-gunungan-edge { fill: rgba(200, 162, 74, .16); stroke: var(--c-accent); stroke-width: 2; }
.bm-gunungan-inner { fill: none; stroke: var(--c-accent); stroke-width: 1; stroke-dasharray: 3 3; }
.bm-gunungan-tree, .bm-gunungan-gate { fill: none; stroke: var(--c-accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
    .bm-gunungan { transition: scale 1.1s cubic-bezier(.2, .9, .3, 1.15) .3s, opacity .6s ease .3s; }
    .has-reveal .bm-close [data-reveal]:not(.is-revealed) .bm-gunungan { opacity: 0; scale: .4; }
}
@media (prefers-reduced-motion: reduce) {
    .bm-canting-line rect { stroke-dashoffset: 0 !important; }
}
.bm-end-names { margin-top: 1.3rem !important; font: 600 clamp(1.6rem, 7vw, 2.1rem)/1.15 var(--f-display); }
