:root {
  --paper: #f7f1e3;
  --paper-hi: #fffcf3;
  --ink: #241d12;
  --ink-soft: #5c5240;
  --ink-faint: #8d8064;
  --oxblood: #8b2a1d;
  --oxblood-soft: rgba(139, 42, 29, 0.1);
  --gold: #a97d1c;
  --gold-soft: #e9d9ae;
  --gold-wash: rgba(233, 217, 174, 0.55);
  --read: #cdb680;
  --hairline: rgba(36, 29, 18, 0.18);
  --hairline-soft: rgba(36, 29, 18, 0.1);
  --card: rgba(255, 252, 243, 0.72);
  --range-col: 5.4rem;

  /* the reading face, the same system sans the Bible companion reads in */
  --read-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: var(--paper);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 252, 242, 0.9), transparent 60%),
    radial-gradient(ellipse 100% 100% at 100% 120%, rgba(169, 125, 28, 0.08), transparent 55%);
  color: var(--ink);
  font-family: var(--read-sans);
  font-size: 18px;
  line-height: 1.62;
}

a { color: var(--oxblood); }
em { font-style: italic; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- references ---------- */

.ref {
  background: none;
  border: 0;
  padding: 0;
  color: var(--oxblood);
  border-bottom: 1px dotted rgba(31, 63, 217, 0.5);
  cursor: pointer;
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}
.ref:hover, .ref[aria-expanded="true"] { border-bottom-style: solid; }

/* ---------- masthead ---------- */

.masthead {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.2rem 1.6rem 1.2rem;
}
.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}
.title em { font-weight: 400; color: var(--oxblood); }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- controls + map ---------- */

.place {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.2rem 1.6rem 0.4rem;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.1rem;
  margin-bottom: 1.1rem;
}
.start-label { font-family: var(--sans); font-size: 1.05rem; }

.pick {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-hi);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 0.3rem 2rem 0.3rem 0.7rem;
  max-width: 19rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.pace-wrap { display: inline-flex; align-items: center; gap: 0.5rem; }
.pace-label { font-size: 0.95rem; color: var(--ink-soft); order: 2; }
.pace { display: inline-flex; border: 1px solid var(--hairline); border-radius: 999px; overflow: hidden; }
.pace button {
  background: none;
  border: 0;
  border-left: 1px solid var(--hairline-soft);
  padding: 0.18rem 0.62rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.pace button:first-child { border-left: 0; }
.pace button:hover { background: var(--gold-wash); color: var(--ink); }
.pace button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.steps { display: inline-flex; gap: 0.4rem; margin-left: auto; }
.step {
  background: var(--paper-hi);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  cursor: pointer;
}
.step:hover:not(:disabled) { border-color: var(--oxblood); color: var(--oxblood); }
.step:disabled { opacity: 0.4; cursor: default; }

.map { display: grid; gap: 3px; }
.map-row {
  display: grid;
  grid-template-columns: repeat(var(--n, 66), minmax(0, 1fr));
  column-gap: 2px;
}
.band {
  background: none;
  border: 0;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--sans);
  text-align: center;
}
.band .l2, .band .l3 { display: none; }
.part { container: part / inline-size; }
.sec { container: sec / inline-size; }
@container part (max-width: 250px) {
  .band .l1 { display: none; }
  .band .l2 { display: inline; }
}
@container part (max-width: 76px) {
  .band .l2 { display: none; }
  .band .l3 { display: inline; }
}
@container sec (max-width: 64px) {
  .band .l1 { display: none; }
  .band .l2 { display: inline; }
}
@container sec (max-width: 36px) {
  .band .l2 { display: none; }
  .band .l3 { display: inline; }
}
@container sec (max-width: 11px) {
  .band .l3 { display: none; }
}
.part {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0.1rem 0 0.15rem;
  border-bottom: 1px solid var(--hairline);
}
.part.here { color: var(--ink); border-bottom-color: var(--ink); }
.sec {
  font-size: 0.72rem;
  color: var(--ink-soft);
  padding: 0.18rem 0.1rem;
  border-radius: 3px;
  background: rgba(255, 252, 243, 0.55);
  box-shadow: inset 0 0 0 1px var(--hairline-soft);
}
.sec:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.sec.done { color: var(--ink-faint); }
.sec.here { background: var(--gold-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--gold); font-weight: 600; }

