/* Open Classics Online, the Open Book design (approved as a wireframe 2026-12-01, Prototype open-classics-open-book).
   Warm paper, navy ink, brick accent, the brand's navy #1C2340 and red softened for the owner's eyes: every text pair
   between about 4.5:1 and 12:1, pastel highlights, no rainbow, nothing fades in or out. Fonts are this site's own
   files (EB Garamond, Inter; SIL Open Font Licence), so no page asks another server for anything. */
@font-face { font-family: "EB Garamond"; src: url(/assets/fonts/EBGaramond-Regular.ttf) format("truetype"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(/assets/fonts/EBGaramond-Italic.ttf) format("truetype"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: Inter; src: url(/assets/fonts/Inter-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --page: #f6f1e7; --paper: #fbf8f2; --card: #fffdf9; --sunk: #efe8dc; --line: #e6ddcf;
  --ink: #2b2f40; --soft: #5f6374; --faint: #646774; --navy: #1c2340; --brick: #b4432b; --brick-ink: #fff7f2;
  --link: #2c4a8a; --gold: #b8862f; --read-ink: #2a2c38; --mark: #f3ead2;
  --hl-yellow: #f6e3a1; --hl-rose: #f3c9cf; --hl-blue: #c9dcf3; --hl-green: #cde8c8;
  --lift-ink: rgba(60, 45, 25, .10);
  --shadow: 0 1px 2px rgba(60, 45, 25, .06), 0 10px 28px var(--lift-ink);
  --lift: 0 2px 4px rgba(60, 45, 25, .08), 0 18px 40px rgba(60, 45, 25, .14);
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --read: 21px; --lead: 1.72; --r: 14px;
}
/* the reader's own light: paper (the default), sepia, mist, night; set on <html> by the Aa panel */
html[data-theme="sepia"] { --soft: #5b5f6f; --faint: #5c5f6c; --brick: #a63d27; --paper: #f4ead6; --card: #f8f0df; --page: #efe3cb; --sunk: #e8dbc1; --line: #ddcdb0; --read-ink: #3a3024; --ink: #3a3326; }
html[data-theme="mist"] { --faint: #616471; --brick: #ae4029; --paper: #eef2f3; --card: #f5f8f8; --page: #e6ecee; --sunk: #dde5e8; --line: #d3dde1; --read-ink: #263240; }
html[data-theme="dark"] { color-scheme: dark; --page: #1f1d26; --paper: #24222c; --card: #2b2834; --sunk: #33303d; --line: #3d3948;
  --ink: #dcd8e6; --soft: #aba7b8; --faint: #9d99aa; --navy: #e9e5f2; --brick: #e58a74; --brick-ink: #241618; --link: #a9bdf0;
  --read-ink: #d8d3c6; --mark: #4b4128; --lift-ink: rgba(0, 0, 0, .3);
  --hl-yellow: #5c4f22; --hl-rose: #5a3439; --hl-blue: #2f4660; --hl-green: #33503a; }
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
html:has(.tabsbar) { scroll-padding-top: 126px; }   /* 5.18.0: and the book page's section tabs ("#chapters" hid "Contents" under them) */
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.55 var(--sans); overflow-x: clip; }   /* nothing may widen a phone's page */
a { color: var(--link); text-underline-offset: .15em; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
.wrap { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--card); padding: 6px 10px; z-index: 99; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 14px; color: var(--soft); } .muted { color: var(--soft); } .faint { color: var(--faint); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }

/* ── the top bar: one slim line on every page ─────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top-in { height: 62px; display: flex; align-items: center; gap: 22px; padding: 0 28px; max-width: 1600px; margin: 0 auto; }
.brand { flex: none; display: flex; } .brand img { display: block; height: 30px; width: auto; }
.brand .logo-dark { display: none; }
html[data-theme="dark"] .brand .logo-light { display: none; } html[data-theme="dark"] .brand .logo-dark { display: block; }
.cmd { flex: 1; max-width: 560px; height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); color: var(--faint); margin: 0; }
.cmd input { flex: 1; min-width: 0; border: 0; background: none; font: 15px var(--sans); color: var(--ink); outline: none; }
.cmd input::placeholder { color: var(--faint); }
.cmd .ico { font-size: 17px; }
kbd { font: 600 12px var(--sans); color: var(--soft); background: var(--sunk); border-radius: 6px; padding: 2px 7px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--soft); text-decoration: none; white-space: nowrap; }
.nav a[aria-current], .nav a:hover { color: var(--navy); background: var(--sunk); }
.streak { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: #f7e7d9; color: #7a3d22;
  font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap; }
html[data-theme="dark"] .streak { background: #4a3229; color: #f2cdb9; }
.streak i { width: 9px; height: 12px; background: var(--brick); border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%; display: inline-block; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 0; font-size: 13px; color: var(--faint); }
.crumbs li + li::before { content: "›"; margin-right: 6px; } .crumbs a { color: var(--soft); text-decoration: none; padding: 6px 0; }

/* ── type, buttons, chips, pills, cards ──────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
h1 { font-size: clamp(34px, 4.4vw, 50px); margin: 10px 0 8px; } h2 { font-size: 28px; margin: 0 0 14px; } h3 { font-size: 20px; margin: 0 0 8px; }
.tag, .eyebrow { display: inline-block; font: 700 12px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--brick); margin: 0; }
.eyebrow a, .tag a { color: inherit; text-decoration: none; }
.lead { font-size: 18px; color: var(--soft); max-width: 44em; margin: 0 0 16px; }
.byline { color: var(--soft); margin: 0 0 12px; } .byline a { color: var(--navy); font-weight: 600; text-decoration: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; font: 650 15px var(--sans);
  background: var(--card); border: 1px solid var(--line); color: var(--navy); text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(60, 45, 25, .05); }
.btn:hover { box-shadow: var(--shadow); }
.btn.primary { background: var(--brick); color: var(--brick-ink); border-color: transparent; box-shadow: 0 6px 16px rgba(180, 67, 43, .22); }
.btn.navy { background: var(--navy); color: var(--page); border-color: transparent; }
.btn.small { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 10px; }
.btn .price { font-weight: 500; opacity: .85; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 15px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); font: 600 14px var(--sans); color: var(--soft); white-space: nowrap; cursor: pointer; text-decoration: none; }
.chip[aria-pressed="true"], .chip.on { background: var(--navy); color: var(--page); border-color: var(--navy); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ab-find { margin: 18px 0 6px; } .ab-find .chip small { font: 600 12px var(--sans); color: var(--faint); }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--sunk);
  font-size: 13px; font-weight: 600; color: var(--soft); white-space: nowrap; }
.pill.time { background: #e9efe6; color: #3f5a47; } .pill.ear { background: #e7ebf5; color: #3a4a74; } .pill.age { background: #f4e6e1; color: #7a3d22; }
html[data-theme="dark"] .pill.time { background: #2e3a31; color: #bfd6c5; } html[data-theme="dark"] .pill.ear { background: #2f3549; color: #c3cdea; }
html[data-theme="dark"] .pill.age { background: #432f29; color: #ecc8b8; }
/* 4.21.0: the Indigo Favorite badge (render.fav_badge(), coverTile() in site.js): indigo ink on lavender; on a book page it links to the shelf */
.pill.fav { background: #e9e7f8; color: #3b3591; } .pill.fav span { color: #6a62c9; } a.pill.fav { text-decoration: none; } a.pill.fav:hover { background: #dedaf5; }
html[data-theme="dark"] .pill.fav { background: #322e54; color: #d6d2f7; } html[data-theme="dark"] .pill.fav span { color: #a9a2ee; }
html[data-theme="dark"] a.pill.fav:hover { background: #3b3663; }
/* 4.22.0: a book readable only from Canada (render.only_pill) */
.pill.only { background: #f6e6dc; color: #7a3f22; } html[data-theme="dark"] .pill.only { background: #4a3328; color: #f1d3c2; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; padding: 0; list-style: none; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.section { margin: 44px auto; }
.section > header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.section > header h2 { margin: 0; } .section > header p { margin: 0; color: var(--soft); }
.section > header a.more { margin-left: auto; color: var(--brick); font-weight: 600; font-size: 15px; text-decoration: none; padding: 8px 0; }

/* covers and book tiles */
.cover { border-radius: 4px 7px 7px 4px; box-shadow: inset 5px 0 0 rgba(0, 0, 0, .08), var(--lift); object-fit: cover; background: var(--sunk); display: block; }
.cover.blank { display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px; font: 600 15px/1.2 var(--serif); color: var(--soft); }
.cover-s { width: 96px; height: 144px; } .cover-m { width: 148px; height: 222px; } .cover-l { width: 250px; height: 375px; }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 30px 24px; }
.strip { list-style: none; padding: 14px 0 10px 14px; margin: 0 0 0 -14px; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x proximity; }
.strip > li { width: 148px; flex: none; scroll-snap-align: start; }
.tile a { display: block; text-decoration: none; color: inherit; position: relative; }
.tile .cover { width: 100%; height: auto; aspect-ratio: 2 / 3; }
.tile .t { display: block; margin-top: 10px; font: 600 17px/1.25 var(--serif); color: var(--navy); }
.tile .a { display: block; font-size: 13px; color: var(--soft); }
.tile .meta { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.tile .n { display: block; margin-top: 6px; font-size: 13px; color: var(--soft); }
.tile .num { position: absolute; top: -10px; left: -10px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--page);
  display: grid; place-items: center; font: 700 13px var(--sans); box-shadow: var(--shadow); z-index: 1; }
.tile a:hover .t { color: var(--brick); }

/* ── Discover: the time-first chooser ──────────────────────────────────────────────────────────── */
.discover { padding: 40px 0 10px; }
.discover h1 { max-width: 15em; }
.chooser { display: grid; grid-template-columns: max-content 1fr; gap: 12px 18px; align-items: center; margin: 22px 0 26px; }
.chooser .q { font: 600 18px var(--serif); color: var(--navy); }
.picks-note { margin: -8px 0 18px; font-size: 14px; color: var(--soft); }
.continue-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cont { display: flex; gap: 14px; padding: 14px; text-decoration: none; color: inherit; align-items: center; }
.cont img { width: 60px; height: 90px; border-radius: 3px 5px 5px 3px; object-fit: cover; box-shadow: var(--shadow); }
.cont .t { font: 600 18px/1.2 var(--serif); color: var(--navy); display: block; } .cont .s { font-size: 13px; color: var(--soft); display: block; }
.cont .bar { display: block; height: 4px; border-radius: 2px; background: var(--sunk); margin-top: 8px; overflow: hidden; }
.cont .bar i { display: block; height: 100%; background: var(--brick); }
.cont .cover.blank { width: 60px; height: 90px; flex: none; padding: 0; border-radius: 3px 5px 5px 3px; }   /* 5.8.0: a book with no cover yet */
/* Discover: a returning reader finds their book under the heading, before the chooser */
.continue-top { margin: 20px 0 6px; }
.continue-top h2 { font: 600 18px var(--serif); color: var(--navy); margin: 0 0 10px; }

/* ── the book page ─────────────────────────────────────────────────────────────────────────────── */
.bk-hero { display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center; padding: 26px 0 10px; }
.bk-hero .blurb { font: 22px/1.45 var(--serif); color: var(--ink); max-width: 30em; margin: 6px 0 12px; }
.promise { display: inline-flex; gap: 8px; align-items: center; padding: 7px 13px; border-radius: 999px; background: var(--sunk); color: var(--soft); font-size: 13px; }
.bookmap-box { padding: 22px 24px 30px; }
.bookmap { display: flex; gap: 3px; height: 46px; align-items: stretch; }
.bookmap .seg { position: relative; border-radius: 6px; background: var(--line); min-width: 8px; display: block; text-decoration: none; }
.bookmap .seg.read { background: #c9b48f; } .bookmap .seg.here { background: linear-gradient(90deg, #c9b48f var(--p, 40%), var(--line) var(--p, 40%)); outline: 2px solid var(--brick); outline-offset: 1px; }
.bookmap .seg .dot { position: absolute; top: 6px; left: 6px; width: 7px; height: 7px; border-radius: 50%; background: #d9a441; }
.bookmap .seg.ear::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 3px; border-radius: 2px; background: #9fb0d6; }
.bookmap .seg .tip { display: none; position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%); width: 280px; padding: 12px 14px;
  background: var(--navy); color: var(--page); border-radius: 12px; font-size: 13px; line-height: 1.45; z-index: 5; box-shadow: var(--lift); pointer-events: none; }
.bookmap .seg .tip b { display: block; font: 600 16px var(--serif); margin-bottom: 4px; }
.bookmap .seg:hover .tip, .bookmap .seg:focus .tip { display: block; }
.bookmap .seg:first-child .tip { left: 0; transform: none; } .bookmap .seg:last-child .tip { left: auto; right: 0; transform: none; }
.maplegend { display: flex; gap: 18px; margin-top: 18px; font-size: 13px; color: var(--soft); flex-wrap: wrap; }
.maplegend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tabsbar { position: sticky; top: 62px; z-index: 30; background: color-mix(in srgb, var(--page) 94%, transparent); border-bottom: 1px solid var(--line); margin-top: 30px; }
.tabsbar ul { list-style: none; display: flex; gap: 4px; margin: 0 auto; padding: 0; overflow-x: auto; }
.tabsbar a { display: block; padding: 13px 14px; font-weight: 650; font-size: 15px; color: var(--soft); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabsbar a:hover, .tabsbar a.on { color: var(--navy); border-color: var(--brick); }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; align-items: start; }
.prosebox { font: 19px/1.65 var(--serif); color: var(--read-ink); } .prosebox p { margin: 0 0 1em; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.facts div { background: var(--card); border-radius: 12px; padding: 11px 14px; box-shadow: var(--shadow); }
.facts dt { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.facts dd { margin: 3px 0 0; font: 600 18px var(--serif); color: var(--navy); }
.toc { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.toc li { background: var(--card); border-radius: 12px; padding: 13px 16px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr auto; gap: 3px 14px; }
.toc a { text-decoration: none; font: 600 18px var(--serif); color: var(--navy); }
.toc .n { color: var(--brick); font: 700 12px var(--sans); letter-spacing: .07em; text-transform: uppercase; display: block; }
.toc .m { color: var(--faint); font-size: 13px; white-space: nowrap; } .toc p { grid-column: 1 / -1; margin: 0; color: var(--soft); font-size: 15px; }
.toc li.read { box-shadow: var(--shadow), inset 4px 0 0 #c9b48f; }
.qcards { columns: 3 280px; column-gap: 18px; }
.qcard { break-inside: avoid; margin: 0 0 18px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px; border-top: 5px solid var(--hl-yellow); display: block; }
.qcard blockquote { margin: 0; font: 18px/1.5 var(--serif); color: var(--ink); }
.qcard .src { margin-top: 10px; font-size: 13px; color: var(--faint); display: flex; justify-content: space-between; gap: 10px; }
.qcard .src a { color: var(--brick); text-decoration: none; font-weight: 600; }
.qcard .src .qacts { display: flex; align-items: baseline; gap: 16px; flex-shrink: 0; }
.qshare { background: none; border: 0; padding: 6px 2px; margin: -6px 0; font: 600 13px var(--sans); color: var(--soft); cursor: pointer; }
.qshare::before { content: "↗"; margin-right: 4px; font-weight: 700; } .qshare:hover, .qshare:focus-visible { color: var(--brick); }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; align-items: start; }
.quote-grid .qcard { margin: 0; }
.quote-grid .qcard:first-child { grid-column: 1 / -1; padding: 20px clamp(18px, 3vw, 36px); border-top: 0; border-inline-start: 5px solid var(--hl-yellow); }
.quote-grid .qcard:first-child blockquote { max-width: 52ch; font-size: clamp(23px, 2.35vw, 32px); line-height: 1.35; }
.quote-cite { margin-top: 10px; color: var(--soft); font-size: 13px; }
.quote-cite summary { cursor: pointer; }
.quote-cite button { background: none; border: 0; padding: 0; text-align: left; overflow-wrap: anywhere; cursor: copy; }
.quote-cite [data-copied]::after { content: " · copied"; color: var(--brick); }
.quote-index { max-width: 54rem; list-style: none; padding: 0; }
.quote-index li { border-top: 1px solid var(--line); padding: 20px 0; }
.quote-index h2 { font-size: 24px; margin: 0; }
.quote-index h2 a { color: var(--navy); }
.quote-index p { margin: 3px 0 8px; }
.quote-index blockquote { margin: 0; font: 21px/1.45 var(--serif); }
.quote-index blockquote a { color: var(--ink); text-decoration: none; }
.quote-index blockquote a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .bk-hero.quote-hero { grid-template-columns: 70px minmax(0, 1fr); gap: 16px; }
  .quote-hero .cover { width: 70px; height: 105px; }
  .quote-hero h1 { font-size: 30px; }
  .quote-hero .lead { font-size: 15px; margin-bottom: 0; }
}
.panel { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 24px; }
.panel h2 { font-size: 24px; }
.faq details { background: var(--card); border-radius: 12px; margin: 10px 0; padding: 13px 16px; box-shadow: var(--shadow); }
.faq summary { font-weight: 650; cursor: pointer; color: var(--navy); } .faq p { margin: 8px 0 0; }
.cite dl { margin: 0; } .cite dl div { margin: 10px 0; } .cite dt { font: 700 12px var(--sans); letter-spacing: .08em; color: var(--faint); }
.cite dd { overflow-wrap: anywhere; margin: 2px 0 0; cursor: copy; font: 17px/1.5 var(--serif); } .cite dd[data-copied]::after { content: " · copied"; font: 13px var(--sans); color: var(--brick); }
.editions { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.editions a { display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; border-radius: 12px; background: var(--paper); text-decoration: none; color: var(--navy); font-weight: 600; }

/* ── the reader: chapters on the left, the text and its margin, then (in Study) the study panel ─────── */
.k-reader main { display: block; }
.reader { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: calc(100vh - 62px); }
.reader.study { grid-template-columns: 270px minmax(0, 1fr) 380px; }
.rail { border-right: 1px solid var(--line); padding: 22px 16px 60px; background: var(--paper); position: sticky; top: 62px; height: calc(100vh - 62px); overflow: auto; }
.rail .back { display: inline-block; padding: 6px 0; font-size: 14px; color: var(--soft); text-decoration: none; }
.rail h2 { margin: 12px 0 2px; font-size: 19px; } .rail .by { font-size: 14px; color: var(--soft); margin-bottom: 14px; }
.rail ol { list-style: none; margin: 0; padding: 0; }
.rail .ch { display: grid; grid-template-columns: 24px 1fr auto; gap: 4px 8px; align-items: center; padding: 8px; border-radius: 10px; font-size: 14px; color: var(--soft); text-decoration: none; }
.rail .ch:hover { background: var(--sunk); }
.rail .ch .n { font: 600 12px var(--sans); color: var(--faint); text-align: right; } .rail .ch .m { font-size: 12px; color: var(--faint); }
.rail .ch .bar { grid-column: 2 / 4; height: 3px; border-radius: 2px; background: var(--sunk); overflow: hidden; }
.rail .ch .bar i { display: block; height: 100%; width: 0; background: #c9b48f; }
.rail .ch[aria-current] { background: var(--card); color: var(--navy); font-weight: 600; box-shadow: var(--shadow); }
.rmain { min-width: 0; background: var(--paper); position: relative; }
.readtop { position: sticky; top: 62px; z-index: 20; background: color-mix(in srgb, var(--paper) 95%, transparent); border-bottom: 1px solid var(--line); padding: 10px 24px 0; }
.readtop .row { display: flex; align-items: center; gap: 8px; }
.readtop .meta { font-size: 13px; color: var(--soft); margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.readtop .grow { flex: 1; }
.modes { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--sunk); gap: 2px; flex: none; }
.modes button { border: 0; background: none; cursor: pointer; padding: 7px 15px; border-radius: 9px; font: 650 14px var(--sans); color: var(--soft); }
.modes button[aria-pressed="true"] { background: var(--card); color: var(--navy); box-shadow: 0 1px 3px rgba(60, 45, 25, .12); }
.tool { width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--soft); font: 700 14px var(--sans);
  border: 0; background: none; cursor: pointer; text-decoration: none; flex: none; }
.tool:hover, .tool[aria-pressed="true"] { background: var(--sunk); color: var(--navy); }
.tool.word { width: auto; padding: 0 11px; }
.progress { height: 4px; margin: 10px -24px 0; background: var(--sunk); position: relative; }
.progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--brick); }
.rbody { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.rbody .margin { border-left: 1px solid var(--line); background: var(--page); position: relative; }
.margin-head { position: sticky; top: 124px; padding: 16px 18px 8px; font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); background: var(--page); z-index: 1; }
.mnote { position: absolute; left: 16px; right: 16px; background: var(--card); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); font-size: 14px; cursor: pointer; }
.mnote::before { content: ""; position: absolute; left: -17px; top: 18px; width: 16px; border-top: 1px dashed #cdbfa6; }
.mnote .q { font: italic 15px/1.45 var(--serif); color: var(--soft); border-left: 3px solid var(--hl-yellow); padding-left: 10px; margin-bottom: 6px; }
.mnote .q.rose { border-color: var(--hl-rose); } .mnote .q.blue { border-color: var(--hl-blue); } .mnote .q.green { border-color: var(--hl-green); }
.mnote .meta { font-size: 12px; color: var(--faint); margin-top: 6px; }
.margin .empty { padding: 4px 18px; font-size: 13px; color: var(--faint); }
article.chapter { max-width: 680px; margin: 0 auto; padding: 34px 28px 80px; }
article.chapter h1 { font-size: clamp(30px, 3.6vw, 40px); margin: 6px 0 4px; }
.recap { font: 15px/1.6 var(--sans); color: var(--soft); background: var(--card); border-radius: 12px; padding: 14px 16px; margin: 18px 0 26px; box-shadow: var(--shadow); }
.recap h2 { display: inline; font: 700 15px var(--sans); color: var(--navy); margin: 0; } .recap h2::after { content: ":"; }
.recap summary p { display: inline; margin: 0; } details.recap > p { margin: 10px 0 0; } section.recap p { display: inline; margin: 0; }
.recap summary { list-style: none; cursor: pointer; } .recap summary::-webkit-details-marker { display: none; }
.recap .more { color: var(--brick); font-weight: 650; white-space: nowrap; } .recap[open] .more { display: none; }
.prose { font: var(--read)/var(--lead) var(--serif); color: var(--read-ink); position: relative; }
html[data-font="sans"] .prose { font-family: var(--sans); font-size: calc(var(--read) * .88); }
.prose p { margin: 0 0 1em; text-indent: 1.4em; position: relative; }
.prose p:first-child { text-indent: 0; }
/* 5.18.0: verse keeps its lines (the source's line breaks are in the text; nothing is added to it, so notes keep their places),
   and the source's own title page is set as one, centred and quiet, before the text begins */
.prose p.verse, .firstpage-text p.verse { white-space: pre-line; text-indent: 0; }
/* a long line that wraps (on a phone) goes on indented under itself, as printed verse does; without each-line, plain lines */
@supports (text-indent: 1em each-line) { .prose p.verse, .firstpage-text p.verse { padding-left: 1.4em; text-indent: -1.4em each-line; } }
.prose p.tp { text-indent: 0; text-align: center; color: var(--soft); margin: 0 0 .3em; font-size: .92em; }
.prose p.tp:first-child { font-size: 1.12em; color: var(--read-ink); }
.prose p.tp + p:not(.tp) { margin-top: 2em; }
.prose h2 { font-size: 1.35em; margin: 1.4em 0 .5em; text-indent: 0; }
.prose p, .prose h2 { scroll-margin-top: 140px; }
.prose p:target { background: var(--mark); border-radius: 4px; box-shadow: 0 0 0 6px var(--mark); }
.section-summary { background: var(--card); border-radius: 10px; padding: 10px 14px; font: 15px/1.55 var(--sans); text-indent: 0 !important; color: var(--soft); }
/* where a printed page begins: the mark stays in the text; its number sits in the column's left margin */
.folio { position: static; }
.folio::before { content: attr(data-folio); position: absolute; left: -64px; width: 44px; margin-top: .55em; text-align: right;
  font: 600 11px/1 var(--sans); color: var(--faint); border-top: 1px solid var(--line); padding-top: 3px; text-indent: 0; }
.pn { display: flex; justify-content: space-between; gap: 12px; margin: 36px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.pn a { font-weight: 650; text-decoration: none; color: var(--navy); } .pn a span { display: block; font-size: 13px; color: var(--faint); font-weight: 500; }
/* the next chapter: a card at the end of the text that a reader cannot miss */
.pn .rnext { margin-left: auto; text-align: right; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px;
  box-shadow: var(--shadow); font: 600 20px/1.25 var(--serif); min-width: min(100%, 320px); }
.pn .rnext span { font: 650 13px var(--sans); color: var(--brick); margin-bottom: 4px; }
.pn .rnext:hover { border-color: var(--brick); }
.rnext { text-align: right; }
mark.hl { color: inherit; border-radius: 3px; padding: 0 1px; cursor: pointer; }
.hl-yellow { background: var(--hl-yellow); } .hl-rose { background: var(--hl-rose); } .hl-blue { background: var(--hl-blue); } .hl-green { background: var(--hl-green); }
mark.has-note { box-shadow: inset 0 -2px 0 var(--brick); }
::selection { background: #cfe0f7; }
html[data-theme="dark"] ::selection { background: #3a4d6b; }
/* the Aa panel */
.popover { position: absolute; right: 20px; top: 58px; z-index: 30; width: 310px; background: var(--card); border-radius: 16px; box-shadow: var(--lift); padding: 16px; }
.popover h3 { margin: 12px 0 8px; font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.popover h3:first-child { margin-top: 0; }
.seg3 { display: flex; gap: 6px; } .seg3 button { flex: 1; text-align: center; padding: 8px 0; border-radius: 9px; background: var(--sunk); font-weight: 600; font-size: 14px; color: var(--soft); border: 0; cursor: pointer; }
.seg3 button[aria-pressed="true"] { background: var(--navy); color: var(--page); }
.swatches { display: flex; gap: 8px; } .swatches button { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; }
.swatches button[aria-pressed="true"] { border-color: var(--brick); box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--brick); }
/* the study panel and the listen dock */
.study { display: none; } .reader.study .study { display: block; }
.study { border-left: 1px solid var(--line); background: var(--card); position: sticky; top: 62px; height: calc(100vh - 62px); overflow: auto; padding: 18px 20px 60px; }
.study h2 { font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 18px 0 8px; }
.study h2:first-child { margin-top: 0; } .study .sumtext { font: 17px/1.6 var(--serif); color: var(--read-ink); }
.study .quote { font: italic 16px/1.5 var(--serif); padding: 12px 14px; border-radius: 12px; background: var(--paper); margin-bottom: 10px; }
.study .quote a { display: block; margin-top: 6px; font: 600 12px var(--sans); font-style: normal; color: var(--brick); text-decoration: none; }
.dock { position: sticky; bottom: 0; z-index: 25; border-top: 1px solid var(--line); background: var(--card); padding: 12px 24px 14px; box-shadow: 0 -10px 30px var(--lift-ink); }
.dock .player { margin: 0; box-shadow: none; padding: 0; background: none; }

/* the player (book, audiobook, chapter pages and the dock) */
.player { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 18px; margin: 18px 0; }
.player .controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.player button { border: 0; border-radius: 50%; width: 42px; height: 42px; font: 600 13px var(--sans); cursor: pointer; background: var(--sunk); color: var(--navy);
  display: inline-grid; place-items: center; position: relative; flex: none; }
.player button:hover { background: color-mix(in srgb, var(--sunk) 70%, var(--line)); }
.player button:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }
.player .play { width: 54px; height: 54px; background: var(--brick); color: var(--brick-ink); box-shadow: 0 8px 18px color-mix(in srgb, var(--brick) 28%, transparent); }
.player .play:hover { background: color-mix(in srgb, var(--brick) 88%, var(--navy)); }
.player .play .i-pause, .player.on .play .i-play { display: none; } .player.on .play .i-pause { display: block; }
.player[data-state="loading"] .play::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--brick) 25%, transparent);
  border-top-color: var(--brick); animation: oco-spin .9s linear infinite; }
@keyframes oco-spin { to { transform: rotate(360deg); } }
.player .back, .player .fwd { background: none; color: var(--soft); }
.player .back b, .player .fwd b { position: absolute; font: 700 8.5px/1 var(--sans); top: 50%; left: 50%; transform: translate(-50%, -38%); letter-spacing: -.02em; }
.player .np { display: flex; flex-direction: column; min-width: 0; flex: 1 1 160px; padding: 0 6px; }
.player .now { color: var(--navy); font: 600 16px/1.25 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .status { font: 12.5px/1.3 var(--sans); color: var(--soft); min-height: 0; }
.player .status:empty { display: none; }
.player[data-state="err"] .status { color: var(--brick); }
.player .status .linkish { width: auto; height: auto; border-radius: 4px; background: none; display: inline; font: 600 12.5px var(--sans); color: var(--link); padding: 0; text-decoration: underline; }
.player .rate { width: auto; min-width: 46px; padding: 0 10px; border-radius: 999px; height: 34px; font-variant-numeric: tabular-nums; }
.player .sleep { width: auto; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px; display: inline-flex; gap: 4px; align-items: center; color: var(--soft); background: none; }
.player .sleep.set { background: var(--sunk); color: var(--navy); } .player .sleep .sl { font: 650 12px var(--sans); }
.player .sleep .sl:empty { display: none; }
.player .prev, .player .next { width: 34px; height: 34px; background: none; color: var(--soft); }
.player .clock { font: 13px var(--sans); color: var(--soft); font-variant-numeric: tabular-nums; margin-left: 4px; white-space: nowrap; }
.player .expand { display: none; }
.player .seek { width: 100%; accent-color: var(--brick); margin: 10px 0 2px; cursor: pointer; }
.player .ra { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 4px 0 0; font: 13px/1.4 var(--sans); color: var(--soft); }
.player .ra[hidden] { display: none; }
.player .ra .ra-toggle { width: auto; height: auto; border-radius: 4px; background: none; font: 600 13px var(--sans); color: var(--link); padding: 0; text-decoration: underline; }
.player .ra .ra-toggle[aria-pressed="false"] { color: var(--faint); }
.player .queue summary { font-size: 14px; color: var(--soft); cursor: pointer; } .player .queue li[aria-current] { font-weight: 700; color: var(--brick); }
.player .queue button { width: auto; height: auto; border-radius: 6px; background: none; padding: 2px 4px; font-size: 14px; text-align: left; display: inline; }
.player .small { margin: 6px 0 0; }
/* while the reader reads on (Read or Study) with the voice going: one quiet row, the way back to Listen at its end */
.dock.mini { padding: 6px 16px; }
.dock.mini .player .seek, .dock.mini .player .ra, .dock.mini .player .queue, .dock.mini .player .credit, .dock.mini .player .rate,
.dock.mini .player .sleep, .dock.mini .player .prev, .dock.mini .player .next, .dock.mini .player .fwd { display: none; }
.dock.mini .player .play { width: 40px; height: 40px; box-shadow: none; } .dock.mini .player .play svg { width: 18px; height: 18px; }
.dock.mini .player .now { font-size: 15px; }
.dock.mini .player .expand { display: inline-grid; background: none; color: var(--soft); width: 34px; height: 34px; }
/* read-along: the sentence being read in a soft tint, its word a little stronger; the paragraph marked in the gutter */
::highlight(oco-sent) { background-color: color-mix(in srgb, var(--gold) 13%, transparent); }
::highlight(oco-word) { background-color: color-mix(in srgb, var(--gold) 34%, transparent); }
.prose p.voice-now { box-shadow: -16px 0 0 -13px color-mix(in srgb, var(--gold) 70%, transparent); }
.ra-pill { position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%); z-index: 40; border: 0; border-radius: 999px; padding: 9px 16px;
  font: 600 13px var(--sans); background: var(--navy); color: var(--page); box-shadow: var(--lift); cursor: pointer; }
.ra-pill[hidden] { display: none; }

/* ── the desk: the printed pages on a desk, drawn by the graphics chip (web/desk.js) ─────────────── */
.desk-room { position: fixed; inset: 0; z-index: 90; background: #2a1d15; color: #efe6d6; font: 14px/1.5 var(--sans); }
.desk-room canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.desk-room .ui { position: absolute; z-index: 2; }
.desk-room .glass { background: rgba(30, 22, 17, .58); border: 1px solid rgba(239, 230, 214, .12); border-radius: 14px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.desk-room .dk-close { top: 14px; left: 16px; height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(239, 230, 214, .14); background: rgba(30, 22, 17, .6); color: #efe6d6; font: 600 14px var(--sans); cursor: pointer; }
.desk-room .dk-where { bottom: 16px; left: 50%; transform: translateX(-50%); padding: 7px 14px; font: 16px var(--serif); white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
.desk-room .dk-time { top: 14px; right: 16px; padding: 10px 14px; width: 260px; }
.desk-room .dk-time .row { display: flex; justify-content: space-between; align-items: center; }
.desk-room .dk-time b { font: 600 18px var(--serif); } .desk-room .dk-time small { color: #d4c8b1; }
.desk-room .dk-time input { width: 100%; accent-color: #e2b07c; margin: 8px 0 0; }
.desk-room .dk-btn { font: 600 12px var(--sans); color: #2a2216; background: #e2b07c; border: 0; border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.desk-room .dk-chain { top: 0; width: 28px; cursor: pointer; background: none; border: 0; padding: 0; }
.desk-room .dk-chain .beads { width: 3px; margin: 0 auto; height: 74px; background: repeating-linear-gradient(to bottom, #c9a463 0 4px, #8c6a34 4px 6px); border-radius: 2px; display: block; }
.desk-room .dk-chain .knob { width: 15px; height: 22px; margin: -2px auto 0; border-radius: 6px 6px 9px 9px; background: linear-gradient(90deg, #8c6a34, #e6c98d 45%, #9b7840); box-shadow: 0 4px 8px rgba(0, 0, 0, .35); display: block; }
.desk-room .dk-chain .tip { position: absolute; top: 104px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; color: #efe6d6; background: rgba(30, 22, 17, .62); padding: 2px 9px; border-radius: 8px; }
.desk-room .dk-chain.pull { transform: translateY(16px); transition: transform .09s ease-in; }
.desk-room .dk-tray { bottom: 14px; left: 16px; display: flex; gap: 8px; padding: 8px; }
.desk-room .dk-tray button { width: 44px; height: 44px; border-radius: 12px; border: 0; cursor: pointer; background: rgba(239, 230, 214, .1); display: grid; place-items: center; color: #efe6d6; font-size: 18px; }
.desk-room .dk-tray button[aria-pressed="true"] { background: #e2b07c; color: #2a2216; }
.desk-room .dk-tray i { width: 12px; height: 26px; border-radius: 4px 4px 3px 3px; display: block; }
.desk-room .dk-tray .pencil i { width: 6px; height: 28px; border-radius: 1px; background: linear-gradient(90deg, #d9a441, #f0c766 45%, #c08b2a); }
.desk-room .dk-help { top: 64px; left: 16px; width: 250px; padding: 12px 14px; font-size: 13px; color: #e4d8c3; }
.desk-room .dk-help ul { margin: 6px 0 0; padding-left: 17px; } .desk-room .dk-help li { margin: 3px 0; }
.desk-room .dk-help .x { float: right; background: none; border: 0; color: #d4c8b1; font-weight: 700; cursor: pointer; }
.desk-room .dk-toast { bottom: 64px; left: 50%; transform: translateX(-50%); padding: 8px 14px; font-size: 13px; }
.desk-room .dk-note { z-index: 4; width: 280px; padding: 10px; }
.desk-room .dk-note textarea { width: 100%; height: 68px; border: 0; border-radius: 8px; padding: 8px 10px; font: 20px/1.15 var(--serif); font-style: italic; color: #3f3f48; background: #fbf7ee; resize: none; outline: none; }
.desk-room .dk-note .row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 12px; color: #d4c8b1; }
.desk-room .dk-loading { top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 12px 18px; }
@media (max-width: 760px) {
  .desk-room .dk-time, .desk-room .dk-help, .desk-room .dk-chain { display: none; }
  .desk-room .dk-tray { left: 50%; transform: translateX(-50%); bottom: max(10px, env(safe-area-inset-bottom)); }
  .desk-room .dk-where { top: 16px; bottom: auto; left: auto; right: 12px; transform: none; max-width: calc(100% - 96px); font-size: 14px; }
  .desk-room .dk-close .long { display: none; } .oco-toast { bottom: 74px; }
  .desk-room .dk-lamp { display: grid !important; }
}
.desk-room .dk-lamp { display: none; }

/* ── the notebook: a commonplace book ──────────────────────────────────────────────────────────── */
.nb { display: grid; grid-template-columns: 250px 1fr; gap: 28px; margin-top: 18px; }
.nb.nb-empty { grid-template-columns: 1fr; }      /* 5.27.0: no folders column beside an empty notebook */
.folders { position: sticky; top: 80px; align-self: start; }
.folders h3 { margin: 18px 12px 6px; font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.folders button { display: flex; justify-content: space-between; width: 100%; padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--soft); font-weight: 550; border: 0; background: none; cursor: pointer; text-align: left; }
.folders button[aria-pressed="true"] { background: var(--card); color: var(--navy); box-shadow: var(--shadow); font-weight: 650; }
.folders .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.nb-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 18px; }
.chooser select { max-width: min(100%, 28em); min-width: 0; }
.chooser select, .nb-tools select, .nb-me input[type=number] { font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--card); color: var(--ink); }
.masonry { columns: 3 260px; column-gap: 18px; }
.nb-item { break-inside: avoid; margin: 0 0 18px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px; border-top: 5px solid var(--hl-yellow); }
.nb-item.hl-rose { border-top-color: var(--hl-rose); } .nb-item.hl-blue { border-top-color: var(--hl-blue); } .nb-item.hl-green { border-top-color: var(--hl-green); }
.nb-item.hl-bookmark, .nb-item.hl-word { border-top-color: var(--line); }
.nb-item.hl-yellow, .nb-item.hl-rose, .nb-item.hl-blue, .nb-item.hl-green { background: var(--card); }
.nb-item blockquote { margin: 0; font: 18px/1.5 var(--serif); color: var(--ink); }
.nb-item .note { margin-top: 10px; padding: 10px 12px; background: var(--paper); border-radius: 10px; font-size: 14px; }
.nb-item .src { margin-top: 10px; font-size: 12px; color: var(--faint); } .nb-item .src a { color: var(--soft); }
/* 5.50.0 and 5.51.0: search, order, a card's own buttons, the book order's headings and the Download menu */
.nb-find input { font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--card); color: var(--ink); width: 19em; max-width: 100%; }
.nb-count { margin: -8px 0 12px; } .nb-count:empty { display: none; }
.nb-item blockquote { white-space: pre-line; }          /* a passage across paragraphs keeps its break */
.nb-acts { display: flex; gap: 6px 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.nb-acts .sw { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; flex: none; }
.nb-acts .sw[aria-pressed="true"] { border-color: var(--soft); box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--soft); }
.nb-acts .linkish, .oco-toast button { background: none; border: 0; padding: 6px 0; font: 600 13px var(--sans); text-decoration: underline; cursor: pointer; }
.nb-acts .linkish { color: var(--link); } .nb-acts .sw + .linkish { margin-left: 4px; }
.nb-edit { margin-top: 10px; display: grid; gap: 8px; }
.nb-edit textarea, .nb-edit input { font: inherit; font-size: 15px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: var(--paper); color: var(--ink); width: 100%; box-sizing: border-box; }
.nb-edit .row { display: flex; gap: 8px; }
#nb-list.nb-ordered { columns: auto; max-width: 760px; }
.nb-book { margin: 22px 0 4px; font-size: 24px; } .nb-ordered > .nb-book:first-child { margin-top: 0; }
.nb-ch { margin: 16px 0 10px; font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.nb-ordered .nb-item { margin-bottom: 12px; }
.nb-dl { position: relative; } .nb-dl > summary { list-style: none; display: inline-flex; align-items: center; cursor: pointer; }
.nb-dl > summary::-webkit-details-marker { display: none; } .nb-dl > summary::after { content: "▾"; margin-left: 6px; font-size: 11px; }
.nb-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 290px; max-width: calc(100vw - 32px); display: grid; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--lift); }
.nb-menu p { margin: 6px 12px 4px; }
.nb-menu button { text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 10px; cursor: pointer; font: 650 14px var(--sans); color: var(--ink); }
.nb-menu button span { display: block; font-weight: 450; font-size: 12.5px; color: var(--faint); }
.nb-menu button:hover, .nb-menu button:focus-visible { background: var(--paper); }
.oco-toast { display: flex; align-items: center; gap: 14px; } .oco-toast[hidden] { display: none; } .oco-toast button { color: var(--page); padding: 2px 0; }
.oco-sel .sw[aria-pressed="true"] { border-color: var(--page); }
@media (max-width: 700px) {
  .nb-find, .nb-find input { width: 100%; }
  .nb-menu { position: fixed; left: 16px; right: 16px; top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 76px); width: auto; max-width: none; }
}
.nb-me { margin-top: 30px; } .nb-me label { display: block; margin: 10px 0; }
.badges { list-style: none; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.badges li { background: var(--card); border-radius: 999px; padding: 6px 14px; box-shadow: var(--shadow); font-size: 14px; }
.badges .got { font-weight: 700; color: var(--navy); } .badges .not { color: var(--faint); }

/* ── My desk, the finish, rings and stats ─────────────────────────────────────────────────────── */
.deskgrid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; margin-top: 18px; }
.ring { width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--brick) var(--v, 0%), var(--sunk) 0); display: grid; place-items: center; flex: none; }
.ring::after { content: attr(data-v); width: 50px; height: 50px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font: 700 13px var(--sans); color: var(--navy); }
.stats { display: flex; gap: 22px; flex-wrap: wrap; } .stat b { display: block; font: 600 26px var(--serif); color: var(--navy); } .stat span { font-size: 13px; color: var(--soft); }
.finish { margin: 40px 0 0; padding: 26px 26px 20px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); text-align: center; }
.finish h2 { font-size: 32px; } .finish .stats { justify-content: center; margin: 14px 0; }
.finish .tiles { text-align: left; margin-top: 14px; }

/* ── authors, lists, series, the edition, tables ──────────────────────────────────────────────── */
.au-hero { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; padding: 26px 0 6px; }
.au-start { margin-top: 20px; }
.along { margin: 14px 0 0; font-size: 15px; }
dialog.keys { max-width: min(460px, calc(100vw - 32px)); padding: 22px 24px; border: 0; border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: var(--lift); }
dialog.keys::backdrop { background: rgba(28, 35, 64, .28); }
dialog.keys h2 { margin: 0 0 14px; font: 600 24px var(--serif); color: var(--navy); }
dialog.keys dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0 0 18px; align-items: baseline; }
dialog.keys dt { display: flex; gap: 4px; white-space: nowrap; } dialog.keys dd { margin: 0; color: var(--soft); font-size: 15px; }
dialog.keys kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--paper); color: var(--ink); font: 600 13px var(--sans); text-align: center; }
.keys-hint { color: var(--faint); }
@media (pointer: coarse) { .keys-hint { display: none; } }
.nf-guess { margin: 4px 0 18px; padding: 14px 18px; border-radius: var(--r); background: var(--mark); color: var(--ink); font-size: 17px; }
.nf-guess[hidden] { display: none; }
.nf-guess a { font-weight: 650; }
.tracks li a { font-weight: 600; }
@media (max-width: 640px) {
  .ab-hero { gap: 14px; }
  .ab-hero > .cover, .ab-hero > .cover.blank { width: 104px; height: auto; aspect-ratio: 2 / 3; }
}
.au-lines .src a { font-weight: 600; }
.portrait { width: 200px; height: 250px; border-radius: 14px; box-shadow: var(--lift); object-fit: cover; }
.life { position: relative; margin: 26px 0 10px; padding: 0 0 6px; }
.life ol { list-style: none; margin: 0; padding: 0 0 0 24px; border-left: 2px solid var(--line); }
.life li { position: relative; margin: 0 0 14px; }
.life li::before { content: ""; position: absolute; left: -31px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--brick); }
.life .y { font: 700 13px var(--sans); color: var(--brick); display: block; } .life a { font: 600 18px var(--serif); color: var(--navy); text-decoration: none; }
.life .w { font-size: 13px; color: var(--faint); margin-left: 8px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--sunk); cursor: pointer; user-select: none; font-size: 13px; color: var(--soft); white-space: nowrap; }
td a { font-weight: 600; text-decoration: none; color: var(--navy); }
th[data-dir="asc"]::after { content: " ▲"; font-size: .7em; } th[data-dir="desc"]::after { content: " ▼"; font-size: .7em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.cards a { display: flex; gap: 16px; align-items: center; padding: 16px; text-decoration: none; color: inherit; height: 100%; }
.cards img { width: 70px; height: 88px; border-radius: 10px; object-fit: cover; flex: none; }
.cards .fan { display: flex; flex: none; padding-left: 16px; }
.cards .fan .cover { width: 50px; height: 75px; margin-left: -16px; border-radius: 3px 6px 6px 3px; box-shadow: 0 2px 6px var(--lift-ink); object-fit: cover; flex: none; }
.cards .fan .cover.blank { display: block; font-size: 0; }
.cards .fan .cover.blank > * { display: none; }
.cards .t { font: 600 20px/1.2 var(--serif); color: var(--navy); display: block; } .cards .s { font-size: 14px; color: var(--soft); display: block; }
.series { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 14px; }
.series li { display: grid; grid-template-columns: 44px 90px 1fr; gap: 16px; align-items: center; background: var(--card); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); }
.series li::before { counter-increment: s; content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--page); display: grid; place-items: center; font: 700 15px var(--sans); }
.series .cover { width: 90px; height: 135px; } .series a { font: 600 21px var(--serif); color: var(--navy); text-decoration: none; } .series p { margin: 4px 0 0; color: var(--soft); }
.edition { display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center; padding: 26px 0; }
.objects { display: flex; gap: 10px; align-items: stretch; perspective: 1200px; }
.objects .front { width: 220px; height: 330px; }
.objects .spine { width: 34px; height: 330px; border-radius: 3px; background: linear-gradient(90deg, #151a31, #2a3358 50%, #151a31); color: #efe6d6; writing-mode: vertical-rl; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; font: 600 14px var(--serif); box-shadow: var(--lift); }
.objects .back { width: 200px; height: 330px; border-radius: 7px 4px 4px 7px; background: #20284a; color: #e9e4d8; padding: 18px; font: 14px/1.5 var(--serif); box-shadow: var(--lift); overflow: hidden; }
.price-big { font: 600 34px var(--serif); color: var(--navy); }
.specs { list-style: none; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.soon { background: var(--sunk); border-radius: 12px; padding: 12px 16px; margin: 14px 0; }
ol.cols { columns: 2; } .tracks { padding-left: 22px; } .tracks .m { color: var(--faint); font-size: 14px; margin-left: 8px; }
.tracks .gist { display: block; color: var(--soft); font-size: 15px; line-height: 1.45; margin: 2px 0 8px; }   /* 5.1.0: what happens in the chapter */
.plain { list-style: none; padding: 0; } .plain.big li { margin: 10px 0; font-size: 18px; }
.trust { max-width: 46em; font-size: 18px; }

/* ── the command search ───────────────────────────────────────────────────────────────────────── */
.cmdk { position: fixed; inset: 0; z-index: 80; background: rgba(28, 35, 64, .28); display: flex; justify-content: center; align-items: flex-start; padding: 9vh 16px 16px; }
.cmdk-box { width: min(720px, 100%); background: var(--card); border-radius: 18px; box-shadow: var(--lift); overflow: hidden; }
.cmdk-in { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cmdk-in input { flex: 1; border: 0; outline: none; background: none; font: 19px var(--sans); color: var(--ink); }
.cmdk-list { max-height: min(60vh, 560px); overflow: auto; padding: 8px; }
.cmdk-list h3 { margin: 10px 10px 4px; font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.cmdk-list a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.cmdk-list a .s { display: block; font-size: 13px; color: var(--faint); }
.cmdk-list a[aria-selected="true"], .cmdk-list a:hover { background: var(--sunk); }
.cmdk-list .q { font: italic 17px/1.4 var(--serif); }
.cmdk-foot { display: flex; gap: 14px; padding: 8px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }

/* ── the reader's tools (web/reader.js) ───────────────────────────────────────────────────────── */
.oco-sel { position: absolute; z-index: 50; display: flex; gap: 4px; align-items: center; background: var(--navy); border-radius: 14px; padding: 6px; box-shadow: var(--lift); }
.oco-sel button { border: 0; background: none; color: var(--page); border-radius: 9px; padding: 6px 10px; cursor: pointer; font: 600 13px var(--sans); white-space: nowrap; }
.oco-sel button:hover { background: rgba(255, 255, 255, .12); }
.oco-sel .sw { width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); }
.oco-sel .sep { width: 1px; height: 20px; background: rgba(255, 255, 255, .2); margin: 0 4px; }
body:has(> .oco-sel:not([hidden])) .pg-tip { display: none; }   /* 5.11.0: the first-time tip does not show through the bar */
.sw-yellow { background: var(--hl-yellow) !important; } .sw-rose { background: var(--hl-rose) !important; } .sw-blue { background: var(--hl-blue) !important; } .sw-green { background: var(--hl-green) !important; }
.oco-dialog { border: 0; border-radius: 18px; padding: 22px; width: min(520px, 92vw); background: var(--card); color: var(--ink); box-shadow: var(--lift); }
.oco-dialog::backdrop { background: rgba(28, 35, 64, .3); }
.oco-dialog h2 { margin-top: 0; font-size: 24px; } .oco-dialog label { display: block; margin: 10px 0; font-weight: 600; }
.oco-dialog textarea, .oco-dialog input { width: 100%; font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--paper); color: var(--ink); }
.oco-dialog blockquote { font: 18px/1.5 var(--serif); border-left: 3px solid var(--brick); margin: 8px 0; padding-left: 12px; }
.oco-dialog .row { display: flex; gap: 8px; margin-top: 12px; }
.oco-toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--navy); color: var(--page); padding: 9px 18px; border-radius: 999px; z-index: 95; box-shadow: var(--lift); }

/* ── the footer and the phone's tab bar ───────────────────────────────────────────────────────── */
.foot { background: var(--sunk); margin-top: 60px; padding: 30px 0 26px; }
.k-reader .foot { margin-top: 0; }
.foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.foot h2 { font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }
.foot ul { list-style: none; padding: 0; margin: 0; } .foot li { margin: 1px 0; } .foot a { display: inline-block; padding: 4px 0; color: var(--soft); text-decoration: none; }
.foot .small { margin-top: 18px; }
.tabbar { display: none; }

/* full screen: only the page */
html.full .top, html.full .crumbs, html.full .foot, html.full .rail, html.full .rbody .margin, html.full .tabbar { display: none; }
html.full .reader { grid-template-columns: 1fr; } html.full .readtop { top: 0; } html.full .rbody { grid-template-columns: 1fr; }

/* ── a narrower window, then a phone ──────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .rbody { grid-template-columns: minmax(0, 1fr); } .rbody .margin { display: none; }
  .reader.study { grid-template-columns: 240px minmax(0, 1fr) 340px; }
  .reader { grid-template-columns: 240px minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .reader, .reader.study { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; z-index: 60; left: 0; top: 0; bottom: 0; height: auto; width: min(320px, 86vw); box-shadow: var(--lift); display: none; }
  .reader.contents .rail { display: block; box-shadow: var(--lift), 0 0 0 100vmax color-mix(in srgb, var(--ink) 26%, transparent); }
  .reader.study .study { position: static; height: auto; border-left: 0; border-top: 1px solid var(--line); }
  .two, .deskgrid { grid-template-columns: 1fr; }
}
@media (min-width: 961px) { .rail-btn { display: none !important; } }
@media (max-width: 760px) {
  body { font-size: 15px; padding-bottom: 64px; }
  .wrap { width: calc(100% - 32px); }
  .top-in { padding: 0 12px; gap: 10px; height: 56px; }
  .brand img { height: 24px; }
  .nav, .streak { display: none; }
  .cmd { height: 38px; } .cmd kbd { display: none; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--card); border-top: 1px solid var(--line); justify-content: space-around; }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 650 11px var(--sans); color: var(--faint); text-decoration: none; }
  .tabbar a .i { font-size: 18px; line-height: 1; } .tabbar a[aria-current] { color: var(--brick); }
  .bk-hero, .au-hero, .edition { grid-template-columns: 1fr; gap: 22px; } .cover-l { width: 180px; height: 270px; }
  .bk-hero .blurb { font-size: 19px; }
  .chooser { grid-template-columns: 1fr; gap: 8px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 24px 16px; }
  .strip > li { width: 130px; }
  .readtop { top: 56px; padding: 8px 12px 0; } .readtop .meta, .readtop .streak-chip, .readtop [data-act=full] { display: none !important; } .progress { margin: 8px -12px 0; }
  .readtop .row { gap: 4px; } .readtop .grow { min-width: 0; } .tool { width: 34px; } .tool.word { padding: 0 8px; }
  .readtop a.tool { display: none; }   /* the notebook is in the tab bar */
  .btn { white-space: normal; height: auto; min-height: 44px; padding: 10px 16px; text-align: left; }
  .modes button { padding: 7px 10px; font-size: 13px; }
  .rail, .study { top: 0; }
  article.chapter { padding: 22px 20px 60px; }
  :root { --read: 19px; }
  .folio::before { position: static; display: inline-block; width: auto; margin: 0 4px; border: 0; padding: 1px 5px; background: var(--sunk); border-radius: 4px; vertical-align: .2em; }
  .prose p, .prose h2 { scroll-margin-top: 120px; }
  .tabsbar { top: 56px; } html:has(.tabsbar) { scroll-padding-top: 118px; }
  .nb { grid-template-columns: 1fr; } .folders { position: static; display: flex; gap: 6px; overflow-x: auto; } .folders h3 { display: none; }
  .folders button { width: auto; white-space: nowrap; gap: 7px; }   /* 5.11.0: "Everything1" on a phone */
  .series li { grid-template-columns: 36px 60px 1fr; } .series .cover { width: 60px; height: 90px; }
  .objects .back { display: none; } .objects .front { width: 180px; height: 270px; } .objects .spine { height: 270px; }
  ol.cols { columns: 1; }
  .oco-sel.docked { position: fixed; top: auto !important; left: 8px !important; right: 8px; bottom: 70px; justify-content: center; flex-wrap: wrap; }
  /* 5.11.0: one row at a phone's width (Share went to a second line), every button a finger's height */
  .oco-sel.docked { flex-wrap: nowrap; gap: 2px; } .oco-sel.docked .wide { display: none; } .oco-sel.docked button { padding: 10px 8px; }
  .oco-sel.docked .sw { width: 28px; height: 28px; padding: 0; flex: none; } .oco-sel.docked .sep { margin: 0 3px; }
  .dock { bottom: 58px; padding: 10px 12px; }
  .player .controls { gap: 4px; } .player .np { order: 9; flex-basis: 100%; padding: 4px 2px 0; }
  .player .clock { margin-left: auto; }
  .dock.mini .player .np { order: 0; flex-basis: auto; flex: 1; padding: 0 4px; }
  .dock .player .credit, .dock .player .ra .ra-a { display: none; }
  .dock .player .seek { margin: 6px 0 0; } .dock .player .ra { margin-top: 2px; font-size: 12.5px; }
  .popover { right: 8px; left: 8px; width: auto; }
  .facts { grid-template-columns: 1fr 1fr; }
  /* a walk as a new reader (2.1): chips wrap where a sideways scroll hid half of them; a smaller cover keeps Read free
     on the first screen; the next chapter first and full width; All books as a list, not a table to pan */
  .chips { flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
  .bk-hero .cover-l { width: 128px; height: 192px; }
  .pn { flex-direction: column-reverse; } .pn .rnext { width: 100%; min-width: 0; }
  .scroll:has(table.listing) { overflow: visible; }
  table.listing thead { display: none; }
  table.listing, table.listing tbody, table.listing tr { display: block; }
  table.listing tr[hidden] { display: none; }
  table.listing tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.listing td { display: inline; padding: 0; border: 0; font-size: 13px; color: var(--soft); }
  table.listing td:first-child { display: block; margin-bottom: 2px; } table.listing td:first-child a { font: 600 18px/1.3 var(--serif); }
  table.listing td:nth-child(n+3)::before { content: " · "; } table.listing td:nth-child(3)::after { content: " pages"; }
  table.listing td:nth-child(5) { font-size: 0; } table.listing td:nth-child(5):empty { display: none; }
  table.listing td:nth-child(5)::before { content: " · audiobook"; font-size: 13px; }
  .desk-room .dk-help.narrow:not([hidden]) { display: block; top: auto; bottom: 86px; left: 12px; right: 12px; width: auto; }
  .oco-toast { width: max-content; max-width: calc(100vw - 32px); text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* 2.4.0: the Listen stage (the owner, 2026-12-02: "it doesn't look stunning enough"). One wide column, the voice's
   paragraph in full ink and the rest a step back while it reads, a soft light gliding from word to word, and a frosted
   dock with the cover. */
.readtop { background: var(--paper); }
.reader.listen .rbody { grid-template-columns: minmax(0, 1fr); }
.reader.listen .rbody .margin { display: none; }
.reader.listen .prose { font-size: calc(var(--read) * 1.08); }
.prose { isolation: isolate; }
.prose p, .prose h2 { transition: color .45s ease; }
.prose.voicing p:not(.voice-now), .prose.voicing h2 { color: color-mix(in srgb, var(--read-ink) 52%, var(--paper)); }
.prose p.voice-now { box-shadow: -18px 0 0 -15px color-mix(in srgb, var(--gold) 75%, transparent); }
::highlight(oco-sent) { background-color: color-mix(in srgb, var(--gold) 11%, transparent); }
::highlight(oco-word) { background-color: transparent; color: var(--navy); }
.ra-glow { position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none; border-radius: 7px;
  background: color-mix(in srgb, var(--gold) 30%, var(--paper));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 20%, transparent), 0 5px 16px color-mix(in srgb, var(--gold) 32%, transparent);
  transition: transform .17s cubic-bezier(.2, .7, .2, 1), width .17s cubic-bezier(.2, .7, .2, 1), height .17s ease; will-change: transform; }
.ra-glow.jump { transition: none; }
.ra-glow[hidden] { display: none; }

.dock:not(.mini) { background: color-mix(in srgb, var(--card) 82%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15); border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); padding: 14px 28px 12px; }
.player .art, .player .sub { display: none; }
.dock .player .art { display: block; position: relative; width: 44px; height: 64px; border-radius: 6px; overflow: hidden; flex: none; margin: 0 4px 0 8px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 30%, var(--sunk)), var(--sunk));
  box-shadow: 0 6px 16px var(--lift-ink), 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent); }
.dock .player .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dock .player .sub { display: block; font: 12px/1.35 var(--sans); color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock .player .now { font-size: 17px; }
.player .eq { position: absolute; right: 4px; bottom: 4px; display: none; gap: 2px; align-items: flex-end; height: 14px; padding: 3px 4px; border-radius: 5px;
  background: color-mix(in srgb, var(--navy) 62%, transparent); }
.player.on .eq { display: flex; }
.player .eq b { width: 2px; height: 35%; background: var(--paper); border-radius: 1px; animation: oco-eq 1.05s ease-in-out infinite; }
.player .eq b:nth-child(2) { animation-delay: -.4s; } .player .eq b:nth-child(3) { animation-delay: -.75s; }
@keyframes oco-eq { 0%, 100% { height: 35%; } 50% { height: 100%; } }
.player.on .play::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; pointer-events: none;
  border: 2px solid color-mix(in srgb, var(--brick) 40%, transparent); animation: oco-breathe 2.6s ease-in-out infinite; }
@keyframes oco-breathe { 0%, 100% { transform: scale(.93); opacity: .9; } 50% { transform: scale(1.07); opacity: .3; } }
.player .seek { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; margin: 12px 0 4px;
  background: linear-gradient(to right, var(--brick) var(--pct, 0%), color-mix(in srgb, var(--sunk) 70%, var(--line)) var(--pct, 0%)); }
.player .seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--card);
  border: 3px solid var(--brick); box-shadow: 0 2px 8px var(--lift-ink); transition: transform .15s ease; }
.player .seek::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 3px solid var(--brick); }
.player .seek:hover::-webkit-slider-thumb, .player .seek:active::-webkit-slider-thumb { transform: scale(1.2); }
.dock .player .ra { margin-top: 6px; font-size: 12.5px; } .dock .player .credit { margin: 2px 0 0; font-size: 12px; color: var(--faint); }
@media (prefers-reduced-motion: reduce) {
  .ra-glow, .prose p, .prose h2 { transition: none; } .player .eq b, .player.on .play::before { animation: none; }
}
@media (max-width: 600px) {
  .reader.listen .prose { font-size: var(--read); } .dock .player .art, .dock .player .sub { display: none; } .dock:not(.mini) { padding: 10px 14px 10px; }
}

/* 2.5.0: categories and the ways into the library */
.tag.cats a { color: inherit; text-decoration: none; } .tag.cats a:hover { text-decoration: underline; }
.catchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.catchip { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--card);
  box-shadow: var(--shadow); text-decoration: none; color: var(--navy); font: 600 16px/1.25 var(--serif); }
.catchip small { font: 600 12px var(--sans); color: var(--faint); font-variant-numeric: tabular-nums; }
.catchip:hover { background: color-mix(in srgb, var(--card) 80%, var(--gold)); }
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 18px 0 0; }
.catgrid a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; border-radius: var(--r); background: var(--card);
  box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.catgrid a:hover { background: color-mix(in srgb, var(--card) 85%, var(--gold)); }
.catgrid .covers { display: flex; gap: 8px; height: 96px; margin-bottom: 6px; }
.catgrid .covers img { width: 64px; height: 96px; border-radius: 6px; object-fit: cover; box-shadow: 0 4px 12px var(--lift-ink); }
.catgrid .t { font: 600 21px/1.2 var(--serif); color: var(--navy); } .catgrid .s { font-size: 14px; color: var(--soft); }
.listen-band { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 26px; border-radius: var(--r);
  background: color-mix(in srgb, var(--card) 70%, var(--gold)); }
.listen-band h2 { margin: 0 0 4px; } .listen-band p { margin: 0; color: var(--soft); }
table.listing td a { color: inherit; } table.listing td:last-child a { color: var(--soft); }
@media (max-width: 600px) { .catchips { grid-template-columns: 1fr 1fr; } .catgrid .covers { height: 72px; } .catgrid .covers img { width: 48px; height: 72px; } }
/* seven places in the top bar: tighter, and the reader's own two (My desk, Notebook: the streak, the footer and the phone's tab bar
   have them) step out first where the bar runs short */
@media (max-width: 1360px) { .nav a { padding: 8px 9px; } .top-in { gap: 14px; } .cmd { min-width: 0; } .cmd input { min-width: 0; } }
@media (max-width: 1240px) { .nav a[href="/notebook/"], .nav a[href="/desk/"] { display: none; } }
@media (max-width: 960px) { .nav a[href="/audiobooks/"], .nav a[href="/authors/"] { display: none; } }

/* ── 3.0.0: every book is a real book (the owner, 2026-12-02: "dramatically improve the ui/ux to be extremely stunning") ──
   A cover is the front of a 3D book: its spine (in the cover's own colour, --c) and its pages (as thick as the book, --t)
   turn into view when it does. The home page has a lit shelf of real spines; pointing at one takes it off the shelf and
   turns it to face you. A book flies from wherever it was pressed into its own page (cross-document view transitions). */
.top { background: color-mix(in srgb, var(--paper) 76%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }

.bk { --t: 10px; position: relative; display: block; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.2, .75, .25, 1); }
.bk > .cover { position: relative; border-radius: 2px 5px 5px 2px; }
.bk::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--t); transform-origin: left center; transform: rotateY(90deg);
  border-radius: 2px 0 0 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 66%, #000), color-mix(in srgb, var(--c) 90%, #fff 10%) 45%, color-mix(in srgb, var(--c) 78%, #000)); }
.bk::after { content: ""; position: absolute; top: 1.5%; bottom: 1.5%; right: 2px; width: var(--t); transform-origin: right center; transform: rotateY(-90deg);
  background: linear-gradient(90deg, rgba(60, 45, 25, .18), transparent 35%), repeating-linear-gradient(90deg, #f6f0e2 0 1px, #e0d6c2 1px 2px); }
.tile a { perspective: 900px; }
.tile .bk .cover { box-shadow: inset 4px 0 0 rgba(0, 0, 0, .10), 0 2px 3px rgba(60, 45, 25, .10), 0 14px 26px var(--lift-ink); }
.tile a:hover .bk, .tile a:focus-visible .bk { transform: translateY(-8px) rotateY(-26deg) rotateX(4deg); }
.tile a:hover .bk .cover, .tile a:focus-visible .bk .cover { box-shadow: inset 4px 0 0 rgba(0, 0, 0, .10), 18px 26px 34px var(--lift-ink); }

/* the cover the press has not drawn yet: cloth in the book's colour, a gold rule, gold type */
.cover.blank { --c: #2f3a5c; position: relative; container-type: inline-size; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  padding: 16% 12% 12%; text-align: center; color: #ecdcae; overflow: hidden;
  background: radial-gradient(130% 90% at 28% 12%, color-mix(in srgb, var(--c) 80%, #fff 20%), var(--c) 52%, color-mix(in srgb, var(--c) 78%, #000) 100%);
  box-shadow: inset 0 0 0 7px var(--c), inset 0 0 0 8px rgba(236, 220, 174, .5), inset 5px 0 0 rgba(0, 0, 0, .14), var(--lift); }
.cover.blank::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 4px), repeating-linear-gradient(-45deg, rgba(0, 0, 0, .04) 0 2px, transparent 2px 4px); }
.cover.blank small { position: absolute; top: 9%; left: 0; right: 0; font: 600 min(8px, 7.1cqw)/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; opacity: .75; }
.cover.blank i { font-style: normal; font-size: min(11px, 9.8cqw); opacity: .85; }
/* 5.14.0: the type follows the cover's own width (cqw, of the width inside its padding, so a full-size cover keeps its old
   size): a phone's 104px book-page cover had the 250px cover's 28px type and spilt over its edges */
.cover.blank span { font: 600 min(17px, 15.1cqw)/1.12 var(--serif); color: #f1e3b8; text-wrap: balance; overflow-wrap: anywhere; }
.cover.blank em { font: italic min(12px, 10.7cqw)/1.2 var(--serif); opacity: .85; }
.cover-s.blank { gap: 4px; } .cover-s.blank small, .cover-s.blank em { display: none; } .cover-s.blank span { font-size: min(12px, 16.4cqw); }
.cover.blank.long span { font-size: min(13px, 11.6cqw); } .cover-s.blank.long span { font-size: min(10px, 13.7cqw); }   /* over 60 letters: The Origin of Species… */
.cover-l.blank.long span { font-size: min(21px, 11cqw); }
.cover-l.blank:not(.long) span { font-size: min(28px, 14.7cqw); } .cover-l.blank em { font-size: min(17px, 8.9cqw); } .cover-l.blank small { font-size: min(10px, 5.3cqw); } .cover-l.blank i { font-size: min(15px, 7.9cqw); }

/* the home page: a lit shelf of the most-read classics */
.hero { position: relative; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: -40px calc(50% - 50vw) auto; height: 640px; pointer-events: none;   /* the window's width exactly: wider, a phone would widen the page */
  background: radial-gradient(48% 60% at 72% 46%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%),
              radial-gradient(40% 50% at 18% 10%, color-mix(in srgb, var(--brick) 9%, transparent), transparent 70%); }
.hero h1 { font-size: clamp(42px, 5.2vw, 74px); line-height: 1.02; letter-spacing: -.015em; max-width: 12em; }
.hero .lead { font-size: 20px; max-width: 34em; }
.lshelf-wrap { position: relative; margin: 8px -8px 26px; }
.lshelf { -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent);
  display: flex; align-items: flex-end; gap: 4px; overflow-x: auto; overflow-y: hidden; padding: 64px 190px 0 14px; perspective: 1500px;
  scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--soft) 40%, transparent) transparent; }
.lshelf-wrap::after { content: ""; position: absolute; left: 0; right: 0; bottom: 30px; height: 18px; border-radius: 3px; z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 55%, #6b4a2a), color-mix(in srgb, var(--gold) 30%, #4a321c));
  box-shadow: 0 16px 30px rgba(60, 40, 20, .28), inset 0 2px 0 rgba(255, 240, 210, .35); }
.lshelf-hint { margin: 12px 14px 0; font-size: 13px; color: var(--faint); height: 18px; }
@media (hover: none) { .lshelf-hint { visibility: hidden; } }
.sb { position: relative; flex: none; width: var(--w); height: var(--h); margin-bottom: 18px; transform-style: preserve-3d; transform-origin: 50% 100%;
  transition: transform .6s cubic-bezier(.2, .75, .25, 1); text-decoration: none; z-index: 1; --cw: 150px; }
.sb-spine { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px;
  padding: 16px 0 12px; border-radius: 2px 3px 3px 2px; overflow: hidden; color: #ecdcae; backface-visibility: hidden;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 64%, #000) 0%, color-mix(in srgb, var(--c) 88%, #fff 12%) 34%, var(--c) 58%, color-mix(in srgb, var(--c) 70%, #000) 100%);
  box-shadow: inset 0 12px 0 -9px rgba(236, 220, 174, .45), inset 0 -12px 0 -9px rgba(236, 220, 174, .45), 4px 0 10px rgba(0, 0, 0, .12); }
.sb-spine b { writing-mode: vertical-rl; font: 600 14px/1.05 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: calc(var(--h) - 92px); color: #f1e3b8; }
.sb-spine i { writing-mode: vertical-rl; font: italic 12px/1 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 66px; opacity: .85; }
.sb-cover { position: absolute; top: 0; left: 100%; width: var(--cw); height: 100%; transform-origin: 0 50%; transform: rotateY(90deg); backface-visibility: hidden;
  visibility: hidden; transition: visibility 0s .6s; }
.sb:hover .sb-cover, .sb:focus-visible .sb-cover { visibility: visible; transition: none; }   /* at rest a neighbour hides it, as on a real shelf */
.sb-cover .cover { width: 100%; height: 100%; border-radius: 2px 5px 5px 2px; box-shadow: inset 4px 0 0 rgba(0, 0, 0, .12), 20px 30px 40px rgba(40, 28, 14, .30); }
.sb:hover, .sb:focus-visible { z-index: 6; outline: none; transform: translate3d(calc(var(--cw) / -2), -22px, 70px) rotateY(-90deg); }
.sb:focus-visible .sb-cover .cover { box-shadow: 0 0 0 3px var(--brick), 20px 30px 40px rgba(40, 28, 14, .3); }

/* a book's own page: the book stands in its own light and turns with the pointer */
.bookpage .bk-hero { position: relative; isolation: isolate; perspective: 1200px; }
.bookpage .bk-hero::before { content: ""; position: absolute; z-index: -1; left: calc(50% - 50vw); width: 100vw; top: -150px; height: 720px; pointer-events: none;
  background: radial-gradient(30% 62% at 22% 50%, color-mix(in srgb, color-mix(in srgb, var(--c) 62%, #fff) 78%, transparent),
              color-mix(in srgb, color-mix(in srgb, var(--c) 40%, #fff) 26%, transparent) 55%, transparent); }
html[data-theme="dark"] .bookpage .bk-hero::before {
  background: radial-gradient(30% 62% at 22% 50%, color-mix(in srgb, color-mix(in srgb, var(--c) 75%, #fff) 34%, transparent), transparent); }
.bk-hero .bk::after { box-shadow: none; }
.bk-hero > .bk { margin: 6px 0 26px; }
.bk-hero > .bk > .cover::after { content: none; }
.bk-hero .bk { transform: rotateY(-18deg) rotateX(3deg); transition: transform .9s cubic-bezier(.2, .75, .25, 1); view-transition-name: bookcover; }
.bk-hero .bk .cover { box-shadow: inset 6px 0 0 rgba(0, 0, 0, .12), 30px 44px 60px rgba(40, 28, 14, .32), 8px 10px 18px rgba(40, 28, 14, .18); }
.bk-hero h1 { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.012em; }
html.vt-out .bk-hero .bk { view-transition-name: none; }

/* one book flies from where it was pressed into its page; nothing else moves */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-group(bookcover) { animation-duration: .6s; animation-timing-function: cubic-bezier(.2, .75, .25, 1); }

@media (max-width: 760px) {
  .hero h1 { font-size: 40px; } .hero .lead { font-size: 17px; }
  .sb { height: calc(var(--h) * .78); width: calc(var(--w) * .86); --cw: 116px; } .lshelf { padding-top: 50px; padding-right: 130px; }
  .sb-spine b { font-size: 12.5px; } .bookpage .bk-hero::before { height: 460px; top: -90px; }
  .bookpage .bk-hero::before { background: radial-gradient(60% 46% at 32% 40%, color-mix(in srgb, color-mix(in srgb, var(--c) 62%, #fff) 70%, transparent), transparent); }
  .bk-hero .bk { transform: rotateY(-12deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bk, .sb, .bk-hero .bk { transition: none; } .tile a:hover .bk { transform: none; }
  @view-transition { navigation: none; }
}

/* a category's card: three of its books fanned, the middle one in front */
.catgrid .covers { position: relative; height: 150px; perspective: 900px; margin: 4px 0 10px; }
.catgrid .covers .bk { position: absolute; top: 0; width: 96px; transition: transform .5s cubic-bezier(.2, .75, .25, 1); }
.catgrid .covers .bk .cover { width: 96px; height: 144px; box-shadow: inset 3px 0 0 rgba(0, 0, 0, .12), 0 12px 22px var(--lift-ink); }
.catgrid .covers .bk:nth-child(1) { left: 0; transform: rotateY(18deg) rotateZ(-4deg); z-index: 1; }
.catgrid .covers .bk:nth-child(2) { left: 62px; transform: translateZ(30px); z-index: 3; }
.catgrid .covers .bk:nth-child(3) { left: 124px; transform: rotateY(-18deg) rotateZ(4deg); z-index: 2; }
.catgrid a:hover .covers .bk:nth-child(1) { transform: translateX(-10px) rotateY(24deg) rotateZ(-7deg); }
.catgrid a:hover .covers .bk:nth-child(2) { transform: translateY(-8px) translateZ(46px); }
.catgrid a:hover .covers .bk:nth-child(3) { transform: translateX(10px) rotateY(-24deg) rotateZ(7deg); }
@media (max-width: 600px) { .catgrid .covers { height: 112px; } .catgrid .covers .bk, .catgrid .covers .bk .cover { width: 72px; height: 108px; }
  .catgrid .covers .bk:nth-child(2) { left: 48px; } .catgrid .covers .bk:nth-child(3) { left: 96px; } }
/* the book at a glance on a phone: every chapter fits (61 of them in Pride and Prejudice made the page 708 px wide) */
@media (max-width: 760px) { .bookmap { gap: 2px; overflow-x: auto; overflow-y: hidden; } .bookmap .seg { flex: 1 1 0; min-width: 3px; border-radius: 3px; } }

/* 3.3.0: the first reader's way in (the owner, 2026-12-02: "go through the user journey and dramatically improve it") */
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.btn.ghost { background: var(--card); color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--brick); color: var(--brick); }
#find { scroll-margin-top: 90px; }
.toc-more { margin-top: 6px; }
.toc-more > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 4px; padding: 10px 18px;
  border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 650 14px var(--sans); color: var(--navy); }
.toc-more > summary::-webkit-details-marker { display: none; }
.toc-more > summary::after { content: "↓"; color: var(--brick); }
.toc-more[open] > summary::after { content: "↑"; }
.toc-more > summary:hover { box-shadow: inset 0 0 0 1px var(--brick); }
/* footnotes and sidenotes from old printings: kept, but quiet */
.prose p .note-fn { display: block; font-size: .8em; line-height: 1.5; color: var(--soft); }
.prose p:has(> .note-fn) { text-indent: 0; padding-left: 1.2em; border-left: 2px solid var(--line); }
/* the end of a chapter: the next one is the obvious thing to do */
.pn .rnext { display: block; flex: 1 1 auto; width: min(100%, 560px); max-width: 560px; padding: 22px 28px; border-radius: 18px; background: var(--card);
  box-shadow: 0 10px 30px var(--lift-ink); border: 1px solid transparent; font: 600 26px/1.2 var(--serif); }
.pn .rnext span { font: 650 13px var(--sans); letter-spacing: .02em; }
.pn .rnext:hover { border-color: color-mix(in srgb, var(--brick) 40%, transparent); transform: translateY(-2px); }

/* ── 3.4.0: highly organized (the owner, 2026-12-03) ── */
/* one Browse: its panel under the top bar */
.navdrop { position: relative; display: inline-flex; }
.navdrop > a i { font-style: normal; font-size: 11px; margin-left: 2px; opacity: .7; }
.navpanel { display: none; position: fixed; top: 62px; left: 50%; transform: translateX(-50%); z-index: 60; width: min(900px, calc(100vw - 32px));   /* the top bar's frosted glass holds it: centred under the bar, never off the window */
  grid-template-columns: 1.6fr 1fr; gap: 26px; padding: 22px 24px; border-radius: 18px; background: var(--card); box-shadow: 0 24px 60px var(--lift-ink), 0 0 0 1px var(--line); }
.navpanel::before { content: ""; position: absolute; left: 0; right: 0; top: -26px; height: 26px; }   /* the pointer's bridge from the link */
.navdrop:hover .navpanel, .navdrop:focus-within .navpanel, .navdrop.open .navpanel { display: grid; }
.np-h { margin: 0 0 10px; font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.np-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.navpanel a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 10px; border-radius: 9px; text-decoration: none;
  color: var(--navy); font: 600 15px/1.25 var(--serif); }
.navpanel a small { font: 600 12px var(--sans); color: var(--faint); }
.navpanel a:hover, .navpanel a:focus-visible { background: var(--sunk); outline: none; }
.np-ways a { flex-direction: column; align-items: flex-start; gap: 1px; } .np-ways a b { font: 600 16px var(--serif); }
@media (max-width: 1240px) { .nav a[href="/notebook/"], .nav a[href="/desk/"] { display: inline-block; } }
@media (max-width: 960px) { .nav a[href="/audiobooks/"] { display: inline-block; } }
@media (max-width: 1000px) { .nav a[href="/notebook/"] { display: none; } }
/* /browse/ */
.ways { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ways a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 20px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow);
  text-decoration: none; color: inherit; }
.ways a b { font: 600 21px/1.2 var(--serif); color: var(--navy); } .ways a span { font-size: 14px; color: var(--soft); }
.ways a:hover { background: color-mix(in srgb, var(--card) 85%, var(--gold)); }
/* authors: chips, and A–Z */
.authorchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.authorchip { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.authorchip img, .authorchip .ini { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.authorchip .ini { display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 22%, var(--sunk)); font: 600 19px var(--serif); color: var(--navy); }
.authorchip b { display: block; font: 600 16px/1.2 var(--serif); color: var(--navy); } .authorchip small { font-size: 13px; color: var(--soft); }
.authorchip:hover { background: color-mix(in srgb, var(--card) 85%, var(--gold)); }
.azbar { position: sticky; top: 62px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 28px 0 6px; padding: 12px 0;
  background: var(--page); border-bottom: 1px solid var(--line); }
.azbar input { height: 40px; min-width: 240px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font: 15px var(--sans); color: var(--ink); }
.az { display: flex; flex-wrap: wrap; gap: 2px; }
.az a { min-width: 28px; padding: 6px 6px; border-radius: 8px; text-align: center; text-decoration: none; font: 650 14px var(--sans); color: var(--navy); }
.az a:hover { background: var(--sunk); }
.azsec { scroll-margin-top: 140px; } .azsec h2 { font-size: 30px; margin: 26px 0 8px; color: var(--brick); }
.azlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 18px; }
.azlist a { display: block; padding: 7px 8px; border-radius: 9px; text-decoration: none; color: inherit; }
.azlist a:hover { background: var(--sunk); } .azlist b { display: block; font: 600 16px/1.25 var(--serif); color: var(--navy); } .azlist small { font-size: 12.5px; color: var(--soft); }
@media (max-width: 760px) { .azbar { top: 56px; } .azbar input { min-width: 0; width: 100%; } .az a { min-width: 24px; padding: 5px 4px; }
  /* 5.7.0: the letters one row that slides, so the bar that stays on screen is half as tall */
  .azbar { gap: 8px; padding: 10px 0 6px; margin-top: 18px; } .az { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; width: calc(100% + 8px); }
  .az::-webkit-scrollbar { display: none; } .az a { flex: none; min-width: 32px; padding: 7px 4px; }
  .az { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 40px; } }   /* more letters that way */

/* ── 3.5.0: the experience, dramatically better ── */
/* the first page of a book, set like a printed first page */
.firstpage { max-width: 760px; }
.firstpage-text { position: relative; padding: 34px 44px 30px; border-radius: 6px 14px 14px 6px; background: var(--paper); box-shadow: var(--shadow), inset 6px 0 0 color-mix(in srgb, var(--c, var(--gold)) 55%, transparent);
  font: var(--read)/var(--lead) var(--serif); color: var(--read-ink); }
.firstpage-text p { margin: 0 0 1em; text-indent: 1.4em; } .firstpage-text p:first-child { text-indent: 0; }
.firstpage-text p:first-child::first-letter { float: left; font-size: 3.4em; line-height: .86; margin: .06em .08em 0 0; color: color-mix(in srgb, var(--c, var(--brick)) 75%, var(--brick)); }
.firstpage-text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; border-radius: 0 0 14px 6px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--paper)); }
.fp-more { display: flex; align-items: center; gap: 14px; margin: 16px 0 0; } .fp-more span { font-size: 14px; color: var(--soft); }
@media (max-width: 760px) { .firstpage-text { padding: 22px 20px 20px; } }
/* the reader: time left, and calm bars on a phone */
.readtop .left { font-size: 13px; color: var(--faint); margin-left: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .readtop .left { display: none; }
  .top, .tabbar { transition: transform .3s ease; }
  html.calm .top { transform: translateY(-100%); } html.calm .tabbar { transform: translateY(100%); }
  html.calm .readtop { top: 0; }
}
@media (prefers-reduced-motion: reduce) { .top, .tabbar { transition: none; } }
/* picked for a returning reader */
.picked header p { color: var(--soft); }

/* ── 3.5.0: reading settings, much more of them ── */
.popover.aa { width: 340px; max-height: calc(100vh - 140px); overflow: auto; overscroll-behavior: contain; }
.seg3.wrap { flex-wrap: wrap; } .seg3.wrap button { flex: 1 1 30%; }
.f-serif { font-family: var(--serif) !important; } .f-georgia { font-family: Georgia, serif !important; } .f-palatino { font-family: "Palatino Linotype", Palatino, "Book Antiqua", serif !important; }
.f-iowan { font-family: "Iowan Old Style", Charter, "Bitstream Charter", Georgia, serif !important; } .f-sans { font-family: var(--sans) !important; } .f-easy { font-family: Verdana, Tahoma, sans-serif !important; }
.aa-val { float: right; font: 600 12px var(--sans); letter-spacing: 0; text-transform: none; color: var(--soft); }
.aa-range { width: 100%; accent-color: var(--brick); margin: 2px 0 0; }
.aa-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); }
.aa-switch { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; font-size: 14px; color: var(--ink); cursor: pointer; }
.aa-switch input { margin-top: 3px; accent-color: var(--brick); }
.aa-foot { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }
.swatches button[aria-pressed="true"] { border-color: var(--brick); box-shadow: 0 0 0 2px var(--brick); }
/* the choices, on the page */
article.chapter { max-width: var(--measure, 680px); }
html[data-font="georgia"] .prose { font-family: Georgia, "Times New Roman", serif; font-size: calc(var(--read) * .9); }
html[data-font="palatino"] .prose { font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; font-size: calc(var(--read) * .92); }
html[data-font="iowan"] .prose { font-family: "Iowan Old Style", Charter, "Bitstream Charter", Georgia, serif; font-size: calc(var(--read) * .9); }
html[data-font="easy"] .prose { font-family: Verdana, Tahoma, "Segoe UI", sans-serif; font-size: calc(var(--read) * .82); letter-spacing: .01em; }
html[data-para="spaced"] .prose p { text-indent: 0; margin-bottom: 1.2em; }
html[data-para="compact"] .prose p { margin-bottom: .3em; }
html[data-align="justify"] .prose p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
html[data-track="roomy"] .prose { letter-spacing: .02em; word-spacing: .14em; }
html[data-ink="soft"] .prose { color: color-mix(in srgb, var(--read-ink) 76%, var(--paper)); }
html[data-ink="strong"] .prose { color: color-mix(in srgb, var(--read-ink) 55%, var(--navy)); }
html.nomargin .rbody { grid-template-columns: minmax(0, 1fr); } html.nomargin .rbody .margin { display: none; }
html.focusread .prose p, html.focusread .prose h2 { transition: color .35s ease; }
html.focusread .prose p:not(.focus-now), html.focusread .prose h2 { color: color-mix(in srgb, var(--read-ink) 38%, var(--paper)); }
/* Candle: amber on black, for reading in bed */
html[data-theme="candle"] { color-scheme: dark; --page: #110d09; --paper: #16110c; --card: #1e1811; --sunk: #2a2118; --line: #3a2e21;
  --ink: #e6cd9c; --soft: #b89f78; --faint: #9d886a; --navy: #f2dcae; --brick: #e2a25f; --brick-ink: #1a1209; --link: #f0c27a;
  --read-ink: #e8c893; --mark: #4a3a1e; --lift-ink: rgba(0, 0, 0, .5); --gold: #d9a441;
  --hl-yellow: #5a4720; --hl-rose: #5a3329; --hl-blue: #2f3f50; --hl-green: #34472c; }
html[data-theme="candle"] .brand .logo-light { display: none; } html[data-theme="candle"] .brand .logo-dark { display: block; }
html[data-theme="candle"] .streak { background: #3a2a1a; color: #f0cf9e; }
/* full screen reading: only the words */
.fs-line, .fs-peek { display: none; }
html.full body { background: var(--paper); }
html.full .readtop { position: fixed; left: 0; right: 0; top: 0; transform: translateY(-110%); transition: transform .25s ease; box-shadow: 0 10px 30px var(--lift-ink); }
html.full.fs-show .readtop { transform: none; }
html.full .rmain { background: var(--paper); }
html.full article.chapter { max-width: var(--measure, 720px); padding-top: 86px; }
html.full .fs-line { display: block; position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 19; background: color-mix(in srgb, var(--sunk) 70%, transparent); }
html.full .fs-line i { display: block; height: 100%; width: 0; background: var(--brick); }
html.full .fs-peek { display: flex; gap: 8px; position: fixed; top: 14px; right: 18px; z-index: 18; }
.fs-peek button { border: 0; cursor: pointer; padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--card) 86%, transparent);
  box-shadow: 0 4px 16px var(--lift-ink); color: var(--soft); font: 600 13px var(--sans); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fs-peek button:hover { color: var(--navy); }
html.full.fs-show .fs-peek { visibility: hidden; }
@media (max-width: 760px) { html.full .fs-peek { top: auto; bottom: 16px; right: 12px; } html.full article.chapter { padding-top: 40px; } }
@media (prefers-reduced-motion: reduce) { html.full .readtop, html.focusread .prose p { transition: none; } }

/* 3.7.0: the rights records (/rights/, /rights/books/, the line on a book page) */
table.rights-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
table.rights-table th, table.rights-table td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.rights-table th { font: 700 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
table.rights-table td:last-child { color: var(--soft); }
table.rights-table tr:target { background: color-mix(in srgb, var(--gold) 16%, transparent); }
.rights-line { margin: 18px 0 8px; color: var(--soft); }
@media (max-width: 760px) {
  table.rights-table thead { display: none; }
  table.rights-table, table.rights-table tbody, table.rights-table tr, table.rights-table td { display: block; }
  table.rights-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.rights-table td { border: 0; padding: 2px 0; }
  table.rights-table td[data-l]::before { content: attr(data-l) ": "; font-weight: 600; color: var(--faint); }
}

/* ── 3.9.0 Theater: listening along as a stage ── */
::highlight(oco-past) { color: var(--read-ink); }
.prose.voicing p.voice-now { color: color-mix(in srgb, var(--read-ink) 74%, var(--paper)); }    /* what is still to come waits a shade lighter */
.player .theater-btn { width: auto; height: 34px; padding: 0 13px; border-radius: 999px; gap: 6px; display: inline-flex; align-items: center;
  background: color-mix(in srgb, var(--gold) 16%, var(--sunk)); color: var(--navy); font: 650 13px var(--sans); }
.player .theater-btn span { color: var(--gold); } .player .theater-btn[aria-pressed="true"] { background: var(--navy); color: var(--page); }
.dock.mini .player .theater-btn { display: none; }
.theater-aura, .theater-cover { display: none; }
html.theater { color-scheme: dark; --page: color-mix(in srgb, var(--c, #2f3a5c) 24%, #0d0b11); --paper: color-mix(in srgb, var(--c, #2f3a5c) 24%, #0d0b11);
  --card: color-mix(in srgb, var(--c, #2f3a5c) 22%, #19161f); --sunk: color-mix(in srgb, var(--c, #2f3a5c) 26%, #241f2b); --line: rgba(255, 245, 225, .12);
  --ink: #eee6d8; --read-ink: #f1e9db; --soft: #c2b8a8; --faint: #968d80; --navy: #f7f0e3; --brick: #f2a581; --link: #f3c48e; --lift-ink: rgba(0, 0, 0, .45); }
html.theater body, html.theater .reader, html.theater .rmain, html.theater .rbody, html.theater article.chapter { background: transparent !important; }
html.theater .theater-aura { display: block; position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, color-mix(in srgb, var(--c) 30%, #15121b), #0b0a0f); }
.theater-aura i { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.theater-aura i:nth-child(1) { width: 62vmax; height: 62vmax; left: -16vmax; top: -22vmax; opacity: .55; background: color-mix(in srgb, var(--c) 78%, #f3e6c8); animation: oco-drift-a 36s ease-in-out infinite alternate; }
.theater-aura i:nth-child(2) { width: 54vmax; height: 54vmax; right: -18vmax; top: 6vmax; opacity: .32; background: color-mix(in srgb, var(--c) 45%, #d9a441); animation: oco-drift-b 43s ease-in-out infinite alternate; }
.theater-aura i:nth-child(3) { width: 58vmax; height: 58vmax; left: 18vmax; bottom: -34vmax; opacity: .34; background: color-mix(in srgb, var(--c) 55%, #8a4060); animation: oco-drift-c 51s ease-in-out infinite alternate; }
.theater-aura i:nth-child(4) { width: 38vmax; height: 38vmax; right: 6vmax; bottom: -12vmax; opacity: .3; background: color-mix(in srgb, var(--c) 45%, #3f7a86); animation: oco-drift-a 29s ease-in-out infinite alternate-reverse; }
.theater-aura b { position: absolute; inset: 0; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
@keyframes oco-drift-a { to { transform: translate(16vmax, 12vmax) scale(1.18); } }
@keyframes oco-drift-b { to { transform: translate(-14vmax, 16vmax) scale(.86); } }
@keyframes oco-drift-c { to { transform: translate(-10vmax, -14vmax) scale(1.12); } }
html.theater article.chapter { max-width: var(--measure, 760px); padding-top: 96px; padding-bottom: 42vh; }
html.theater .prose { font-size: calc(var(--read) * 1.22); line-height: 1.8; }
html.theater .eyebrow, html.theater article.chapter h1 { color: color-mix(in srgb, var(--read-ink) 70%, transparent); }
html.theater .prose p, html.theater .prose h2 { transition: filter .9s ease, color .9s ease; }
html.theater .prose.voicing p, html.theater .prose.voicing h2 { color: color-mix(in srgb, var(--read-ink) 26%, transparent); }
html.theater .prose.voicing [data-d="0"] { color: color-mix(in srgb, var(--read-ink) 70%, transparent); filter: none; }
html.theater .prose.voicing [data-d="1"] { color: color-mix(in srgb, var(--read-ink) 52%, transparent); filter: blur(.6px); }
html.theater .prose.voicing [data-d="2"] { color: color-mix(in srgb, var(--read-ink) 40%, transparent); filter: blur(1.3px); }
html.theater .prose.voicing [data-d="3"] { color: color-mix(in srgb, var(--read-ink) 32%, transparent); filter: blur(2px); }
html.theater .prose.voicing [data-d="4"], html.theater .prose.voicing [data-d="5"], html.theater .prose.voicing [data-d="6"] { filter: blur(2.8px); }
html.theater .prose p.voice-now { box-shadow: none; }
html.theater ::highlight(oco-past) { color: #fbf5ea; }
html.theater ::highlight(oco-word) { color: #fffaf0; }
html.theater ::highlight(oco-sent) { background-color: color-mix(in srgb, #f3d9a0 9%, transparent); }
html.theater .ra-glow { background: color-mix(in srgb, #e9b864 30%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, #f3d9a0 28%, transparent), 0 0 22px color-mix(in srgb, #e9b864 45%, transparent); }
html.theater .ra-glow.beat { animation: oco-beat .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes oco-beat {
  0% { box-shadow: 0 0 0 1px color-mix(in srgb, #f3d9a0 28%, transparent), 0 0 10px color-mix(in srgb, #e9b864 40%, transparent); }
  35% { box-shadow: 0 0 0 1px color-mix(in srgb, #f3d9a0 45%, transparent), 0 0 38px color-mix(in srgb, #e9b864 70%, transparent); }
  100% { box-shadow: 0 0 0 1px color-mix(in srgb, #f3d9a0 28%, transparent), 0 0 22px color-mix(in srgb, #e9b864 45%, transparent); } }
html.theater .theater-cover { display: block; position: fixed; z-index: 1; top: 50%; width: 220px; pointer-events: none;
  left: max(3vw, calc(50vw - var(--measure, 760px) / 2 - 300px));
  -webkit-box-reflect: below 12px linear-gradient(transparent 64%, rgba(255, 250, 240, .16));
  animation: oco-float 9s ease-in-out infinite alternate; transform: translateY(-50%) perspective(1100px) rotateY(18deg); }
.theater-cover img, .theater-cover .cover { display: block; width: 220px; height: 330px; object-fit: cover; border-radius: 3px 7px 7px 3px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, .55), 0 0 60px color-mix(in srgb, var(--c) 40%, transparent), inset 6px 0 0 rgba(0, 0, 0, .22); }
@keyframes oco-float { from { transform: translateY(-52%) perspective(1100px) rotateY(15deg) rotateX(2deg); }
                       to   { transform: translateY(-48%) perspective(1100px) rotateY(23deg) rotateX(-2deg); } }
html.theater .dock:not(.mini) { width: min(940px, calc(100% - 32px)); margin: 0 auto 18px; bottom: 18px; border-radius: 22px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 70%, transparent); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
html.theater .fs-peek button { background: color-mix(in srgb, var(--card) 70%, transparent); }
html.theater .fs-line { background: rgba(255, 245, 225, .08); } html.theater .fs-line i { background: color-mix(in srgb, #e9b864 80%, var(--brick)); }
@media (max-width: 1280px) { html.theater .theater-cover { display: none; } }
@media (max-width: 760px) { html.theater .prose { font-size: calc(var(--read) * 1.08); } html.theater article.chapter { padding-top: 56px; } .theater-aura i { filter: blur(60px); } }
@media (prefers-reduced-motion: reduce) { .theater-aura i, html.theater .theater-cover, html.theater .ra-glow.beat { animation: none; } html.theater .prose p { transition: none; } }

/* ── 3.10.0 Listening styles: each its own way ── */
:root { --ls-hue: #e9b864; }
.reader.listen .prose { font-size: calc(var(--read) * var(--ls-size, 1.08)); }
html.theater .prose { font-size: calc(var(--read) * var(--ls-size, 1.22)); }
.ra-glow { background: color-mix(in srgb, var(--ls-hue) 30%, var(--paper)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ls-hue) 22%, transparent), 0 5px 16px color-mix(in srgb, var(--ls-hue) 34%, transparent); }
::highlight(oco-sent) { background-color: color-mix(in srgb, var(--ls-hue) 12%, transparent); }
html[data-glow="off"] .ra-glow { visibility: hidden; }
html[data-glow="strong"] .ra-glow { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ls-hue) 40%, transparent), 0 0 30px color-mix(in srgb, var(--ls-hue) 60%, transparent); }
html.theater .ra-glow { background: color-mix(in srgb, var(--ls-hue) 30%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ls-hue) 28%, transparent), 0 0 22px color-mix(in srgb, var(--ls-hue) 45%, transparent); }
html.theater[data-glow="strong"] .ra-glow { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ls-hue) 45%, transparent), 0 0 40px color-mix(in srgb, var(--ls-hue) 70%, transparent); }
@keyframes oco-beat {
  0% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ls-hue) 28%, transparent), 0 0 10px color-mix(in srgb, var(--ls-hue) 40%, transparent); }
  35% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ls-hue) 45%, transparent), 0 0 38px color-mix(in srgb, var(--ls-hue) 70%, transparent); }
  100% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ls-hue) 28%, transparent), 0 0 22px color-mix(in srgb, var(--ls-hue) 45%, transparent); } }
html.theater[data-focus="off"] .prose.voicing [data-d] { filter: none; }
html.theater[data-focus="deep"] .prose.voicing [data-d="1"] { filter: blur(1.2px); } html.theater[data-focus="deep"] .prose.voicing [data-d="2"] { filter: blur(2.4px); }
html.theater[data-focus="deep"] .prose.voicing [data-d="3"] { filter: blur(3.4px); }
html.theater[data-focus="deep"] .prose.voicing [data-d="4"], html.theater[data-focus="deep"] .prose.voicing [data-d="5"], html.theater[data-focus="deep"] .prose.voicing [data-d="6"] { filter: blur(4.4px); }
html[data-motion="still"] .theater-aura i { animation-play-state: paused; }
html[data-motion="lively"] .theater-aura i { animation-duration: 13s; }
.theater-aura i:nth-child(1) { opacity: calc(.55 * var(--ls-light, 1)); } .theater-aura i:nth-child(2) { opacity: calc(.32 * var(--ls-light, 1)); }
.theater-aura i:nth-child(3) { opacity: calc(.34 * var(--ls-light, 1)); } .theater-aura i:nth-child(4) { opacity: calc(.3 * var(--ls-light, 1)); }
html[data-lcover="off"] .theater-cover { display: none !important; }
/* the panel */
.lsp { position: fixed; right: max(16px, calc(50vw - 470px)); z-index: 60; width: min(380px, calc(100vw - 24px)); max-height: 72vh; overflow: auto; overscroll-behavior: contain;
  padding: 16px; border-radius: 18px; background: var(--card); box-shadow: 0 24px 60px var(--lift-ink), 0 0 0 1px var(--line); }
.lsp[hidden] { display: none; }
.lsp h3 { margin: 4px 0 10px; font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.lsp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.lsp-card { text-align: left; padding: 11px 12px; border-radius: 13px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; color: var(--ink); }
.lsp-card b { display: block; font: 600 16px var(--serif); color: var(--navy); } .lsp-card span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: var(--soft); }
.lsp-card.on { border-color: var(--ls-hue); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ls-hue) 60%, transparent); }
.lsp-card:disabled { opacity: .5; cursor: not-allowed; }
.lsp-row { display: block; margin: 0 0 12px; font-size: 13.5px; color: var(--ink); }
.lsp-row > span { display: flex; justify-content: space-between; margin-bottom: 6px; } .lsp-row output { color: var(--soft); font-size: 12.5px; }
.lsp-row input[type=range] { width: 100%; accent-color: var(--ls-hue); }
.lsp-hues { display: flex; gap: 8px; } .lsp-hues button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.lsp-hues button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--navy); }
.lsp-note { font-size: 12.5px; color: var(--soft); margin: -6px 0 12px; }
.lsp-foot { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }
/* Spotlight and Ribbon: a room of their own */
.lsx { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 70px 6vw 210px; background: var(--paper); }
.lsx[hidden] { display: none; }
html.lsx-on .dock { z-index: 50; } html.lsx-on .top, html.lsx-on .tabbar { visibility: hidden; }
html.lsx-dark { color-scheme: dark; --page: color-mix(in srgb, var(--c, #2f3a5c) 24%, #0d0b11); --paper: color-mix(in srgb, var(--c, #2f3a5c) 24%, #0d0b11);
  --card: color-mix(in srgb, var(--c, #2f3a5c) 22%, #19161f); --sunk: color-mix(in srgb, var(--c, #2f3a5c) 26%, #241f2b); --line: rgba(255, 245, 225, .12);
  --ink: #eee6d8; --read-ink: #f1e9db; --soft: #c2b8a8; --faint: #968d80; --navy: #f7f0e3; --brick: #f2a581; --link: #f3c48e; --lift-ink: rgba(0, 0, 0, .45); }
html.lsx-dark .lsx { background: transparent; }
html.lsx-dark .theater-aura { display: block; position: fixed; inset: 0; z-index: 44; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, color-mix(in srgb, var(--c) 30%, #15121b), #0b0a0f); }
html.lsx-dark .theater-cover { display: none !important; }
.lsx-spot, .lsx-ribbon { display: none; }
.lsx[data-kind="spotlight"] .lsx-spot { display: block; } .lsx[data-kind="ribbon"] .lsx-ribbon { display: block; }
.lsx-spot { max-width: min(1150px, 92vw); text-align: center; }
.lsx-now { margin: 0; font: 500 min(var(--lsx-size, 46px), 9vw)/1.3 var(--lsx-font, var(--serif)); color: var(--read-ink); text-wrap: balance; }
.lsx-now.enter { animation: lsx-in .5s cubic-bezier(.2, .75, .25, 1); }
@keyframes lsx-in { from { transform: translateY(22px); opacity: 0; } }
.lsx span { border-radius: .18em; padding: 0 .05em; transition: color .25s ease, background-color .25s ease, box-shadow .25s ease; }
.lsx .later { color: color-mix(in srgb, var(--read-ink) 40%, transparent); } .lsx .past { color: var(--read-ink); }
.lsx .now { color: var(--navy); background: color-mix(in srgb, var(--ls-hue) 30%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ls-hue) 30%, transparent), 0 0 28px color-mix(in srgb, var(--ls-hue) 50%, transparent); }
html[data-glow="strong"] .lsx .now { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ls-hue) 45%, transparent), 0 0 54px color-mix(in srgb, var(--ls-hue) 70%, transparent); }
html[data-glow="off"] .lsx .now { background: none; box-shadow: none; text-decoration: underline .08em color-mix(in srgb, var(--ls-hue) 85%, transparent); text-underline-offset: .2em; }
.lsx-next { max-width: 44em; margin: 1.3em auto 0; font: italic min(calc(var(--lsx-size, 46px) * .42), 4.6vw)/1.45 var(--lsx-font, var(--serif)); color: color-mix(in srgb, var(--read-ink) 34%, transparent); }
html[data-lnext="off"] .lsx-next { display: none; }
.lsx-ribbon { position: absolute; left: 0; right: 0; top: 40%; overflow: hidden; padding: .3em 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }
.lsx-track { display: inline-block; white-space: nowrap; will-change: transform; font: 500 min(var(--lsx-size, 56px), 12vw)/1.35 var(--lsx-font, var(--serif));
  transition: transform .5s cubic-bezier(.25, .8, .25, 1); }
html[data-slide="snappy"] .lsx-track { transition-duration: .16s; }
.lsx-empty { position: absolute; left: 0; right: 0; bottom: 34%; text-align: center; font: 15px var(--sans); color: var(--faint); }
.lsx.live .lsx-empty { display: none; }
.lsx-close { position: fixed; top: 16px; right: 18px; z-index: 46; border: 0; cursor: pointer; padding: 8px 14px; border-radius: 999px; font: 600 13px var(--sans);
  color: var(--soft); background: color-mix(in srgb, var(--card) 80%, transparent); box-shadow: 0 4px 16px var(--lift-ink); }
@media (prefers-reduced-motion: reduce) { .lsx-now.enter { animation: none; } .lsx-track { transition: none; } }

/* 3.10.1: the owner, looking at Page: "does this look nice?". It did not: a flat block behind the sentence, a pill inside it, a bar in the
   margin. Now the ink does the work: the sentence being read is in full ink, the rest of the paragraph a shade lighter, one soft light on the word. */
::highlight(oco-sent) { background-color: transparent; color: var(--read-ink); }
.prose p.voice-now { box-shadow: none; }
.prose.voicing p.voice-now { color: color-mix(in srgb, var(--read-ink) 62%, var(--paper)); }
.ra-glow { border-radius: 9px; background: color-mix(in srgb, var(--ls-hue) 20%, var(--paper));
  box-shadow: 0 0 16px 2px color-mix(in srgb, var(--ls-hue) 26%, transparent); }
html[data-glow="strong"] .ra-glow { box-shadow: 0 0 26px 4px color-mix(in srgb, var(--ls-hue) 40%, transparent); }
html.theater ::highlight(oco-sent) { background-color: transparent; color: #fbf5ea; }
html.theater .ra-glow { background: color-mix(in srgb, var(--ls-hue) 26%, transparent); box-shadow: 0 0 22px 3px color-mix(in srgb, var(--ls-hue) 40%, transparent); }
html.theater[data-glow="strong"] .ra-glow { box-shadow: 0 0 36px 6px color-mix(in srgb, var(--ls-hue) 58%, transparent); }
@keyframes oco-beat { 0% { box-shadow: 0 0 10px 1px color-mix(in srgb, var(--ls-hue) 30%, transparent); }
  35% { box-shadow: 0 0 34px 6px color-mix(in srgb, var(--ls-hue) 62%, transparent); } 100% { box-shadow: 0 0 22px 3px color-mix(in srgb, var(--ls-hue) 40%, transparent); } }

/* ── 3.11.0 Pages and Looks, like Kindle ── */
.pg-foot { display: none; }
html.pages:not(.theater) body { overflow: hidden; height: 100dvh; overscroll-behavior: none; }
html.pages:not(.theater) .rail, html.pages:not(.theater) .rbody .margin, html.pages:not(.theater) .foot, html.pages:not(.theater) .tabbar,
html.pages:not(.theater) .crumbs, html.pages:not(.theater) .fs-line, html.pages:not(.theater) .fs-peek { display: none !important; }
html.pages:not(.theater) .reader, html.pages:not(.theater) .rbody { display: block; }
html.pages:not(.theater) article.chapter { position: fixed; inset: 0; z-index: 1; max-width: none; margin: 0; padding: 0; background: var(--paper); }
html.pages:not(.theater) article.chapter > :not(.pg-view) { display: none; }
html.pages:not(.theater) .pg-view { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 36px); bottom: calc(env(safe-area-inset-bottom, 0px) + 50px);
  left: 50%; width: min(calc(100vw - 48px), var(--measure, 680px)); transform: translateX(-50%); overflow: hidden; touch-action: pinch-zoom; }
html.pages:not(.theater) .pg-flow { height: 100%; column-fill: auto; transition: transform .38s cubic-bezier(.2, .75, .25, 1); }
/* 5.6.0: no standing will-change. Chrome paints a will-change layer only about 4,000 px around where it first stood and does not paint
   again as the strip slides, so every page from about the 12th on a phone (the 6th on a computer) came up blank. site.js sets it only
   while a finger drags the page */
html.pages:not(.theater) .pg-flow .prose p { orphans: 2; widows: 2; }
html.pages:not(.theater) .pg-flow h1 { break-after: avoid; margin-top: 0; }
html.pages:not(.theater) .pg-flow .pn { break-before: column; display: flex; flex-direction: column; justify-content: center; gap: 18px; height: 100%; margin: 0; border: 0; }
html.pages:not(.theater) .pg-flow .pn .rnext { width: 100%; max-width: none; }
html.pages:not(.theater) .folio::before { display: none; }
html.pages:not(.theater) .top { position: fixed; left: 0; right: 0; top: 0; z-index: 30; transition: transform .25s ease; }
html.pages:not(.theater) .readtop { position: fixed; left: 0; right: 0; top: 62px; z-index: 29; transition: transform .25s ease; }
html.pages.pg-calm:not(.theater) .top { transform: translateY(-110%); }
html.pages.pg-calm:not(.theater) .readtop { transform: translateY(calc(-100% - 70px)); }
html.pages:not(.theater) .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; }
html.pages:not(.theater) .pg-foot { display: flex; position: fixed; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); z-index: 20; height: 30px;
  justify-content: space-between; align-items: center; gap: 16px; padding: 0 24px; font: 12.5px var(--sans); color: var(--faint); pointer-events: none; }
.pg-foot .pg-where { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-foot .pg-info { pointer-events: auto; flex: none; border: 0; background: none; padding: 8px 0; font: inherit; color: var(--soft); cursor: pointer; font-variant-numeric: tabular-nums; }
.pg-foot .pg-line { position: absolute; left: 24px; right: 24px; top: -2px; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--line) 80%, transparent); }
.pg-foot .pg-line b { display: block; height: 100%; width: 0; border-radius: 2px; background: color-mix(in srgb, var(--brick) 70%, var(--gold)); transition: width .3s ease; }
@media (max-width: 760px) { html.pages:not(.theater) .readtop { top: 56px; } html.pages:not(.theater) .pg-view { width: calc(100vw - 40px); } }
@media (prefers-reduced-motion: reduce) { html.pages:not(.theater) .pg-flow, html.pages:not(.theater) .top, html.pages:not(.theater) .readtop { transition: none; } }
/* 5.3.1: a chapter opens as its first page. The head marks html.pages pg-pre before anything is drawn (render.PAGES_FIRST), and until
   site.js has made the pages the words already stand where page one will be: no top bar sliding off, no scrolling page jumping into pages */
html.pg-pre:not(.theater) article.chapter { overflow: hidden;   /* the same box as .pg-view below: 36px down, its width, centred */
  padding: calc(env(safe-area-inset-top, 0px) + 36px) max(24px, calc((100vw - var(--measure, 680px)) / 2)) 0; }
html.pg-pre:not(.theater) article.chapter > :is(h1, .startnote, .recap, .prose):not([hidden]) { display: block; }
html.pg-pre:not(.theater) article.chapter > .eyebrow { display: inline-block; }
html.pg-pre:not(.theater) article.chapter > h1 { margin-top: 0; }
@media (max-width: 760px) { html.pg-pre:not(.theater) article.chapter { padding-left: 20px; padding-right: 20px; } }
/* Looks */
.looks { display: flex; flex-wrap: wrap; gap: 6px; }
.look { border: 0; cursor: pointer; padding: 7px 12px; border-radius: 999px; background: var(--sunk); color: var(--ink); font: 600 13px var(--sans); }
.look:hover { background: color-mix(in srgb, var(--sunk) 70%, var(--gold)); }
.look.mine { display: inline-flex; align-items: center; gap: 2px; padding: 0 4px 0 0; }
.look.mine button { border: 0; background: none; cursor: pointer; padding: 7px 4px 7px 12px; font: 600 13px var(--sans); color: var(--navy); }
.look.mine .x { padding: 7px 8px; color: var(--faint); }
.look.save { background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--soft); }
.look-name { display: flex; gap: 6px; width: 100%; margin-top: 4px; } .look-name[hidden] { display: none; }
.look-name input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 14px var(--sans); }
.look-name button { border: 0; border-radius: 10px; padding: 0 14px; background: var(--navy); color: var(--page); font: 600 13px var(--sans); cursor: pointer; }
.seg3.wrap { justify-content: flex-start; }
@media (max-width: 760px) { .popover.aa { left: 12px; right: 12px; width: auto; max-height: calc(100dvh - 150px); } }

/* 3.12.0 long lists a page at a time; Authors two to a row on a phone; how pages work, once */
.later-row { display: none !important; }
.more-rows { display: block; margin: 14px auto 0; }
@media (max-width: 760px) { .azlist { grid-template-columns: 1fr 1fr; gap: 0 10px; } .azlist b { font-size: 15px; } .azlist a { padding: 6px 4px; } }

/* 4.0.0 visit recording: the one-time card (web/visits.js) and the privacy page's switch */
.rec-card { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  width: min(560px, calc(100vw - 32px)); padding: 14px 16px; border-radius: 16px; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--lift); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rec-card p { margin: 0; flex: 1 1 260px; font: 14px/1.45 var(--sans); color: var(--soft); }
.rec-card a { color: var(--link); }
.rec-card .rec-btns { display: flex; gap: 8px; margin-left: auto; }
.rec-card button, .rec-switch button { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; background: var(--paper);
  color: var(--ink); font: 600 14px var(--sans); cursor: pointer; }
.rec-card button.main { background: var(--navy); border-color: var(--navy); color: var(--paper); }
body.k-reader .rec-card, body:has(.tabbar) .rec-card { bottom: calc(env(safe-area-inset-bottom, 0px) + 76px); }
@media (min-width: 761px) { body:has(.tabbar) .rec-card { bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); } }
.rec-switch { margin: 18px 0; padding: 14px 16px; border-radius: 14px; background: var(--sunk); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rec-switch p { margin: 0; flex: 1 1 240px; }
.contact-mail { font-size: 22px; margin: 18px 0; overflow-wrap: anywhere; }

/* 4.1.0 the reader's journey (the owner: "dramatically improve the user experience and journey for the whole website"):
   Discover searches first, a book with no description shows its best known line, shelf pages are covers with a sort */
.hero-search { display: flex; align-items: center; gap: 10px; max-width: 660px; margin: 22px 0 12px; padding: 6px 6px 6px 16px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-search .ico { font-size: 20px; color: var(--faint); }
.hero-search input { flex: 1; min-width: 0; height: 46px; border: 0; background: none; font: 17px var(--sans); color: var(--ink); outline: none; }
.hero-search input::placeholder { color: var(--faint); }
.hero-search:focus-within { border-color: color-mix(in srgb, var(--line) 40%, var(--brick)); }
.hero-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; }
.hero-try > span { font-size: 14px; color: var(--soft); margin-right: 2px; }
.hook { margin: 12px 0 16px; padding: 2px 0 2px 18px; border-left: 3px solid color-mix(in srgb, var(--c, var(--brick)) 45%, var(--line)); max-width: 32em; }
.hook p { margin: 0; font: italic 23px/1.42 var(--serif); color: var(--ink); }
.hook p::before { content: "\201C"; } .hook p::after { content: "\201D"; }
.hook cite { display: block; margin-top: 6px; font: 13px var(--sans); color: var(--faint); font-style: normal; }
.finder { margin-top: 26px; }
.finder > header p { margin: 4px 0 0; color: var(--soft); }
.home-q .src a:first-child { color: var(--navy); font-weight: 600; }
.libbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 6px 0 18px; }
.libbar .picks-note { flex: 1 1 220px; margin: 0; }
.sortby { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--soft); }
.sortby select { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.viewsw { display: inline-flex; gap: 6px; }
.more-row { display: flex; justify-content: center; margin: 26px 0 0; }
@media (max-width: 760px) {
  .hero-search { margin-top: 16px; padding-left: 12px; } .hero-search .btn { padding: 0 14px; }
  .hero-try { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding: 2px 16px 4px 0; scrollbar-width: none; }
  .hero-try .chip { flex: none; }
  .hook p { font-size: 20px; }
  .libbar .picks-note { flex-basis: 100%; }
}
/* 4.1.0: on a phone the book page shows its cover beside the title, so Read free is on the first screen (it was a
   cover the width of the page, then the title, and the button below the fold) */
@media (max-width: 760px) {
  .bookpage > .bk-hero { grid-template-columns: 104px minmax(0, 1fr); gap: 0 16px; align-items: end; padding-top: 14px; }
  .bookpage > .bk-hero > div { display: contents; }
  .bookpage > .bk-hero > .bk { grid-column: 1; grid-row: 1 / span 3; margin: 0 0 6px; align-self: end; }
  .bookpage > .bk-hero .cover-l { width: 104px; height: 156px; }
  .bookpage > .bk-hero > div > * { grid-column: 2; min-width: 0; }
  .bookpage > .bk-hero > div > :nth-child(n+4) { grid-column: 1 / -1; }
  .bookpage > .bk-hero h1 { font-size: 34px; margin: 4px 0 6px; overflow-wrap: anywhere; }
  .bookpage > .bk-hero .byline { margin-bottom: 6px; }
}
/* 4.1.0: All books' filters: open on a computer (no button), behind one Filter button on a phone until used */
.filters > summary { display: none; }
@media (max-width: 760px) {
  .filters > summary { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
    background: var(--card); border: 1px solid var(--line); font: 600 15px var(--sans); color: var(--ink); list-style: none; margin: 4px 0 10px; }
  .filters > summary::-webkit-details-marker { display: none; }
  .filters > summary::after { content: "\25BE"; color: var(--faint); }
  .filters[open] > summary::after { content: "\25B4"; }
  .filters > summary span { color: var(--brick); }
}

/* 4.3.0 the visitor's journey */
.pg-tip { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 46px); transform: translateX(-50%); z-index: 45;
  display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 32px); padding: 10px 10px 10px 16px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font: 14px/1.4 var(--sans); color: var(--soft); }
.pg-tip b { color: var(--ink); font-weight: 650; }
.pg-tip button { flex: none; border: 0; border-radius: 999px; padding: 8px 14px; background: var(--brick); color: var(--brick-ink); font: 650 13px var(--sans); cursor: pointer; }
.startnote { margin: 4px 0 18px; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font: 14.5px/1.45 var(--sans); color: var(--soft); }
.startnote a { color: var(--brick); font-weight: 650; }
.ch-end { margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; font-family: var(--sans); }
.ch-end .ch-done { margin: 0 0 12px; font: 600 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ch-end .ch-bar { height: 6px; max-width: 360px; margin: 0 auto; border-radius: 99px; background: color-mix(in srgb, var(--line) 70%, transparent); overflow: hidden; }
.ch-end .ch-bar i { display: block; height: 100%; border-radius: inherit; background: var(--brick); }
.ch-end .ch-left { margin: 10px 0 0; font-size: 13.5px; color: var(--soft); } .ch-end .ch-left span { white-space: nowrap; }
.ch-end + .pn { border-top: 0; margin-top: 22px; padding-top: 0; }
.pn .rnext .tease { display: block; margin-top: 10px; font: italic 16px/1.5 var(--serif); color: var(--soft); text-align: left; }
.qfind { margin: 6px 0 14px; } .qfind input { flex: 1; min-width: 0; max-width: 420px; height: 42px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); font: 15px var(--sans); color: var(--ink); }
.quote-hero .actions { margin-top: 14px; }
.srch-note { margin: 4px 0 8px; font: 14.5px var(--sans); color: var(--soft); min-height: 1.4em; }
.srch > h2 { margin-bottom: 12px; }
.srch .chip .s { margin-left: 6px; font-weight: 400; color: var(--faint); font-size: 13px; }
a.qcard.sq { text-decoration: none; color: inherit; } a.qcard.sq .src { display: block; color: var(--brick); font-weight: 600; }
.sch { list-style: none; margin: 0; padding: 0; columns: 2 320px; column-gap: 24px; }
.sch li { break-inside: avoid; margin: 0 0 10px; } .sch a { text-decoration: none; color: var(--navy); font-weight: 600; }
.sch a .s { display: block; font-weight: 400; font-size: 13.5px; color: var(--faint); }
@media (max-width: 760px) {
  .pg-tip { bottom: calc(env(safe-area-inset-bottom, 0px) + 40px); font-size: 13.5px; }
  .srch .hero-try { flex-wrap: wrap; overflow: visible; }
  /* the quote page's buttons under the cover and title, in a row (beside the small cover they stood one to a line) */
  .bk-hero.quote-hero { align-items: end; gap: 0 16px; }
  .bk-hero.quote-hero > div { display: contents; }
  .bk-hero.quote-hero > .cover { grid-column: 1; grid-row: 1 / span 3; align-self: end; margin-bottom: 6px; }
  .bk-hero.quote-hero > div > * { grid-column: 2; min-width: 0; }
  .bk-hero.quote-hero > div > .actions { grid-column: 1 / -1; }
  .quote-hero .actions .btn { flex: 1 1 auto; justify-content: center; }
}
/* the paged reader: the chapter's end and the next chapter share one page, the next card as tall as its words (it filled the page) */
html.pages:not(.theater) .pg-flow .ch-end { break-before: column; break-inside: avoid; margin: 0; padding-top: 96px; border: 0; }   /* clear of the menu bars when they show */
html.pages:not(.theater) .pg-flow .ch-end + .pn { break-before: avoid; height: auto; flex-direction: column-reverse; justify-content: flex-start; margin-top: 30px; }
html.pages:not(.theater) .pg-flow .pn .rnext { flex: none; }
/* 5.6.0: the end of the book is a page of its own (it was hidden in pages, and a one-page book ended on its last words with nowhere to go) */
html.pages:not(.theater) .pg-flow .finish { break-before: column; break-inside: avoid; margin: 0; padding: 22px 18px 16px; box-shadow: none; }
html.pages:not(.theater) .pg-flow .finish .tiles > li:nth-child(n+3) { display: none; }   /* two books, so the end is one page */
html.pages:not(.theater) .pg-flow .finish + .pn { break-before: avoid; height: auto; justify-content: flex-start; margin-top: 24px; }
.pn > a[rel=prev] { flex: 0 0 auto; min-width: 9em; }   /* it squeezed to "← Chapter / 4 / Letter 4" beside the wide next card */

/* ── My library (4.5.0): the heart, Add to a list, the list picker, the library page ───────────────────────────────── */
.libctl { display: contents; }
.libctl[hidden] { display: none; }
.btn.heart { width: 44px; padding: 0; justify-content: center; font-size: 21px; color: var(--brick); }
.btn.heart[aria-pressed="true"] { background: color-mix(in srgb, var(--brick) 12%, var(--card)); border-color: color-mix(in srgb, var(--brick) 35%, var(--line)); }
/* 5.52.0: the shelf (Want to read, Reading now, Read): its button, its choice and the move under a book on the library page */
.btn.shelf.on { background: color-mix(in srgb, var(--link) 10%, var(--card)); border-color: color-mix(in srgb, var(--link) 30%, var(--line)); }
.shelfpop { display: grid; gap: 2px; max-width: 320px; }
.shelfopt { text-align: left; border: 0; background: none; border-radius: 10px; min-height: 42px; padding: 8px 12px; font: 600 15px var(--sans); color: var(--ink); cursor: pointer; }
.shelfopt:hover, .shelfopt:focus-visible { background: var(--paper); }
.shelfopt[aria-pressed="true"] { background: var(--paper); } .shelfopt[aria-pressed="true"]::before { content: "✓ "; color: var(--link); }
.tile .tile-shelf { display: block; width: 100%; margin-top: 8px; font: 600 12.5px var(--sans); color: var(--soft); background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; cursor: pointer; }
.tile .pill.when { background: var(--sunk); color: var(--soft); }
.libpop { max-width: 420px; margin: 4px 0 14px; padding: 14px 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); }
.libpop-h { margin: 0 0 8px; font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.libpop ul { list-style: none; margin: 0 0 10px; padding: 0; max-height: 220px; overflow: auto; }
.libpop label { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; color: var(--ink); cursor: pointer; }
.libpop label input { width: 18px; height: 18px; accent-color: var(--brick); }
.libpop label .n { margin-left: auto; font-size: 12.5px; color: var(--faint); }
.libnew, .libform { display: flex; gap: 8px; margin: 0 0 10px; }
.libnew input, .libform input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 15px var(--sans); }
.libform { max-width: 520px; margin: 4px 0 18px; }
.libform[hidden] { display: none; }
.liblink { display: block; width: 100%; max-width: 640px; height: 38px; margin: -6px 0 18px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 14px var(--sans); }
.libtoast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 12px;
  width: max-content; max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: 14px; background: var(--navy); color: var(--page); box-shadow: var(--lift); font-size: 14.5px; }
.libtoast[hidden] { display: none; }
.libtoast a, .libtoast button { color: var(--page); font: 650 14px var(--sans); white-space: nowrap; }
.libtoast button { background: none; border: 1px solid color-mix(in srgb, var(--page) 40%, transparent); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.libnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; }
.libnav .chip { text-decoration: none; }
.chip .n { font-size: 12px; opacity: .75; }
.libnav .chip.new { border-style: dashed; cursor: pointer; color: var(--link); background: transparent; }
.libhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.libhead h2 { margin: 0; } .libhead .small { margin: 4px 0 0; }
.libacts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13.5px; color: var(--soft); }
.libacts select { height: 34px; margin-left: 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 14px var(--sans); }
.libempty { padding: 28px 20px; border-radius: var(--r); background: var(--sunk); color: var(--soft); text-align: center; }
.libempty[hidden] { display: none; }
.tile { position: relative; }
.tile-x { position: absolute; top: -9px; right: -9px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  color: var(--soft); font-size: 18px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.tile-x:hover, .tile-x:focus-visible { color: var(--brick); }
.lib-shared { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 18px 0 0; }
.lib-shared[hidden] { display: none; } .lib-shared p { margin: 0; }
.finish .keepit { justify-content: center; }
#desk-lib { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) {
  .libtoast { bottom: calc(env(safe-area-inset-bottom, 0px) + 76px); }
  .libhead { align-items: flex-start; }
  .tile-x { top: -6px; right: -6px; }
}

/* ── print (4.15.0): a chapter, a poem or a page of quotes prints as the words alone, black on white in every room, with its
   title, its citation and the address it came from (it printed the top bar, the rail, the buttons, the player and the footer) ── */
/* 5.0.0 Your orders: the sign-in by emailed code and each order's steps */
.acct { max-width: 720px; display: grid; gap: 18px; }
.acct-form label { display: block; font: 650 15px var(--sans); margin-bottom: 10px; color: var(--ink); }
.acct-row { display: flex; gap: 10px; flex-wrap: wrap; }
.acct-row input { flex: 1 1 220px; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font: 17px var(--sans); }
#acct-c { flex: 0 1 200px; letter-spacing: .35em; font-variant-numeric: tabular-nums; }
.acct .linkish, .acct-who .linkish { background: none; border: 0; padding: 8px 0; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; }
.orders { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.order-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.order-head h2 { font-size: 22px; margin: 0; }
.order-items { margin: 10px 0 0; padding-left: 20px; }
.order-track a { overflow-wrap: anywhere; }
.steps-line { list-style: none; display: flex; gap: 6px; padding: 0; margin: 14px 0; flex-wrap: wrap; }
.steps-line li { flex: 1 1 0; min-width: 76px; padding: 9px 10px; border-radius: 10px; background: var(--sunk); color: var(--soft);
  font: 600 13px var(--sans); text-align: center; }
.steps-line li.done { background: var(--mark); color: var(--ink); }
.steps-line li.now { background: var(--brick); color: var(--brick-ink); }
@media (max-width: 420px) { .steps-line li { min-width: 0; padding: 8px 4px; font-size: 12px; } }
.buyrow { margin: 18px 0 6px; }
.buy-note { max-width: 48ch; }
.thanks { max-width: 680px; }
/* 5.4.0 Fingers (UX round 2): every tap target of 25 pages measured at a phone's width. A chapter card in Contents is one link (only the
   chapter's name took a tap, 70 by 24 of a 53px card); on a touch screen the search box takes a tap anywhere in it, a recording in the
   queue is a 36px row (21px), Queue, Cite this quote and In context get room, and the seek bar is grabbed by a 28px band that still looks 6px */
.toc li { position: relative; }
.toc li a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.toc li a:focus-visible { outline: none; } .toc li a:focus-visible::after { outline: 2px solid var(--brick); outline-offset: 2px; }
@media (pointer: coarse) {
  .cmd input { align-self: stretch; }
  .player .queue button { display: block; width: 100%; min-height: 36px; padding: 8px 4px; }
  .player .queue summary, .quote-cite summary { padding: 9px 0; }
  .qcard .src a { display: inline-block; padding: 9px 0; margin: -9px 0; }
  .player .seek { height: 28px; border-block: 11px solid transparent; background-clip: padding-box; margin-top: 1px; margin-bottom: -7px; }
}
@media (pointer: coarse) and (max-width: 760px) { .dock .player .seek { margin-top: -5px; margin-bottom: -11px; } }
@media print {
  :root, html[data-theme] { color-scheme: light; --page: #fff; --paper: #fff; --card: #fff; --sunk: #fff; --line: #bbb; --ink: #000; --soft: #333;
    --faint: #444; --navy: #000; --brick: #000; --link: #000; --read-ink: #000; --mark: transparent; --shadow: none; --lift: none; }
  @page { margin: 18mm 16mm; }
  html, body { background: #fff !important; color: #000 !important; }
  .skip, .top, .crumbs, .foot, .tabbar, .rail, .readtop, .margin, .dock, .study, .pn, .ch-end, .actions, .libctl, .btn, .qshare, .qfind,
  .libbar, .more-row, .keys-hint, .streak, .cmdk, .libtoast, dialog, .theater-aura, .theater-cover, .ra-pill, .fs-line, .fs-peek, .lsx,
  .pg-foot, .pg-tip, .oco-sel, .qacts, .popover, .navpanel, .player, .modes, details.quote-cite, .tile-x { display: none !important; }
  .reader, .rbody { display: block !important; min-height: 0 !important; }
  .pg-view { position: static !important; width: auto !important; height: auto !important; }
  .pg-flow { height: auto !important; columns: auto !important; transform: none !important; }
  html.pages article.chapter > .cite { display: block !important; }
  .prose { font-size: 12pt !important; line-height: 1.55 !important; max-width: none !important; color: #000 !important; }
  .prose p { orphans: 3; widows: 3; } .prose p:target { background: none; box-shadow: none; }
  h1, h2, h3 { break-after: avoid; } .qcard, figure, blockquote, .cite dl div { break-inside: avoid; }
  .qcard { box-shadow: none !important; border: 1px solid #bbb !important; } .qcards { columns: 2 !important; }
  a { color: #000 !important; text-decoration: none !important; }
  main[data-printed]::after { content: "Open Classics Press · " attr(data-printed); display: block; margin-top: 20pt; padding-top: 8pt;
    border-top: 1px solid #bbb; font: 9pt var(--sans); color: #444; }
}
