@charset "utf-8";
@font-face { font-family: 'Newsreader Variable'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/newsreader-latin-ext-opsz-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Newsreader Variable'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/newsreader-latin-opsz-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Newsreader Variable'; font-style: italic; font-display: swap; font-weight: 200 800; src: url(/fonts/newsreader-latin-ext-opsz-italic.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Newsreader Variable'; font-style: italic; font-display: swap; font-weight: 200 800; src: url(/fonts/newsreader-latin-opsz-italic.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/ibm-plex-mono-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/ibm-plex-mono-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Non-Singular. Palette and ornaments follow xent.io and synophora.org/questions.html. */
:root {
  --bg: #0c0c11; --ink: #f0ede1; --ink-dim: #b8b2a0; --ink-faint: #938d7b;
  --accent: #ffd874; --accent-dim: rgba(255,216,116,0.34);
  --edge: rgba(240,237,225,0.13); --edge-hot: rgba(255,216,116,0.45); --dash: rgba(240,237,225,0.28);
  --panel: rgba(240,237,225,0.045); --pop: #16161d;
  --sans: "Newsreader Variable", "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; /* text face; a serif since 2026-11-17, same as xent.io */
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f1e8; --ink: #26221c; --ink-dim: #4f4b3f; --ink-faint: #666150;
  --accent: #80590a; --accent-dim: rgba(128,89,10,0.36);
  --edge: rgba(42,38,32,0.15); --edge-hot: rgba(128,89,10,0.5); --dash: rgba(42,38,32,0.32);
  --panel: rgba(42,38,32,0.045); --pop: #fbf9f3;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 20px; line-height: 1.6; font-optical-sizing: auto; font-kerning: none; /* Newsreader kerns the word space before capitals far too tightly ("does.At") */
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header */
header.site { position: relative; display: flex; align-items: center; gap: 20px; padding: 18px 26px; font-family: var(--mono); font-size: 14px; }
header.site .brand { margin-right: auto; color: var(--accent); font-weight: 600; text-decoration: none; letter-spacing: 0.02em; }
header.site nav { display: flex; align-items: center; gap: 18px; }
header.site nav a { color: var(--ink-dim); text-decoration: none; border-bottom: 1px dashed var(--dash); }
header.site nav a:hover { color: var(--accent); border-color: var(--accent); }
header.site button { background: none; border: 0; padding: 4px 6px; margin: -4px -6px; cursor: pointer; color: var(--ink-dim); font: inherit; font-size: 17px; line-height: 1; }
header.site button:hover { color: var(--accent); }

/* Column with the thread on its left */
main { position: relative; max-width: 792px; margin: 0 auto; padding: 64px 56px 110px; }
main::before { content: ''; position: absolute; left: 22px; top: 92px; bottom: 122px; width: 1px;
  background: linear-gradient(var(--edge-hot), var(--edge) 22%, var(--edge) 78%, var(--edge-hot)); }
.post h1::before, .footnotes h2::before, .back::before, .posts li::before, .notfound h1::before {
  content: ''; position: absolute; left: -38px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); }

/* Post */
.post h1, .notfound h1 { position: relative; margin: 0 0 16px; color: var(--accent); font-size: clamp(34px, 6vw, 50px); font-weight: 500;
  line-height: 1.1; letter-spacing: -0.018em; text-wrap: balance; }
.post h1::before, .notfound h1::before { top: 0.52em; left: -39px; width: 9px; height: 9px; background: var(--accent); box-shadow: 0 0 12px 2px var(--accent-dim); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin: 0; padding-bottom: 26px; border-bottom: 1px solid var(--edge);
  color: var(--ink-dim); font-size: 17.5px; line-height: 1.5; }
.meta time, .posts time { font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.02em; color: var(--ink-dim); }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); }

.prose { margin-top: 34px; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.3em; }
.prose h2 { margin: 2.1em 0 0.6em; font-size: 29px; font-weight: 500; line-height: 1.3; letter-spacing: -0.005em; }
.prose h3 { margin: 1.9em 0 0.5em; font-size: 23px; font-weight: 500; font-style: italic; line-height: 1.35; }
.prose a, .footnotes a, .fn-pop a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-dim);
  text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover, .footnotes a:hover, .fn-pop a:hover { text-decoration-color: var(--accent); }
.prose ol, .prose ul { margin: 0 0 1.3em; padding-left: 1.7em; }
.prose p + ol, .prose p + ul { margin-top: -0.55em; }
.prose li { margin: 0.5em 0; padding-left: 0.35em; }
.prose li::marker { color: var(--ink-dim); font-family: var(--mono); font-size: 0.82em; }
.prose ul > li::marker { color: var(--accent); }
.prose blockquote { margin: 1.5em 0; padding: 0 0 0 20px; border-left: 2px solid var(--edge-hot); color: var(--ink-dim); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose code { font-family: var(--mono); font-size: 0.86em; padding: 1px 5px; border-radius: 3px; background: var(--panel); }
.prose pre { margin: 1.5em 0; padding: 14px 16px; overflow-x: auto; border: 1px solid var(--edge); border-radius: 3px; font-size: 14.5px; line-height: 1.6; }
.prose pre code { padding: 0; background: none; font-size: inherit; }
.prose hr { height: 1px; margin: 2.6em 0; border: 0; background: var(--edge); }
.prose img { max-width: 100%; height: auto; }
.prose table { display: block; max-width: 100%; overflow-x: auto; margin: 1.5em 0; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 6px 12px; border-bottom: 1px solid var(--edge); text-align: left; }

/* Math (KaTeX) */
.katex { font-size: 1.1em; }
.math-block { margin: 1.4em 0; overflow-x: auto; overflow-y: hidden; }
.math-block .katex-display { margin: 0; }

/* Footnotes */
sup.fnref { font-size: 0.72em; line-height: 0; vertical-align: super; }
sup.fnref a { display: inline-block; margin: 0 -3px 0 -2px; padding: 6px 4px; color: var(--accent); font-weight: 600; text-decoration: none; border-radius: 3px; }
sup.fnref a:hover, sup.fnref a[aria-describedby] { background: var(--accent); color: var(--bg); }
sup.fnref a:target { outline: 1px solid var(--edge-hot); }
sup.fnref a, .footnotes li { scroll-margin-top: 5.5em; }
.footnotes { position: relative; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--edge); color: var(--ink-dim); font-size: 17px; line-height: 1.55;
  overflow-wrap: anywhere; }
