/* The stall. Minimal: white, one ink, Fragment Mono small for the interface; grey is the second voice (no italics). */
:root {
  --bg: #ffffff;
  --page: #fbfbf9;
  --ink: #1c1c1c;
  --mid: #7a7973;
  --rule: #cfcec8;
  --board: #ffffff;
  --newsprint: #ecebe6;
  --ui: 10.119px; --mono: 'Mesagni Mono', 'Fragment Mono', ui-monospace, monospace;
  --serif: 'EB Garamond', Garamond, serif;
  --news: 'Old Standard TT', 'Times New Roman', serif;
  --mast: 'IM Fell Double Pica', 'Old Standard TT', serif;
  --ease: cubic-bezier(.45, .05, .3, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body { font: var(--ui)/1.4 var(--mono); overflow: hidden; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
a { color: inherit; }

#stall { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; }
#veil { position: fixed; inset: 0; background: var(--bg); opacity: 0; pointer-events: none; z-index: 45; transition: opacity .25s ease; }
#veil.on { opacity: 1; }
.sr-list { position: fixed; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; padding: 0; list-style: none; }

#loading { position: fixed; inset: 0; display: flex; justify-content: center; align-items: center; gap: 2px; z-index: 50; color: var(--mid); pointer-events: none; transition: opacity .3s; }
#loading.done { opacity: 0; }
.caret { display: inline-block; width: .55em; height: 1em; background: currentColor; vertical-align: -.15em; margin-left: 2px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── interface: icons only ─────────────────────────────────────────────── */
.ico { width: 30px; height: 30px; display: grid; place-items: center; position: fixed; z-index: 30; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
#back { top: 14px; left: 14px; }
#anim { bottom: 14px; left: 14px; }
#anim svg { width: 24px; height: 24px; stroke-width: .9; }
#anim .pose-still { display: none; }
.no-anim #anim .pose-still { display: inline; }
.no-anim #anim .pose-move { display: none; }

#pager { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 4px; color: var(--mid); }
#pager .ico { position: static; }
#count { min-width: 7em; text-align: center; }

.cbox { position: fixed; left: 14px; top: 50%; transform: translateY(-50%); z-index: 31; }
.cbox .c { width: 30px; height: 30px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font: 15px/1 var(--mono); padding-top: 1px; background: var(--bg); }
.toc-panel { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); min-width: 180px; max-height: 70vh; overflow: auto; background: var(--bg); border: 1px solid var(--ink); padding: 4px 0; display: none; }
.cbox:hover .toc-panel, .cbox:focus-within .toc-panel, .cbox.open .toc-panel { display: block; }
.toc-panel button { display: flex; width: 100%; justify-content: space-between; gap: 18px; padding: 2px 10px; text-align: left; white-space: nowrap; }
.toc-panel button i { font-style: normal; color: var(--mid); }
.toc-panel button:hover, .toc-panel button:focus-visible { background: var(--ink); color: var(--bg); outline: none; }
.toc-panel button.here::before { content: '\25CF'; position: absolute; left: 3px; font-size: 5px; line-height: 15px; }
.toc-panel button { position: relative; }

#tip { position: fixed; z-index: 70; left: -999px; top: 0; pointer-events: none; background: var(--ink); color: var(--bg); padding: 4px 7px 5px; max-width: 260px; opacity: 0; }
#tip.on { opacity: 1; }
#tip span { display: block; }
#tip .tip-sub { color: #a9a8a2; }
#tip .caret { width: .5em; height: .9em; margin-left: 1px; }

/* ── views ─────────────────────────────────────────────────────────────── */
.view { position: fixed; inset: 0; z-index: 20; background: var(--bg); overflow: hidden; }
#view-body { outline: none; min-height: 100%; }
.view--book #view-body, .view--news #view-body { height: 100%; display: grid; place-items: center; }
.fb-host { display: grid; place-items: center; width: 100%; height: 100%; }

/* ── flipbook ─────────────────────────────────────────────────────────── */
.fb { perspective: 3800px; display: grid; place-items: center; user-select: none; }
.fb-book { position: relative; width: calc(var(--pw) * 2); height: var(--ph); transform-style: preserve-3d; transform: translateX(var(--shift, 0%)); transition: transform .8s var(--ease); }
.fb--single .fb-book { width: var(--pw); transform: none; }
.fb-leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform .35s var(--ease); cursor: pointer; }
.fb--single .fb-leaf { left: 0; width: 100%; }
.fb-leaf.turned { transform: rotateY(-180deg); }
.fb-leaf.peek { transform: rotateY(-8deg); }
.fb-leaf.turned.peek { transform: rotateY(-172deg); }
.fb-leaf.anim { transition: none; }
.fb-leaf.is-hidden { visibility: hidden; }
.fb-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; background: var(--page); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.14); }
.fb-back { transform: rotateY(180deg); }
.fb-front::after, .fb-back::after { content: ''; position: absolute; top: 0; bottom: 0; width: 3%; pointer-events: none; }
.fb-front::after { left: 0; background: linear-gradient(90deg, rgba(0,0,0,.06), transparent); }
.fb-back::after { right: 0; background: linear-gradient(270deg, rgba(0,0,0,.06), transparent); }
.fb--single .fb-face::after { display: none; }
.fb-shade { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: rgba(0,0,0,.12); z-index: 3; }
.ghost { display: none; }

/* ── art book pages ───────────────────────────────────────────────────── */
.pg { position: absolute; inset: 0; padding: 10% 10% 9%; font: var(--fs, 9px)/1.5 var(--serif); color: var(--ink); }
.pg-in { height: 100%; display: flex; flex-direction: column; }
.rh { position: absolute; top: 4.6%; left: 10%; color: var(--mid); }
.pg-l .rh { left: 10%; } .pg-r .rh { left: auto; right: 10%; }
.fo { position: absolute; bottom: 4.6%; color: var(--mid); }
.pg-l .fo { left: 10%; } .pg-r .fo { right: 10%; }
.pg h2 { font: 400 1em/1.5 var(--serif); margin: 0 0 2.5em; }
.pg p { margin: 0 0 1em; max-width: 30em; }
.pg figure { margin: 0; display: flex; flex-direction: column; min-height: 0; flex: 1; }
.pg-text figure { margin-top: 2em; }
.pg figure img { flex: 1; min-height: 0; width: 100%; object-fit: cover; display: block; }
.pg figcaption { margin-top: .7em; display: flex; flex-direction: column; color: var(--ink); font-size: .9em; line-height: 1.35; }
.pg figcaption span + span { color: var(--mid); }
.pg-two .pg-in { gap: 6%; }
.pg-facts dl { display: grid; grid-template-columns: 7em 1fr; gap: .35em 1em; margin: 0 0 2.5em; }
.pg-facts dt { color: var(--mid); }
.pg-facts dd { margin: 0; }
.pg-cover { padding: 0; }
.pg-cover .pg-in { gap: 0; }
.cv-img { flex: 1; min-height: 0; }
.cv-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-t { padding: 4% 8% 5%; display: flex; justify-content: space-between; }
.cv-t span + span { color: var(--mid); }
.pg-title .pg-in { justify-content: flex-start; }
.pg-title h1 { font: 400 1.6em/1.2 var(--serif); margin: 0 0 1em; }
.pg-title .by { margin-top: auto; color: var(--mid); }
.contents { list-style: none; padding: 0; margin: 0; }
.contents li { display: flex; justify-content: space-between; padding: .2em 0; }
.contents li span + span { color: var(--mid); }
.pg-back { display: flex; align-items: flex-end; padding: 8%; color: var(--mid); }

/* ── newspaper: printed, black and white ──────────────────────────────── */
.fb--news .fb-face { background: var(--newsprint); filter: grayscale(1); }
.np-page { font-family: var(--news); color: #161616; padding: 6% 6% 5%; }
.np-page .pg-in { display: block; }
.mast { display: flex; align-items: center; justify-content: space-between; gap: 1em; border-bottom: 3px double #161616; padding-bottom: .3em; font-size: .85em; }
.mast h1 { font: 400 4.6em/1 var(--mast); margin: 0; text-align: center; flex: 1; }
.dateline { display: flex; justify-content: space-between; font-size: .85em; border-bottom: 1px solid #161616; padding: .3em 0; }
.np-page h2 { font: 700 2em/1.05 var(--news); margin: .5em 0 .3em; }
.np-page .deck { font-style: italic; font-size: 1.1em; margin: 0 0 .8em; padding-bottom: .7em; border-bottom: 1px solid #161616; }
.np-grid { display: grid; grid-template-columns: 3fr 1fr; gap: 1.2em; }
.np-cols { columns: 2; column-gap: 1.2em; column-rule: 1px solid #161616; }
.np-page p { margin: 0; line-height: 1.4; text-align: justify; hyphens: auto; text-indent: 1em; }
.np-cols > p:first-of-type { text-indent: 0; }
.ht { margin: 0 0 .8em; break-inside: avoid; }
.ht img { width: 100%; aspect-ratio: var(--r, 4/5); object-fit: cover; display: block; }
.ht figcaption { display: flex; flex-direction: column; font-size: .8em; margin-top: .3em; line-height: 1.3; }
.ht figcaption span:first-child { font-style: italic; }
.briefs { border-left: 1px solid #161616; padding-left: 1.2em; }
.np-page h4 { font: 700 1em var(--news); border-bottom: 2px solid #161616; margin: 0 0 .5em; padding-bottom: .2em; }
.briefs h4 + div, .briefs div { padding: .2em 0 .6em; border-bottom: 1px solid #161616; }
.briefs h4:not(:first-child) { margin-top: 1.4em; }
.np-page h5 { font: 700 1em/1.2 var(--news); margin: 0 0 .2em; }
.briefs p, .classifieds p, .np-stories p { text-indent: 0; text-align: left; }
.inside { list-style: none; padding: 0; margin: 0; }
.inside li { display: flex; justify-content: space-between; padding: .15em 0; }
.np-folio { display: flex; justify-content: space-between; font-size: .8em; border-bottom: 2px solid #161616; padding-bottom: .3em; }
.np-table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; }
.np-table td { border-bottom: 1px solid #161616; padding: .45em .6em .45em 0; vertical-align: top; }
.np-table td:first-child { width: 14%; } .np-table td:nth-child(2) { font-weight: 700; }
.np-stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2em; }
.np-stories article { border-right: 1px solid #161616; padding-right: 1.2em; }
.np-stories article:last-child { border: 0; padding: 0; }
.np-stories h3 { font: 700 1.2em/1.15 var(--news); margin: .2em 0 .4em; }
.np-empty { border: 1px solid #161616; padding: 3em 2em; margin: 1em 0 1.6em; text-align: center; font-style: italic; }
.np-empty p { text-align: center; text-indent: 0; }
.classifieds { columns: 2; column-gap: 1.2em; }
.classifieds div { break-inside: avoid; padding: .2em 0 .6em; border-bottom: 1px solid #161616; }

/* ── small books: proofs on a pasteboard ──────────────────────────────── */
.view--print { background: var(--board); overflow-y: auto; }
.pasteboard { display: flex; flex-direction: column; align-items: center; gap: 48px; padding: 64px 80px 110px; }
.sheet { width: 100%; display: flex; justify-content: center; }
.sheet-svg { display: block; height: auto; background: #fff; }
.sheet-svg .slug { font: 2px var(--serif); fill: #000; }

/* ── small screens ────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .pasteboard { padding: 60px 12px 100px; gap: 28px; }
  .cbox { top: auto; bottom: 14px; left: 54px; transform: none; }
  .toc-panel { top: auto; bottom: 40px; left: 0; transform: none; }
  #pager { left: auto; right: 10px; transform: none; }
  .np-grid { grid-template-columns: 1fr; }
  .np-cols { columns: 1; }
  .briefs { border-left: 0; padding-left: 0; }
  .np-stories { grid-template-columns: 1fr; }
  .np-stories article { border-right: 0; padding-right: 0; border-bottom: 1px solid #161616; padding-bottom: .8em; }
  .mast h1 { font-size: 3.2em; }
}

.no-anim *, .no-anim *::before, .no-anim *::after { transition: none !important; animation: none !important; }

.np-second { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1.2em; margin-top: 1.2em; padding-top: .8em; border-top: 3px double #161616; }
.np-second .ht { margin: 0; }
.np-second h3 { font: 700 1.4em/1.1 var(--news); margin: 0 0 .5em; }
.np-shelf { margin-top: 1.4em; }
.np-shelf ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9em, 1fr)); gap: .3em 1.2em; }
.np-shelf li { display: flex; flex-direction: column; padding: .3em 0; border-bottom: 1px solid #161616; }
.np-shelf a { font-weight: 700; text-decoration: none; }
.np-shelf a:hover { text-decoration: underline; }
@media (max-width: 720px) { .np-second { grid-template-columns: 1fr; } }
.np-page p { max-width: none; }
@media (max-width: 720px) {
  .np-cols .ht { max-width: 55%; }
  .np-second, .inside, .briefs h4:not(:first-child) { display: none; }
}

/* ── the street: scroll sideways ──────────────────────────────────────── */
#stall { z-index: 0; }
#scroller { position: fixed; inset: 0; z-index: 1; overflow-x: auto; overflow-y: hidden; overscroll-behavior: none; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#scroller::-webkit-scrollbar { display: none; }
#scroll-track { height: 100%; }
#pan { position: fixed; bottom: 22px; left: 50%; width: 72px; height: 1px; margin-left: -36px; background: rgba(242,241,237,.55); z-index: 5; pointer-events: none; }
#pan i { position: absolute; top: -1px; width: 14px; height: 3px; margin-left: -7px; background: var(--bg); }
.ico { border-radius: 50%; background: rgba(242,241,237,.9); }

/* the Vitruvian man: drawn, not a stick figure */
#anim { width: 46px; height: 46px; bottom: 10px; left: 10px; background: rgba(236,235,230,.92); }
#anim svg { width: 42px; height: 42px; stroke: #2a2a2c; fill: none; stroke-linecap: round; stroke-linejoin: round; }
#anim .frame rect, #anim .frame circle { stroke-width: .9; }
#anim .frame .faint { stroke-width: .5; opacity: .45; }
#anim .grid { stroke-width: .35; opacity: .25; }
#anim .lo { stroke: #2a2a2c; }
#anim .li { stroke: #ecebe6; }
#anim .body { fill: #ecebe6; stroke-width: .95; }
#anim .ln { stroke-width: .7; }
#anim .faint { opacity: .55; }
#anim .dotf { fill: #2a2a2c; stroke: none; }
#anim:hover .frame rect, #anim:hover .frame circle { stroke-width: 1.15; }

#pan { background: rgba(28,28,28,.25); }
#pan i { background: var(--ink); }

/* secondary voice: italic */
#tip .tip-sub, #count, #loading, .toc-panel button i { font-style: normal; color: var(--mid); }
#tip { font-size: var(--ui); line-height: 1.35; }
.toc-panel button { font-size: var(--ui); padding: 3px 12px; }

/* ── where you are ────────────────────────────────────────────────────── */
#place { position: fixed; top: 14px; left: 16px; margin: 0; z-index: 30; font: var(--ui)/1.4 var(--mono); color: var(--ink); pointer-events: none; }
#place i { font-style: normal; color: var(--mid); }

/* ── the bin up close ─────────────────────────────────────────────────── */
.view--bin { overflow: auto; }
.view--bin #view-body { min-height: 100%; display: block; }
.binview { min-height: 100vh; display: grid; grid-template-columns: auto 230px; justify-content: center; align-items: center; gap: 24px; padding: 60px 40px 60px 70px; font: var(--ui)/1.45 var(--mono); }
.binview p { margin: 0 0 .6em; }
.binview .it { font-style: normal; color: var(--mid); }
.bv-stage { display: grid; place-items: center; }
.bv-face { --cm: 6px; position: relative; width: calc(50 * var(--cm)); height: calc(80 * var(--cm)); background:
    linear-gradient(90deg, rgba(0,0,0,.18), rgba(255,255,255,.04) 30%, rgba(0,0,0,.1)),
    var(--grain) 0 0 / 256px, #5c6560; background-blend-mode: normal, multiply, normal; box-shadow: 0 calc(.6 * var(--cm)) calc(2 * var(--cm)) rgba(0,0,0,.25); }
.bv-hood { position: absolute; left: -2%; right: -2%; top: calc(-2 * var(--cm)); height: calc(20 * var(--cm)); background: var(--grain) 0 0 / 256px, #6b746f; background-blend-mode: multiply; box-shadow: 0 calc(.4 * var(--cm)) calc(.8 * var(--cm)) rgba(0,0,0,.3); }
.bv-slot { position: absolute; left: 16%; right: 16%; top: 22%; height: 55%; background: #0b0b0b; box-shadow: inset 0 calc(.5 * var(--cm)) 0 #1f2321; }
.bv-panel { position: absolute; left: calc(2 * var(--cm)); bottom: calc(5 * var(--cm)); width: calc(46 * var(--cm)); height: calc(70 * var(--cm)); }
.bv-panel img { position: absolute; user-select: none; }
.bv-panel img.mine { cursor: pointer; }
.bv-panel img.mine:hover { outline: 1px dashed rgba(255,255,255,.7); outline-offset: 2px; }
.bv-panel img.fresh { animation: slap .35s cubic-bezier(.3,1.6,.5,1); }
.bv-panel img.ripping { transition: transform .45s ease-in, opacity .45s ease-in; transform: translate(-30%, -20%) rotate(-24deg) scale(1.08) !important; opacity: 0; }
@keyframes slap { from { scale: 1.25; opacity: .2; } to { scale: 1; opacity: 1; } }
.bv-face::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: var(--grain) 0 0 / 256px; mix-blend-mode: multiply; opacity: .28; }
.bv-rivet { position: absolute; width: calc(.8 * var(--cm)); height: calc(.8 * var(--cm)); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #9aa29d, #3d4440); }
.bv-btn { font: var(--ui)/1 var(--mono); border: 1px solid var(--ink); padding: 7px 12px; background: var(--bg); margin: 0 6px 6px 0; cursor: pointer; display: inline-block; }
.bv-btn:hover { background: var(--ink); color: var(--bg); }
.bv-btn.ghost { border-color: transparent; color: var(--mid); }
.bv-btn:disabled { opacity: .4; cursor: default; background: var(--bg); color: var(--ink); }
.bv-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bv-file:focus-within { outline: 1px solid var(--ink); outline-offset: 3px; }
.bv-confirm { position: fixed; z-index: 40; background: var(--bg); border: 1px solid var(--ink); padding: 10px 12px 6px; max-width: 220px; }
.bv-modal { position: fixed; inset: 0; z-index: 40; background: rgba(255,255,255,.86); display: grid; place-items: center; }
.bv-card { background: var(--bg); border: 1px solid var(--ink); padding: 16px 18px 10px; width: min(320px, calc(100vw - 32px)); }
.bv-preview { --pcm: 13px; position: relative; height: 200px; margin: 10px 0; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(90deg, #8d9092, #e6e8e9 25%, #a9acae 60%, #7d8082); }
.bv-preview img { max-width: none; }
.bv-preview span { color: #c8ccc9 !important; }
.bv-size { display: block; margin: 4px 0 8px; }
.bv-size input { width: 100%; accent-color: var(--ink); }
.bv-cm { color: var(--mid); }
@media (max-width: 760px) {
  .binview { grid-template-columns: 1fr; padding: 56px 16px 40px; }
}

/* one flat white behind everything */
html, body, .view, #veil, #loading { background: #fff; }
#loading { background: transparent; }

/* ── [+] quick look ───────────────────────────────────────────────────── */
#plus-layer { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
#plus-layer .plus { position: absolute; left: 0; top: 0; pointer-events: auto; }
.plus { font: var(--ui)/1 var(--mono); color: var(--ink); background: none; padding: 2px 1px; cursor: pointer; }
#plus-layer .plus { background: rgba(255,255,255,.88); padding: 2px 3px; }
.plus:hover, .plus[aria-expanded="true"] { text-decoration: underline; text-underline-offset: 2px; }

/* ── open vault ───────────────────────────────────────────────────────── */
.textbtn { position: fixed; right: 16px; bottom: 16px; z-index: 32; font: var(--ui)/1 var(--mono); color: var(--ink); background: rgba(255,255,255,.9); padding: 6px 4px; }
.textbtn:hover { text-decoration: underline; text-underline-offset: 2px; }
#vault-scroll { position: fixed; inset: 0; z-index: 4; overflow-y: auto; overscroll-behavior: contain; }
.vault-spacer { height: 100vh; position: relative; }
.vault-hint { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; margin: 0; font: var(--ui)/1 var(--mono); color: var(--mid); }
#vault { min-height: 100vh; background: #fff; padding: 64px 16px 96px; font: var(--ui)/1.6 var(--mono); }
.vault-h { margin: 0 0 36px; max-width: 420px; }
.vault-h p { margin: 0 0 4px; }
.vault-h .it, #vault .it { font-style: normal; }
.vault-h .it { color: var(--mid); }
.vault-h .it { color: var(--mid); }
.vault-list { list-style: none; margin: 0; padding: 0; }
.vault-list li { padding: 0 0 56px; }
.vault-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; align-items: flex-end; }
.vault-imgs .vt { display: block; height: min(62vh, 520px); width: auto; max-width: 100%; object-fit: cover; cursor: pointer; }
.vault-imgs .vt.blank { background: #efefed; cursor: default; height: min(62vh, 520px); }
.vault-list li:not(:has(.plus)) .vt { cursor: default; }
@media (max-width: 720px) { .vault-imgs .vt { height: auto; width: 100%; } }
.vault-list li.locked > span { color: var(--mid); }
.unlock { display: inline-flex; gap: 6px; align-items: baseline; margin-left: 10px; }
.unlock input { font: var(--ui) var(--mono); border: 0; border-bottom: 1px solid var(--ink); width: 120px; padding: 0 2px; background: transparent; }
.unlock button { font: var(--ui) var(--mono); text-decoration: underline; text-underline-offset: 2px; }
body.vault-open #scroller, body.vault-open #pan { display: none; }

/* tooltips: plain white strips hugging the text */
#tip { background: none !important; color: var(--ink); padding: 0; max-width: 280px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; opacity: 1; }
#tip span { display: block; }
#tip b { font-weight: 400; background: #fff; padding: 0 3px; line-height: 1.3; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
#tip .tip-hint b { color: var(--mid); }
#tip .tip-sub { color: var(--ink); }
#tip span { clip-path: inset(0 100% 0 0); }
#tip.on span { animation: tipwipe .22s cubic-bezier(.3,.7,.3,1) forwards; }
#tip.on span + span { animation-delay: .06s; }
@keyframes tipwipe { to { clip-path: inset(0 0 0 0); } }
.no-anim #tip.on span { clip-path: none; }
.cbox .c { font: 17px/1 var(--mono); padding: 0 0 2px; }

/* quick look: bottom right; the bottom half on phones */
.ql { position: fixed; z-index: 75; right: 16px; bottom: 56px; width: max(340px, 33vw); max-height: calc(100vh - 80px); overflow: auto; background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(10px) saturate(.9); backdrop-filter: blur(10px) saturate(.9); padding: 10px 10px 8px; font: var(--ui)/1.4 var(--mono); color: var(--ink); }
.ql p { margin: 0 0 3px; }
.ql-cat { margin: 0 0 6px !important; }
.ql-ss { position: relative; margin: 0 0 6px; user-select: none; }
.ql-ss img { width: 100%; display: block; aspect-ratio: 60 / 42; object-fit: cover; }
.ql-n { color: var(--mid); margin-left: 6px; }
.ss-arrows { display: none; position: absolute; top: 50%; transform: translateY(-50%); font: var(--ui)/1 var(--mono); background: #fff; padding: 4px 6px; }
.ss-arrows.prev { left: 0; } .ss-arrows.next { right: 0; }
@media (pointer: coarse) { .ss-arrows { display: block; } }
@media (max-width: 720px) {
  .ql { left: 0; right: 0; bottom: 0; width: auto; height: 50vh; max-height: 50vh; padding: 14px 14px 10px; border-top: 1px solid var(--ink); }
  .ql-ss img { max-height: calc(50vh - 110px); }
}
/* the slideshow cursor */
.ss-cursor { display: none !important;  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; font: 18px/1 var(--mono); color: var(--ink); background: #fff; padding: 1px 4px 3px; opacity: 0; }
.ss-cursor.on { opacity: 1; }
.ss-cursor.dim { opacity: .3; }
/* on touch screens the book's arrows sit at its ends */
@media (pointer: coarse) {
  .view--book #pager, .view--news #pager { left: 0; right: 0; transform: none; bottom: 50%; justify-content: space-between; padding: 0 4px; pointer-events: none; }
  .view--book #pager .ico, .view--news #pager .ico { pointer-events: auto; background: rgba(255,255,255,.9); }
  .view--book #count, .view--news #count { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); }
}

/* ── the wallet, emptied on the desk ──────────────────────────────────── */
.view--wallet #view-body { height: 100%; display: grid; place-items: center; }
.walletview { width: 100%; height: 100%; display: grid; place-items: center; padding-top: 30px; }
.w-desk { --mm: 2px; position: relative; touch-action: none; user-select: none; }
.w-item { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; cursor: grab; box-shadow: 0 calc(.6 * var(--mm)) calc(1.6 * var(--mm)) rgba(0,0,0,.18); transition: box-shadow .15s; }
.w-item.lifted { cursor: grabbing; box-shadow: 0 calc(2.5 * var(--mm)) calc(6 * var(--mm)) rgba(0,0,0,.22); }
.w-item > * { width: 100%; height: 100%; }
.w-item p, .w-item ul, .w-item dl { margin: 0; }
/* wallet */
.w-wallet-box { box-shadow: 0 calc(1 * var(--mm)) calc(3 * var(--mm)) rgba(0,0,0,.25); border-radius: calc(4 * var(--mm)); }
.w-leather { display: flex; border-radius: calc(4 * var(--mm)); background: #46302a; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: calc(1.2 * var(--mm)) calc(1.2 * var(--mm)); overflow: hidden; }
.w-half { flex: 1; position: relative; padding: calc(8 * var(--mm)) calc(7 * var(--mm)); display: flex; flex-direction: column; gap: calc(5 * var(--mm)); outline: 1px dashed rgba(255,235,210,.25); outline-offset: calc(-2.5 * var(--mm)); }
.w-fold { width: calc(3 * var(--mm)); background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.06), rgba(0,0,0,.35)); }
.w-slot { display: block; height: calc(14 * var(--mm)); border-top: calc(.6 * var(--mm)) solid #3a2620; border-radius: calc(1 * var(--mm)); background: linear-gradient(#5a3e34, #4a332b); }
.w-pocket { position: absolute; inset: calc(10 * var(--mm)) calc(7 * var(--mm)); border-top: calc(.6 * var(--mm)) solid #3a2620; background: #503830; }
/* cash: drawings of notes, not copies */
.w-cash { position: relative; background: var(--c); border-radius: calc(1 * var(--mm)); overflow: hidden; color: var(--k); font-family: var(--serif); }
.w-cash::before { content: ''; position: absolute; right: 8%; top: 12%; width: 30%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.28); }
.w-cash svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.w-cash-n { position: absolute; left: 6%; top: 8%; font: 700 calc(16 * var(--mm))/1 var(--serif); }
.w-cash-n.small { left: auto; top: auto; right: 6%; bottom: 8%; font-size: calc(7 * var(--mm)); }
.w-cash-w { position: absolute; left: 6%; bottom: 10%; font: italic calc(3.4 * var(--mm))/1 var(--serif); }
/* id card */
.w-id-box { border-radius: calc(3 * var(--mm)); }
.w-id { background: #e9eef0; border-radius: calc(3 * var(--mm)); padding: calc(4 * var(--mm)); display: grid; grid-template-columns: calc(20 * var(--mm)) 1fr; grid-template-rows: auto 1fr auto; column-gap: calc(4 * var(--mm)); font: calc(2.4 * var(--mm))/1.35 var(--mono); color: #1d2a33; overflow: hidden; }
.w-id-h { grid-column: 1 / -1; font-weight: 700; letter-spacing: .08em; font-size: calc(2.6 * var(--mm)); margin-bottom: calc(2.5 * var(--mm)) !important; color: #2f4a5a; }
.w-id img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; grid-row: 2 / 4; }
.w-id dl { display: grid; grid-template-columns: auto 1fr; gap: 0 calc(2 * var(--mm)); }
.w-id dt { font-style: italic; color: #5d7280; }
.w-id dd { margin: 0; }
.w-sig { font: calc(5 * var(--mm))/1 "Covered By Your Grace", cursive; color: #1d3a8a; align-self: end; }
.w-id-no { grid-column: 1 / -1; font-size: calc(1.8 * var(--mm)); color: #5d7280; text-align: right; }
/* business cards */
.w-card { background: #fbfaf7; padding: calc(6 * var(--mm)); font-family: var(--mono); color: var(--ink); position: relative; }
.w-studio-m { font: italic calc(6 * var(--mm))/1 var(--mono); }
.w-studio-s { font: calc(2.6 * var(--mm))/1.4 var(--mono); color: var(--mid); margin-top: calc(1 * var(--mm)) !important; }
.w-studio-f { position: absolute; left: calc(6 * var(--mm)); bottom: calc(5 * var(--mm)); font: calc(2.6 * var(--mm))/1.4 var(--mono); }
.w-plants { background: #f3efe0; }
.w-plants svg { position: absolute; right: calc(5 * var(--mm)); top: calc(5 * var(--mm)); width: calc(14 * var(--mm)); }
.w-plants-h { font: 700 calc(5.4 * var(--mm))/1 "Anton", Impact, sans-serif; color: #2f5a3a; letter-spacing: .02em; }
.w-plants-s { margin-top: calc(4 * var(--mm)) !important; font: calc(2.6 * var(--mm))/1.45 var(--mono); color: #2f3a30; }
/* bandaid */
.w-bandaid-box { border-radius: calc(9 * var(--mm)); box-shadow: 0 calc(.3 * var(--mm)) calc(.8 * var(--mm)) rgba(0,0,0,.15); }
.w-bandaid { border-radius: calc(9 * var(--mm)); background: #d7a985; background-image: radial-gradient(rgba(120,70,40,.35) 18%, transparent 22%); background-size: calc(2.4 * var(--mm)) calc(2.4 * var(--mm)); position: relative; }
.w-bandaid i { position: absolute; left: 36%; right: 36%; top: 14%; bottom: 14%; background: #efe3d4; border-radius: calc(1 * var(--mm)); }
/* the note */
.w-note { background: #f4f0e4 repeating-linear-gradient(transparent 0 calc(7 * var(--mm) - 1px), rgba(80,110,160,.3) calc(7 * var(--mm) - 1px) calc(7 * var(--mm))); padding: calc(7 * var(--mm)) calc(6 * var(--mm)); font: calc(4.6 * var(--mm))/calc(7 * var(--mm)) "Covered By Your Grace", cursive; color: #1e2a55; clip-path: polygon(0 1.5%, 6% 0, 12% 1.2%, 20% .2%, 30% 1.4%, 41% .3%, 52% 1.3%, 63% .2%, 74% 1.1%, 86% .1%, 94% 1.3%, 100% .4%, 100% 100%, 0 100%); }
.w-note-h { text-decoration: underline; margin-bottom: calc(1 * var(--mm)) !important; }
.w-note ul { list-style: none; padding: 0; }
.w-note li::before { content: '- '; }


/* the vault button: a lock that opens on hover and while the vault is open */
.vaultbtn { position: fixed; right: 12px; bottom: 10px; z-index: 32; width: 32px; height: 32px; padding: 2px; background: none; color: var(--ink); cursor: pointer; }
.vaultbtn svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; overflow: visible; }
.vaultbtn .body { fill: #fff; }
.vaultbtn .shackle { transition: transform .35s cubic-bezier(.3,.7,.3,1); transform-origin: 21px 14.5px; }
.vaultbtn:hover .shackle, .vaultbtn.on .shackle { transform: translateY(-2.5px) rotate(28deg); }

/* the way back to kingslyarul.com: a small K mark, top right, kept quiet */
#home { position: fixed; top: 12px; right: 14px; z-index: 30; display: flex; align-items: center; gap: 5px; color: var(--mid); text-decoration: none; font: var(--ui)/1 var(--mono); }
#home .k { display: grid; place-items: center; width: 17px; height: 17px; background: #000; color: #fff; font: var(--ui)/1 var(--mono); padding-top: 1px; }
#home .arr { transition: transform .2s; }
#home:hover { color: var(--ink); }
#home:hover .arr { transform: translateX(-2px); }
