/* MicCheckStories: a book page under a bedside lamp.
   Warm black, paper-colored text, one amber accent. Nothing blue, nothing white, nothing that moves on its own.
   Fonts are self-hosted under the SIL OFL (licenses in fonts/). */

@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-roman.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --night: #13110f;        /* the room */
  --shelf: #1c1916;        /* the few raised surfaces */
  --rule: #2f2a24;         /* hairlines */
  --rule-strong: #4f463c;  /* dotted leaders, dark squares */
  --edge: #70665a;         /* control outlines: 3:1 on night and shelf */
  --paper: #dcd2c0;        /* body text, never white */
  --quiet: #a1978a;        /* metadata */
  --lamp: #dfa25a;         /* the one accent */
  --lamp-hi: #e9b67a;      /* lamp, hovered */
  --lamp-soft: #c08a4c;    /* the big page numbers */
  --ember: #6b4a28;        /* claimed, not read yet */
  --dark-square: #29241f;  /* an unheard page */
  --dark-square-hi: #352f28;
  --placeholder: #958b7d;  /* 5.2:1 on shelf */
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --radius: 6px;
  --gap-section: clamp(3rem, 2.25rem + 3vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--night);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--rule-strong) var(--night);
}
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--paper);
  font: 400 1.1875rem/1.6 var(--serif);
  font-optical-sizing: auto;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--lamp);
}
/* The nightstand lamp. Two fixed layers behind the page: the lamp itself, and the light it throws.
   On a phone it's a faint shape in the corner, dim enough that text over it keeps its contrast.
   On a wide screen it stands beside the page, and the page moves over to make room. */
:root { --lamp-h: min(62vh, 30rem); --lamp-r: -1.5rem; }
body::before, body::after { content: ""; position: fixed; pointer-events: none; }
body::before {
  z-index: -1; right: var(--lamp-r); bottom: 0;
  height: var(--lamp-h); aspect-ratio: 1 / 2;
  background: url("lamp.svg") no-repeat center bottom / contain;
  opacity: 0.2;
}
body::after {
  z-index: -2; inset: 0;
  background: radial-gradient(44rem 40rem at calc(100% - var(--lamp-r) - var(--lamp-h) / 4) calc(100% - var(--lamp-h) * 0.57), rgb(223 162 90 / 0.07), transparent 70%);
}

::selection { background: rgb(223 162 90 / 0.3); color: var(--paper); }

.wrap { width: min(100% - 2rem, 44rem); margin-inline: auto; }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.375rem, 1.7rem + 3.2vw, 3.5rem); letter-spacing: -0.025em; margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem); margin: var(--gap-section) 0 0.75rem; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; max-width: 65ch; text-wrap: pretty; }
strong { font-weight: 600; }
img { max-width: 100%; height: auto; }

a { color: var(--lamp); text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: rgb(223 162 90 / 0.45); }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 2px; }

.lede { font-size: clamp(1.25rem, 1.12rem + 0.55vw, 1.4375rem); line-height: 1.5; max-width: 38ch; text-wrap: balance; }
.nw { white-space: nowrap; }
.quiet { color: var(--quiet); }
.source { font-style: italic; color: var(--quiet); margin: 0 0 0.75rem; }
.meta {
  font: 400 0.8125rem/1.55 var(--mono);
  color: var(--quiet);
  font-variant-numeric: tabular-nums;
}
a.more { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 500; }

/* the folio: a page number set big and thin, the way it sits in a book's margin */
.folio {
  margin: 0;
  font: italic 300 clamp(4rem, 3rem + 6vw, 5.75rem)/0.85 var(--serif);
  letter-spacing: -0.03em;
  color: var(--lamp-soft);
  white-space: nowrap;
}
.folio.long { font-size: clamp(3rem, 2.4rem + 4vw, 4.25rem); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 1;
  padding: 0.5rem 0.9rem; border-radius: var(--radius);
  background: var(--lamp); color: var(--night); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- header and footer ---------- */
header.site {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem 0 1.1rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem;
  color: var(--paper); text-decoration: none;
  font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.01em;
}
.brand em { font-style: italic; font-weight: 400; color: var(--lamp); }
.mark { display: block; width: 32px; height: 32px; border-radius: 7px; }
header.site nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 1.0625rem; }
header.site nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--quiet); text-decoration: none; }
header.site nav a[aria-current] { color: var(--paper); text-decoration: underline; text-decoration-color: var(--lamp); text-underline-offset: 0.45em; }

