@import url('wiwaha.css?v=20');

:root {
    --paper-edges: url('joglo/batik-bawah.svg') center bottom / 96px 14px repeat-x;
    --portrait: url('laras-joglo/halaman-joglo.webp');
}
.sheet { overflow: clip; background-image: url('wiwaha/latar-desa.webp'); }
.wh-verse { background-image: linear-gradient(#593721aa, #593721aa), url('wiwaha/latar-desa.webp'); }
.person:has(img)::before { width: 23%; height: 85px; left: 0; top: 75px; background-image: url('joglo/dalang-wayang.png'); }
.person:nth-of-type(3):has(img)::before { right: 0; left: auto; background-image: url('joglo/gamelan.png'); transform: none; }
.lj-opening { order: -3; }
.lj-stage { position: relative; isolation: isolate; height: 100svh; overflow: hidden; display: grid; place-items: center; text-align: center; }
.lj-landscape { position: absolute; inset: 0; z-index: -2; background: url('wiwaha/latar-desa.webp') center / cover; transform-origin: 50% 72%; }
.lj-puppet, .lj-musician { position: absolute; bottom: 4%; z-index: -1; height: auto; }
.lj-puppet { left: 3%; width: 32%; }
.lj-musician { right: 3%; width: 43%; }
.lj-stage .wh-dedication { padding: 1rem; color: #503520; text-shadow: 0 1px 8px #fff6dc; }
@media (prefers-reduced-motion: no-preference) {
    body:not(.is-thumb) .lj-ready { height: 280svh; }
    body:not(.is-thumb) .lj-ready .lj-stage { position: sticky; top: 0; }
    body:not(.is-thumb) .lj-landscape { transform: scale(var(--zoom, 1)); }
    body:not(.is-thumb) .lj-puppet { transform: translateX(var(--wayang-x, -95%)); }
    body:not(.is-thumb) .lj-musician { transform: translateX(var(--gamelan-x, 100%)); }
    body:not(.is-thumb) .lj-stage .wh-dedication { opacity: var(--title-alpha, 1); }
}
@media (prefers-reduced-motion: reduce) {
    .theme-laras-joglo [data-anim] { opacity: 1; transition: none; }
}
.lj-ridge, .lj-flock, .lj-canopy, .lj-drifting-leaves {
    position: absolute;
    pointer-events: none;
    z-index: -1;
}
.lj-ridge {
    left: -10%; width: 120%; top: 43%; height: 15%;
    background: url('joglo/gunung-sawah.svg') center 26% / 100% auto no-repeat;
    mask-image: linear-gradient(transparent, #000 26%, #000 52%, transparent);
    opacity: .68;
}
.lj-canopy {
    top: -2%; right: -4%; width: 40%; aspect-ratio: 1;
    background: linear-gradient(130deg, #81693e, #b98156 64%, #ca9662);
    mask: url('ornaments/ranting.svg') center / contain no-repeat;
    transform: scaleX(-1); transform-origin: center;
}
.lj-flock { left: 3%; top: 29%; width: 22%; height: 5%; color: #775746; }
.lj-flock i {
    position: absolute; width: 29%; aspect-ratio: 3;
    background: currentColor;
    clip-path: polygon(0 0, 29% 20%, 49% 58%, 62% 29%, 100% 5%, 74% 48%, 52% 90%, 46% 98%, 33% 62%);
}
.lj-flock i:nth-child(2) { left: 39%; top: 43%; width: 23%; opacity: .86; }
.lj-flock i:nth-child(3) { left: 71%; top: 12%; width: 18%; opacity: .7; }
.lj-drifting-leaves { inset: 0; }
.lj-drifting-leaves i {
    position: absolute; top: 13%; left: 15%; width: 13px; height: 7px;
    border-radius: 90% 5% 90% 5%; background: linear-gradient(155deg,#bc8856 50%,#8c653e 52%,#d5a570);
}
.lj-drifting-leaves i:nth-child(2) { left: 82%; top: 9%; rotate: 55deg; width: 17px; }
.lj-drifting-leaves i:nth-child(3) { left: 67%; top: 21%; rotate: -32deg; width: 9px; }
@media (prefers-reduced-motion: no-preference) {
    .lj-ridge { transform: translateY(var(--ridge-rise, 0)); }
    .lj-canopy { transform: translateY(var(--ridge-rise, 0)) scaleX(-1) rotate(var(--canopy-turn, 0deg)); }
    .lj-flock { transform: translate(var(--flight-x, 0), var(--flight-y, 0)); }
    .lj-flock i { transform: scaleY(var(--wing-scale, 1)); }
    .lj-drifting-leaves i { transform: translate(var(--leaf-drift, 0), var(--leaf-drop, 0)) rotate(var(--leaf-spin, 0deg)); }
    .lj-drifting-leaves i:nth-child(2) { transform: translate(calc(-1 * var(--leaf-drift, 0px)), calc(.74 * var(--leaf-drop, 0px))) rotate(var(--leaf-spin, 0deg)); rotate: none; }
    .lj-drifting-leaves i:nth-child(3) { rotate: none; }
}
