:root {
  color-scheme: dark;
  --wine: #36121b;
  --wine-dark: #250e16;
  --night: #240f19;
  --cream: #fff1d8;
  --pale: #e5cbaa;
  --gold: #edbf7e;
  --bright: #ffd697;
  --line: #925f46;
  --serif: "Cormorant Garamond", "Baskerville", "Iowan Old Style", "Palatino Linotype", "Palatino", Georgia, serif;
  --sans: "Plus Jakarta Sans", "DM Sans", "Avenir Next", system-ui, sans-serif;
  font-family: var(--sans);
  font-size: 100%;
  background: var(--wine-dark);
  color: var(--cream);
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; min-width: 280px; overflow-wrap: break-word; line-height: 1.55; }
body.gate-up { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--bright); outline-offset: 4px; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: 0; }
[hidden] { display: none !important; }
figure, h1, h2, h3, p { margin: 0; }
.defs { position:absolute; width:0; height:0; pointer-events:none; overflow:hidden; }
.mark { width: 30px; height: 30px; flex: none; color: var(--gold); }
.kicker,.small-label {
  font-family: var(--sans); font-size: .74rem; text-transform: uppercase;
  letter-spacing: .17em; font-weight: 600; color: var(--gold);
}
.kicker { display:flex; align-items:center; gap: .82rem; }
.kicker > span:first-child { display:inline-block; width:1.8rem; height:1px; background:var(--line); }
.cover { position:relative; isolation:isolate; display:flex; flex-direction:column; min-height:100vh; min-height:100svh; }
.cover-back { position:absolute; inset:0; z-index:-1; background:radial-gradient(ellipse at 72% 42%,#59242a 0%,#411620 39%,#30111b 79%); }
.cover-back::after { position:absolute; inset:0; content:""; background:repeating-linear-gradient(110deg,transparent 0 3px,#f6ba6d03 3px 4px); }
.enhanced .cover { position:fixed; inset:0; z-index:10; min-height:0; overflow:auto; overscroll-behavior:contain; }
.masthead { width:min(100%,103rem); margin:0 auto; padding:max(1.25rem,env(safe-area-inset-top)) clamp(1.35rem,5vw,5.5rem) 0; min-height:4.75rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; position:relative; z-index:2; }
.wordmark,.read-home,.scene-brand { display:inline-flex; align-items:center; gap:.65rem; }
.wordmark { font-family:var(--serif); font-size:clamp(1.07rem,1.55vw,1.45rem); letter-spacing:-.025em; color:#f8e6c8; }
.top-link,.stage-button,.text-link,.next,.options-panel button { min-height:44px; font-weight:500; font-size:.88rem; }
.top-link { display:inline-flex; gap:.55rem; align-items:center; padding:.45rem 1rem; border:1px solid #95674c; border-radius:99px; }
.top-link svg,.gold-button svg,.stage-button svg { width:1.2rem; height:1.2rem; flex:none; }
.top-link:hover,.top-link:focus-visible { background:#65313a; }
.cover-layout {
  width:min(100%,95rem); flex:1 0 auto; margin:auto; padding:clamp(2.7rem,7vh,6.5rem) clamp(2rem,6.5vw,7rem) clamp(3.2rem,8vh,7rem);
  display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr); grid-template-areas:"copy plate" "actions plate";
  align-content:center; column-gap:clamp(2.25rem,5vw,6rem); row-gap:2.4rem; align-items:end;
}
.cover-copy { grid-area:copy; position:relative; z-index:1; }
.cover-copy h1 {
  font-family:var(--serif); font-size:clamp(5.2rem,7.8vw,8.2rem);
  line-height:.96; font-weight:400; letter-spacing:-.072em; margin:1.35rem 0 1.4rem; color:#ffedc9;
  text-wrap:balance;
}
.cover-copy h1 i,.scenic-name i,.read-home i,.scene-brand i { color:var(--gold); font-weight:400; }
.cover-copy h1 i { font-size:.76em; }
.cover-date { display:flex; flex-wrap:wrap; align-items:center; gap:.65rem; font-size:clamp(.93rem,1.35vw,1.05rem); color:#ead2b2; }
.separator { color:#bf9160; }
.cover-art {
  grid-area:plate; position:relative; align-self:center; width:100%; max-width:53rem; margin:auto;
  aspect-ratio:941/638; transform-origin:50% 72.7%; overflow:visible; isolation:isolate;
}
#house-painting { position:relative; display:block; width:100%; height:auto; border-radius:44% 44% 3px 3px / 17% 17% 3px 3px; }
.art-edge { pointer-events:none; position:absolute; z-index:1; inset:-8px; border:1px solid #c99153; border-radius:44% 44% 3px 3px / 17% 17% 3px 3px; }
.art-edge::before,.art-edge::after { content:""; position:absolute; top:100%; width:19%; height:1px; background:#c99153; }
.art-edge::before { left:0; transform:translateY(5px); }
.art-edge::after { right:0; transform:translateY(5px); }
.cover-actions { grid-area:actions; align-self:start; display:flex; flex-direction:column; align-items:flex-start; gap:.9rem; }
.guest { color:var(--pale); font-size:.9rem; }
.guest strong { font-weight:550; color:var(--cream); }
.gold-button {
  display:inline-flex; align-items:center; justify-content:center; gap:.65rem; border:1px solid #ffdda0;
  min-height:50px; padding:.7rem 1.7rem; border-radius:4px; font-weight:650; font-size:1rem;
  letter-spacing:-.015em; color:#3b1420; background:#f0c68a;
  box-shadow:inset 0 -3px 0 #c99559; text-align:center;
}
.gold-button:hover { background:#ffdda0; }
.gold-button:active { transform:translateY(1px); }
.cover-band,.footer-songket { height:24px; width:100%; background:url("assets/songket.svg") center / 96px 24px repeat-x; opacity:.75; pointer-events:none; }
.cover-band { flex:none; margin-bottom:max(.8rem,env(safe-area-inset-bottom)); }
body[data-phase="opening"] .cover { overflow:visible; pointer-events:none; }
body[data-phase="opening"] .cover-art { z-index:3; }
body[data-phase="opening"] .cover-copy,body[data-phase="opening"] .cover-actions,body[data-phase="opening"] .masthead,body[data-phase="opening"] .cover-band,body[data-phase="opening"] .art-edge { opacity:0; transition:opacity .22s ease; }
body[data-phase="opened"] .cover { display:none; }

#journey { position:relative; height:calc(100vh + 485vh); height:585svh; background:#321d29; }
.stage { position:sticky; top:0; height:100vh; height:100svh; overflow:hidden; isolation:isolate; background:#61343e; }
.world,.stage-shade { display:block; position:absolute; width:100%; height:100%; inset:0; pointer-events:none; }
.stage-shade { background:linear-gradient(to bottom,#250d1ba3 0,transparent 18%,transparent 66%,#210f17d6 100%); }
.scene-header,.journey-bar { position:absolute; z-index:5; left:0; right:0; display:flex; align-items:center; justify-content:space-between; }
.scene-header { top:0; padding:max(.9rem,env(safe-area-inset-top)) clamp(1rem,4vw,4rem) .35rem; gap:.5rem; }
.scene-brand { min-height:44px; font:500 clamp(1.25rem,2.6vw,1.75rem)/1 var(--serif); color:#fff1d7; }
.scene-brand .mark { width:25px; height:25px; }
.scene-tools { display:flex; align-items:center; gap:6px; }
.stage-button { display:inline-flex; align-items:center; justify-content:center; padding:.4rem .95rem; border:1px solid #c49b70; border-radius:24px; background:#411e29; color:#fff0da; }
.stage-button:hover,.next:hover { background:#653540; }
.iconbutton { width:44px; padding:0; cursor:pointer; }
#options { position:relative; }
#options summary { list-style:none; }
#options summary::-webkit-details-marker { display:none; }
.options-panel { position:absolute; z-index:9; right:0; top:calc(100% + 7px); width:max-content; max-width:82vw; background:#391921; border:1px solid #bd9164; padding:.3rem; border-radius:6px; }
.options-panel button { display:block; width:100%; padding:.45rem 1rem; text-align:left; color:var(--cream); background:transparent; border:0; }
.options-panel button:hover { background:#62333a; }
.journey-bar { bottom:0; padding:.65rem clamp(1rem,4vw,4rem) max(.9rem,env(safe-area-inset-bottom)); gap:1rem; color:#ffecd2; background:linear-gradient(0deg,#301522 0%,#301522f2 40%,#301522a8 75%,transparent); }
.travel-title { flex:1; display:flex; flex-direction:column; gap:2px; }
#travel-hint { color:#eaca96; font-size:.73rem; letter-spacing:.095em; text-transform:none; }
#current-scene { font:500 1.36rem/1.05 var(--serif); color:#fff0d1; }
.waypoints { display:flex; align-items:center; justify-content:center; flex:none; }
.waypoints button { display:grid; place-items:center; background:none; padding:0; border:0; min-width:26px; height:44px; color:#f8d4a4; }
.waypoints button::after { content:""; width:5px; height:5px; border:1px solid currentColor; transform:rotate(45deg); }
.waypoints button[aria-current="step"]::after { width:8px; height:8px; background:var(--bright); }
.next { margin-left:auto; padding:.3rem 1.1rem; border:1px solid #c69d6f; background:#45202c; color:var(--cream); border-radius:24px; }
.scene-note { position:absolute; z-index:2; opacity:0; pointer-events:none; color:#fff0d3; --pad:clamp(1.35rem,6vw,6rem); }
.note-wide { left:var(--pad); top:clamp(5rem,17vh,13rem); }
.note-raka { left:var(--pad); bottom:19%; }
.note-alya { right:var(--pad); bottom:19%; text-align:right; }
.scene-note .small-label { display:inline-block; padding:.25rem .55rem; color:#ffe8b7; background:#391724; border-left:2px solid #e6b274; }
.scenic-name { margin-top:.35rem; font:400 clamp(3.4rem,8vw,7.1rem)/.95 var(--serif); letter-spacing:-.065em; color:#fff1cf; text-shadow:0 1px 0 #3e1b21; }
.note-letter { top:20%; right:7%; width:min(34%,23rem); padding:1.3rem 1.5rem; text-align:center; color:#ffe8ca; background:#41202b; border:1px solid #b58655; border-radius:3px; }
.note-letter img { display:block; margin:0 auto .75rem; width:99px; }
.note-letter .small-label { padding:0; border:0; background:none; }
.letter-text { margin:.6rem auto; font:400 clamp(1.2rem,2.1vw,1.75rem)/1.36 var(--serif); }
.signature { font:italic 1.4rem/1.3 var(--serif); color:var(--gold); }
.paper {
  position:absolute; z-index:3; top:0; left:0; width:min(310px,80vw); color:#441b22;
  transform-origin:50% 50%; text-align:center; visibility:hidden; pointer-events:none;
}
.paper > .sheet { padding:1.35rem 1.15rem 1.15rem; background:linear-gradient(100deg,#e5bf87 0%,#ffe8bf 12%,#f3d7a6 76%,#d5a773 100%); border:1px solid #aa7749; border-radius:2px 3px 19px 7px; box-shadow:inset 0 0 0 5px #f2ce98,inset 0 0 0 6px #bd8a59; }
.paper::before { content:""; position:absolute; left:-4%; right:-4%; top:-5px; height:9px; border-radius:99px; background:linear-gradient(#f0cb89,#8b5731 55%,#613223); }
.paper::after { content:""; position:absolute; left:38%; width:24%; top:-28px; height:44px; border:1px solid #a17140; border-right:0; border-bottom:0; transform:rotate(45deg) skew(-6deg,-6deg); z-index:-1; }
.paper .paper-label { font-size:.74rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.paper h3 { margin:.45rem 0 .1rem; font:500 clamp(2.2rem,7vw,2.9rem)/1.05 var(--serif); letter-spacing:-.055em; }
.paper time,.paper .paper-venue { display:block; font-size:.91rem; line-height:1.45; }
.paper .paper-time { font-weight:650; margin-top:.7rem; }
.paper .paper-venue { margin:.4rem 0 .65rem; }
.paper .paper-rule { margin:.7rem auto; background:#ad7b4d; width:42%; height:1px; }
.paper .calendar-link { display:inline-flex; align-items:center; min-height:44px; border-bottom:1px solid #8a5538; font-weight:650; font-size:.86rem; }
.paper .calendar-link:focus-visible { outline-color:#53232d; }
.paper[data-active="true"] { pointer-events:auto; }

.reading { background:#2c121c; color:var(--cream); }
.reading-inner { max-width:74rem; margin:0 auto; padding:0 clamp(1.35rem,5.4vw,5rem); }
.read-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1.35rem 0; border-bottom:1px solid #714331; }
.read-home { min-height:44px; font:500 1.35rem/1.1 var(--serif); }
.text-link { display:inline-flex; align-items:center; text-decoration:underline; text-decoration-color:#a17c53; text-underline-offset:5px; color:#eed1a6; }
.greeting { display:grid; grid-template-columns:1.12fr 1fr; column-gap:7vw; align-items:center; padding:clamp(3.4rem,8vw,7.5rem) 0; }
.greeting .kicker { grid-column:1 / -1; margin-bottom:1rem; }
.greeting > div > p:first-child,.rsvp-intro > p:last-child { color:#e3c8ab; max-width:37rem; }
.greeting .signature { margin-top:1.1rem; }
.reading h2 { font:400 clamp(2.65rem,5vw,5.2rem)/1.02 var(--serif); letter-spacing:-.055em; text-wrap:balance; }
.reading h2 em { color:#eabe89; font-weight:400; }
.acara,.rsvp { scroll-margin-top:1rem; padding:clamp(2.5rem,6vw,5rem) 0; border-top:1px solid #7d4d37; }
.section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; }
.section-heading .kicker,.rsvp-intro .kicker { margin-bottom:.85rem; }
.place { font-size:.93rem; color:#dfc9ab; }
.sessions { margin-top:2rem; display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.session { background:#42212b; border:1px solid #774a39; padding:clamp(1.35rem,3.6vw,2.75rem); border-radius:5px; }
.session h3 { font:400 2.35rem/1 var(--serif); color:#ffe2b3; letter-spacing:-.04em; margin:0 0 .7rem; }
.session p { color:#e5cdb1; }
.session .text-link { margin-top:.75rem; }
.rsvp { display:grid; grid-template-columns:1fr 1fr; align-items:start; column-gap:6vw; }
.rsvp-intro > p:last-child { margin-top:1.05rem; }
.rsvp fieldset { border:0; margin:0;padding:0; }
.rsvp legend { color:#ffecd0; font-weight:600; }
.checks { display:flex; flex-wrap:wrap; gap:.65rem; margin-top:.65rem; }
.checks label { display:inline-flex; align-items:center; gap:.5rem; min-height:44px; border:1px solid #966a50; border-radius:4px; padding:.4rem .7rem; cursor:pointer; }
.checks input { accent-color:#e6ae6e; width:1.1rem; height:1.1rem; }
.field-hint { font-size:.85rem; color:#d1b699; margin:.5rem 0 1rem; }
output { display:block; margin-top:.7rem; color:#ffda9b; min-height:1.5em; font-size:.9rem; }
.reading footer { padding:1.5rem 0 3rem; display:grid; gap:.3rem; text-align:center; }
.footer-songket { margin-bottom:1.5rem; }
footer strong { font:400 1.75rem/1.36 var(--serif); }
footer span { color:#d8b99b; font-size:.86rem; }

@media (min-width:800px) {
  .waypoints { position:absolute; inset-inline-start:50%; transform:translateX(-50%); }
  .waypoints button { min-width:44px; }
}
@media (max-width:799px) {
  .masthead { min-height:3.7rem; padding-top:max(.55rem,env(safe-area-inset-top)); }
  .wordmark { gap:.4rem; font-size:1.04rem; }
  .wordmark .mark { width:24px; height:24px; }
  .top-link { font-size:.82rem; padding:.25rem .7rem; }
  .cover-layout { grid-template-columns:minmax(0,1fr); grid-template-areas:"copy" "plate" "actions"; width:min(100%,36rem); padding:clamp(1.3rem,3.2svh,2.8rem) clamp(1.65rem,7.1vw,3rem) clamp(1.4rem,3.6svh,3rem); row-gap:clamp(1.25rem,3.4svh,2.6rem); text-align:center; }
  .cover-copy .kicker { justify-content:center; font-size:.74rem; }
  .cover-copy .kicker > span { display:none; }
  .cover-copy h1 { font-size:clamp(3.65rem,13vw,5.35rem); margin:.45rem 0 .4rem; white-space:normal; }
  .cover-date { justify-content:center; font-size:.93rem; gap:.5rem; }
  .cover-art { width:min(100%,50svh); }
  .art-edge { inset:-5px; }
  .cover-actions { align-items:center; gap:.55rem; }
  .guest { font-size:.88rem; }
  .cover-band { height:18px; background-size:72px 18px; }
  .note-wide { top:16%; }
  .note-letter { right:5%; top:15%; width:min(77%,22rem); padding:.85rem 1.1rem; }
  .note-letter img { width:78px; margin-bottom:.35rem; }
  .note-letter .signature { font-size:1.14rem; }
  .journey-bar { flex-wrap:wrap; gap:.2rem .5rem; padding-top:.8rem; }
  .travel-title { min-width:0; }
  .waypoints { position:absolute; left:50%; bottom:max(.8rem,env(safe-area-inset-bottom)); transform:translateX(-50%); }
  .waypoints button { min-width:17px; }
  .next { padding:.25rem .85rem; }
}
@media (max-width:570px) {
  .journey-bar { display:grid; grid-template-columns:1fr auto; grid-template-areas:"title next" "way way"; gap:.25rem .8rem; padding-bottom:max(.32rem,env(safe-area-inset-bottom)); }
  .travel-title { grid-area:title; }
  .next { grid-area:next; }
  .waypoints { grid-area:way; position:static; transform:none; justify-self:center; }
  .waypoints button { min-width:44px; height:44px; }
  .greeting,.rsvp,.sessions { grid-template-columns:1fr; }
  .greeting { row-gap:1.25rem; }
  .greeting .kicker { margin:0; }
  .section-heading { align-items:start; flex-direction:column; }
  .rsvp { row-gap:1.6rem; }
  .scene-brand .mark { width:21px; }
}
@media (max-width:330px) {
  .cover-copy h1 { font-size:3rem; }
  .wordmark { font-size:.85rem; }
  .masthead { gap:.3rem; padding-inline:.7rem; }
  .waypoints button { min-width:36px; }
}
@media (max-height:520px) and (min-width:571px) {
  .cover-layout { grid-template-columns:1fr 1fr; grid-template-areas:"copy plate" "actions plate"; padding:1rem 4vw 1.2rem; row-gap:.9rem; width:100%; text-align:left; }
  .cover-copy h1 { font-size:clamp(3rem,7vw,5rem); margin:.25rem 0; }
  .cover-copy .kicker,.cover-date { justify-content:flex-start; }
  .cover-actions { align-items:flex-start; }
  .cover-art { width:min(100%,55vh); }
  .masthead { min-height:3rem; }
  .cover-band { margin-bottom:.2rem; height:13px; background-size:52px 13px; }
  .note-letter { top:17%; padding:.55rem .85rem; }
  .note-letter img { display:none; }
  .paper { width:min(260px,40vw); }
  .paper > .sheet { padding:.6rem .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; animation-duration:0s!important; transition-duration:0s!important; }
}
.paper[data-active="true"] { z-index:4; }
@media (prefers-reduced-motion: no-preference) {
  .stage[data-ambient="true"] #pair-selendang {
    transform-box:fill-box; transform-origin:10% 14%;
    animation:selendang 5.6s ease-in-out infinite alternate;
  }
  @keyframes selendang { from { transform:rotate(-.55deg); } to { transform:rotate(1.3deg); } }
}
#passing-leaf { position:absolute; z-index:1; top:0; left:0; width:clamp(28px,5vw,72px); height:auto; pointer-events:none; visibility:hidden; }
.note-letter { right:auto; transform:translate(-50%,-50%); }
@media (prefers-reduced-motion: no-preference) {
  .stage[data-ambient="true"] #pair-gaze { transform-box:fill-box; transform-origin:50% 96%; animation:raka-menoleh 9s ease-in-out infinite; }
  .stage[data-ambient="true"] #art-wind-sprig { transform-box:fill-box; transform-origin:0 0; animation:angin 5.6s ease-in-out infinite alternate; }
  .stage[data-ambient="true"] #art-lamp { animation:pelita 6.5s ease-in-out infinite alternate; }
  @keyframes raka-menoleh { 0%,42%,86%,100% {transform:rotate(0)} 58%,70% {transform:rotate(1.45deg)} }
  @keyframes angin { from { transform:rotate(-1.1deg); } to { transform:rotate(2.4deg); } }
  @keyframes pelita { from {opacity:.7} to {opacity:1} }
}

html { overflow-x:clip; }
.waypoints button { min-width:44px; flex:0 0 44px; }
@media (max-width:350px) { .waypoints { overflow-x:auto; justify-content:flex-start; max-inline-size:100%; } }
html[data-reduced-motion="true"] *,html[data-reduced-motion="true"] *::after,html[data-reduced-motion="true"] *::before { animation-duration:0s!important; transition-duration:0s!important; }
#renderer-status:not(:empty) {position:absolute; z-index:5; top:4.8rem; right:1rem; max-width:17rem; padding:.35rem .7rem; background:#391921; color:#ffe4bc; border-radius:4px; font-size:.8rem;}
html.profiling {scrollbar-width:none;}
html.profiling::-webkit-scrollbar {display:none;}
