:root{color-scheme:light dark;--paper:#f4f1e9;--ink:#252920;--muted:#6e7569;--rule:#d9d7cf;--forest:#343e32;--sage:#849378;font:100%/1.45 -apple-system,BlinkMacSystemFont,Arial,sans-serif;background:var(--paper);color:var(--ink)}*{box-sizing:border-box}body{margin:0}#page{max-width:34rem;min-height:100svh;margin:auto;padding:max(1.6rem,env(safe-area-inset-top)) clamp(1.15rem,6.2vw,2.2rem) max(1.45rem,env(safe-area-inset-bottom));display:flex;flex-direction:column}header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--rule);padding:0 0 clamp(1.3rem,3.3svh,2rem);font-size:1.25rem;letter-spacing:.26em}header span:last-child{letter-spacing:0;color:var(--muted)}main{flex:1;display:flex;flex-direction:column}main>section{padding-top:clamp(1.8rem,5svh,3rem)}[hidden]{display:none!important}#Today{flex:1;display:flex;flex-direction:column}.eyebrow,small{color:var(--muted);font-weight:500;font-size:.96rem;margin:0}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.55rem,8.45vw,2.8rem);font-weight:600;letter-spacing:-.027em;line-height:1.39;margin:.27rem 0 .3rem}.intro{font-size:clamp(1rem,4.55vw,1.5rem);color:var(--muted);letter-spacing:-.025em}#wave{display:flex;align-items:center;justify-content:space-between;min-height:100px;flex:1;margin:1.1rem 0}#wave i{background:var(--sage);width:.7%;border-radius:1em}button,select,input,textarea{font:inherit;color:inherit}button,select,input,textarea,summary{min-height:44px}button,.upload,select,textarea{border:1px solid var(--rule);background:transparent;border-radius:.65rem;padding:.65rem .9rem}button,summary,a{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid var(--sage);outline-offset:3px}#sessionCard{background:var(--forest);border:0;color:#fff;text-align:left;border-radius:.95rem;padding:clamp(1.15rem,5.2vw,1.7rem);display:grid;gap:.34rem}#sessionCard small,.subtitle{color:#ced6ca}#sessionCard small{font-size:.94rem}#sessionCard strong{font-size:clamp(1.5rem,6.5vw,2rem);letter-spacing:-.03em;font-weight:600}.subtitle{font-size:1.14rem;max-width:15.4rem;line-height:1.35}.continue{font-size:1.25rem;font-weight:500;display:flex;justify-content:space-between;margin-top:.65rem}.continue b{font-weight:400}nav{display:flex;justify-content:space-between;margin-top:.85rem;gap:.15rem}nav a{display:grid;justify-items:center;align-content:start;text-decoration:none;color:var(--muted);font-size:1rem;min-width:44px;min-height:44px;gap:.28rem}nav a[aria-current]{color:var(--forest)}nav svg{height:1.45rem;width:1.45rem}h2{font-size:2rem;letter-spacing:-.04em}h3{font-size:1.35rem}main>section:not(#Today){display:grid;align-content:start;gap:1rem}label,article,details{display:grid;gap:.5rem}article,details,.row{border-top:1px solid var(--rule);padding:1rem 0}textarea,select,audio,input{width:100%;max-width:100%}.row{overflow-wrap:anywhere;white-space:pre-wrap}#message:not(:empty),audio{margin-top:1rem}a{color:inherit}summary{padding:.65rem 0}details[open]>*{margin-bottom:.65rem}@media(prefers-color-scheme:dark){:root{--paper:#20251e;--ink:#f4f1e9;--muted:#c0c6ba;--rule:#4b5247;--forest:#394936}nav a[aria-current]{color:var(--ink)}}

/* The interior pages use the same paper, ink, margins and type scale as Today. */
:root { --surface:#eae7dc; --cover:#394c40; --cover-ink:#faf4e5; --pencil:#58624f; --muted:#61695e; }
@media(prefers-color-scheme:dark) {
  :root { --paper:#20251f; --ink:#f3efe4; --surface:#2d342b; --rule:#555e50; --cover:#35483d; --pencil:#bac9ac; --muted:#bbc2b5; color-scheme:dark; }
}
main>section:not(#Today) { gap:1.2rem; padding-bottom:1.2rem }
h2 { font:normal clamp(2.45rem,10vw,3.2rem)/1.08 Georgia,serif; letter-spacing:-.045em; }
h3 { font:normal 1.65rem/1.15 Georgia,serif; overflow-wrap:anywhere }
section:not(#Today) small,.imprint { font-size:.75rem; letter-spacing:.09em; font-weight:600 }
.feature,.player-panel { color:var(--cover-ink); background:var(--cover); padding:1.45rem; border-radius:.25rem 1.1rem 1.1rem .25rem; display:grid; gap:.9rem; border:0 }
.feature { border-left:5px double #91a28f; padding-left:1.6rem; }
.feature h3,.player-panel h3 { font-size:2.25rem; letter-spacing:-.045em; }
.imprint { display:flex; justify-content:space-between; align-items:center; padding-bottom:1.25rem; border-bottom:1px solid #abb5a5 }
.feature button,.edition button { width:fit-content; border:none; border-bottom:1px solid currentColor; padding:.4rem 0; border-radius:0; font-weight:600 }
.edition { gap:.65rem; }.edition p,#modeInfo,.row { line-height:1.55 }
.player-panel small { color:#dae2d2 }.player-panel select { background:var(--cover); color:inherit; border-color:#869885 }
.player-panel { border-radius:1rem; gap:.6rem }.player-panel label { font-size:.87rem }
.options,.transport,.shelves { display:flex; gap:.6rem; align-items:center; flex-wrap:wrap }.options>* { flex:1 }
.transport { justify-content:center }.transport button { border:0 }.transport #listenPlay,.paper-note button,.file { border-radius:3rem; background:var(--ink);color:var(--paper);font-weight:600;padding:.65rem 1.3rem }
.transport #listenPlay { min-width:5rem; background:var(--cover-ink);color:var(--cover) }
#clock { font: .8rem/1.3 ui-monospace,monospace; text-align:right }
input[type=range] { accent-color:#c7d4bb; margin:0 }
.sr { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%) }
.shelves { border-bottom:1px solid var(--rule); gap:.3rem }.shelves button { border:0;border-bottom:2px solid transparent;border-radius:0; padding:.5rem .75rem }
.shelves [aria-pressed=true] { border-color:var(--pencil); font-weight:600 }
.file { position:relative; display:inline-flex; align-items:center; cursor:pointer; margin-top:.75rem; overflow:hidden }
.file input { position:absolute;inset:0;opacity:0;cursor:pointer;height:100% }
.file:focus-within,:focus-visible { outline:3px solid var(--sage);outline-offset:3px }
.paper-note { display:grid;gap:.75rem;padding:1.2rem;border-radius:.75rem;background:var(--surface) }
.paper-note textarea { background:var(--paper); resize:vertical }.paper-note button { justify-self:start;border:0 }
#entries:empty::after { content:'Your saved reflections and time capsules appear here.';color:var(--muted) }
#entries .row { padding-left:1rem; border-left:2px solid var(--sage) }
#bookText { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.85 }
#books button { margin:.5rem 0;max-width:100%;overflow-wrap:anywhere }
nav { position:sticky; bottom:0; z-index:1;background:var(--paper);padding-bottom:env(safe-area-inset-bottom) }
nav a { min-width:0;overflow-wrap:anywhere }.options label {min-width:6rem}
@media(max-width:350px){nav a{font-size:.83rem}}

.coverTitle { display:flex; gap:1rem;justify-content:space-between;align-items:end }
.coverTitle h3 { font-size:clamp(2.2rem,10vw,3.4rem);max-width:7ch;line-height:1.04 }
.coverTitle span { writing-mode:vertical-rl;font:1.65rem/1.1 Georgia,serif;color:#dce3d4;letter-spacing:.18em }
#modeLabel { border:0; padding:0; margin:.5rem 0;min-width:0 }
#modeLabel legend { font-size:.85rem;margin-bottom:.3rem }
.modes { display:flex; flex-wrap:wrap;gap:2px;border-block:1px solid #809280 }
.modes label { position:relative;display:grid;flex:1;cursor:pointer }
.modes input { position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer }
.modes span { text-align:center;padding:.75rem .1rem;font-size:.83rem;min-height:44px;border-bottom:2px solid transparent }
.modes input:checked+span { border-color:#e0e9d7;font-weight:700 }
.modes input:focus-visible+span { outline:2px solid #f2f3da }
#page:has(main>section:not(#Today):not([hidden])) { height:100dvh;min-height:0 }
#page:has(main>section:not(#Today):not([hidden])) main { overflow-y:auto;min-height:0;scroll-padding:1rem }
#page nav { flex-shrink:0;position:static }
