/* The Book section, with book/book.html and js/book.js. v4, 20 Nov 2026 (Arthur: "the book does not seem to have SOTA UI, layouts, even DS etc
   is not current"). One page = one day, as approved on 19 Nov. On a wide screen the page is a spread: the cover of the day on the left (the photo
   you took, its name over its top as on the moments' 9:16 frames, Astra's sentence under it), which stays in view, and the leaf on the right with
   the day's moments, each led by its own picture. On a phone the two join into one card.
   Design system: text sits on the solid card (#191622 + a 1 px light rim, player.md rule 13); only controls are glass, the player's dark glass
   copied from css/player-frame.css v4.12 (.pf-glass: rgba(18,18,20,.44), blur 22, saturate 1.5, bright top rim, faint edge, darker foot); play is
   the player's white disc with an ink glyph (#1d1712); pictures hug their tiles (tile radius 20, picture inside it 10 = 20 less its 10 inset);
   learned things carry the solid warm-white line #fff4e0 with a soft glow (D111); close top left (D132); Newsreader + Jost only; no caps labels.
   Shadows are the evening frame's (css/moments.css #evening .mt-f). Motion: press .97 (DS press), pictures fade in on decode (D125 R4, proposed),
   the card grows out of what you pressed (js/book.js). Everything shows with no script. */
.bk{--bk-card:#191622;--bk-rim:inset 0 0 0 1px rgba(255,255,255,.14);--bk-warm:#fff4e0;--bk-ink:#1d1712;--bk-ease:cubic-bezier(.2,.8,.2,1);
 --bk-shadow:0 1px 2px rgba(0,0,0,.3),0 14px 32px -12px rgba(0,0,0,.45),0 40px 90px -36px rgba(0,0,0,.55);
 --bk-gl-bg:rgba(18,18,20,.44);--bk-gl-fx:blur(22px) saturate(1.5);--bk-gl-rim:inset 0 1px 0 rgba(255,255,255,.36),inset 0 0 0 1px rgba(255,255,255,.13),inset 0 -1px 0 rgba(0,0,0,.28);
 --bk-top:clamp(84px,11vh,112px);
 position:relative;z-index:1;color:#fff;overflow:hidden;overflow:clip;padding:clamp(72px,11vh,128px) clamp(20px,4vw,64px) clamp(80px,12vh,140px);
 background:linear-gradient(180deg,#05060d 0,#0a0d1c 40%,#0b0e19 100%)}
@media (prefers-reduced-transparency:reduce){.bk{--bk-gl-bg:rgba(18,18,20,.84)}}
.bk-in{max-width:1180px;margin:0 auto}

/* the words above the page: the headline, and what the Book is */
.bk-copy{margin:0 0 clamp(40px,6vh,72px)}
.bk-copy h2{margin:0;font:350 clamp(40px,5.6vw,80px)/1 Newsreader,Georgia,serif;letter-spacing:-.028em;text-wrap:balance}
.bk-lede p{margin:22px 0 0;max-width:31rem;font:400 clamp(18px,1.5vw,21px)/1.5 Jost,system-ui,sans-serif;color:rgba(255,255,255,.78);text-wrap:pretty}
.bk-lede .bk-note{margin-top:16px;font-size:15px;color:rgba(255,255,255,.58)}
@media (min-width:960px){
 .bk-copy{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(40px,6vw,96px);align-items:end}
 .bk-copy h2{max-width:9.5em}
 .bk-lede p:first-child{margin-top:0}
}
@media (max-width:959px){.bk-copy{max-width:34rem;margin-left:auto;margin-right:auto;text-align:center}.bk-lede p{margin-left:auto;margin-right:auto}}

/* the page: a phone sees one card (the cover on top, the leaf under it); a wide screen sees the spread */
.bk-page{position:relative;box-sizing:border-box;scroll-margin-top:var(--bk-top);width:min(640px,100%);min-width:0;margin:0 auto;border-radius:28px;overflow:hidden;overflow:clip;
 background:var(--bk-card);box-shadow:var(--bk-shadow)}
.bk-page::after{content:'';position:absolute;inset:0;z-index:4;border-radius:inherit;pointer-events:none;box-shadow:var(--bk-rim)}
@media (min-width:960px){
 .bk-page{width:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,3vw,40px);align-items:start;overflow:visible;border-radius:0;background:none;box-shadow:none}
 .bk-page::after{content:none}
 .bk-covers{position:sticky;top:var(--bk-top)}
 .bk-cover,.bk-sheet{position:relative;border-radius:28px;background:var(--bk-card);box-shadow:var(--bk-shadow)}
 .bk-cover{overflow:hidden;overflow:clip}
 .bk-cover::after,.bk-sheet::after{content:'';position:absolute;inset:0;z-index:4;border-radius:inherit;pointer-events:none;box-shadow:var(--bk-rim)}
}
.bk-cover[hidden],.bk-day[hidden]{display:none}

/* the cover: the photo you took, edge to edge, the day's name over its top */
.bk-photo{all:unset;box-sizing:border-box;position:relative;display:block;width:100%;aspect-ratio:4/5;overflow:hidden;cursor:pointer;background:#120e18;-webkit-tap-highlight-color:transparent}
@media (min-width:960px){.bk-photo{max-height:calc(100vh - var(--bk-top) - 230px);max-height:calc(100svh - var(--bk-top) - 230px);min-height:300px}}
.bk-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:transform 1.2s var(--bk-ease),opacity .25s ease}
.bk-photo::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.46) 0,rgba(0,0,0,0) 30%,rgba(25,22,34,0) 72%,rgba(25,22,34,.6) 100%)}
@media (hover:hover){.bk-photo:hover img{transform:scale(1.03)}}
.bk-dh{position:absolute;z-index:1;left:26px;right:26px;top:24px;display:flex;flex-direction:column;gap:6px;text-shadow:0 1px 18px rgba(0,0,0,.35)}
.bk-dh b{font:400 clamp(34px,3.4vw,46px)/1 Newsreader,Georgia,serif;letter-spacing:-.022em}
.bk-dh i{font:500 15px/1.2 Jost,system-ui,sans-serif;font-style:normal;color:rgba(255,255,255,.86)}
.bk-say{margin:0;padding:20px 26px 28px;font:400 clamp(21px,1.9vw,26px)/1.32 Newsreader,Georgia,serif;letter-spacing:-.008em;color:rgba(255,255,255,.95);text-wrap:pretty}

