@font-face {
  font-family: "QED Serif";
  src: url("fonts/qed-serif-roman.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "QED Serif";
  src: url("fonts/qed-serif-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f5f3ec;
  --sheet: #fbfaf5;
  --tint: #ebe7dc;
  --ink: #1d1f1c;
  --ink-soft: #383b36;
  --muted: #5b5f58;
  --faint: #6b6f67;
  --rule: #d6d0c2;
  --rule-strong: #aea796;
  --hair: var(--rule);
  --hair-strong: var(--rule-strong);
  --accent: #a34e2c;
  --accent-strong: #84391c;
  --accent-soft: #efe2d8;
  --ok: #2b6445;
  --warn: #83530e;
  --bad: #9a2f32;
  --flat: var(--muted);
  --flat-bg: var(--tint);
  --board: #1f2a26;
  --board-raised: #27352f;
  --board-line: #3a4a43;
  --chalk: #f2efe6;
  --chalk-muted: #b9c3bc;
  --chalk-accent: #eaa582;
  --radius: 2px;
  --shell: 1120px;
  --gutter: 32px;
  --measure: 66ch;
  --serif: "QED Serif", Georgia, "Times New Roman", serif;
  --sans: var(--serif);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.6 var(--serif); font-optical-sizing: auto; font-variant-numeric: lining-nums; }
[hidden] { display: none !important; }
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
main.shell { min-height: 55vh; padding-block: 36px 72px; }
a { color: var(--accent); text-decoration: none; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button, input, textarea { font: inherit; color: inherit; max-width: 100%; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
summary { overflow-wrap: anywhere; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { font: 600 clamp(30px, 3.6vw, 42px)/1.15 var(--serif); letter-spacing: -.012em; margin-bottom: 14px; }
h2 { font: 600 23px/1.3 var(--serif); letter-spacing: -.005em; }
h3 { font: 600 18px/1.4 var(--serif); }
h4 { font: 600 16px/1.4 var(--serif); }
code { font: .84em/1.5 var(--mono); overflow-wrap: anywhere; }
abbr[title] { text-decoration: underline dotted var(--rule-strong); text-underline-offset: .2em; cursor: help; }
::selection { background: #ecd3c4; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; inset: 8px auto auto 12px; padding: 10px 18px; background: var(--ink); color: var(--page); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.muted { color: var(--muted); }
.bad-text { color: var(--bad); }
.sep { padding-inline: .4em; color: var(--faint); }
.eyebrow { font-size: 16px; font-weight: 600; font-variant-caps: all-small-caps; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }

.masthead { background: var(--page); border-bottom: 1px solid var(--rule); }
.masthead-inner { min-height: 64px; display: flex; align-items: center; gap: 28px; }
.wordmark { display: inline-flex; align-items: baseline; padding-block: 9px; color: var(--ink); font: 600 26px/1 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.wordmark .tomb { display: inline-block; flex: none; width: .28em; height: .28em; margin: 0 .07em 0 .09em; background: var(--accent); }
.wordmark:hover { text-decoration: none; }
.desktop-nav { display: flex; align-items: center; gap: 0; margin-left: auto; }
.desktop-nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 9px; font-size: 15.5px; color: var(--ink-soft); white-space: nowrap; }
.desktop-nav a:hover { color: var(--ink); }
.desktop-nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35em; }
.account-link { margin-left: 8px; }
.mobile-actions { display: none; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--ink); list-style: none; }
.icon-button::-webkit-details-marker { display: none; }
.icon-button:hover { color: var(--accent); }
.icon-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.mobile-menu > summary { position: relative; z-index: 32; }
.burger { position: relative; display: block; width: 20px; height: 13px; }
.burger::before, .burger::after, .burger span { content: ""; position: absolute; left: 0; width: 100%; height: 1.6px; background: currentColor; transition: transform .18s ease, opacity .15s ease, top .18s ease; }
.burger::before { top: 0; }
.burger span { top: 5.7px; }
.burger::after { top: 11.4px; }
.mobile-menu[open] .burger::before { top: 5.7px; transform: rotate(45deg); }
.mobile-menu[open] .burger::after { top: 5.7px; transform: rotate(-45deg); }
.mobile-menu[open] .burger span { opacity: 0; }
.menu-backdrop { position: fixed; inset: 0; z-index: 30; background: #1d1f1c47; }
.drawer { position: fixed; inset: 0 0 0 auto; z-index: 31; width: min(86vw, 340px); overflow-y: auto; padding: 76px 24px 32px; background: var(--page); border-left: 1px solid var(--rule-strong); display: flex; flex-direction: column; }
.drawer a { display: flex; align-items: center; min-height: 48px; padding: 8px 0; color: var(--ink); border-bottom: 1px solid var(--rule); font-size: 19px; line-height: 1.3; }
.drawer a:hover { color: var(--accent); text-decoration: none; }
.drawer a[aria-current] { color: var(--accent); }
.drawer-account { margin-top: 14px; border-top: 1px solid var(--ink); }

.hero { max-width: 760px; margin-bottom: 26px; }
.hero h1 { margin-bottom: 12px; }
.hero p { color: var(--ink-soft); font-size: 18px; line-height: 1.6; margin-bottom: 12px; max-width: 64ch; }
.hero strong { font-weight: 600; color: var(--ink); }
.lead { max-width: var(--measure); color: var(--muted); font-size: 15.5px; line-height: 1.6; margin-bottom: 18px; }
.section { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 20px; margin-bottom: 10px; }
.section h2 { margin: 0; }
.count { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.section-link { font-size: 15.5px; min-height: 44px; display: inline-flex; align-items: center; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 0; margin-bottom: 26px; padding-block: 12px; border-block: 1px solid var(--rule); }
.stat { padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.stat .value { display: block; font: 600 22px/1.3 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.stat .label { display: block; font-size: 14px; line-height: 1.45; color: var(--muted); }
.inline-stats { display: flex; gap: 2px 20px; flex-wrap: wrap; align-items: center; font-size: 15px; color: var(--muted); margin-top: 16px; }
.inline-stats strong { color: var(--ink); font-weight: 600; }
.inline-stats a { display: inline-flex; align-items: center; min-height: 44px; }
.board { position: relative; color: inherit; background: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 16px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: #fff; font: 600 15.5px/1.2 var(--serif); text-align: center; }
.button:hover { background: var(--accent-strong); border-color: var(--accent-strong); text-decoration: none; }
.button.quiet { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.button.quiet:hover { border-color: var(--ink); }
.button.danger { background: var(--bad); border-color: var(--bad); color: #fff; }

.home-intro { max-width: 760px; margin-bottom: 8px; }
.home-intro h1 { font-size: clamp(32px, 4vw, 44px); max-width: 20em; }
.home-intro p { font-size: 18.5px; line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }
.site-search { display: flex; gap: 8px; max-width: 620px; margin: 22px 0 6px; }
.site-search input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 13px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--sheet); font-size: 17px; }
.site-search input:focus { border-color: var(--ink); outline: none; }
.figures { max-width: 70ch; margin: 18px 0 0; font-size: 16px; color: var(--ink-soft); }
.figures b { font-weight: 600; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.home-section { margin-top: 44px; }
.ledger { width: 100%; border-collapse: collapse; font-size: 16px; }
.ledger th { padding: 0 16px 6px 0; border-bottom: 1px solid var(--ink); text-align: left; font-size: 15.5px; font-weight: 600; font-variant-caps: all-small-caps; letter-spacing: .04em; color: var(--muted); }
.ledger td { padding: 11px 16px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.ledger th:last-child, .ledger td:last-child { padding-right: 0; }
.ledger .date { width: 7em; white-space: nowrap; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.ledger .item-title { display: block; font-weight: 600; color: var(--ink); }
.ledger a.item-title:hover { color: var(--accent); }
.ledger .item-meta { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); }
.ledger .grades { text-align: right; white-space: nowrap; font-size: 15px; }
.directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.directory > div { padding: 12px 0 14px; border-top: 1px solid var(--rule); }
.directory dt { font-weight: 600; }
.directory dt a { display: inline-flex; align-items: center; min-height: 44px; }
.directory dd { margin: 0; font-size: 15px; color: var(--muted); }

.browser { margin-bottom: 36px; }
.toolbar { padding: 0 0 14px; margin-bottom: 14px; border-bottom: 1px solid var(--rule); }
.search-field { display: block; min-width: 0; max-width: 640px; }
.search-field > span { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.search-field input { width: 100%; min-width: 0; min-height: 46px; padding: 10px 13px; background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: var(--radius); font-size: 17px; }
.search-field input:focus { border-color: var(--ink); outline: none; }
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; }
.filter-tools { display: flex; align-items: flex-start; gap: 12px; margin-top: 8px; }
.filter-panel { flex: 1; min-width: 0; }
.filter-panel > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15.5px; list-style: none; color: var(--ink); }
.filter-panel > summary::before { content: "+"; width: 14px; color: var(--muted); }
.filter-panel[open] > summary::before { content: "\2212"; }
.filter-panel > summary::-webkit-details-marker { display: none; }
.filter-count { font-size: 14px; color: var(--accent); font-weight: 600; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; padding-top: 6px; }
.choice-field { min-width: 0; }
.choice-name { display: block; font-size: 14px; color: var(--muted); }
.field .choice-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.choice { position: relative; margin-top: 4px; }
.choice > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--sheet); font-size: 16px; color: var(--ink); list-style: none; }
.choice > summary::-webkit-details-marker { display: none; }
.choice > summary::after { content: ""; flex: none; width: 6px; height: 6px; margin-bottom: 3px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); }
.choice > summary:hover, .choice[open] > summary { border-color: var(--ink); }
.choice[open] > summary::after { margin: 3px 0 0; transform: rotate(-135deg); }
[data-choice-value] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.choice-menu { position: absolute; z-index: 20; inset: calc(100% + 2px) 0 auto; max-height: 320px; overflow-y: auto; padding: 4px 0; background: var(--sheet); border: 1px solid var(--ink); border-radius: var(--radius); outline: none; }
.choice .choice-option { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; font-size: 16px; font-weight: 400; line-height: 1.35; color: var(--ink); cursor: pointer; overflow-wrap: anywhere; }
.choice .choice-option::before { content: ""; flex: none; width: 7px; height: 7px; }
.choice .choice-option:hover { background: var(--tint); }
.choice .choice-option:has(input:checked) { font-weight: 600; }
.choice .choice-option:has(input:checked)::before { background: var(--accent); }
.choice .choice-option:has(input:focus-visible) { background: var(--tint); outline: 2px solid var(--accent); outline-offset: -2px; }
.choice-option input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.reset-button { border: 0; background: none; color: var(--accent); font-size: 15px; min-height: 44px; padding: 8px; white-space: nowrap; }
.reset-button:hover { text-decoration: underline; }
.views, .tabs { display: flex; flex-wrap: wrap; gap: 0 20px; margin-bottom: 14px; border-bottom: 1px solid var(--rule); }
.view { min-height: 44px; padding: 8px 0; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 15.5px; color: var(--muted); }
.view:hover { color: var(--ink); }
.view.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
#view-note { margin-bottom: 14px; font-size: 15px; }
.local-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: end; }
.local-toolbar .count { grid-column: 1 / -1; }

.rows { border-top: 1px solid var(--rule); }
.group { margin: 22px 0 0; padding-bottom: 5px; border-bottom: 1px solid var(--rule); font-size: 16px; font-weight: 600; font-variant-caps: all-small-caps; letter-spacing: .04em; line-height: 1.4; color: var(--muted); }
.rows > .group:first-child { margin-top: 10px; }
.row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 4px 28px; align-items: baseline; padding: 13px 0 14px; border-bottom: 1px solid var(--rule); }
.row > * { min-width: 0; }
.row-title { display: block; color: var(--ink); font-size: 17.5px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
a.row-title:hover { color: var(--accent); }
a.row-title, a.item-title { padding-block: 10px; margin-block: -10px; }
.row-meta { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 3px 0 0; overflow-wrap: anywhere; }
.row-note { font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin: 6px 0 0; overflow-wrap: anywhere; }
.row-chips, .tags { font-size: 15px; line-height: 1.55; color: var(--ink-soft); overflow-wrap: anywhere; }
.row-chips { max-width: 320px; text-align: right; }
.chip { display: inline; font: inherit; color: inherit; }
.chip + .chip::before { content: "\00b7"; padding-inline: .4em; color: var(--faint); font: 400 1em var(--serif); }
.chip.grade { font-weight: 600; font-variant-numeric: lining-nums tabular-nums; letter-spacing: .01em; }
.chip.grade + .chip.grade::before { content: ""; padding-inline: .3em; }
.chip.ok { color: var(--ok); }
.chip.warn { color: var(--warn); }
.chip.bad { color: var(--bad); }
.chip.key, .chip.strong { color: var(--ink); font-weight: 700; }
.chip.proved { color: var(--ok); }
.chip.money { color: var(--ok); }
abbr.grade { font-weight: 600; font-variant-numeric: lining-nums tabular-nums; letter-spacing: .01em; }
abbr.chip[title] { text-decoration-color: var(--rule-strong); }
a.chip { display: inline-flex; align-items: center; min-height: 44px; }
.row-expansion { grid-column: 1 / -1; }
.row-expansion > summary { font-size: 15px; color: var(--accent); min-height: 44px; padding-top: 8px; }
.row-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px 28px; padding-block: 6px 4px; }
.row-detail h4 { font-size: 15px; font-variant-caps: all-small-caps; letter-spacing: .04em; color: var(--muted); margin: 0 0 6px; }
.row-detail p, .row-detail li { color: var(--ink-soft); font-size: 15px; margin-bottom: 6px; overflow-wrap: anywhere; }
.row-detail ul { margin: 0; padding-left: 16px; }
.empty { padding: 14px 0; color: var(--muted); font-size: 16px; }
.pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 16px 8px; }
.page-button { min-height: 44px; padding: 8px 16px; background: transparent; border: 1px solid var(--rule-strong); border-radius: var(--radius); font-size: 15px; }
.page-button:hover:not(:disabled) { border-color: var(--ink); }
.pages { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px; font-variant-numeric: lining-nums tabular-nums; }
.page-number { min-width: 44px; min-height: 44px; padding: 8px 4px; border: 0; border-radius: var(--radius); background: none; font-size: 15.5px; color: var(--accent); }
.page-number:hover { text-decoration: underline; }
.page-number[aria-current] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35em; cursor: default; }
.page-gap { min-width: 20px; text-align: center; color: var(--faint); }

.block { margin-top: 44px; padding-top: 12px; border-top: 1px solid var(--ink); }
.block h2 { font: 600 22px/1.3 var(--serif); margin-bottom: 10px; }
.block .section h2 { margin-bottom: 0; }
.block h3 { margin-block: 22px 8px; font-size: 17px; }
.block .tags { margin-block: 10px; }
.doc { max-width: 860px; margin-inline: auto; }
.doc > h1 { max-width: 30ch; overflow-wrap: anywhere; margin-bottom: 10px; }
.crumb { color: var(--muted); font-size: 15px; margin-bottom: 10px; overflow-wrap: anywhere; }
.summary { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 18px; max-width: 68ch; }
.tags { margin-bottom: 14px; }
.status-note, .notice, .alert { padding: 12px 16px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--sheet); color: var(--ink-soft); font-size: 16px; }
.status-note { margin-bottom: 22px; }
.status-note strong, .notice strong { color: var(--ink); font-weight: 600; }
.status-note p { margin: 0; }
.status-note p + p { margin-top: 6px; color: var(--muted); }
.alert { margin-bottom: 26px; border-color: var(--bad); }
.alert h2 { font-size: 17px; margin-bottom: 8px; color: var(--bad); }
.alert p { margin: 0 0 6px; font-size: 15.5px; overflow-wrap: anywhere; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding-block: 12px; border-bottom: 1px solid var(--rule); font-size: 16px; overflow-wrap: anywhere; }
.list li:last-child { border-bottom: 0; }
.defs { margin: 10px 0 0; }
.def { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px 20px; padding-block: 9px; border-bottom: 1px solid var(--rule); }
.def:last-child { border-bottom: 0; }
.def dt { color: var(--muted); font-size: 15.5px; font-variant-caps: all-small-caps; letter-spacing: .04em; overflow-wrap: anywhere; }
.def dd { margin: 0; color: var(--ink-soft); font-size: 15.5px; overflow-wrap: anywhere; }
.disclosure { border-top: 1px solid var(--rule); }
.disclosure:last-of-type { border-bottom: 1px solid var(--rule); }
.stack-form ~ .disclosure, .form-actions + .disclosure, .block + .disclosure { margin-top: 28px; }
.disclosure > summary { padding: 11px 0; font-size: 16.5px; font-weight: 600; min-height: 48px; }
.disclosure-body { padding: 0 0 14px; min-width: 0; }
.disclosure-body > :last-child { margin-bottom: 0; }
.disclosure .defs { margin-top: 0; }
.declaration > summary .row-meta { display: block; font-weight: 400; }
.page-toc { margin-block: 18px 8px; border-block: 1px solid var(--rule); }
.page-toc > summary { min-height: 46px; padding-block: 11px; color: var(--accent); font-size: 15px; }
.page-toc nav { display: flex; flex-wrap: wrap; gap: 0 18px; padding-bottom: 10px; }
.page-toc a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
pre.code { max-width: 100%; overflow-x: auto; background: var(--tint); color: var(--ink); border-radius: var(--radius); padding: 16px 18px; font: 13.5px/1.65 var(--mono); margin-block: 16px; }
.prose { max-width: var(--measure); margin-inline: auto; }
.prose h1 { font-size: clamp(34px, 4.4vw, 48px); }
.prose h2 { font: 600 25px/1.25 var(--serif); margin: 40px 0 12px; }
.prose h3 { margin-block: 26px 8px; }
.prose p { margin-bottom: 18px; line-height: 1.7; }
.prose .byline { font-size: 16px; font-variant-caps: all-small-caps; letter-spacing: .04em; color: var(--muted); margin-bottom: 24px; }
.prose .defs { margin-bottom: 22px; }
.measure { max-width: var(--measure); }
.meter { height: 4px; margin-top: 12px; background: var(--rule); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--ink); }
.cards, .guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.card { display: flex; flex-direction: column; padding: 12px 0 18px; border-top: 1px solid var(--ink); color: var(--ink); }
.card:hover { text-decoration: none; }
a.card:hover h3 { color: var(--accent); }
.card h3 { margin-bottom: 6px; font: 600 19px/1.3 var(--serif); }
.card p { font-size: 15.5px; color: var(--muted); margin: 0 0 8px; }
.tool-args { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; }

.account-link.has-unread::after, .icon-button.has-unread::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; background: var(--accent); }
.icon-button.has-unread { position: relative; }
.icon-button.has-unread::after { position: absolute; top: 10px; right: 10px; margin: 0; }
.narrow { max-width: 560px; }
.small { font-size: 14px; }