.cell {
  height: 24px;
  min-width: 0;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--hairline);
  transition: background 0.15s, transform 0.15s;
}
.cell.read { background: var(--read); box-shadow: none; }
.cell.today { background: var(--oxblood); box-shadow: none; }
.cell:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--oxblood); }

.pin {
  justify-self: center;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--oxblood);
  font-variant-numeric: lining-nums;
}
.pin::before { content: "▲ "; font-size: 0.6rem; }
.pin.at-start { justify-self: start; }
.pin.at-end { justify-self: end; }

.whereami {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.2rem 1rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.where-stats { color: var(--ink-faint); font-variant-numeric: lining-nums; }
.example {
  margin-top: 0.6rem;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  background: var(--gold-wash);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- blocks ---------- */

main { padding-bottom: 3rem; }

.block {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.6rem 1.6rem 0;
}
.block.wide { max-width: 1080px; }
.block > h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.block > h2 span { font-weight: 400; color: var(--ink-soft); }
.block-lede { color: var(--ink-soft); font-size: 1rem; max-width: 60ch; margin-bottom: 1.2rem; }

/* ---------- where we were ---------- */

.spine {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1.1rem 1.3rem 0.9rem;
  margin-bottom: 1.6rem;
}
.spine-text { font-size: 1.1rem; margin: 0.35rem 0 0.8rem; }
.spine-qs { display: grid; gap: 0.45rem; margin-bottom: 0.6rem; }
.spine-qs div { display: grid; grid-template-columns: 7.2rem 1fr; gap: 0.8rem; align-items: baseline; }
.spine-qs dt {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--oxblood);
}
.spine-qs dd { color: var(--ink-soft); }
.spine-more summary, details > summary {
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-soft);
  list-style: none;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸ "; color: var(--gold); }
details[open] > summary::before { content: "▾ "; }
.spine-more p { margin-top: 0.6rem; font-size: 0.98rem; color: var(--ink-soft); }

.memory { list-style: none; position: relative; }
.memory::before {
  content: "";
  position: absolute;
  left: calc(var(--range-col) + 0.55rem);
  top: 0.6rem;
  bottom: 1rem;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--gold) 0 6px, transparent 6px 11px);
  opacity: 0.5;
}
.mem {
  display: grid;
  grid-template-columns: var(--range-col) 1fr;
  gap: 1.3rem;
  padding: 0.35rem 0;
}
.mem-range {
  text-align: right;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-faint);
  font-variant-numeric: lining-nums;
  padding-top: 0.28rem;
}
.mem-bar {
  display: block;
  position: relative;
  height: 3px;
  margin: 0.3rem 0 0 auto;
  width: 100%;
  background: var(--hairline-soft);
  border-radius: 2px;
}
.mem-bar i { position: absolute; top: 0; bottom: 0; background: var(--gold); border-radius: 2px; min-width: 2px; }
.mem-body { position: relative; min-width: 0; }
.mem-body::before {
  content: "";
  position: absolute;
  left: -0.95rem;
  top: 0.62rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--gold);
}
.mem-head {
  display: block;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
}
.mem-head::after { content: " +"; color: var(--gold); font-weight: 400; }
.mem-head[aria-expanded="true"]::after { content: " −"; }
.mem-head:hover { color: var(--oxblood); }
.mem-kind { color: var(--oxblood); font-weight: 600; margin-right: 0.15rem; font-variant-numeric: lining-nums; }
.mem-text { margin-top: 0.2rem; color: var(--ink-soft); font-size: 1rem; }
.mem-q { font-style: italic; }
.mem-q .label { font-style: normal; margin-right: 0.3rem; }

