@font-face { font-family: "EB Garamond"; src: url(fonts/eb-garamond-roman.woff2) format("woff2"); font-weight: 400 800; font-style: normal; font-display: block; }
@font-face { font-family: "EB Garamond"; src: url(fonts/eb-garamond-italic.woff2) format("woff2"); font-weight: 400 800; font-style: italic; font-display: block; }
@font-face { font-family: "IM Fell English"; src: url(fonts/im-fell-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: block; }
@font-face { font-family: "Source Sans 3"; src: url(fonts/source-sans-3.woff2) format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #1f2428;
  --slate: #5a636a;
  --mute: #8a9298;
  --rule: #c4cacf;
  --hair: #dde1e4;
  --wash: #f3f4f5;
  --paper: #ffffff;
  --accent: #2b6a55;
  --on-ink: #ffffff;
  --glass: #fffffff0;
  --sentence: #2b6a551c;
  --word: #2b6a5542;
  --user-hl: #e6b80045;
  --user-hl-ink: #b07d08;
  --col: 620px;
  --gap: 52px;
  --sn: 236px;
  --pad: 22px;
  --fs: 21px;
  --bar: 50px;
  --serif: "EB Garamond", Garamond, "Iowan Old Style", Palatino, Georgia, serif;
  --fell: "IM Fell English", var(--serif);
  --sans: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --lift: 0 0 0 1px var(--hair), 0 12px 32px rgb(31 36 40 / .12);
}
:root[data-theme=sepia] {
  --ink: #3b2f22;
  --slate: #6e5d4a;
  --mute: #9a8872;
  --rule: #cdbb9f;
  --hair: #dccdb3;
  --wash: #ebdcc2;
  --paper: #f4ecd8;
  --accent: #6b5a2e;
  --on-ink: #f4ecd8;
  --glass: #f4ecd8f0;
  --sentence: #8a5a1c24;
  --word: #8a5a1c4a;
  --user-hl: #c9921a3d;
  --user-hl-ink: #996a12;
  --lift: 0 0 0 1px var(--hair), 0 12px 32px rgb(59 47 34 / .18);
}
:root[data-theme=dark] {
  color-scheme: dark;
  --ink: #e3e6e8;
  --slate: #a9b1b7;
  --mute: #79828a;
  --rule: #4a5258;
  --hair: #30363b;
  --wash: #1f2428;
  --paper: #15191c;
  --accent: #7cc0a6;
  --on-ink: #15191c;
  --glass: #15191cf0;
  --sentence: #7cc0a622;
  --word: #7cc0a650;
  --user-hl: #d4a72c42;
  --user-hl-ink: #e0b646;
  --lift: 0 0 0 1px var(--hair), 0 12px 32px rgb(0 0 0 / .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); scroll-padding-top: calc(var(--bar) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: var(--fs)/1.6 var(--serif);
  font-kerning: normal; font-variant-ligatures: common-ligatures; font-variant-numeric: lining-nums proportional-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
::selection { background: color-mix(in srgb, var(--mute) 35%, transparent); }
a { color: var(--ink); text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--rule); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 70; padding: 12px 16px; background: var(--ink); color: var(--on-ink); font: 600 15px/1 var(--sans); text-decoration: none; }
.skip:focus { top: 12px; }
.col, .mid { width: min(var(--col), calc(100% - 2 * var(--pad))); margin-inline: auto; }
.sc, .ch-kicker, .toc-kicker, .toc-num, .bar-n, .sheet-h, .stop-n, .colo-ac, .colo-acts, .colo-up, .ih-ways, .sheet-foot {
  font-variant-caps: all-small-caps; font-variant-numeric: oldstyle-nums; font-weight: 500; letter-spacing: .07em;
}
.plain { all: unset; cursor: pointer; }

/* Title page */
.hero {
  display: flex; flex-direction: column; align-items: center;
  min-height: max(560px, 100vh); min-height: max(560px, 100svh);
  padding: max(40px, 7vh) var(--pad) max(20px, 3.5vh, env(safe-area-inset-bottom));
  text-align: center; font-size: clamp(15px, 2.4vw, 30px); font-weight: 520; line-height: 1.2;
}
.ih-page { margin-block: auto; display: flex; flex-direction: column; align-items: center; max-width: 24em; }
.ih-page p { margin: 0; }
.ih-title { margin: 0; font-weight: 520; font-size: 2.6em; line-height: 1.02; text-transform: uppercase; letter-spacing: .012em; text-wrap: balance; }
.ih-the { display: block; margin-bottom: -.1em; font: italic 400 .62em/1 var(--fell); text-transform: none; letter-spacing: .005em; }
.ih-main { display: block; }
.ih-def { margin-top: 2em !important; font-variant-caps: small-caps; letter-spacing: .045em; text-wrap: balance; }
.ih-names { margin-top: 2em !important; font-variant-caps: small-caps; letter-spacing: .045em; }
.ih-date { margin-top: .35em !important; font: italic 400 .92em/1.3 var(--fell); font-variant-numeric: oldstyle-nums; }
.ih-def:empty, .ih-names:empty, .ih-date:empty { display: none; }
.ih-way { margin-top: 2.4em; }
.ih-ways { display: flex; align-items: baseline; justify-content: center; margin: 0; font-size: max(19px, 1em); line-height: 1; }
.ih-go { all: unset; box-sizing: border-box; padding: 12px 6px; cursor: pointer; color: var(--ink); text-decoration: underline 1px transparent; text-underline-offset: .3em; }
.ih-go:hover { text-decoration-color: currentColor; }
.ih-go:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ih-or { padding: 0 .05em; font: italic 400 1em var(--fell); font-variant-caps: normal; letter-spacing: 0; white-space: pre; }
.ih-from { min-height: 1.3em; margin: 0; font: italic 400 max(15px, .8em)/1.3 var(--fell); font-variant-numeric: oldstyle-nums; }
html:not(.audio) .ih-or, html:not(.audio) #listen, html:not(.audio) .rail-play { display: none; }
.ih-wait { display: none; padding: 12px 6px; color: var(--slate); }
html.audio-pending .ih-or, html.audio-pending .ih-wait { display: inline; }
.ih-bm[hidden] { display: none; }
html.audio-pending .ih-bm { display: none; }
.ih-narrate { display: flex; gap: 8px; justify-content: center; align-items: baseline; margin: 8px 0 0; font: italic 400 max(15px, .8em)/1.3 var(--fell); }
.ih-narrate select, .ih-narrate button { font: inherit; color: var(--ink); }
html.audio .ih-narrate, html.audio-pending .ih-narrate { display: none; }
.ih-page > *, .ih-way { animation: fade .7s ease-out both; }
.ih-page > :nth-child(2) { animation-delay: .25s; }
.ih-page > :nth-child(3) { animation-delay: .4s; }
.ih-page > :nth-child(4) { animation-delay: .55s; }
.ih-way { animation-delay: .8s; }
@keyframes fade { from { opacity: 0; } }

/* Contents */
.front { padding: 118px 0 30px; }
.toc-kicker { margin: 0 0 44px; font-size: 22px; line-height: 1; letter-spacing: .1em; text-align: center; }
.toc-list { --rx: -28px; --name: 28px; --dot-y: 16px; list-style: none; margin: 0 auto; padding: 0; width: min(460px, 100%); }
.toc-item { position: relative; margin: 0 0 32px; }
.toc-item:last-child { margin-bottom: 0; }
.toc-item:not(:last-child)::after { content: ""; position: absolute; left: calc(var(--rx) - .5px); top: var(--dot-y); height: calc(100% + 32px); width: 1px; background: var(--ink); }
a.toc-link { display: block; color: var(--ink); text-decoration: none; }
.toc-name { font-size: var(--name); font-weight: 500; line-height: 1.3; text-decoration: underline 1px transparent; text-underline-offset: .2em; }
.toc-name::before { content: ""; position: relative; z-index: 1; display: inline-block; width: 9px; height: 9px; margin-left: -9px; left: calc(var(--rx) + 4.5px); vertical-align: middle; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); }
.toc-num { position: relative; display: inline-flex; justify-content: flex-end; width: 0; left: calc(var(--rx) - 16px); white-space: nowrap; font-size: 18px; letter-spacing: .06em; }
a.toc-link:hover .toc-name { text-decoration-color: currentColor; }
a.toc-link:hover .toc-name::before { background: var(--ink); }
.toc-subs { list-style: none; margin: 12px 0 0; padding: 0; font: italic 400 17px/1.5 var(--serif); }
.toc-subs a { text-decoration-color: transparent; }
.toc-subs a:hover { text-decoration-color: currentColor; }

/* Chapters */
.ch { position: relative; padding-top: 164px; }
.ch-head { margin: 0 0 58px; text-align: center; }
.ch-head::after { content: ""; display: block; width: 1px; height: 46px; margin: 32px auto 0; background: var(--ink); opacity: .3; }
.ch-h { margin: 0; font-weight: 500; line-height: 1; }
.ch-kicker { display: block; margin: 0 0 22px; font-size: 21px; line-height: 1; letter-spacing: .1em; }
a.ch-title { display: block; font-size: clamp(40px, 5.6vw, 66px); font-weight: 500; line-height: 1.04; text-wrap: balance; text-decoration: none; }
.prose { position: relative; }
.prose p { margin: 0; hyphens: auto; -webkit-hyphens: auto; }
.prose p + p { text-indent: 1.5em; }
.prose p.lede, .prose p.ni { text-indent: 0; }
.prose p.lede + * { clear: left; }
.prose p.lede::first-letter { float: left; font-size: 4.2em; line-height: .8; font-weight: 500; color: var(--accent); margin: .07em .085em 0 0; }
.prose h3 { margin: 2.6em 0 1.05em; font-weight: 500; font-style: italic; font-size: 1.42em; line-height: 1.2; text-align: center; text-wrap: balance; }
.prose h3::before { content: ""; display: block; width: 28px; height: 1px; margin: 0 auto .95em; background: var(--ink); opacity: .45; }
.speaking { cursor: pointer; }

/* Figures */
.fig { margin: 2.7em 0; text-align: center; }
.fig img { display: block; width: 100%; height: auto; margin: 0 auto; background: #fff; }
a.zoom { display: block; cursor: zoom-in; }
.fig figcaption { margin: 15px 0 0; font-style: italic; font-size: 16.5px; line-height: 1.5; text-align: center; text-wrap: balance; }
:root[data-theme=dark] .fig img, :root[data-theme=dark] .zoomd img { filter: brightness(.9); border-radius: 2px; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .fig img { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(18px) scale(.985); } }

/* Notes */
.nref {
  font: 600 .56em/0 var(--sans); vertical-align: .7em; letter-spacing: 0; text-indent: 0;
  font-variant-numeric: lining-nums tabular-nums; color: var(--ink);
  text-decoration: underline 1px transparent; text-underline-offset: .18em; padding: .5em .22em; margin: -.5em 0;
}
.nref:has(+ .nref) { padding-right: 0; }
.nref + .nref { padding-left: 0; }
.nref + .nref::before { content: ','; margin-right: .1em; }
.nref:hover { text-decoration-color: currentColor; }
.nref[aria-expanded=true] { color: var(--paper); background: linear-gradient(var(--ink), var(--ink)) no-repeat 50% 50% / calc(100% - .2em) 1.05em; }
.note, .nbox { font: 400 14.5px/1.5 var(--sans); letter-spacing: 0; text-indent: 0; text-align: left; hyphens: manual; overflow-wrap: break-word; color: var(--ink); }
.prose p.note { margin: .6em 0 1.1em; text-indent: 0; text-align: left; hyphens: manual; }
.nnum { margin-right: .45em; font-weight: 600; text-decoration: none; }
html.js .note[id] { display: none; }
.nbox { display: block; margin: .7em 0 .9em; padding: .8em 1em .85em; background: var(--wash); border-radius: 3px; animation: drop .16s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-3px); } }
.prose p.endnote { margin-top: 3em; text-align: center; font: italic 17px/1.5 var(--serif); color: var(--slate); }