.board-filter { font-size: 15px; color: var(--muted); }
.posts { border-top: 1px solid var(--rule); }
.post-row { display: flex; flex-direction: column; gap: 8px; padding: 13px 0 14px; border-bottom: 1px solid var(--rule); }
.post-row .votes { order: 2; }
.post-title { margin: 0; font-size: 17.5px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.post-title a { color: var(--ink); }
.post-title a:hover { color: var(--accent); }
.post-domain { font-size: 15px; font-weight: 400; color: var(--muted) !important; }
.more { margin-top: 12px; }

.votes { display: flex; flex-wrap: wrap; gap: 6px; }
.votes.busy { opacity: .6; }
.vote { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: transparent; font-size: 15px; color: var(--ink-soft); }
.vote .mark { display: none; }
.vote b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.vote:hover { border-color: var(--ink); }
.vote[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--page); }
.vote[aria-pressed="true"] b { color: var(--page); }
.comment-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.thread-page h1 { font-size: clamp(28px, 3.2vw, 38px); overflow-wrap: anywhere; }
.post-body p, .comment-body p { margin: 0 0 12px; overflow-wrap: anywhere; }
.comments { display: grid; gap: 2px; margin-top: 18px; }
.comment { padding: 10px 0 4px calc(var(--depth, 0) * 16px + 14px); border-left: 1px solid var(--rule-strong); margin-left: calc(var(--depth, 0) * 4px); }
.comment .comment { margin-top: 8px; }
.reply-slot:empty { display: none; }