.mem-part .mem-head { font-size: 1.12rem; }
.mem-part.done .mem-body::before { background: var(--gold); }
.mem-section { margin-left: 0; }
.mem-section .mem-body { padding-left: 0.9rem; }
.mem-section .mem-body::before { left: -0.05rem; width: 7px; height: 7px; top: 0.66rem; border-width: 1.5px; }
.mem-section .mem-head { font-size: 0.98rem; }
.mem-chapter .mem-body, .mem-more .mem-body { padding-left: 1.8rem; }
.mem-chapter .mem-body::before, .mem-more .mem-body::before { left: 0.85rem; width: 5px; height: 5px; top: 0.72rem; border-width: 1.5px; }
.mem-chapter .mem-head { font-weight: 500; font-size: 0.96rem; }
.mem-chapter.open .mem-text { color: var(--ink); }
.mem-expand {
  background: none;
  border: 0;
  padding: 0.1rem 0;
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--ink-faint);
  cursor: pointer;
}
.mem-expand:hover { color: var(--oxblood); }
.mem-now .mem-body::before { background: var(--oxblood); border-color: var(--oxblood); }
.mem-now .mem-range { color: var(--oxblood); font-weight: 600; }
.mem-now a {
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
}
.mem-now a:hover { text-decoration: underline; text-underline-offset: 3px; }
.empty { color: var(--ink-soft); font-style: italic; }

/* ---------- today ---------- */

.context {
  border-left: 3px solid var(--gold);
  padding: 0.2rem 0 0.2rem 1rem;
  margin-bottom: 1rem;
}
.context-sec { font-size: 1.05rem; }
.q { font-size: 1.08rem; font-style: italic; color: var(--ink); margin-top: 0.25rem; }
.q .label { font-style: normal; margin-right: 0.35rem; }

.chips { margin: 1.2rem 0 0.4rem; }
.chips .label { display: block; margin-bottom: 0.4rem; }
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0 0.35rem 0.4rem 0;
  padding: 0.18rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--paper-hi);
  cursor: pointer;
  font-size: 0.92rem;
}
.chip:hover { border-color: var(--oxblood); }
.chip-name { font-family: var(--sans); font-size: 0.86rem; font-weight: 600; }
.chip-note { color: var(--ink-faint); font-size: 0.86rem; }