footer.site {
  margin-top: calc(var(--gap-section) + 1rem);
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem; color: var(--quiet);
}
footer.site a { color: var(--quiet); }
footer.site p { margin-bottom: 0.5rem; }
.listen { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0 1.25rem; font-size: 1.0625rem; }
.listen a { display: inline-flex; align-items: center; min-height: 2.75rem; }
footer.site .listen a { color: var(--paper); }

/* ---------- buttons and forms ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0.55rem 1.15rem;
  font: 600 1.0625rem/1.2 var(--serif);
  color: var(--paper); background: transparent;
  border: 1px solid var(--edge); border-radius: var(--radius);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms var(--ease);
}
.button.primary { background: var(--lamp); border-color: var(--lamp); color: var(--night); }
.button:active { transform: scale(0.97); }

.signup { margin-top: var(--gap-section); padding-top: 2.25rem; border-top: 1px solid var(--rule); }

/* ---------- home ---------- */
.intro h1 { font-size: clamp(2.625rem, 1.75rem + 4.2vw, 4.25rem); margin-bottom: 0.9rem; }
.intro .lede { margin-bottom: 0; }

.tonight { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.tonight-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 0 1.1rem; margin-bottom: 1.1rem; }
.tonight-head h2 { margin: 0 0 0.35rem; font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem); }
.tonight-head h2 a { color: var(--paper); text-decoration: none; }
.tonight-head .meta { margin: 0; }
.chosen { font-style: italic; color: var(--quiet); }

.player { margin: 0 0 0.75rem; border-radius: 8px; overflow: hidden; background: var(--shelf); }
.player iframe { display: block; width: 100%; border: 0; filter: brightness(0.78) saturate(0.9); transition: filter 300ms ease; }
.video { aspect-ratio: 16 / 9; }
.video iframe { height: 100%; }
audio { display: block; width: 100%; margin: 0 0 0.75rem; }
.also { font-size: 0.9375rem; color: var(--quiet); margin-bottom: 0.5rem; }

/* table of contents: title, dotted leader, page number */
.toc { list-style: none; padding: 0; margin: 0.75rem 0 1.25rem; }
.toc li { padding: 0.55rem 0; }
.toc a { display: flex; align-items: last baseline; gap: 0.5rem; color: var(--paper); text-decoration: none; }
.toc .toc-title { flex: 0 1 auto; }
.toc .leader { flex: 1 1 1.5rem; min-width: 1.5rem; height: 0; border-bottom: 2px dotted var(--rule-strong); }
.toc .toc-folio { flex: none; font: 400 0.875rem var(--mono); color: var(--lamp); font-variant-numeric: tabular-nums; }
.toc .meta { display: block; margin-top: 0.1rem; }

/* the pages-read map, small, as a window onto the choose page */
.teaser h2 { margin-bottom: 1rem; }
.mini { display: grid; grid-template-columns: repeat(auto-fill, 7px); gap: 2px; margin: 0 0 1.25rem; text-decoration: none; }
.mini span { width: 7px; height: 7px; border-radius: 1px; background: var(--dark-square); transition: background-color 150ms ease; }
.mini .read { background: var(--lamp); }
.mini .claimed { background: var(--ember); }
.mini:focus-visible { outline-offset: 6px; }

/* ---------- episode list ---------- */
.jump ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jump a {
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.55rem 0.85rem;
  color: var(--paper); text-decoration: none; font-size: 1.0625rem;
  border: 1px solid var(--edge); border-radius: var(--radius);
  transition: border-color 150ms ease, color 150ms ease;
}
.jump .count { font: 400 0.75rem var(--mono); color: var(--quiet); }
.series { scroll-margin-top: 1.5rem; }

/* ---------- episode ---------- */
.ep-head { margin-bottom: 1.75rem; }
.ep-head .folio { margin-bottom: 0.4rem; }
.ep-head h1 { margin-bottom: 0.6rem; }
.ep-head .meta { margin: 0; }

