:root { color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; background: #0d0e10; color: #f5f2ea; font: 16px/1.6 Arial, Helvetica, sans-serif; letter-spacing: 0; }
a { color: #a9e7ed; text-underline-offset: 3px; }
a:focus-visible, select:focus-visible { outline: 3px solid #e6ca76; outline-offset: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { position: fixed; left: 12px; top: 8px; z-index: 5; padding: 8px; background: #fff; color: #111; }
.reader-head { position: sticky; top: 0; z-index: 2; padding: 12px 16px; background: rgba(13,14,16,.96); border-bottom: 1px solid #33363a; }
.reader-nav, .reader-controls { width: min(1100px,100%); margin: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; }
.reader-nav h1 { margin: 0; font-size: 17px; line-height: 1.3; }
.reader-nav a { font-size: 13px; font-weight: bold; }
.reader-controls { justify-content: flex-start; margin-top: 12px; font-size: 13px; }
.reader-controls label { display: flex; align-items: center; gap: 10px; min-width: 0; }
select { max-width: 100%; min-height: 40px; padding: 5px 8px; border: 1px solid #6e858c; border-radius: 3px; background: #18252a; color: #fff; font: inherit; }
output { color: #bcc6ca; }
main#pages { display: grid; gap: 28px; justify-items: center; padding: 24px 12px 60px; }
figure { width: min(100%,860px); min-width: 0; margin: 0; background: #06090b; scroll-margin-top: 160px; }
figure > a { display: block; }
img { display: block; width: 100%; height: auto; }
figcaption { padding: 12px; display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; color: #c6d1d6; font-size: 13px; }
footer { padding: 20px; text-align: center; border-top: 1px solid #33363a; }
.transcript { width: min(760px,calc(100% - 32px)); margin: auto; padding: 30px 0 80px; }
.transcript section { border-bottom: 1px solid #33363a; padding: 16px 0 28px; scroll-margin-top: 120px; }
.transcript h2 { color: #a9e7ed; font-size: 21px; }
.transcript p { white-space: pre-line; }
.transcript section > a { font-size: 13px; }
.silent-page { color: #bac4c9; font-style: italic; }
@media (max-width: 400px) { .reader-head { padding: 10px 12px; } .reader-nav { gap: 8px 12px; } .reader-nav h1 { flex-basis: 100%; order: -1; font-size: 16px; } output { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