/* Reading progress and bar */
.topline { position: fixed; left: 0; top: 0; width: 100%; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); z-index: 30; pointer-events: none; }
.rail { display: none; }
.bar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 40; padding-top: env(safe-area-inset-top);
  background: var(--glass); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--hair); transform: translateY(-104%); visibility: hidden;
  transition: transform .12s var(--ease), visibility 0s linear .12s;
}
.bar.show { transform: none; visibility: visible; transition: transform .16s var(--ease), visibility 0s; }
.bar::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.bar-in { display: flex; align-items: center; height: var(--bar); padding: 0 max(calc(var(--pad) - 10px), env(safe-area-inset-left)); }
.bar-btn { all: unset; box-sizing: border-box; flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 100%; padding: 0 10px; cursor: pointer; }
.bar-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.bar-n { flex: none; min-width: 20px; font-size: 18px; line-height: 1; letter-spacing: .06em; }
.bar-n:empty { display: none; }
.bar-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: italic 400 18.5px/1.25 var(--serif); }
.bar-c { flex: none; width: 16px; height: 14px; }
.bar-c path { stroke: currentColor; stroke-width: 1.1; fill: none; }
.bar-c circle { fill: var(--paper); stroke: currentColor; stroke-width: 1; }
.bar-c circle.f { fill: currentColor; }
.bar-ctl { all: unset; box-sizing: border-box; flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 3px; cursor: pointer; }
.bar-ctl:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.bar-ctl svg { width: 18px; height: 18px; overflow: visible; }
.bar-ctl .fill { fill: currentColor; }
.bar-play .pause-icon, .playing .bar-play .play-icon { display: none; }
.playing .bar-play .pause-icon { display: inline; }
.bar-back svg { width: 22px; height: 22px; }
.bar-back path { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.bar-back text { fill: currentColor; font: 600 7.4px var(--sans); }
.bar-rate { position: relative; width: auto; min-width: 42px; padding: 0 6px; font: 600 15px/1 var(--sans); font-variant-numeric: tabular-nums; }
.bar-rate select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; appearance: none; }
.bar-rate:focus-within { outline: 2px solid var(--ink); outline-offset: -4px; }
.bar-hide, .rail-bar { display: none; }
.bar-x { all: unset; flex: none; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; }
.bar-x:hover { background: var(--wash); }
.bar-x svg { width: 12px; height: 12px; }
.bar-x path { stroke: currentColor; stroke-width: 1.3; }
.bar[data-mode=read] .bar-ctl, .bar[data-mode=read] .bar-x { display: none; }
.bar[data-mode=listen] .bar-c { display: none; }
.bar[data-mode=listen] .bar-btn { padding: 0 6px; gap: 10px; }
.bar[data-mode=listen]::after { transform: scaleX(var(--lp, 0)); }