.stack-form { display: grid; gap: 14px; max-width: 720px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field label, .check { font-size: 15px; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .follow-form input { width: 100%; min-width: 0; min-height: 46px; padding: 10px 13px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--sheet); font-size: 16px; color: var(--ink); }
.field input:focus, .field textarea:focus, .follow-form input:focus { border-color: var(--ink); outline: none; }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.form-status { margin: 0; font-size: 15px; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.check.small { font-size: 14px; min-height: 32px; }
.picker { position: relative; }
.picker-results { position: absolute; inset: 100% 0 auto; z-index: 5; margin-top: 2px; max-height: 320px; overflow-y: auto; background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 4px; }
.picker-results button { display: grid; width: 100%; text-align: left; gap: 1px; padding: 9px 10px; border: 0; background: none; font-size: 16px; }
.picker-results button:hover, .picker-results button:focus-visible { background: var(--tint); }
.picker-results span { font: 12px/1.4 var(--mono); color: var(--muted); }

.follow-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 10px 28px; align-items: center; padding: 6px 0 16px; margin-bottom: 14px; border-bottom: 1px solid var(--rule); }
.follow-title { margin: 0; font-size: 17.5px; font-weight: 600; color: var(--ink); }
.follow-note { margin: 3px 0 0; font-size: 15px; color: var(--muted); }
.follow-form { display: flex; gap: 8px; }
.follow-status { grid-column: 1 / -1; margin: 0; font-size: 15px; color: var(--muted); }
.follow-status:empty { display: none; }
.discussion-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.authorship > .row-meta:first-child { margin-top: 8px; }
.author-statement { margin: 6px 0 0 18px; font-size: 16px; font-style: italic; color: var(--ink-soft); }
.author-statement p { margin: 0 0 6px; overflow-wrap: anywhere; }
.author-statement .row-meta { font-style: normal; }
.author-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin: 2px 0 0; }
.author-actions .reset-button, .author-actions a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0; font-size: 15px; }
.author-panel { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--rule); }
.author-panel .stack-form { margin-top: 10px; }
.bounty-strip { font-size: 15px; color: var(--ink-soft); }
.signin-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 36px; }
.signin-card { display: grid; gap: 12px; padding: 12px 0 18px; border-top: 1px solid var(--ink); align-content: start; }
.signin-card h2 { font-size: 21px; margin: 0; }
.other-signin { display: grid; gap: 12px; }
.row.unread .row-title { font-weight: 700; }
.row.unread .row-meta::after { content: " \00b7  unread"; color: var(--accent); }