.dedication { margin: 2.5rem 0 2rem; padding: 2.25rem 0; border-block: 1px solid var(--rule); text-align: center; }
.dedication p { margin-inline: auto; }
.dedication .for { font: italic 400 clamp(1.875rem, 1.45rem + 1.8vw, 2.5rem)/1.2 var(--serif); letter-spacing: -0.01em; max-width: 22ch; text-wrap: balance; margin-bottom: 0; }
.dedication .by { margin: 0.9rem auto 0; color: var(--quiet); }
.dedication.plain { padding: 1.75rem 0; }
.dedication.plain .for { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.625rem); }

.summary { font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.375rem); line-height: 1.5; margin-bottom: 0.5rem; }

figure.page { margin: 2.5rem 0; }
figure.page img { display: block; width: 100%; border-radius: 4px; filter: brightness(0.8) sepia(0.12); }
figcaption { margin-top: 0.6rem; font: 400 0.8125rem/1.5 var(--mono); color: var(--quiet); }

.chapters { list-style: none; padding: 0; margin: 0; }
.chapters li { display: flex; gap: 1rem; align-items: baseline; padding: 0.3rem 0; }
.chapters .time { flex: none; min-width: 3.25rem; font: 400 0.875rem var(--mono); color: var(--lamp); font-variant-numeric: tabular-nums; }
.chapters li:has(> a) { padding: 0; }
.chapters a { display: flex; gap: 1rem; align-items: baseline; min-height: 2.75rem; padding: 0.55rem 0; color: var(--paper); text-decoration: none; }

.transcript { margin: 2.5rem 0; border-block: 1px solid var(--rule); }
.transcript summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 3.25rem; padding: 0.75rem 0;
  color: var(--lamp); cursor: pointer; list-style: none;
}
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::after { content: "+"; font: 400 1.25rem/1 var(--mono); color: var(--quiet); }
.transcript[open] summary::after { content: "\2212"; }
.transcript-text { padding-bottom: 1.25rem; }

.credit { margin-top: 2.5rem; font-size: 0.9375rem; font-style: italic; color: var(--quiet); }
.pager { display: grid; gap: 0.75rem; margin-top: var(--gap-section); }
.pager a {
  display: grid; gap: 0.2rem; padding: 1rem 1.1rem;
  color: var(--paper); text-decoration: none;
  border: 1px solid var(--edge); border-radius: 10px;
  transition: border-color 150ms ease;
}
.pager .newer { text-align: right; }
.pager-label { font-size: 0.9375rem; color: var(--quiet); }
.pager-title { font-size: 1.1875rem; line-height: 1.3; text-wrap: balance; }
.next { margin-top: var(--gap-section); padding-top: 2rem; border-top: 1px solid var(--rule); }
.next h2 { margin-top: 0; }

/* ---------- choose: the map ---------- */
.map { scroll-margin-top: 1.5rem; }
.tally { font-size: 1.125rem; }
.tally strong { color: var(--lamp); }

.grid { list-style: none; padding: 0; margin: 1.25rem 0 0.9rem; display: grid; gap: 3px; }
.row { position: relative; display: grid; grid-template-columns: 2rem minmax(0, 1fr); align-items: center; gap: 0.5rem; }
.row-label { font: 400 0.6875rem/1 var(--mono); color: var(--quiet); text-align: right; font-variant-numeric: tabular-nums; }
.cells { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(25, minmax(0, 1.375rem)); gap: 3px; }
.cell { aspect-ratio: 1; border: 1px solid var(--rule-strong); border-radius: 2px; transition: background-color 150ms ease; }
.cell > a:not(.claim) {
  display: grid; place-items: center; width: 100%; height: 100%;
  overflow: hidden; border-radius: inherit; color: transparent; text-decoration: none;
  font: 500 0.5625rem/1 var(--mono); letter-spacing: -0.04em;
  -webkit-tap-highlight-color: transparent;
}
.cell.read { background: var(--lamp); border-color: var(--lamp); }
.cell.claimed { background: var(--ember); border: 1px dashed var(--lamp); }
/* Tap a square: its edge lights, and a note opens over its row with the page number, Close, and for a dark page
   "Claim it". The tap targets a .spot marker with no box (display: none), so the browser has nothing to scroll to.
   All :target and :has(), no script. */
