:root{--zc-background:#f4f1e9;--zc-surface:#fcfaf4;--zc-ink:#293b32;--zc-muted:#5f6f63;--zc-accent:#375c47;--zc-accent-ink:#fafcf4;--zc-border:#d8ded2;--zc-soft:#e7ebe0;--zc-radius:12px;--zc-font:Georgia,serif;--zc-step3:#d9e3d2;--zc-step5:#a9c3a6;--zc-step7:#789f7f;--zc-step9:#4f7b5d;--zc-step11:#2f5540;color-scheme:light}
@media (prefers-color-scheme:dark){:root:not([data-theme]){--zc-background:#171c19;--zc-surface:#20271f;--zc-ink:#e3e8df;--zc-muted:#a3afa4;--zc-accent:#9cc4a4;--zc-accent-ink:#13201a;--zc-border:#34403a;--zc-soft:#27302b;--zc-step3:#2c3a31;--zc-step5:#3f5a47;--zc-step7:#5d8567;--zc-step9:#86b08f;--zc-step11:#b9d8bf;color-scheme:dark}}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--zc-background);color:var(--zc-ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.6}
button{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--zc-accent);outline-offset:3px}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.life{max-width:560px;margin:0 auto;padding:14px 16px 28px;display:flex;flex-direction:column;gap:14px}
.eyebrow{font-size:10px;letter-spacing:2.2px;color:var(--zc-muted)}
.kicker{margin:0;font-size:11px;letter-spacing:1.4px;text-transform:uppercase;color:var(--zc-muted)}
.small-title{margin:0 0 8px;font-size:11px;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;color:var(--zc-muted)}
.brand-row{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.preview-tag{font-size:11px;padding:3px 9px;border:1px dashed var(--zc-border);border-radius:99px;color:var(--zc-muted)}
.stage-row{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-top:4px}
.stage-row h1{margin:0;font:400 clamp(22px,6vw,28px)/1.25 var(--zc-font)}
#stage-ages{font-size:12px;color:var(--zc-muted);white-space:nowrap}
.path{--zc-progress:0;list-style:none;margin:10px 0 0;padding:0;display:flex;justify-content:space-between;position:relative;height:14px;align-items:center}
.path::before,.path::after{content:"";position:absolute;left:5px;right:5px;top:50%;height:2px;border-radius:2px;background:var(--zc-border);transform:translateY(-50%)}
.path::after{background:var(--zc-accent);right:auto;width:calc((100% - 10px) * var(--zc-progress));transition:width .6s ease}
.path li{position:relative;z-index:1;width:12px;height:12px;display:grid;place-items:center}
.path .dot{width:10px;height:10px;border-radius:50%;background:var(--zc-background);border:2px solid var(--zc-border)}
.path li.past .dot{background:var(--zc-accent);border-color:var(--zc-accent)}
.path li.now .dot{width:14px;height:14px;border-color:var(--zc-accent);background:var(--zc-surface);box-shadow:0 0 0 4px color-mix(in srgb,var(--zc-accent) 18%,transparent)}
.intro{margin:10px 0 0;font-size:13px;line-height:1.5;color:var(--zc-muted)}
#beat-title:focus,#end-title:focus{outline:none}
.play{display:flex;flex-direction:column;gap:14px}
.card{background:var(--zc-surface);border:1px solid var(--zc-border);border-radius:var(--zc-radius);padding:18px 18px 16px}
#story{animation:rise .45s ease both}
#beat-title{margin:4px 0 8px;font:400 clamp(21px,5.6vw,25px)/1.3 var(--zc-font)}
.beat-text{margin:0 0 16px;font-size:16px;line-height:1.7}
.choices{display:flex;flex-direction:column;gap:9px}
.choice{display:flex;gap:12px;align-items:flex-start;text-align:left;width:100%;min-height:56px;padding:11px 13px;border:1px solid var(--zc-border);border-radius:calc(var(--zc-radius)*.8);background:var(--zc-background);cursor:pointer;transition:background .2s,border-color .2s,transform .2s}
.choice:hover{border-color:var(--zc-accent);background:var(--zc-soft)}
.choice:active{transform:scale(.99)}
.choice:disabled{opacity:.5;cursor:default}
.choice.picking{border-color:var(--zc-accent);background:var(--zc-soft);box-shadow:inset 3px 0 0 var(--zc-accent)}
.choice-key{flex:none;width:24px;height:24px;border-radius:50%;border:1px solid var(--zc-border);display:grid;place-items:center;font-size:12px;color:var(--zc-muted);margin-top:1px}
.choice-body{display:flex;flex-direction:column;gap:3px;min-width:0}
.choice-label{font-size:15.5px;line-height:1.45}
.leanings{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:11.5px;color:var(--zc-muted)}
.lean.down{opacity:.8}
.outcome{animation:rise .35s ease both}
.outcome p{margin:0 0 12px;font-size:16px;line-height:1.7}
.you-chose{display:block;font-size:12px;color:var(--zc-muted);margin-bottom:4px}
.you-chose::before{content:"You chose: "}
.deltas{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.deltas li{font-size:12.5px;padding:3px 10px;border-radius:99px;border:1px solid var(--zc-border);background:var(--zc-soft)}
.deltas li.down{background:transparent;border-style:dashed}
.primary,.watch,.dialog-actions button{min-height:46px;padding:10px 18px;border-radius:calc(var(--zc-radius)*.8);border:1px solid var(--zc-border);background:var(--zc-surface);cursor:pointer}
.primary{background:var(--zc-accent);color:var(--zc-accent-ink);border-color:var(--zc-accent)}
.primary:hover{filter:brightness(1.06)}
.continue{width:100%}
.threads{padding:2px 2px 0}
#threads-list{display:grid;grid-template-columns:1fr 1fr;gap:8px 18px}
.thread-row{display:grid;grid-template-columns:auto 1fr 22px;gap:8px;align-items:center;font-size:12.5px}
.thread-name{color:var(--zc-muted)}
.thread-num{text-align:right;font-variant-numeric:tabular-nums}
.bar{height:6px;border-radius:6px;background:var(--zc-soft);overflow:hidden;border:1px solid var(--zc-border)}
.fill{display:block;height:100%;border-radius:6px;background:var(--zc-accent);transition:width .6s ease}
.fill.pat1{background:repeating-linear-gradient(90deg,var(--zc-accent) 0 6px,transparent 6px 9px)}
.fill.pat2{background:repeating-linear-gradient(90deg,var(--zc-accent) 0 2px,transparent 2px 5px)}
.fill.pat3{background:repeating-linear-gradient(90deg,var(--zc-accent) 0 8px,transparent 8px 10px,var(--zc-accent) 10px 12px,transparent 12px 14px)}
.thread-row.changed .thread-num{font-weight:700}
.controls{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.watch{display:inline-flex;align-items:center;gap:9px}
.watch[aria-pressed="true"]{border-color:var(--zc-accent);background:var(--zc-soft)}
.watch-icon{width:14px;height:14px;border-radius:50%;border:2px solid var(--zc-accent);position:relative}
.watch[aria-pressed="true"] .watch-icon::after{content:"";position:absolute;inset:2px;border-radius:50%;background:var(--zc-accent);animation:breathe 3.2s ease-in-out infinite}
.text-button{background:none;border:none;color:var(--zc-muted);text-decoration:underline;text-underline-offset:3px;min-height:44px;padding:0 4px;cursor:pointer;font-size:13.5px}
.status{margin:0;font-size:12px;color:var(--zc-muted);text-align:center;min-height:1.6em}
/* ---------- the scroll ---------- */
.end{display:flex;flex-direction:column;gap:14px;animation:rise .6s ease both}
.scroll{color:var(--zc-ink)}
.roller{display:block;width:100%;height:auto;color:var(--zc-muted);margin:0 auto}
.paper{margin:-6px 10px;padding:22px 18px 18px;background:var(--zc-surface);border-left:1px solid var(--zc-border);border-right:1px solid var(--zc-border);background-image:repeating-linear-gradient(0deg,transparent 0 31px,color-mix(in srgb,var(--zc-border) 18%,transparent) 31px 32px)}
.paper h2{margin:6px 0 6px;font:400 clamp(23px,6.4vw,30px)/1.25 var(--zc-font);outline-offset:4px}
.scroll-sub{margin:0 0 18px;color:var(--zc-muted);font-size:14px}
.scroll-stages{list-style:none;margin:0;padding:0}
.scroll-stage{display:grid;grid-template-columns:38px 1fr;gap:10px}
.scroll-mark{display:flex;flex-direction:column;align-items:center;color:var(--zc-accent)}
.glyph{width:34px;height:34px;flex:none}
.ink-thread{width:12px;flex:1;min-height:20px;color:var(--zc-border)}
.scroll-text{padding-bottom:14px}
.scroll-text h4{margin:6px 0 4px;font-size:13px;font-weight:600;line-height:1.4;letter-spacing:.3px}
.scroll-text h4 span{font-weight:400;color:var(--zc-muted);margin-left:6px;font-size:12px}
.scroll-text p{margin:0 0 3px;font:italic 15px/1.55 var(--zc-font)}
.threads-art{margin:10px 0 6px}
.threads-art svg{width:100%;max-width:380px;height:auto;display:block;color:var(--zc-accent);overflow:visible}
.threads-art .thread-label{font:12px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;fill:var(--zc-muted)}
.threads-art .thread-value{font:12px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;fill:var(--zc-ink)}
.control-note{margin:6px 0 0;font-size:12.5px;color:var(--zc-muted)}
.question p:last-child{margin:6px 0 0;font:400 19px/1.5 var(--zc-font)}
.end-actions{display:flex;justify-content:center}
.end-actions .primary{min-width:220px}
.shelf ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.shelf li{display:flex;justify-content:space-between;gap:10px;padding:8px 12px;border:1px solid var(--zc-border);border-radius:calc(var(--zc-radius)*.7);font:italic 14px/1.4 var(--zc-font)}
.shelf time{font:12px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--zc-muted);white-space:nowrap}
dialog{background:var(--zc-surface);color:var(--zc-ink);border:1px solid var(--zc-border);border-radius:var(--zc-radius);max-width:min(92vw,380px);padding:22px}
dialog::backdrop{background:#0007}
dialog h2{margin:0 0 6px;font:400 22px var(--zc-font)}
dialog p{margin:0 0 16px;color:var(--zc-muted)}
.dialog-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
@keyframes rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes breathe{0%,100%{transform:scale(.55);opacity:.6}50%{transform:scale(1);opacity:1}}
[data-motion="reduced"] *,[data-motion="reduced"] *::before,[data-motion="reduced"] *::after{animation:none!important;transition:none!important}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
@media (max-width:380px){#threads-list{grid-template-columns:1fr}.card{padding:16px 14px}}
@media (min-width:760px){.life{padding-top:24px}.beat-text,.outcome p{font-size:17px}}

/* An illustrated life in chapters, read like a quiet open book. */
body{background-image:radial-gradient(ellipse at 0% 0%,color-mix(in srgb,var(--zc-accent) 7%,transparent),transparent 65%)}
.life{max-width:1080px;padding:32px;gap:28px}.stage-row{display:block;margin-top:18px}.stage-row h1{font-size:clamp(32px,4vw,52px);letter-spacing:-.035em;line-height:1.1}.stage-row #stage-ages{display:block;margin-top:10px}.path{margin-top:24px}.intro{margin-top:18px;line-height:1.7}
.chapter-art{overflow:hidden;border-radius:50% 50% var(--zc-radius) var(--zc-radius);margin-top:28px}.chapter-illustration{display:block;width:100%;height:auto}.chapter-stop-a{stop-color:var(--zc-soft)}.chapter-stop-b{stop-color:var(--zc-background)}.chapter-sun{fill:var(--zc-surface)}.chapter-distance{fill:var(--zc-accent);opacity:.12}.chapter-ground{fill:var(--zc-accent);opacity:.1}.chapter-line{fill:none;stroke:var(--zc-ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.chapter-wall{fill:var(--zc-surface);stroke:var(--zc-muted);stroke-width:1}.chapter-tree{fill:var(--zc-accent);stroke:var(--zc-accent);stroke-width:2;opacity:.65}.chapter-solid{fill:var(--zc-ink)}.chapter-book{fill:var(--zc-surface);stroke:var(--zc-ink);stroke-width:1.5}.chapter-whisper{fill:none;stroke:var(--zc-muted);stroke-width:1.5;opacity:.55}.chapter-hill{fill:var(--zc-accent);opacity:.3}.chapter-baseline{stroke:var(--zc-border);stroke-width:1}.chapter-number{font-size:9px;line-height:1.8;letter-spacing:.12em;color:var(--zc-muted);margin-top:14px}
.card{padding:30px;border-radius:2px;box-shadow:0 18px 50px -38px var(--zc-ink);border-color:color-mix(in srgb,var(--zc-border) 65%,transparent)}#beat-title{font-size:clamp(27px,3.5vw,38px);line-height:1.15;margin:12px 0 20px;letter-spacing:-.025em}.beat-text{font:18px/1.8 var(--zc-font);margin-bottom:24px}.choice{padding:15px 14px;min-height:65px;background:transparent;border-radius:calc(var(--zc-radius)*.5)}.choice-label{font-size:15px}.choice-key{border:0;font-family:var(--zc-font);font-size:20px;opacity:.7}.choices{gap:10px}.leanings{font-size:10px;letter-spacing:.03em;margin-top:5px}.outcome p{font:18px/1.8 var(--zc-font)}.you-chose{font:12px/1.5 sans-serif;margin-bottom:14px}.threads{padding:10px 0;border-top:1px solid var(--zc-border)}.bar{height:3px;border:0}.controls{border-top:1px solid var(--zc-border);padding-top:14px}.watch{background:transparent;border:0;padding-left:0}.paper{padding:32px}.status{text-align:left}
@media(min-width:860px){.life{display:grid;grid-template-columns:270px minmax(0,1fr);gap:24px 54px}.top{grid-column:1;grid-row:1 / span 2;position:sticky;top:28px;align-self:start}.play,.end{grid-column:2}.status{grid-column:2}.brand-row{align-items:flex-start;flex-direction:column}.preview-tag{font-size:10px}.play{gap:24px}#threads-list{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.life{padding:18px 16px 24px;gap:16px}.top{position:relative;min-height:112px;padding-right:102px}.brand-row{align-items:flex-start}.eyebrow{font-size:8px;letter-spacing:1.5px}.preview-tag{position:absolute;right:0;top:0;font-size:8px;max-width:115px}.stage-row{margin-top:14px}.stage-row h1{font-size:27px}.stage-row #stage-ages{font-size:10px;margin-top:5px}.path{margin-top:15px}.intro{font-size:11px;line-height:1.5;margin-top:10px}.chapter-art{position:absolute;right:0;top:26px;width:88px;height:104px;margin:0;border-radius:48px 48px 8px 8px}.chapter-illustration{height:100%;width:100%;object-fit:cover}.chapter-number{margin:12px 0 0;font-size:8px;letter-spacing:.06em}.card{padding:20px 18px}#beat-title{font-size:28px;margin:9px 0 14px}.beat-text{font-size:16px;line-height:1.65;margin-bottom:18px}.choice{padding:11px 10px;min-height:54px;gap:8px}.choice-label{font-size:14px}.leanings{font-size:9px}.choices{gap:7px}.play{gap:15px}.threads{padding-top:14px}}
