/* 🍋 AMSP Edition 003 · Review 015.11 · PRIVATE revision layer (22 Nov 2026).
   Loaded after r01510.css. Remove its <link> in /003/index.html to return these rules to 015.10.
   Covers only: Origin ¶08 title links + Half Life preview, and the Credits dinosaur size. The afterword has its own file. */

/* ───────── 02 · Origin ¶08 · the two book titles are links ─────────
   Same italic, same size, same colour as the sentence; a quiet lemon underline says "link". */
body.e003-review #origin-story .essay-body a.r01511-booklink{color:inherit;text-decoration:underline;text-decoration-color:rgba(241,223,33,.75);
  text-decoration-thickness:1px;text-underline-offset:.18em;transition:text-decoration-color .15s}
body.e003-review #origin-story .essay-body a.r01511-booklink:hover{text-decoration-color:var(--lemon,#f1df21);text-decoration-thickness:2px}
body.e003-review #origin-story .essay-body a.r01511-booklink:focus-visible{outline:2px solid var(--lemon,#f1df21);outline-offset:3px;border-radius:2px}

/* ───────── 02 · Half Life preview (JS adds --gutter or --compact; [hidden] without JS) ───────── */
body.e003-review #origin-story .essay-body{position:relative}
.r01511-book[hidden],.r01511-book__fig[hidden],.r01511-book__toggle[hidden]{display:none!important}
.r01511-book{margin:0}
.r01511-book__fig{margin:0}
.r01511-book__fig img{display:block;width:100%;height:auto;aspect-ratio:1/1;background:#fff}
.r01511-book__fig figcaption{font:500 11px/1.45 'IBM Plex Mono',ui-monospace,monospace;letter-spacing:.06em;color:#d9d3ea;margin:8px 0 0}
.r01511-book__fig figcaption em{font-style:italic;letter-spacing:.02em}

/* gutter (wide window + mouse): a small photographic print in the left margin, level with the link; never over the column */
.r01511-book--gutter .r01511-book__fig{position:absolute;z-index:6;padding:6px 6px 8px;background:#fbfaf6;box-shadow:0 10px 30px rgba(0,0,0,.45);
  border-radius:2px;opacity:0;transform:translateY(6px);transition:opacity .16s ease-out,transform .16s ease-out;pointer-events:auto}
.r01511-book--gutter .r01511-book__fig figcaption{color:#3b3346;margin:6px 2px 0}
.r01511-book--gutter.is-showing .r01511-book__fig{opacity:1;transform:none}

/* compact (touch, or no free margin): a small button under ¶08 that expands the picture in the text flow */
.r01511-book--compact{margin:-.35em 0 1.6em}
.r01511-book__toggle{display:inline-flex;align-items:center;gap:.5em;min-height:44px;padding:0 2px;background:none;border:0;cursor:pointer;
  font:600 12px/1 'IBM Plex Mono',ui-monospace,monospace;letter-spacing:.12em;text-transform:uppercase;color:var(--lemon,#f1df21);text-decoration:none}
.r01511-book__label{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.35em}
.r01511-book__toggle:hover .r01511-book__label{text-decoration-thickness:2px}
.r01511-book__toggle:focus-visible{outline:2px solid var(--lemon,#f1df21);outline-offset:2px;border-radius:2px}
.r01511-book__sign{display:inline-block;font-size:15px;transition:transform .16s ease-out}
.r01511-book.is-open .r01511-book__sign{transform:rotate(45deg)}
.r01511-book--compact .r01511-book__fig{width:min(320px,100%);margin:6px 0 0;padding:6px 6px 8px;background:#fbfaf6;border-radius:2px}
.r01511-book--compact .r01511-book__fig figcaption{color:#3b3346;margin:6px 2px 0}

@media (prefers-reduced-motion:reduce){
  .r01511-book--gutter .r01511-book__fig,.r01511-book__sign,body.e003-review #origin-story .essay-body a.r01511-booklink{transition:none}
  .r01511-book--gutter .r01511-book__fig{transform:none}
}
@media print{.r01511-book{display:none}}

/* ───────── 09 → afterword · Credits dinosaur size ─────────
   015.11 candidate: stays at 150 px at full width (the 015.10 size). Measured against 165 px with the new free-space
   controller, 150 px fits the 1440 margins beside the Credits text where 165 px does not, so it plays more often.
   Private comparison: add ?dino=165 to the page URL for the 015.9 size (sets html[data-r01511-dino="165"]). */
.r0152-dino-lane img,.r0159-dino-layer img{width:clamp(105px,10.42vw,150px)}
html[data-r01511-dino="165"] .r0152-dino-lane img,html[data-r01511-dino="165"] .r0159-dino-layer img{width:clamp(115px,11.75vw,165px)}