.spot { display: none; }
.cell:has(> .spot:target) { border: 2px solid var(--lamp); background: var(--dark-square-hi); }
.cell:has(> .spot:target)::after {
  content: attr(data-say);
  position: absolute; z-index: 1; left: 0; right: 0; bottom: calc(100% + 6px);
  height: 5.6rem; padding: 0.7rem 0.9rem;
  font: 400 1.0625rem/1.3 var(--serif); color: var(--paper); text-align: left;
  background: var(--shelf); border: 1px solid var(--lamp); border-radius: 10px;
  box-shadow: 0 10px 28px rgb(8 6 4 / 0.6);
}
.cell .claim, .row .note-close { display: none; }
.cell:has(> .spot:target) .claim, .row:has(.spot:target) .note-close {
  position: absolute; z-index: 2; bottom: calc(100% + 6px + 0.55rem);
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem;
  text-decoration: none; white-space: nowrap; border-radius: var(--radius);
}
.cell:has(> .spot:target) .claim {
  right: 0.55rem; width: 6.75rem;
  font: 600 1.0625rem/1 var(--serif); color: var(--night); background: var(--lamp);
}
.row:has(.spot:target) .note-close {
  right: calc(0.55rem + 6.75rem + 0.4rem); padding: 0 0.9rem;
  font-size: 0.9375rem; color: var(--paper); border: 1px solid var(--edge);
}
.row:has(.cell.claimed > .spot:target) .note-close,
.row:has(.cell.open:not(:has(.claim)) > .spot:target) .note-close { right: 0.55rem; }
/* the first row has nothing above it but the tally, so its note opens below */
.row:first-child .cell:has(> .spot:target)::after { bottom: auto; top: calc(100% + 6px); }
.row:first-child .cell:has(> .spot:target) .claim,
.row:first-child:has(.spot:target) .note-close { bottom: auto; top: calc(100% + 6px + 2.3rem); }

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.1rem; margin: 1.5rem 0 0; font-size: 0.9375rem; color: var(--quiet); }
.legend .key { width: 0.8rem; height: 0.8rem; border: 1px solid var(--rule-strong); border-radius: 2px; }
.legend .k { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.legend .key.read { background: var(--lamp); border-color: var(--lamp); }
.legend .key.claimed { background: var(--ember); border: 1px dashed var(--lamp); }
.legend .key.in_progress { background: linear-gradient(90deg, var(--lamp) 50%, transparent 50%); border-color: var(--lamp); }
.heard { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0.25rem 0 0.75rem; font-size: 1rem; color: var(--quiet); }
.heard ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.heard a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.6rem;
  font: 400 0.875rem var(--mono); text-decoration: none;
  border: 1px solid var(--edge); border-radius: var(--radius);
  transition: border-color 150ms ease;
}
.claimed-list { font-size: 1rem; color: var(--quiet); }

.doclist { list-style: none; padding: 0; margin: 1rem 0 0.9rem; }
.doclist .doc { display: grid; grid-template-columns: 0.875rem minmax(0, 1fr); gap: 0.1rem 0.85rem; align-items: baseline; padding: 0.55rem 0; }
.doclist .sq { width: 0.875rem; height: 0.875rem; border: 1px solid var(--rule-strong); border-radius: 2px; transform: translateY(0.1em); }
.doclist .meta { grid-column: 2; }
.doclist .doc.read .sq { background: var(--lamp); border-color: var(--lamp); }
.doclist .doc.in_progress .sq { background: linear-gradient(90deg, var(--lamp) 50%, transparent 50%); border-color: var(--lamp); }
.doclist .doc.claimed .sq { background: var(--ember); border: 1px dashed var(--lamp); }