/* Listening and user highlights */
::highlight(user-hl) { background-color: var(--user-hl); }
::highlight(listen-s) { background-color: var(--sentence); }
::highlight(listen-w) { background-color: var(--word); }
.said { background-color: var(--sentence); }

/* Selection action menu */
.sel-menu {
  position: fixed; left: 0; top: 0; z-index: 60;
  display: inline-flex; align-items: stretch;
  transform: translateX(-50%);
  background: var(--paper); color: var(--ink);
  border-radius: 6px; box-shadow: var(--lift);
  overflow: hidden;
  font: 600 14px/1 var(--sans);
  animation: sel-pop .12s var(--ease);
}
.sel-menu[hidden] { display: none; }
@keyframes sel-pop { from { opacity: 0; transform: translateX(-50%) translateY(4px); } }
.sel-btn {
  all: unset; box-sizing: border-box; cursor: pointer;
  padding: 9px 13px; white-space: nowrap;
  color: var(--ink);
  transition: background .12s var(--ease), color .12s var(--ease);
}
.sel-btn[hidden] { display: none; }
.sel-btn + .sel-btn:not([hidden]) { border-left: 1px solid var(--hair); }
.sel-btn:hover { background: var(--wash); }
.sel-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.sel-btn.sel-danger { color: #b43c32; }
:root[data-theme=dark] .sel-btn.sel-danger { color: #e87c72; }

/* Dialogs */
dialog { color: var(--ink); }
html:has(dialog.sheet[open], dialog.zoomd[open]) { overflow: hidden; }
dialog::backdrop { background: #1f24285c; }
dialog.sheet { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); overflow: auto; overscroll-behavior: contain; }
dialog.sheet[open] { animation: sheet .24s var(--ease); }
@keyframes sheet { from { opacity: 0; transform: translateY(-14px); } }
.sheet-in { width: min(560px, 100%); margin: 0 auto; padding: calc(env(safe-area-inset-top) + 6px) var(--pad) calc(env(safe-area-inset-bottom) + 40px); }
.sheet-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: var(--bar); margin: 0 calc(-1 * var(--pad)) 30px; padding: 0 var(--pad); background: var(--paper); box-shadow: 0 1px 0 var(--hair); }
.sheet-top form { margin: 0; }
.sheet-h { margin: 0; font-size: 20px; line-height: 1; letter-spacing: .1em; }
.x { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 9px; padding: 12px 0 12px 14px; cursor: pointer; font: 600 15px/1 var(--sans); }
.x:hover { text-decoration: underline 1px; text-underline-offset: .25em; }
.x:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.x svg { width: 11px; height: 11px; }
.x path { stroke: currentColor; stroke-width: 1.3; }
.sheet .toc-list { --rx: -24px; --name: 24px; --dot-y: 14px; width: auto; padding-left: 58px; }
.sheet .toc-num { left: calc(var(--rx) - 14px); font-size: 17px; }
.sheet .toc-item { margin-bottom: 18px; }
.sheet .toc-item:not(:last-child)::after { height: calc(100% + 18px); }
.sheet .toc-subs { display: none; }
.sheet .toc-item.now .toc-subs { display: block; }
.sheet .toc-item.read .toc-name::before { background: var(--ink); }
.sheet .toc-item.now .toc-name::before { background: var(--accent); border-color: var(--accent); }
.sheet-foot { margin: 36px 0 0; padding-top: 18px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; gap: 4px 24px; }
.sheet-foot a, .sheet-foot button { all: unset; cursor: pointer; display: inline-block; padding: 8px 0; font-size: 18px; line-height: 1; text-decoration: underline 1px transparent; text-underline-offset: .25em; }
.sheet-foot [hidden] { display: none; }
.sheet-foot a:hover, .sheet-foot button:hover { text-decoration-color: currentColor; }
.sheet-foot :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
dialog.zoomd { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); }
dialog.zoomd[open] { display: grid; grid-template-rows: minmax(0, 100%); place-items: center; animation: sheet .24s var(--ease); }
.zoomd img { max-width: calc(100% - 32px); max-height: calc(100% - 96px); object-fit: contain; background: #fff; }
.zoomd form { position: fixed; top: calc(env(safe-area-inset-top) + 8px); right: var(--pad); margin: 0; }

/* Colophon */
.colophon { padding: max(26vh, 180px) 0 96px; text-align: center; }
.colophon p { margin: 0; }
.colo-names { font-size: 21px; font-weight: 520; font-variant-caps: small-caps; letter-spacing: .045em; line-height: 1.3; }
.colo-place, .colo-also { font: italic 400 17px/1.5 var(--fell); }
.colo-place { margin-top: 6px !important; }
.colo-place:empty, .colo-names:empty { display: none; }
.colo-acts { margin-top: 40px !important; font-size: 19px; line-height: 1; }
.colo-go { all: unset; box-sizing: border-box; padding: 12px 6px; cursor: pointer; text-decoration: underline 1px transparent; text-underline-offset: .3em; }
.colo-go:hover { text-decoration-color: currentColor; }
.colo-go:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.colo-ac { font-family: var(--serif); font-style: normal; }
.colo-top { margin-top: 40px !important; }
a.colo-up { display: inline-block; padding: 12px 6px; font-size: 17px; line-height: 1; text-decoration-color: transparent; text-underline-offset: .3em; }
a.colo-up:hover { text-decoration-color: currentColor; }

/* Wide screens: sidenotes, rail, floating bar */
@media (min-width: 760px) {
  .prose p { text-align: justify; }
}
@media (max-width: 759px) {
  :root { --fs: 19px; }
  body { line-height: 1.56; }
  .ch { padding-top: 112px; }
  .ch-head { margin-bottom: 44px; }
  .prose h3 { font-size: 1.3em; }
  .fig { margin-inline: calc(-1 * var(--pad)); }
  .fig figcaption { padding: 0 var(--pad); }
  .front { padding-top: 96px; }
  .toc-list { --rx: -24px; --name: 24px; --dot-y: 14px; width: auto; padding-left: 58px; }
  .toc-num { left: calc(var(--rx) - 14px); font-size: 17px; }
  .colophon { padding-top: max(22vh, 150px); }
}
@media (min-width: 1100px) {
  html { scroll-padding-top: calc(var(--bar) + 40px); }
  .col { margin-left: clamp(112px, calc(50% - var(--col) / 2), calc(100% - var(--col) - var(--gap) - var(--sn) - 48px)); margin-right: 0; }
  .topline { display: none; }
  html.js .note[id] { display: block; position: absolute; left: calc(100% + var(--gap)); width: var(--sn); margin: 0; font-size: 13px; line-height: 1.48; color: var(--slate); transition: color .16s; }
  html.js .note[id].hl { color: var(--ink); }
  .nref { cursor: default; }
  .rail { display: block; position: fixed; left: 34px; top: 120px; width: 28px; height: min(calc(100vh - 240px), 720px); z-index: 20; opacity: 0; visibility: hidden; transition: opacity .12s, visibility 0s linear .12s; }
  .rail.on { opacity: 1; visibility: visible; transition: opacity .16s, visibility 0s; }
  .rail-track { position: absolute; left: 13px; top: 0; bottom: 0; width: 1px; background: var(--hair); }
  .rail-fill { position: absolute; left: 12.5px; top: 0; bottom: 0; width: 2px; background: var(--ink); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
  a.stop { position: absolute; left: 0; width: 28px; height: 28px; margin-top: -14px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
  .stop::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--mute); background: var(--paper); transition: background .16s, border-color .16s; }
  a.stop:hover::before { border-color: var(--ink); }
  .stop.past::before { background: var(--ink); border-color: var(--ink); }
  .stop.on::before { background: var(--accent); border-color: var(--accent); }
  .stop-n { position: absolute; left: 32px; top: 50%; transform: translateY(-55%); font-size: 15px; line-height: 1; white-space: nowrap; }
  .stop-t { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); padding: 6px 10px 7px; white-space: nowrap; background: var(--paper); font: italic 400 16px/1 var(--serif); opacity: 0; pointer-events: none; }
  .stop-t b { margin-right: 9px; font: 500 16px var(--serif); font-variant-caps: all-small-caps; letter-spacing: .07em; }
  a.stop:hover .stop-t, a.stop:focus-visible .stop-t { opacity: 1; }
  a.stop:hover .stop-n, a.stop:focus-visible .stop-n { opacity: 0; }
  .rail-marks { position: absolute; inset: 0; pointer-events: none; }
  .rail-mark {
    all: unset; box-sizing: border-box; pointer-events: auto; cursor: pointer;
    position: absolute; left: -20px; width: 22px; height: 22px; margin-top: -11px;
    display: grid; place-items: center; border-radius: 50%;
    transition: transform .14s var(--ease), background .14s var(--ease);
  }
  .rail-mark:hover, .rail-mark:focus-visible { background: var(--wash); transform: scale(1.12); }
  .rail-mark:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
  .rail-mark svg { width: 12px; height: 12px; display: block; }
  .rail-mark-bm { color: var(--accent); z-index: 2; }
  .rail-mark-hl { color: var(--user-hl-ink); z-index: 1; }
  .rail-tip {
    position: absolute; left: 44px; top: 50%; transform: translateY(-50%);
    padding: 5px 10px 6px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    background: var(--paper); color: var(--ink); box-shadow: var(--lift); border-radius: 4px;
    font: italic 400 14.5px/1.2 var(--serif);
    opacity: 0; pointer-events: none; transition: opacity .12s var(--ease);
  }
  .rail-mark:hover .rail-tip, .rail-mark:focus-visible .rail-tip { opacity: 1; }
  .rail-bm-wrap {
    position: absolute; left: -20px; width: 22px; height: 22px; margin-top: -11px;
    pointer-events: auto; z-index: 2;
  }
  .rail-bm-wrap .rail-mark-bm { position: static; left: auto; margin-top: 0; }
  .rail-bm-pop {
    position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
    padding-left: 14px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .12s var(--ease), visibility 0s linear .12s;
  }
  .rail-bm-wrap:hover .rail-bm-pop, .rail-bm-wrap:focus-within .rail-bm-pop {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity .12s var(--ease), visibility 0s;
  }
  .rail-bm-remove {
    all: unset; box-sizing: border-box; cursor: pointer; display: block; white-space: nowrap;
    padding: 6px 10px; border-radius: 4px;
    background: var(--paper); box-shadow: var(--lift);
    font: 600 13px/1 var(--sans); color: #b43c32;
    transition: background .12s var(--ease);
  }
  :root[data-theme=dark] .rail-bm-remove { color: #e87c72; }
  .rail-bm-remove:hover { background: var(--wash); }
  .rail-bm-remove:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
  .rail-play { all: unset; box-sizing: border-box; position: absolute; left: 0; top: -54px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; cursor: pointer; }
  .rail-play svg { width: 12px; height: 12px; }
  .rail-play .fill { fill: currentColor; }
  .rail-play:hover { background: var(--ink); color: var(--paper); }
  .rail-play:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
  html.listening .rail-play { visibility: hidden; }
  .rail-bar { all: unset; box-sizing: border-box; position: absolute; left: 0; top: -94px; width: 28px; height: 28px; display: none; place-items: center; border: 1px solid var(--ink); border-radius: 50%; cursor: pointer; }
  html:not(.audio) .rail-bar, html.listening .rail-bar { top: -54px; }
  html.bar-hidden .rail-bar { display: grid; }
  html.bar-hidden .bar { display: none; }
  .rail-bar svg { width: 12px; height: 12px; }
  .rail-bar path, .bar-hide path { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
  .rail-bar:hover { background: var(--ink); color: var(--paper); }
  .rail-bar:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
  .bar-hide { all: unset; box-sizing: border-box; flex: none; display: grid; place-items: center; width: 32px; height: 42px; border-radius: 3px; cursor: pointer; color: var(--slate); }
  .bar-hide:hover { color: var(--ink); background: var(--wash); }
  .bar-hide:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
  .bar-hide svg { width: 12px; height: 12px; }
  .bar { left: 50%; right: auto; top: 16px; width: min(600px, calc(100% - 240px)); padding-top: 0; border-radius: 4px; box-shadow: var(--lift); transform: translate(-50%, calc(-100% - 24px)); }
  .bar.show { transform: translate(-50%); }
  .bar-in { padding: 0 8px 0 6px; }
  .bar::after { left: 4px; width: calc(100% - 8px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

@media print {
  @page { size: 6in 9in; margin: .7in .62in .8in; }
  :root { --fs: 10.6pt; }
  body { line-height: 1.45; }
  .skip, .topline, .rail, .bar, .sel-menu, dialog, .colo-acts, .colo-top, .ih-way { display: none !important; }
  .hero { min-height: 0; padding: 1.3in 0 .6in; font-size: 14pt; }
  .col, .mid { width: auto; margin: 0; }
  .ch { break-before: page; padding-top: .5in; }
  .ch-head::after, .prose h3::before { display: none; }
  a.ch-title { font-size: 30pt; }
  html.js .note[id] { display: block !important; position: static !important; width: auto !important; margin: .25em 0 .55em 1.4em !important; font-size: 7.8pt !important; }
  .nbox { display: none !important; }
  .fig { break-inside: avoid; margin-inline: 0 !important; }
  a { color: inherit; text-decoration: none; }
}