footer { border-top: 1px solid var(--rule); padding-block: 26px 34px; font-size: 15px; color: var(--muted); }
.footer-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.footer-brand { display: flex; align-items: baseline; gap: 12px; }
.footer-brand .wordmark { font-size: 21px; padding-block: 12px; }
.slogan { font-style: italic; color: var(--muted); }
.footer-links { display: flex; gap: 0 18px; flex-wrap: wrap; }
.footer-links a { min-height: 44px; display: flex; align-items: center; }
.footer-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.footer-details details { border-top: 1px solid var(--rule); }
.footer-details summary { padding-block: 12px; min-height: 46px; color: var(--ink-soft); }
.feeds { list-style: none; padding: 0 0 12px; margin: 0; }
.feeds li { padding-block: 5px; overflow-wrap: anywhere; }
.data-links { display: flex; gap: 0 16px; flex-wrap: wrap; padding-bottom: 12px; }
.data-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-note { padding-top: 12px; border-top: 1px solid var(--rule); font-size: 14px; }
.footer-note p { margin: 0; }
.dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--muted); margin-right: 8px; }
.dot.ok { background: var(--ok); }
.dot.bad { background: var(--bad); }

.staircase { display: block; width: 100%; height: auto; overflow: visible; }
.staircase .grid { stroke: var(--rule); stroke-width: 1; }
.staircase .baseline { stroke: var(--rule-strong); stroke-width: 1; }
.staircase .axis { font: 12.5px var(--serif); fill: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.staircase .line { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.staircase .mark { stroke: var(--page); stroke-width: 1.2; }
.staircase .mark.human { fill: var(--ink); }
.staircase .mark.ai { fill: var(--accent); }
.staircase .mark.muted { fill: var(--faint); opacity: .6; }
.staircase .mark.candidate { fill: var(--page); stroke: var(--accent); stroke-width: 1.5; }
.staircase-figure { margin: 16px 0 18px; }
.staircase-figure figcaption { margin-top: 8px; max-width: 68ch; font-size: 15px; line-height: 1.55; color: var(--muted); }
.frontier-row { align-items: center; }
.frontier-chart { display: block; width: 240px; }

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .masthead-inner { min-height: 58px; justify-content: space-between; }
  .mobile-actions { display: flex; gap: 0; align-items: center; }
  body:has(.mobile-menu[open]) { overflow: hidden; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  body { font-size: 16.5px; }
  main.shell { padding-block: 22px 48px; }
  .home-intro h1 { font-size: 32px; }
  .home-intro p { font-size: 17px; }
  .site-search { margin-top: 16px; }
  .ledger thead { display: none; }
  .ledger, .ledger tbody { display: block; }
  .ledger tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
  .ledger td { display: block; padding: 0; border: 0; }
  .ledger .date { width: auto; }
  .ledger .what { grid-column: 1 / -1; grid-row: 2; }
  .directory, .cards, .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16.5px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .row-chips { text-align: left; max-width: none; }
  .frontier-chart { width: 100%; max-width: 320px; }
  .staircase:not(.compact) .axis { font-size: 24px; }
  .staircase:not(.compact) .line { stroke-width: 2.6; }
  .filters { grid-template-columns: minmax(0, 1fr); }
  .stat { padding-right: 16px; margin-right: 16px; }
  .stat .value { font-size: 20px; }
  .block { margin-top: 36px; }
  .block h2 { font-size: 21px; }
  .def { grid-template-columns: 100px minmax(0, 1fr); gap: 10px; }
  .doc > h1 { font-size: 30px; }
  .prose h1 { font-size: 34px; }
  .prose h2 { font-size: 23px; }
  .footer-details { grid-template-columns: minmax(0, 1fr); }
  .local-toolbar { grid-template-columns: minmax(0, 1fr); }
  .local-toolbar .reset-button { justify-self: start; padding-left: 0; }
  .views, .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .views::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
  .view { flex: none; }
  .field-row, .signin-grid, .follow-card { grid-template-columns: minmax(0, 1fr); }
  .follow-form { flex-direction: column; }
  .comment { padding-left: calc(var(--depth, 0) * 8px + 10px); margin-left: 0; }
  .pages { order: 3; flex-basis: 100%; }
}
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .home-intro h1 { font-size: 29px; }
  .def { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .page-button { padding-inline: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