/* ---------- choose: the offers, as a price list ---------- */
.offers { margin-top: var(--gap-section); border-top: 1px solid var(--rule); scroll-margin-top: 1.5rem; }
.offers > h2 { margin-top: 2.25rem; }
.offer {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "text price" "cta cta";
  gap: 0.9rem 1.5rem; padding: 1.5rem 0;
}
.offer + .offer { border-top: 1px solid var(--rule); }
.offer-text { grid-area: text; }
.offer h3 { margin-bottom: 0.35rem; }
.offer p { margin: 0; }
.offer .price { grid-area: price; font: 400 1.875rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.offer .button, .offer .soon { grid-area: cta; justify-self: start; }
.offer .soon { font: 400 0.875rem var(--mono); color: var(--quiet); }
.offer.lead { margin-inline: -0.75rem; padding: 1.5rem 0.75rem; background: var(--shelf); border-radius: 10px; }
.offer.lead .price { font-size: 2.75rem; color: var(--lamp); }
.offer.lead + .offer { border-top: 0; }

.steps { list-style: none; padding: 0; margin: 0 0 1.75rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2rem minmax(0, 1fr); padding: 0.35rem 0; }
.steps li::before { content: counter(step); font: 500 0.875rem/1.9 var(--mono); color: var(--lamp); }

/* ---------- about ---------- */
.series-list, .contact dl { margin: 0.5rem 0 0; }
.series-list div, .contact dl div { display: grid; gap: 0.1rem 1.5rem; padding: 0.6rem 0; }
dt { font-weight: 600; }
dd { margin: 0; }
.series-list dd { font-style: italic; color: var(--quiet); }

/* ---------- holding page ---------- */
.holding-mark { display: block; width: 112px; height: 112px; border-radius: 24px; margin: 0.5rem 0 1.75rem; }
.holding .soon-line { margin-top: 1.25rem; font-style: italic; color: var(--quiet); }

/* ---------- 404 ---------- */
.lost { margin-bottom: 1rem; }

/* ---------- wider screens ---------- */
@media (min-width: 40rem) {
  .series-list div, .contact dl div { grid-template-columns: 12rem minmax(0, 1fr); }
  .offer { grid-template-columns: minmax(0, 1fr) 5.5rem 11.5rem; grid-template-areas: "text price cta"; align-items: center; }
  .offer .price { text-align: right; }
  .offer .button, .offer .soon { justify-self: stretch; text-align: center; }
  .offer.lead { margin-inline: -1.5rem; padding-inline: 1.5rem; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager .newer { grid-column: 2; }
}
@media (min-width: 75rem) {
  :root { --lamp-h: min(94vh, 52rem); --lamp-r: calc((100vw - 92rem) / 2 + 2rem); }  /* negative below 92rem: the room is cropped, not squeezed */
  body::before { opacity: 1; }
  .wrap { margin-left: calc(max(0px, (100vw - 92rem) / 2) + 14rem); margin-right: 0; }
}
@media (min-width: 72rem) {
  /* the folio hangs in the left margin, like a page number */
  .ep-head { position: relative; }
  .ep-head .folio { position: absolute; right: calc(100% + 2.5rem); top: 0.1em; margin: 0; text-align: right; }
}
@media (max-width: 24rem) {
  .tonight-head { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .row { grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0.35rem; }
  .row-label { font-size: 0.5625rem; }
  .cells, .grid { gap: 2px; }
}

/* ---------- hover, only where there is a real pointer ---------- */
@media (hover: hover) and (pointer: fine) {
  a { transition: color 150ms ease, text-decoration-color 150ms ease; }
  a:hover { color: var(--paper); text-decoration-color: currentColor; }
  .skip:hover { color: var(--night); }  /* outranks a:hover: the skip link keeps its 8.5:1 */
  header.site nav a:hover, footer.site a:hover { color: var(--paper); }
  .brand:hover { color: var(--paper); }
  .tonight-head h2 a:hover, .toc a:hover .toc-title { color: var(--lamp); }
  .toc a:hover .leader { border-bottom-color: var(--lamp-soft); }
  .button:hover { border-color: var(--lamp); color: var(--lamp); }
  .button.primary:hover { background: var(--lamp-hi); border-color: var(--lamp-hi); color: var(--night); }
  .jump a:hover { border-color: var(--lamp); color: var(--paper); }
  .mini:hover span:not(.read):not(.claimed) { background: var(--dark-square-hi); }
  .cell:hover > a:not(.claim) { color: var(--quiet); }
  .cell.read:hover > a { color: var(--night); }
  .cell.claimed:hover > a { color: var(--paper); }
  .cell.open:hover { background: var(--dark-square); }
  .player:hover iframe { filter: none; }
  .heard a:hover, .pager a:hover { border-color: var(--lamp); }
  .cell .claim:hover { background: var(--lamp-hi); color: var(--night); }
  .row .note-close:hover { border-color: var(--lamp); }
  .pager a:hover .pager-title, .chapters a:hover span:not(.time) { color: var(--lamp); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .button:active { transform: none; }
}
