
/*
VOICE: Lana speaking gently, one idea at a time; unhurried, warm, plain.
IDEA: a woven mat laid out for kuwentuhan, with her voice, her watercolors and the listener's pace.
PICTURE: her watercolor for each chapter, with the words of the practice lighting up beneath it as she speaks.
COLOUR and TYPE: Lana Jelenjev brand: cream, maroon, gold accents; Young Serif titles, Poppins for reading.
LAYOUT: one calm column; image, the words, then the current line, then a small player.
*/
:root{color-scheme:light;
--bg:#F4F1EA;--panel:#FBF9F5;--pale:#FBF3E2;--wood:#EFD9B4;--sand:#E2D6C0;
--ink:#23201C;--soft:#6B5F55;--maroon:#642112;--gold:#F3A712;--thread:#9E2B1F;
--r:14px;--shadow:0 1px 2px rgba(60,40,20,.06),0 6px 18px rgba(60,40,20,.06)}
*{box-sizing:border-box;min-width:0}
html{font-size:100%}
html.c-size-larger{font-size:112.5%}
html.c-size-largest{font-size:125%}
body{margin:0;background:var(--bg);color:var(--ink);font:400 1rem/1.65 Poppins,system-ui,sans-serif;overflow-x:clip}
html.c-space-roomy body{line-height:1.95;letter-spacing:.012em;word-spacing:.08em}
html.c-space-roomy p,html.c-space-roomy li{margin-bottom:1.1em}
html.c-color-contrast{filter:contrast(1.35)}
html.c-color-calm{filter:saturate(.5) brightness(1.02)}
html.c-color-dark{filter:invert(.9) hue-rotate(180deg);background:#111}
html.c-color-dark img:not(.ljs-keep){filter:invert(1) hue-rotate(180deg)}
html.c-motion-less *,html.c-motion-less *::before,html.c-motion-less *::after{transition:none!important;animation:none!important}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
h1,h2,h3{font-family:"Young Serif",Georgia,serif;font-weight:400;color:var(--maroon);line-height:1.15;text-wrap:balance;margin:0 0 .5em}
h1{font-size:clamp(1.75rem,4.5vw,2.5rem)}
h2{font-size:clamp(1.35rem,3vw,1.7rem)}
h3{font-size:1.25rem}
a{color:var(--maroon);text-underline-offset:3px}
b i,i b{font-weight:600}
button{font:inherit;color:inherit;cursor:pointer}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px;border-radius:6px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wrap{max-width:760px;margin:0 auto;padding:0 max(4vw,16px)}
[hidden]{display:none!important}

/* ---------- shared header (ljs) ---------- */
.ljs-head{background:var(--panel);border-bottom:2px solid var(--thread);position:sticky;top:0;z-index:30}
.ljs-bar{max-width:1100px;margin:0 auto;display:flex;align-items:center;gap:10px;padding:8px max(3vw,12px);min-height:64px}
.ljs-brand{display:flex;align-items:center;gap:10px;text-decoration:none;margin-right:auto}
.ljs-logo{width:34px;height:34px;flex:none}
.ljs-name{font-family:"Young Serif",Georgia,serif;color:var(--maroon);font-size:1.2rem;line-height:1.1;display:block}
.ljs-sub{font-size:.7rem;font-variant:small-caps;letter-spacing:.06em;color:var(--soft);display:block;text-transform:lowercase}
.ljs-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:52px;height:52px;padding:4px 8px;border:1px solid transparent;border-radius:12px;background:none;color:var(--maroon);text-decoration:none;font-size:.72rem;font-weight:500;white-space:nowrap}
.ljs-btn:hover{background:var(--pale);border-color:var(--sand)}
.ljs-btn svg{width:22px;height:22px}
.ljs-btn .short{display:none}
@media(max-width:600px){.ljs-btn .long{display:none}.ljs-btn .short{display:inline}}
@media(max-width:430px){.ljs-logo{display:none}.ljs-bar{gap:4px}.ljs-name{font-size:1.05rem}}
.ljs-comfort{background:var(--panel);border-bottom:1px solid var(--sand);position:sticky;top:66px;z-index:29;box-shadow:var(--shadow);max-height:calc(100vh - 70px);overflow:auto}
.ljs-comfort .wrap{padding-top:18px;padding-bottom:84px}
.ljs-comfort h2{font-size:1.25rem}
.c-row{display:grid;grid-template-columns:8.5em minmax(0,1fr);gap:8px 14px;align-items:start;padding:10px 0;border-top:1px solid var(--sand)}
.c-row>span{font-weight:600;padding-top:8px}
.c-opts{display:flex;flex-wrap:wrap;gap:6px}
.c-opts button{min-height:44px;padding:6px 14px;border:1px solid var(--sand);border-radius:999px;background:var(--bg)}
.c-opts button[aria-pressed=true]{background:var(--maroon);border-color:var(--maroon);color:#fff}
.c-note{grid-column:2;font-size:.85rem;color:var(--soft);margin:0}
.c-foot{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;border-top:1px solid var(--sand);padding-top:12px}
.c-foot small{color:var(--soft);margin-right:auto}
@media(max-width:520px){.c-row{grid-template-columns:1fr}.c-note{grid-column:1}}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 22px;border-radius:999px;border:1.5px solid var(--maroon);background:transparent;color:var(--maroon);font-weight:600;text-decoration:none}
.btn.primary{background:var(--maroon);color:#fff}
.btn.quiet{border-color:transparent;text-decoration:underline;text-underline-offset:3px;font-weight:500;padding:10px 12px}
.btn:hover{filter:brightness(1.08)}
.btn svg{width:20px;height:20px}

/* ---------- welcome ---------- */
.view{padding:28px 0 48px}
.eyebrow{color:var(--soft);font-size:.9rem;margin:0 0 6px}
.hero-img{width:100%;aspect-ratio:2.2/1;object-fit:cover;border-radius:var(--r);display:block;margin:18px 0 14px;background:var(--pale)}
.meta{display:flex;flex-wrap:wrap;gap:6px 18px;color:var(--soft);font-size:.92rem;margin:0 0 18px;padding:0;list-style:none}
.meta li::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--gold);margin-right:8px;vertical-align:middle}
.card{background:var(--panel);border:1px solid var(--sand);border-radius:var(--r);padding:18px 20px;margin:16px 0}
.card.pale{background:var(--pale);border-color:var(--wood)}
.card h2,.card h3{margin-bottom:.4em}
.steps{margin:0;padding-left:1.4em}
.steps li{margin:.35em 0}
.note{font-size:.92rem;color:var(--soft)}
.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:22px 0 8px}
.proto{font-size:.85rem;color:var(--soft);border-left:3px solid var(--gold);padding:4px 0 4px 12px;margin:18px 0}