.card {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
}
.banner {
  background: var(--gold-wash);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.2rem;
}
.banner h3 { font-family: var(--sans); font-size: 1.3rem; font-weight: 600; margin: 0.15rem 0 0.2rem; }
.banner .note { margin-top: 0.5rem; font-size: 0.96rem; color: var(--ink-soft); }
.banner .when { font-style: italic; color: var(--ink-soft); }
.banner-part { background: var(--ink); color: var(--paper); }
.banner-part .label, .banner-part .when, .banner-part .q .label { color: rgba(255, 255, 255, 0.7); }
.banner-part .q { color: var(--paper); }
.banner-part .ref { color: #c9d2ff; border-bottom-color: rgba(201, 210, 255, 0.6); }

.card-head { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 0.6rem; }
.card-num {
  font-family: var(--sans);
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 300;
  color: var(--oxblood);
  font-variant-numeric: lining-nums;
}
.card-head h3 { font-family: var(--sans); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.gist { font-size: 1.12rem; margin-bottom: 1rem; }
.move {
  border-left: 2px solid var(--oxblood);
  padding: 0.1rem 0 0.1rem 1rem;
  margin-bottom: 1.1rem;
}
.move p:last-child { color: var(--ink-soft); }

blockquote {
  margin: 0 0 1.2rem;
  padding: 0.8rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--hairline-soft);
  border-radius: 10px;
}
blockquote p { font-size: 1.15rem; line-height: 1.5; }
blockquote sup { font-size: 0.6em; color: var(--ink-faint); margin-right: 0.15em; }
blockquote cite {
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.echoes .label, .later summary, .reader summary { display: block; margin-bottom: 0.5rem; }
.echoes ul, .echo-list { list-style: none; }
.echo {
  border-left: 2px solid var(--gold-soft);
  padding: 0.35rem 0 0.4rem 0.95rem;
  margin-bottom: 0.55rem;
}
.echo-refs { font-family: var(--sans); font-size: 0.9rem; }
.echo-arrow { color: var(--gold); margin: 0 0.35rem; }
.echo-when { color: var(--ink-faint); font-size: 0.82rem; margin-left: 0.3rem; }
.echo-note { font-size: 1rem; }
.compare summary { font-size: 0.78rem; margin-top: 0.2rem; }
.compare blockquote { margin: 0.5rem 0 0; padding: 0.55rem 0.8rem; }
.compare blockquote p { font-size: 0.98rem; }
.compare blockquote::before {
  display: block;
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.compare .then::before { content: "Then"; }
.compare .now::before { content: "Now"; }

.watch { margin: 0.8rem 0 1rem; font-style: italic; color: var(--ink-soft); }
.watch .label { font-style: normal; margin-right: 0.35rem; color: var(--oxblood); }

.later, .reader { margin-top: 0.7rem; }
.later summary, .reader summary { font-size: 0.86rem; margin-bottom: 0; }
.later[open] summary, .reader[open] summary { margin-bottom: 0.6rem; }
.count {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--ink-faint);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0 0.45rem;
  margin-left: 0.25rem;
  font-variant-numeric: lining-nums;
}
.chapter-text {
  columns: 2 22rem;
  column-gap: 2rem;
  padding: 0.4rem 0 0.2rem;
}
.chapter-text .v { margin-bottom: 0.4rem; break-inside: avoid; font-size: 1rem; padding-left: 1.4rem; text-indent: -1.4rem; }
.chapter-text sup {
  display: inline-block;
  width: 1.4rem;
  text-indent: 0;
  font-size: 0.65rem;
  color: var(--ink-faint);
  font-family: var(--sans);
  vertical-align: 0.35em;
}
.chapter-text .key-v { background: var(--gold-wash); border-radius: 3px; }
.chapter-text .echo-v { text-decoration: underline dotted var(--gold); text-underline-offset: 4px; }

/* ---------- next ---------- */

.nextup {
  text-align: center;
  padding-top: 2.4rem;
}
.nextup > * { max-width: 60ch; margin-left: auto; margin-right: auto; }
.next-text { font-family: var(--sans); font-size: 1.15rem; margin: 0.25rem auto 0.4rem; }
.next-note { color: var(--ink-soft); font-size: 1rem; margin-bottom: 0.8rem; }
.btn {
  margin-top: 0.5rem;
  background: var(--oxblood);
  color: var(--paper);
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font-family: var(--sans);
  font-size: 1rem;
  cursor: pointer;
}
.btn:hover { background: #1832b0; }

/* ---------- threads ---------- */

.taxis, .trow {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr) 5.8rem;
  gap: 1rem;
  align-items: center;
}
.taxis { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.2rem; }
.taxis .tcells { height: auto; }
.axis-part { border-bottom: 1px solid var(--hairline); text-align: center; padding-bottom: 0.15rem; white-space: nowrap; overflow: hidden; }

.tgroup {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.1rem 0 0.2rem;
}
.trow {
  width: 100%;
  background: none;
  border: 0;
  border-top: 1px solid var(--hairline-soft);
  padding: 0.4rem 0;
  text-align: left;
  cursor: pointer;
}
.trow:hover { background: rgba(255, 252, 243, 0.7); }
.trow[aria-expanded="true"] { background: var(--card); }
.tname { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; line-height: 1.25; }
.trow.in-today .tname { color: var(--oxblood); }
.trow.in-today .tname-text::after { content: " ●"; font-size: 0.6em; vertical-align: 0.25em; }
.tlegend { display: block; font-weight: 400; font-size: 0.78rem; color: var(--ink-faint); }
.tlegend span { margin-right: 0.7rem; white-space: nowrap; }
.tlegend .m { position: static; display: inline-block; margin-right: 0.25rem; vertical-align: 0.05em; }
.tsum { font-size: 0.8rem; color: var(--ink-faint); text-align: right; font-variant-numeric: lining-nums; }

.tcells {
  display: grid;
  grid-template-columns: repeat(var(--n, 66), minmax(0, 1fr));
  column-gap: 2px;
  height: 20px;
}
.tc { position: relative; height: 20px; min-width: 0; }
.tc.today { background: var(--gold-soft); border-radius: 2px; }
.tc.ahead .m { opacity: 0.32; }
.tc.sb { box-shadow: -1px 0 0 var(--hairline-soft); }

.m { display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; }
.m0 { width: 5px; height: 5px; background: var(--oxblood); }
.m0.s2 { width: 7px; height: 7px; }
.m0.s3 { width: 9px; height: 9px; }
.m1 { width: 8px; height: 8px; border: 1.5px solid var(--oxblood); background: transparent; }
.m1.s2 { width: 10px; height: 10px; }
.m1.s3 { width: 12px; height: 12px; }
.m2 { width: 6px; height: 6px; background: var(--gold); border-radius: 1px; transform: translate(-50%, -50%) rotate(45deg); }
.m2.s2 { width: 8px; height: 8px; }
.m2.s3 { width: 9px; height: 9px; }
.tlegend .m2, .thits .m2 { transform: rotate(45deg); }

.tdetail {
  padding: 0.8rem 1rem 1rem;
  margin-bottom: 0.4rem;
  background: var(--card);
  border-radius: 0 0 10px 10px;
  max-width: 760px;
}
.t-about { font-size: 1rem; }
.t-arc { margin: 0.5rem 0; font-size: 1.02rem; }
.t-arc .label { margin-right: 0.35rem; color: var(--oxblood); }
.t-found { font-size: 0.9rem; color: var(--ink-faint); margin-bottom: 0.6rem; }
.thits { list-style: none; max-height: 24rem; overflow-y: auto; padding-right: 0.4rem; }
.thits li {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.55rem;
  align-items: baseline;
  padding: 0.25rem 0;
  border-top: 1px solid var(--hairline-soft);
  font-size: 0.95rem;
}
.thits li:not(:has(.m)) { grid-template-columns: auto 1fr; }
.thits .m { position: static; display: inline-block; }
.thits .ref { font-family: var(--sans); font-size: 0.82rem; }
.thits mark { background: var(--gold-soft); color: inherit; padding: 0 0.1em; border-radius: 2px; }
.thits .why { color: var(--ink-faint); font-style: italic; }
.thits .today { background: var(--gold-wash); }
.thits .ahead { color: var(--ink-faint); }
.thits .ahead mark { background: var(--hairline-soft); }

/* ---------- the whole book ---------- */

.ol-parts, .ol-secs, .ol-chs { list-style: none; }
.ol-part { margin-bottom: 1.8rem; }
.ol-part > h3 { font-family: var(--sans); font-size: 1.3rem; font-weight: 600; }
.ol-part > .when { font-style: italic; color: var(--ink-soft); font-size: 0.98rem; }
.ol-range { font-weight: 400; font-size: 0.8em; color: var(--ink-faint); font-variant-numeric: lining-nums; }
.ol-secs { margin-top: 0.8rem; border-left: 1px solid var(--hairline); padding-left: 1rem; }
.ol-sec { margin-bottom: 1rem; }
.ol-sec h4 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; }
.ol-sec .q { font-size: 0.98rem; color: var(--ink-soft); }
.ol-chs { columns: 2 16rem; column-gap: 1.5rem; margin-top: 0.3rem; }
.ol-ch {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
  break-inside: avoid;
}
.ol-ch .n { display: inline-block; min-width: 1.6rem; font-family: var(--sans); font-size: 0.8rem; color: var(--ink-faint); font-variant-numeric: lining-nums; }
.ol-ch:hover { background: var(--gold-wash); }
.ol-ch.read { color: var(--ink-soft); }
.ol-ch.today { background: var(--oxblood); color: var(--paper); }
.ol-ch.today .n { color: var(--gold-soft); }

/* ---------- how this works ---------- */

.method { display: grid; gap: 0.9rem; margin-bottom: 1.6rem; }
.method div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; }
.method dt { font-family: var(--sans); font-weight: 600; font-size: 0.92rem; padding-top: 0.12rem; }
.method dd { color: var(--ink-soft); font-size: 1rem; }
.about h3 { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
.sources { padding-left: 1.2rem; font-size: 0.98rem; }
.sources li { margin-bottom: 0.45rem; }
.src-note { color: var(--ink-soft); }
.sources-text { margin-top: 0.8rem; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- popover ---------- */

.pop {
  position: absolute;
  z-index: 4000;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--paper-hi);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.16);
  padding: 0.75rem 1rem 0.6rem;
  font-size: 0.98rem;
  line-height: 1.5;
}
.pop[hidden] { display: none; }
.pop-ref + .pop-ref { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--hairline-soft); }
.pop-label { font-family: var(--sans); font-weight: 600; font-size: 0.85rem; color: var(--oxblood); margin-bottom: 0.2rem; }
.pop p + p { margin-top: 0.3rem; }
.pop sup { font-size: 0.65em; color: var(--ink-faint); margin-right: 0.2em; font-family: var(--sans); }
.pop-more { color: var(--ink-faint); font-style: italic; }
.pop-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.6rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--hairline-soft);
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-faint);
}
.pop-foot a { text-decoration: none; }
.pop-foot a:hover { text-decoration: underline; }