/* the leaf: the moments, each under its name */
.bk-sheet{container:bk / inline-size;padding:8px 32px 26px}
.bk-m,.bk-days{padding:28px 0 30px}
.bk-m+.bk-m,.bk-days{border-top:1px solid rgba(255,255,255,.08)}
.bk-mh{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:0 0 16px}
.bk-mh h3{margin:0;font:500 16px/1.2 Jost,system-ui,sans-serif;color:rgba(255,255,255,.66)}
.bk-sub{margin:0;font:400 14px/1.2 Jost,system-ui,sans-serif;color:rgba(255,255,255,.5);text-align:right}

/* a tile: the app's inner surface; its picture hugs it */
.bk-tile{position:relative;box-sizing:border-box;border-radius:20px;overflow:hidden;overflow:clip;background:rgba(255,255,255,.045);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
.bk-row,.bk-post,.bk-art,.bk-quote,.bk-coll,.bk-lesson,.bk-dayrow button,.bk-w,.bk-more{all:unset;box-sizing:border-box;cursor:pointer;-webkit-tap-highlight-color:transparent}
.bk-tile,.bk-photo,.bk-quote,.bk-dayrow button,.bk-play,.bk-w,.bk-more{transition:transform .35s var(--bk-ease),background-color .2s,opacity .25s}
.bk-tile:has(>.bk-row:active),.bk-tile:has(>.bk-art:active),button.bk-tile:active,.bk-quote:active,.bk-dayrow button:active,.bk-w:active,.bk-more:active{transform:scale(.97)}
.bk-play:active{transform:scale(.94)}
.bk-photo:active{transform:none}
.bk img{transition:opacity .25s ease}
html.js .bk img.bk-ld{opacity:0}

/* a song or the lesson: its art, its name, who made it; the song plays from here (the player's mini row) */
.bk-src{display:flex;align-items:center;gap:12px;padding:10px 12px 10px 10px}
.bk-row{display:flex;align-items:center;gap:14px;flex:1;min-width:0;min-height:64px}
.bk-row img{flex:none;width:64px;height:64px;border-radius:10px;object-fit:cover;background:#120e18}
.bk-row span,.bk-lesson span,.bk-coll>span:last-child{min-width:0;flex:1}
.bk-row b,.bk-lesson b,.bk-coll b{display:block;font:400 22px/1.15 Newsreader,Georgia,serif;letter-spacing:-.012em}
.bk-row i,.bk-lesson i,.bk-coll i{display:block;margin-top:4px;font:400 14px/1.35 Jost,system-ui,sans-serif;font-style:normal;color:rgba(255,255,255,.62);text-wrap:pretty}
.bk-play{all:unset;box-sizing:border-box;flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent}
.bk-play[hidden]{display:none}
.bk-play svg{width:22px;height:22px;fill:var(--bk-ink)}
.bk-play .ps,.bk-play.on .py{display:none}.bk-play.on .ps{display:block}
.bk-play.gl{background:var(--bk-gl-bg);-webkit-backdrop-filter:var(--bk-gl-fx);backdrop-filter:var(--bk-gl-fx);box-shadow:var(--bk-gl-rim)}
.bk-play.gl svg{fill:#fff}
@media (hover:hover){.bk-play:hover{transform:scale(1.05)}}
.bk-line{position:absolute;left:88px;right:68px;bottom:7px;height:2px;border-radius:2px;background:rgba(255,255,255,.16);opacity:0;transition:opacity .3s}
.bk-line::after{content:'';position:absolute;left:0;top:0;bottom:0;width:var(--p,0%);border-radius:2px;background:#fff}
.bk-line.on{opacity:1}

/* what was learned: a count, then the things themselves in warm white with the solid learned line (D111) */
.bk-count{margin:24px 0 8px;font:400 15px/1.3 Jost,system-ui,sans-serif;color:rgba(255,255,255,.72)}
.bk-count b{font:400 30px/1 Newsreader,Georgia,serif;letter-spacing:-.015em;color:#fff;margin-right:8px}
.bk-count span{color:rgba(255,255,255,.58)}
.bk-words{display:flex;flex-wrap:wrap;align-items:center;column-gap:22px;row-gap:2px}
.bk-w{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:44px;font:400 21px/1.2 Newsreader,Georgia,serif;letter-spacing:-.005em;color:var(--bk-warm);
 text-decoration:underline solid var(--bk-warm);text-decoration-thickness:2px;text-underline-offset:.3em;text-decoration-skip-ink:none;text-shadow:0 0 14px rgba(255,244,224,.32)}
span.bk-w{cursor:default}
.bk-ideas .bk-w{font-size:20px}
.bk-w svg{flex:none;width:15px;height:15px;fill:none;stroke:var(--bk-warm);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
@media (hover:hover){button.bk-w:hover{color:#fff;text-decoration-color:#fff}}
.bk-more{display:inline-flex;align-items:center;min-height:44px;font:500 15px/1 Jost,system-ui,sans-serif;color:rgba(255,255,255,.66)}
@media (hover:hover){.bk-more:hover{color:#fff}}

/* two side by side: the posts you liked, the songs you liked */
.bk-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.bk-post{display:flex;flex-direction:column;width:100%;text-align:left}
.bk-post img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:50% 30%;background:#120e18}
.bk-post span{display:block;padding:14px 16px 16px}
.bk-post b{display:block;font:600 14px/1.2 Jost,system-ui,sans-serif}
.bk-post q{display:block;margin-top:6px;font:400 17px/1.38 Newsreader,Georgia,serif;color:rgba(255,255,255,.9);quotes:none;text-wrap:pretty}
.bk-song{container-type:inline-size}
.bk-art{display:block;width:100%}
.bk-art img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;background:#120e18}
.bk-art span{display:block;padding:12px 14px 14px}
.bk-art b{display:block;font:400 19px/1.15 Newsreader,Georgia,serif;letter-spacing:-.01em}
.bk-art i{display:block;margin-top:3px;font:400 14px/1.2 Jost,system-ui,sans-serif;font-style:normal;color:rgba(255,255,255,.6)}
.bk-song .bk-play{position:absolute;right:10px;top:calc(100cqw - 54px)}
@media (hover:hover){.bk-post:hover img,.bk-art:hover img,.bk-lesson:hover img{opacity:.88}}

/* the lesson of the way home: its picture hugs the tile's left edge */
.bk-lesson{display:flex;align-items:center;gap:16px;width:100%;height:104px;padding-right:16px}
.bk-lesson img{flex:none;width:96px;height:100%;object-fit:cover;object-position:50% 8%;background:#120e18}   /* (a fixed height: the picture's own 9:16 shape must not make the tile tall; the top of the frame is Newton and the Moon) */

/* the line of Marcus you saved: large, with his face and a play disc to hear him say it */
.bk-qw{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:end}
.bk-quote{display:block;min-width:0;border-radius:12px}
.bk-quote q{display:block;font:400 clamp(24px,4.6cqi,30px)/1.26 Newsreader,Georgia,serif;letter-spacing:-.012em;text-wrap:pretty}
.bk-by{display:flex;align-items:center;gap:10px;margin-top:14px}
.bk-by img{flex:none;width:32px;height:32px;border-radius:50%;object-fit:cover;object-position:50% 25%;background:#120e18}
.bk-by i{font:400 14px/1.2 Jost,system-ui,sans-serif;font-style:normal;color:rgba(255,255,255,.66)}

/* a collectible: the thing itself, standing a little askew, as it does in Newton's lesson */
.bk-coll{display:flex;align-items:center;gap:20px;width:100%;padding:20px 20px 20px 22px}
.bk-obj{flex:none;width:clamp(92px,24cqi,136px)}
.bk-obj img{display:block;width:100%;height:auto;border-radius:3px;transform:rotate(-3deg);box-shadow:0 14px 28px -12px rgba(0,0,0,.9),0 0 0 1px rgba(255,255,255,.14);transition:transform .45s var(--bk-ease),opacity .25s}
@media (hover:hover){.bk-coll:hover .bk-obj img{transform:rotate(-1deg) scale(1.03)}}

/* earlier days: the photo of each day, its name over it; the open one has the white ring */
.bk-dayrow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.bk-dayrow button{position:relative;display:block;aspect-ratio:3/4;border-radius:16px;overflow:hidden;background:#120e18}
.bk-dayrow img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;opacity:.72;transition:opacity .3s}
.bk-dayrow button::after{content:'';position:absolute;inset:0;border-radius:inherit;background:linear-gradient(180deg,rgba(0,0,0,0) 50%,rgba(0,0,0,.5) 100%);pointer-events:none}
.bk-dayrow span{position:absolute;z-index:1;left:12px;right:10px;bottom:10px;font:400 19px/1.1 Newsreader,Georgia,serif;letter-spacing:-.01em;text-shadow:0 1px 12px rgba(0,0,0,.4)}
.bk-dayrow [aria-pressed="true"]{box-shadow:0 0 0 2px var(--bk-card),0 0 0 4px #fff;overflow:visible}
.bk-dayrow [aria-pressed="true"] img{opacity:1;border-radius:16px}
@media (hover:hover){.bk-dayrow button:hover img{opacity:.92}}
.bk-foot{margin:0;padding:4px 0 2px;font:400 14px/1.45 Jost,system-ui,sans-serif;color:rgba(255,255,255,.55);text-wrap:pretty}

.bk-photo:focus-visible,.bk-row:focus-visible,.bk-coll:focus-visible,.bk-post:focus-visible,.bk-art:focus-visible,.bk-quote:focus-visible,.bk-lesson:focus-visible,.bk-play:focus-visible,.bk-w:focus-visible,.bk-more:focus-visible,.bk-dayrow button:focus-visible{outline:2px solid #fff;outline-offset:3px}
.bk-photo:focus-visible{outline-offset:-4px}
.bk-post:focus-visible,.bk-art:focus-visible,.bk-lesson:focus-visible,.bk-coll:focus-visible{outline-offset:-3px;border-radius:20px}

/* narrow leaves (a phone): the posts become rows with their picture on the left */
@container bk (max-width:459px){
 .bk-posts{grid-template-columns:minmax(0,1fr)}
 .bk-post{flex-direction:row;align-items:stretch}
 .bk-post img{flex:none;width:96px;height:auto;aspect-ratio:auto;min-height:112px}
 .bk-post span{padding:12px 14px 14px}
 .bk-post q{font-size:16px}
 .bk-two:not(.bk-posts){gap:10px}
 .bk-art span{padding:10px 12px 12px}
 .bk-art b{font-size:17px}
 .bk-dayrow{gap:10px}
 .bk-dayrow span{font-size:16px;left:10px;bottom:8px}
}
@media (max-width:959px){
 .bk-sheet{padding:4px 22px 22px}
}
@media (max-width:480px){
 .bk-sheet{padding:2px 18px 20px}
 .bk-dh{left:20px;right:20px;top:20px}
 .bk-say{padding:18px 20px 22px}
 .bk-src{padding:8px 10px 8px 8px;gap:10px}
 .bk-row{gap:12px}
 .bk-row img{width:56px;height:56px}
 .bk-row b,.bk-lesson b,.bk-coll b{font-size:20px}
 .bk-line{left:76px;right:62px}
 .bk-w{font-size:20px}
 .bk-words{column-gap:18px}
 .bk-coll{padding:16px 16px 16px 18px;gap:16px}
}
@media (prefers-reduced-motion:reduce){
 .bk-photo img,.bk-obj img,.bk-dayrow img,.bk-tile,.bk-quote,.bk-dayrow button,.bk-play,.bk-w,.bk-more,.bk img{transition:none}
 .bk-tile:has(>.bk-row:active),.bk-tile:has(>.bk-art:active),button.bk-tile:active,.bk-quote:active,.bk-dayrow button:active,.bk-w:active,.bk-more:active,.bk-play:active{transform:none}
 .bk-photo:hover img{transform:none}.bk-coll:hover .bk-obj img{transform:rotate(-3deg)}
}

/* the one card every thing on the page opens: the app's solid card; a picture fills its top edge to edge in its own shape (the card takes the
   picture's width, js/book.js), so there are no bars beside it. Close top left (D132), Share top right; both are the player's glass over a
   picture, and plain on the card when there is none. It grows out of what you pressed and goes back into it (js/book.js). */
.bk-dlg{box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);margin:auto;padding:0;border:0;border-radius:28px;overflow:auto;overscroll-behavior:contain;
 background:#191622;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),0 40px 90px -30px rgba(0,0,0,.9);transform-origin:50% 50%}
.bk-dlg::backdrop{background:rgba(8,7,14,.66);transition:opacity .28s ease}
.bk-dlg[open]::backdrop{animation:bkfade .3s ease}
.bk-dlg.closing::backdrop{opacity:0}
@keyframes bkfade{from{opacity:0}}
.bk-dlg:focus{outline:none}
.bk-dlg img{display:block;width:100%;height:auto;aspect-ratio:var(--bk-r,auto);object-fit:cover;margin:0;border-radius:28px 28px 0 0;background:#120e18}
.bk-dlg img[hidden]{display:none}
.bk-db{padding:20px 24px 24px}
.bk-dlg:not(.has-img) .bk-db{padding-top:64px}
.bk-dlg .k{margin:0 0 8px;font:500 14px/1.2 Jost,system-ui,sans-serif;color:rgba(255,255,255,.62)}
.bk-dlg h3{margin:0;font:400 32px/1.08 Newsreader,Georgia,serif;letter-spacing:-.02em;text-wrap:balance}
.bk-dlg .s{margin:8px 0 0;font:500 16px/1.35 Jost,system-ui,sans-serif;color:rgba(255,255,255,.72)}
.bk-dlg .t{margin:14px 0 0;font:400 19px/1.45 Newsreader,Georgia,serif;text-wrap:pretty}
.bk-dlg .w{margin:12px 0 0;font:500 15px/1.4 Jost,system-ui,sans-serif}
.bk-dlg .f{margin:14px 0 0;font:400 14px/1.4 Jost,system-ui,sans-serif;color:rgba(255,255,255,.62)}
.bk-dlg [hidden]{display:none}
.bk-dlg .a{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:20px}
.bk-dlg .a:not(:has(>:not([hidden]))){display:none}
.bk-dlg .a button,.bk-dlg .a a{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border-radius:999px;font:600 15px/1 Jost,system-ui,sans-serif;cursor:pointer;
 background:rgba(255,255,255,.12);color:#fff;transition:background .2s,transform .3s var(--bk-ease)}
.bk-dlg .a .go{background:#fff;color:var(--bk-ink)}
.bk-dlg .a button:active,.bk-dlg .a a:active{transform:scale(.97)}
.bk-dlg .a [hidden]{display:none}
.bk-dlg .sd{margin:14px 0 0;font:400 14px/1.4 Jost,system-ui,sans-serif;color:rgba(255,244,224,.82)}
.bk-x,.bk-sh{all:unset;box-sizing:border-box;position:absolute;z-index:2;top:10px;display:grid;place-items:center;height:44px;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .3s var(--bk-ease),background-color .2s}
.bk-x{left:10px;width:44px;border-radius:50%}
.bk-x svg{width:14px;height:14px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round}
.bk-sh{right:10px;display:inline-flex;gap:8px;padding:0 16px 0 13px;border-radius:999px;font:600 15px/1 Jost,system-ui,sans-serif;color:#fff;background:rgba(255,255,255,.12)}
.bk-sh svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bk-sh .i1,.bk-sh[aria-pressed="true"] .i0{display:none}
.bk-sh[aria-pressed="true"] .i1{display:block}
.bk-sh[aria-pressed="true"]{color:var(--bk-warm)}
.bk-dlg.has-img .bk-x,.bk-dlg.has-img .bk-sh{background:rgba(18,18,20,.44);-webkit-backdrop-filter:blur(22px) saturate(1.5);backdrop-filter:blur(22px) saturate(1.5);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.36),inset 0 0 0 1px rgba(255,255,255,.13),inset 0 -1px 0 rgba(0,0,0,.28)}
.bk-x:active,.bk-sh:active{transform:scale(.94)}
.bk-dlg .a button:focus-visible,.bk-dlg .a a:focus-visible,.bk-x:focus-visible,.bk-sh:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media (prefers-reduced-transparency:reduce){.bk-dlg.has-img .bk-x,.bk-dlg.has-img .bk-sh{background:rgba(18,18,20,.84)}}
@media (prefers-reduced-motion:reduce){.bk-dlg[open]::backdrop{animation:none}.bk-dlg::backdrop{transition:none}}
/* v5, 20 Nov: the expies the Book opens wait here, hidden, full screen (js/book.js); the same frame as the home page's moments (.mt-xp in css/moments.css) */
.bk-xp{position:fixed;inset:0;z-index:300;pointer-events:none}
.bk-xp iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:transparent;color-scheme:normal;visibility:hidden;pointer-events:none}
.bk-xp iframe.on{visibility:visible;pointer-events:auto}
/* alone (v5): the Book dims behind an expie's popup; under it one line names where it came from and opens the whole expie there */
.bk-xp::before{content:'';position:absolute;inset:0;background:rgba(8,7,14,.66);opacity:0;transition:opacity .28s ease}
.bk-xp.dim::before{opacity:1}
.bk-from{all:unset;box-sizing:border-box;position:absolute;z-index:2;pointer-events:auto;display:inline-flex;align-items:center;min-height:44px;max-width:calc(100vw - 32px);padding:0 18px;border-radius:999px;
 background:rgba(18,16,26,.72);-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 0 0 1px rgba(255,255,255,.12);
 color:#fff;font:500 15px/1.2 Jost,system-ui,sans-serif;cursor:pointer;-webkit-tap-highlight-color:transparent;white-space:nowrap}
.bk-from[hidden]{display:none}
.bk-from:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media (hover:hover){.bk-from:hover{background:rgba(32,28,44,.8)}}
@media (prefers-reduced-motion:reduce){.bk-xp::before{transition:none}}
/* v6, 20 Nov: one realistic day (Arthur: "realistically this will not be like that in the app"). Two photos side by side under the day's name,
   Astra's line; the leaf holds Saved, Learned, Collected; the edges of earlier days show behind the page. */
.bk{padding-top:clamp(56px,8vh,96px);padding-bottom:clamp(64px,9vh,104px)}
.bk-copy{margin-bottom:clamp(28px,4vh,48px)}
.bk-pics{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3px}
.bk-pics .bk-photo{aspect-ratio:3/4;max-height:none;min-height:0}
.bk-dh b{font-size:clamp(28px,2.6vw,38px)}
.bk-say{font-size:clamp(19px,1.6vw,23px);padding:18px 24px 24px}
.bk-m{padding:20px 0 22px}
.bk-saved .bk-post{margin-top:10px;flex-direction:row;align-items:stretch}
.bk-saved .bk-post img{flex:none;width:96px;height:auto;aspect-ratio:auto;min-height:100px}
.bk-saved .bk-post span{padding:12px 16px 14px}
.bk-saved .bk-post q{font-size:16px}
.bk-coll{padding:14px 18px;gap:18px}
.bk-obj{width:72px}
#bkChips{display:contents}
/* the edges of earlier days, behind the page */
.bk-page{box-shadow:9px -9px 0 -3px #1c1928,18px -18px 0 -6px #15131e,var(--bk-shadow)}
@media (min-width:960px){
 .bk-page{box-shadow:none}
 .bk-sheet{box-shadow:9px -9px 0 -3px #1c1928,18px -18px 0 -6px #15131e,var(--bk-shadow)}
 .bk-cover{box-shadow:-9px -9px 0 -3px #1c1928,-18px -18px 0 -6px #15131e,var(--bk-shadow)}
}
@media (max-width:480px){.bk-page{box-shadow:7px -7px 0 -3px #1c1928,14px -14px 0 -6px #15131e,var(--bk-shadow)}.bk-say{padding:16px 18px 20px}.bk-dh b{font-size:28px}}
/* later on 20 Nov: the longer headline ("Everything is saved in your Book, and you can share it with the world.") at a size that keeps it to a few lines */
.bk-copy h2{font-size:clamp(32px,4.1vw,58px);line-height:1.04}
@media (min-width:960px){.bk-copy h2{max-width:13.5em}}
/* Share with your followers (a demo): the Book's own Share pill, as on its card (.bk-sh); pressed, it says so with a tick in the learned warm white */
.bk-share{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:6px 0 4px;padding:0 18px 0 14px;border-radius:999px;cursor:pointer;-webkit-tap-highlight-color:transparent;
 font:600 15px/1 Jost,system-ui,sans-serif;color:#fff;background:rgba(255,255,255,.12);transition:transform .3s var(--bk-ease),background-color .2s,color .2s}
.bk-share svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bk-share .i1,.bk-share[aria-pressed="true"] .i0{display:none}
.bk-share[aria-pressed="true"] .i1{display:block}
.bk-share[aria-pressed="true"]{color:var(--bk-warm)}
.bk-share:active{transform:scale(.97)}
.bk-share:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media (hover:hover){.bk-share:hover{background:rgba(255,255,255,.18)}}
@media (prefers-reduced-motion:reduce){.bk-share{transition:none}.bk-share:active{transform:none}}

/* 20 Nov (UI check: on phones the plague bill's card ran off the screen, its Close and Share scrolled away with it, the Wellcome button was cut
   by its bottom edge, and the picture's title was under the Close). The card itself no longer scrolls: Close and Share stay in its top corners,
   and only the words scroll, between the picture and the card's buttons, which stay at its foot. On a phone or a short window the picture takes
   at most about a third of the screen, and a collectible (a document whose words reach its edges) sits on the card under the two buttons, inset,
   its top showing, instead of under them */
.bk-dlg[open]{display:flex;flex-direction:column;overflow:hidden}
.bk-dlg img{flex:none}
.bk-db{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.24) transparent}
.bk-dlg .a{position:sticky;bottom:0;z-index:1;margin:16px -24px 0;padding:12px 24px 24px;background:linear-gradient(rgba(25,22,34,0),#191622 12px)}
.bk-db:has(>.a>:not([hidden])){padding-bottom:0}   /* the buttons' own foot is the card's foot */
.bk-db:has(>.a>:not([hidden])) .sd{margin-bottom:24px}
@media (max-width:600px),(max-height:640px){
 .bk-dlg.has-img img{max-height:34vh;max-height:34svh}
 .bk-dlg.has-img:has(#bkDA:not([hidden])){padding-top:64px}
 .bk-dlg.has-img:has(#bkDA:not([hidden])) img{width:calc(100% - 28px);margin:0 14px;border-radius:16px;object-position:50% 0;box-shadow:0 0 0 1px rgba(255,255,255,.12)}
 .bk-dlg.has-img:has(#bkDA:not([hidden])) .bk-x,.bk-dlg.has-img:has(#bkDA:not([hidden])) .bk-sh{background:rgba(255,255,255,.12);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}
 .bk-dlg .bk-db{padding:16px 20px 20px}
 .bk-dlg .a{margin:14px -20px 0;padding:12px 20px 20px}
}
@media (max-height:700px){.bk-dlg.has-img img{max-height:28vh;max-height:28svh}}
@media (max-height:500px){.bk-dlg.has-img:has(#bkDA:not([hidden])) img{object-position:50% 22%}}   /* a thin strip: the bill's title rather than its top border */
.bk-dlg .a button,.bk-dlg .a a{line-height:1.2;padding-top:6px;padding-bottom:6px;text-wrap:balance}   /* a label that must wrap on a small phone wraps as a two-line pill */