/* ---------- player ---------- */
.p-top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px}
.p-ch{color:var(--soft);font-size:.9rem;margin:0}
.p-title{margin:2px 0 10px}
.bar{height:6px;border-radius:6px;background:var(--sand);overflow:hidden}
.bar span{display:block;height:100%;width:0;background:var(--maroon);transition:width .4s}
.stage{margin:14px 0 0;position:relative}
.stage img{width:100%;aspect-ratio:2.2/1;object-fit:cover;border-radius:var(--r);display:block;background:var(--pale);transition:opacity .5s}
.stage img.contain{object-fit:contain;background:#F4F1EA}
.stage img.fade{opacity:0}
.stage figcaption{font-size:.8rem;color:var(--soft);margin-top:4px}
.scene{display:grid;gap:8px;margin:14px 0 0}
.scene.cols{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.scene.layers{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.cue:empty{min-height:0;margin:0}
.it{background:var(--panel);border:1px solid var(--sand);border-radius:12px;padding:10px 14px;transition:opacity .4s,border-color .4s,box-shadow .4s,background .4s;opacity:.38}
.it.on{opacity:1}
.it.now{border-color:var(--gold);box-shadow:0 0 0 2px var(--gold);background:var(--pale);opacity:1}
.it h4{overflow-wrap:anywhere;margin:0;font-size:1rem;font-weight:600;color:var(--maroon)}
.it p{margin:2px 0 0;font-size:.9rem;color:var(--soft)}
.it.icon{display:flex;gap:12px;align-items:center}
.ico{width:46px;height:46px;flex:none}
.grp{font-size:.82rem;font-weight:600;color:var(--soft);margin:6px 0 0}
.thresh{display:flex;align-items:center;gap:10px;font-size:.8rem;color:var(--thread);font-weight:500}
.thresh::before,.thresh::after{content:"";flex:1;border-top:1.5px dashed var(--thread)}
.ladder .it{padding:6px 14px;display:flex;flex-wrap:wrap;align-items:baseline;gap:0 10px}.ladder .it h4{font-size:.95rem}.ladder .it p{margin:0;font-size:.85rem}
.cue{font-size:1.18rem;font-weight:500;line-height:1.6;margin:16px 0 4px;min-height:4.8em;color:var(--ink)}
.cue.wait{color:var(--soft)}
.slot:empty{display:none}
.w{border-radius:4px;transition:background .15s,box-shadow .15s}
.w.sh{background:var(--pale);box-shadow:0 0 0 3px var(--pale)}
.w.hl{background:var(--wood);box-shadow:0 0 0 3px var(--wood)}
.pause-card{background:var(--pale);border:1px solid var(--wood);border-radius:var(--r);padding:18px 20px;margin:16px 0 0;display:grid;grid-template-columns:72px minmax(0,1fr);gap:16px;align-items:start}
.pause-card img{width:72px;height:72px;border-radius:50%;object-fit:cover}
.pause-card .lab{font-size:.78rem;font-weight:600;letter-spacing:.03em;color:var(--maroon);margin:0 0 4px}
.pause-card .q{font-weight:500;font-size:1.08rem;margin:0 0 10px}
.pause-card .actions{margin:12px 0 0}
@media(max-width:520px){.pause-card{grid-template-columns:1fr}.pause-card img{width:56px;height:56px}}
label.f{display:block;font-weight:500;font-size:.92rem;margin:8px 0 4px}
textarea,input[type=email],input[type=text]{width:100%;font:inherit;font-size:1rem;padding:12px 14px;border:1px solid var(--sand);border-radius:10px;background:#fff;color:var(--ink)}
textarea{min-height:110px;resize:vertical}
.saved{font-size:.8rem;color:var(--soft);margin:4px 0 0}
.player{position:sticky;bottom:0;background:linear-gradient(to bottom,rgba(244,241,234,0),var(--bg) 14px);padding:16px 0 10px;margin-top:10px;z-index:5}
.ctl{display:flex;align-items:center;justify-content:center;gap:14px}
.round{width:52px;height:52px;border-radius:50%;border:1.5px solid var(--sand);background:var(--panel);display:grid;place-items:center;color:var(--maroon)}
.round svg{width:22px;height:22px}
.round.big{width:62px;height:62px;background:var(--maroon);border-color:var(--maroon);color:#fff}
.round.big svg{width:28px;height:28px}
.round:disabled{opacity:.35;cursor:default}
.ctl2{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 8px;margin-top:10px}
.chip{min-height:44px;padding:6px 14px;border-radius:999px;border:1px solid var(--sand);background:var(--panel);font-size:.92rem;font-weight:500;color:var(--maroon);display:inline-flex;align-items:center;gap:8px}
.chip.ask{border:1.5px solid var(--maroon)}
.badge{background:var(--gold);color:var(--ink);border-radius:999px;font-size:.75rem;font-weight:600;padding:1px 8px}
.voice-note{text-align:center;font-size:.78rem;color:var(--soft);margin:8px 0 0}

/* ---------- sheets (in-page dialogs) ---------- */
.veil{position:fixed;inset:0;background:rgba(35,32,28,.35);z-index:40;display:flex;align-items:flex-end;justify-content:center}
.sheet{background:var(--panel);width:min(680px,100%);max-height:88vh;overflow:auto;border-radius:20px 20px 0 0;padding:20px max(4vw,18px) 26px;box-shadow:0 -8px 30px rgba(0,0,0,.15);animation:up .3s ease-out}
@media(min-width:700px){.veil{align-items:center}.sheet{border-radius:20px}}
@keyframes up{from{transform:translateY(24px);opacity:.4}to{transform:none;opacity:1}}
.sh-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:6px}
.sh-head h2{margin:0;flex:1}
.x{width:44px;height:44px;border-radius:50%;border:1px solid var(--sand);background:var(--bg);display:grid;place-items:center;flex:none}
.x svg{width:18px;height:18px}
.qlist{list-style:none;margin:10px 0;padding:0;display:grid;gap:8px}
.qlist button{width:100%;text-align:left;padding:14px 16px;border:1px solid var(--sand);border-radius:12px;background:var(--bg);font-weight:500;display:flex;gap:10px;align-items:center;min-height:52px}
.qlist button:hover{border-color:var(--maroon)}
.qlist button svg{width:20px;height:20px;flex:none;color:var(--maroon)}
.qgroup{font-size:.82rem;font-weight:600;color:var(--soft);margin:14px 0 0}
.ans{background:var(--bg);border-radius:12px;padding:16px 18px;margin:10px 0;font-size:1.05rem}
.ans p{margin:0 0 .7em}
.draft{font-size:.8rem;color:var(--soft);display:flex;gap:8px;align-items:center}
.draft::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--gold);flex:none}
.chlist{list-style:none;margin:8px 0;padding:0;display:grid;gap:6px}
.chlist button{width:100%;display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;align-items:center;text-align:left;padding:10px 14px;border-radius:12px;border:1px solid var(--sand);background:var(--bg);min-height:52px}
.chlist .n{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--sand);font-size:.85rem;font-weight:600}
.chlist .done .n{background:var(--maroon);color:#fff}
.chlist .here{border-color:var(--gold);box-shadow:0 0 0 2px var(--gold)}
.chlist small{color:var(--soft)}
.ground{list-style:none;padding:0;margin:10px 0;display:grid;gap:8px}
.ground li{background:var(--bg);border-radius:12px;padding:12px 16px}

/* ---------- floating ---------- */
.float{position:fixed;bottom:max(16px,env(safe-area-inset-bottom));z-index:35;min-height:48px;padding:10px 16px;border-radius:999px;border:1.5px solid var(--maroon);background:var(--panel);color:var(--maroon);font-weight:600;display:flex;align-items:center;gap:8px;box-shadow:var(--shadow)}
.float svg{width:20px;height:20px}
#fCheck{right:max(16px,env(safe-area-inset-right))}
#fRead{left:max(16px,env(safe-area-inset-left))}
body.playing #fCheck,body.playing #fRead{bottom:150px}
@media(max-width:600px){.voice-note{display:none}body.playing #fCheck{bottom:132px}}
@media(max-width:600px){.float .lbl{display:none}.float{padding:12px}}

/* ---------- keep + closing ---------- */
.reflect-q{background:var(--panel);border:1px solid var(--sand);border-radius:var(--r);padding:16px 18px;margin:12px 0}
.reflect-q p{font-weight:500;margin:0 0 6px}
.author{display:grid;grid-template-columns:140px minmax(0,1fr);gap:22px;align-items:start}
.author img{width:140px;height:140px;border-radius:50%}
@media(max-width:560px){.author{grid-template-columns:1fr}.author img{width:110px;height:110px}}
.links{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:.95rem}
.rights p{font-size:.92rem;margin:0 0 .8em}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:90px;background:var(--ink);color:#fff;padding:10px 18px;border-radius:999px;font-size:.9rem;z-index:60}

/* ---------- footer ---------- */
.ljs-foot{background:var(--panel);border-top:1px solid var(--sand);padding:28px 0 90px;font-size:.88rem;color:var(--soft)}
.ljs-foot p{margin:0 0 .8em}
.ljs-foot .back{font-weight:600;color:var(--maroon);font-size:1rem}

/* question form (site version) */
.sheet input:not([type=checkbox]):not([type=radio]){width:100%;font:inherit;padding:10px 12px;border:1px solid var(--sand);border-radius:10px;background:var(--panel);color:var(--ink);margin-bottom:10px}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.err{color:#8a2b17;font-weight:500;margin:4px 0 10px}