/* ---------- colophon ---------- */

.colophon {
  padding: 0.7rem 1.6rem;
  border-top: 1px solid var(--ink);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
}
.changelog {
  padding: 0.7rem 1.6rem 1.3rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: center;
}
.changelog h2 {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.35rem;
}
.changelog ul { list-style: none; }
.changelog time {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-right: 0.55rem;
  white-space: nowrap;
}

/* ---------- small screens ---------- */

@media (max-width: 900px) {
  .taxis, .trow { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .taxis .tname, .taxis .tsum { display: none; }
  .tsum { display: none; }
  .tname { font-size: 0.9rem; }
  .tlegend { display: inline; margin-left: 0.5rem; }
}

@media (max-width: 640px) {
  body { font-size: 18px; }
  :root { --range-col: 3.4rem; }
  .masthead { padding: 2.2rem 1rem 0.8rem; }
  .title { font-size: 2.5rem; }
  .lede { font-size: 1.04rem; }
  .place, .block { padding-left: 1rem; padding-right: 1rem; }
  .controls { gap: 0.6rem 0.8rem; }
  .pick { max-width: 100%; flex: 1 1 12rem; }
  #book { flex: 0 1 8rem; }
  .steps { margin-left: 0; width: 100%; }
  .step { flex: 1; }
  .map-row { column-gap: 1px; }
  .cell { height: 20px; border-radius: 1px; }
  .part, .sec { font-size: 0.62rem; }
  .whereami { flex-direction: column; font-size: 0.92rem; }
  .block > h2 { font-size: 1.7rem; }
  .spine-qs div { grid-template-columns: 1fr; gap: 0; }
  .mem { gap: 0.9rem; }
  .memory::before { left: calc(var(--range-col) + 0.35rem); }
  .mem-body::before { left: -0.8rem; }
  .mem-section .mem-body { padding-left: 0.6rem; }
  .mem-chapter .mem-body, .mem-more .mem-body { padding-left: 1.2rem; }
  .mem-chapter .mem-body::before, .mem-more .mem-body::before { left: 0.45rem; }
  .card-num { font-size: 2rem; }
  .card-head h3 { font-size: 1.3rem; }
  blockquote p { font-size: 1.05rem; }
  .method div { grid-template-columns: 1fr; gap: 0.1rem; }
  .tcells, .tc { height: 16px; }
  .tcells { column-gap: 1px; }
  .m0 { width: 4px; height: 4px; }
  .m0.s2 { width: 5px; height: 5px; }
  .m0.s3 { width: 6px; height: 6px; }
  .m1 { width: 6px; height: 6px; border-width: 1px; }
  .m1.s2, .m1.s3 { width: 7px; height: 7px; }
  .m2, .m2.s2, .m2.s3 { width: 5px; height: 5px; }
  .tlegend .m0, .thits .m0 { width: 6px; height: 6px; }
  .tlegend .m1, .thits .m1 { width: 8px; height: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .cell { transition: none; }
}

.nw { white-space: nowrap; }