.footnotes h2 { position: relative; margin: 0 0 12px; color: var(--ink-dim); font-family: var(--mono); font-size: 12.5px; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase; }
.footnotes h2::before { top: 0.55em; }
.footnotes ol { margin: 0; padding-left: 1.7em; }
.footnotes li { margin: 0 0 0.6em; padding: 2px 6px 2px 0.35em; border-radius: 3px; }
.footnotes li::marker { color: var(--ink-dim); font-family: var(--mono); font-size: 0.88em; }
.footnotes li:target { background: var(--panel); color: var(--ink); }
.footnotes p { margin: 0 0 0.5em; }
.footnotes li > :last-child { margin-bottom: 0; }
.footnotes a.fn-back, .footnotes a.fn-back:hover { display: inline-block; padding: 0 5px; text-decoration: none; font-family: var(--mono); }
.footnotes a.fn-back:hover { background: var(--accent-dim); border-radius: 3px; }

.fn-pop { position: absolute; z-index: 20; left: 0; top: 0; width: min(430px, calc(100vw - 24px)); max-height: min(60vh, 420px); overflow: auto; padding: 12px 15px 13px;
  background: var(--pop); border: 1px solid var(--edge-hot); border-radius: 4px; color: var(--ink); font-size: 16.5px; line-height: 1.5; overflow-wrap: anywhere; }
.fn-pop[hidden] { display: none; }
.fn-pop p { margin: 0 0 0.5em; }
.fn-pop > :last-child { margin-bottom: 0; }

.back { position: relative; margin: 60px 0 0; font-family: var(--mono); font-size: 14px; }
.back::before { top: 0.78em; }
.back a { color: var(--ink-dim); text-decoration: none; border-bottom: 1px dashed var(--dash); }
.back a:hover { color: var(--accent); border-color: var(--accent); }

/* Home */
.home { padding-top: 76px; }
.home-title { white-space: nowrap; margin: 0 0 52px; color: var(--accent); font-size: min(40px, 4.9vw); font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; }
.home::before { top: 88px; }
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { position: relative; margin: 0 0 52px; }
.posts li::before { top: 9px; background: var(--accent); box-shadow: 0 0 10px 1px var(--accent-dim); }
.posts time { display: block; line-height: 1.6; }
.posts h2 { margin: 6px 0 4px; font-size: 31px; font-weight: 500; line-height: 1.2; letter-spacing: -0.012em; text-wrap: balance; }
.posts h2 a { color: var(--ink); text-decoration: none; }
.posts h2 a:hover { color: var(--accent); }
.posts .by, .empty { margin: 0; color: var(--ink-dim); font-size: 17.5px; }

/* Feed box: opens under the header's "feed" link; holds the feed address and a copy button */
.feed-box { position: absolute; z-index: 30; top: calc(100% - 6px); right: 26px; width: min(420px, calc(100vw - 24px)); padding: 12px 14px 12px 16px;
  background: var(--pop); border: 1px solid var(--edge-hot); border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.28); }
.feed-box[hidden] { display: none; }
.feed-url { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; }
.feed-url code { flex: 1 1 auto; font-family: var(--mono); font-size: 14px; color: var(--ink); overflow-wrap: anywhere; user-select: all; }
header.site .feed-url button { flex: none; margin: 0; padding: 5px 12px; border: 1px solid var(--edge-hot); border-radius: 3px; color: var(--accent);
  font-size: 13.5px; line-height: 1.4; }
header.site .feed-url button:hover { background: var(--accent); color: var(--bg); }
header.site nav a[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }

/* 404 */
.notfound .code { margin: 0 0 6px; font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.1em; color: var(--ink-dim); }
.notfound::before { bottom: 116px; }

@media (max-width: 720px) {
  body { font-size: 18.5px; line-height: 1.58; }
  header.site { padding: 16px 20px; }
  .feed-box { right: 12px; }
  main { padding: 34px 20px 80px; }
  .home { padding-top: 40px; }
  main::before, .post h1::before, .footnotes h2::before, .back::before, .posts li::before, .notfound h1::before { display: none; }
  .meta { padding-bottom: 22px; }
  .prose { margin-top: 28px; }
  .posts li { margin-bottom: 40px; padding-left: 16px; border-left: 1px solid var(--edge-hot); }
  .posts h2 { font-size: 26px; }
  .footnotes, .back { margin-top: 48px; }
}
@media (max-width: 480px) {
  .meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .meta .dot { display: none; }
}
@media print {
  header.site nav, .feed-box, .back, main::before { display: none; }
  body { background: #fff; color: #000; }
}
