:root, .room {
  --bg: #07070c;
  --panel: #0d0d17;
  --line: #1d1e2e;
  --text: #d6d8ec;
  --dim: #7c80a0;
  --faint: #3b3e58;
  --blue: #6ea8ff;
  --purple: #a78bfa;
  --red: #ff6b8a;
  --soft: #c3c6dc;
  --softer: #b9bcd4;
  --code: #0b0b14;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* the blog is the light side of the site; the back room stays dark wherever it opens */
:root.light {
  --bg: #f7f6f2;
  --panel: #ffffff;
  --line: #e3e1ea;
  --text: #1b1c29;
  --dim: #62667f;
  --faint: #a6a9bd;
  --blue: #2d64d6;
  --purple: #6a4bd6;
  --red: #d23a5c;
  --soft: #33364a;
  --softer: #44475c;
  --code: #f1f0f6;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
html.light { color-scheme: light; }

/* moving between pages crossfades, so going to the blog fades dark into light */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .7s; animation-timing-function: ease; }
}
/* browsers without view transitions get a veil of the next page's color instead (main.js) */
.veil { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: 0; transition: opacity .45s ease; }
.veil.in { opacity: 1; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--purple); color: var(--bg); }

#field { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--faint); transition: color .2s, border-color .2s; }
a:hover { color: var(--blue); border-color: var(--blue); }

/* nav */
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0 36px;
  font: 13px var(--mono);
}
nav a { border: 0; color: var(--dim); margin-left: 22px; }
nav a:hover { color: var(--text); }
nav .logo { margin: 0; color: var(--text); }
nav .logo b { color: var(--purple); font-weight: 400; }

.label {
  font: 12px var(--mono);
  color: var(--dim);
  letter-spacing: .06em;
  margin: 0 0 18px;
}
.label::before { content: "// "; color: var(--faint); }

/* hero */
/* homepage: everything about me on the left, the watch and its riddle on the right */
.is-home .wrap { max-width: 900px; }
.home { display: grid; grid-template-columns: 1fr 0; gap: 0; align-items: start; transition: grid-template-columns .7s cubic-bezier(.2, .7, .2, 1), gap .7s; }
.home.has-side { grid-template-columns: 1fr 250px; gap: 56px; }
.side > * { opacity: 0; transform: translateX(24px); transition: opacity .6s .25s, transform .7s .25s cubic-bezier(.2, .7, .2, 1); }
.side > .shown { opacity: 1; transform: none; }
.hero { margin-bottom: 26px; }
.is-home footer { margin-top: 36px; }
.hero h1 {
  font: 500 clamp(30px, 6vw, 44px)/1.1 var(--mono);
  letter-spacing: -.02em;
  margin: 0 0 10px;
}
.hero h1 .caret { color: var(--purple); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero .sub { font: 13px var(--mono); color: var(--blue); margin: 0 0 26px; }
.hero p { margin: 0 0 14px; color: var(--softer); }
.hero p strong { color: var(--text); font-weight: 500; }

/* watch */
.watch { text-align: center; user-select: none; }
.watch #watch { width: 100%; max-width: 240px; aspect-ratio: 1; margin: 0 auto; perspective: 900px; cursor: pointer; outline: none; }
.watch #watch canvas { display: block; width: 100%; height: 100%; }
.watch #watch:focus-visible { outline: 1px dashed var(--purple); outline-offset: 2px; border-radius: 50%; }
.watch .flip {
  position: relative; width: 100%; aspect-ratio: 1;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.3, .7, .2, 1);
}
.watch #watch:hover .flip { transform: rotateY(-8deg) rotateX(4deg); }
.watch .flip.flipped, .watch #watch:hover .flip.flipped { transform: rotateY(180deg); }
.watch .face { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.watch .face.back { transform: rotateY(180deg); }
.watch #watch:focus-visible .flip { outline: 1px dashed var(--purple); outline-offset: 6px; border-radius: 50%; }
.watch .fact {
  font: 11.5px/1.55 var(--mono);
  color: var(--dim);
  min-height: 3.1em;
  margin: 6px 0 0;
}

/* the riddle, sitting under the watch it depends on */
.riddle {
  margin-top: 16px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 6px;
  background: rgba(13, 13, 23, .7);
  text-align: left;
  font: 12px/1.6 var(--mono);
}
.riddle p { margin: 0; }
.riddle-label { color: var(--purple); margin-bottom: 6px !important; }
.riddle .key { color: var(--faint); margin-top: 6px !important; }
.riddle .key::after { content: " ↑"; color: var(--purple); }

/* sections */
section { margin-bottom: 26px; }

/* homepage pieces arrive one after another */
.js .stage { opacity: 0; transform: translateY(10px); transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .stage.in { opacity: 1; transform: none; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows .when { font: 12px/1.9 var(--mono); color: var(--dim); }
.rows .what b { font-weight: 500; }
.rows .what span { color: var(--dim); }


.cta { font: 13px var(--mono); }
.cta a { margin-right: 22px; }

/* footer + cipher */
footer {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  font: 12px/1.7 var(--mono);
  color: var(--faint);
}
.cipher { color: var(--text); margin: 0; word-break: break-word; }
.answer { display: flex; margin-top: 8px; gap: 8px; align-items: center; color: var(--purple); }
.answer input {
  background: transparent; border: 0; border-bottom: 1px solid var(--faint);
  color: var(--text); font: 12px var(--mono); padding: 3px 2px; width: 100%; min-width: 0; flex: 1; outline: none;
}
.answer input:focus { border-color: var(--purple); }
.answer input::placeholder { color: var(--faint); }
.answer .nope { color: var(--red); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.answer .nope.show { opacity: 1; }
.fine { margin-top: 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }


/* résumé page */
.entry { padding: 20px 0; border-top: 1px solid var(--line); }
.entry:last-child { border-bottom: 1px solid var(--line); }
.entry .head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.entry h3 { font: 500 16px var(--sans); margin: 0; }
.entry .meta { font: 12px/2 var(--mono); color: var(--dim); }
.entry .role { font: 13px var(--mono); color: var(--blue); margin: 2px 0 10px; }
.entry p { margin: 0 0 10px; color: var(--softer); }
.entry ul { margin: 0; padding-left: 18px; color: var(--softer); }
.entry li { margin-bottom: 4px; }
.entry li::marker { color: var(--purple); }

/* secret room */
.room {
  position: fixed; inset: 0; z-index: 10;
  background: rgba(5, 5, 10, .94);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; transition: opacity .6s;
  overflow-y: auto;
}
.room.in { opacity: 1; }
.room .inner { max-width: 640px; width: 100%; text-align: center; }
.room h2 { font: 500 22px var(--mono); margin: 0 0 12px; color: var(--purple); }
.room p { color: var(--softer); margin: 0 auto 26px; max-width: 480px; }
.room .close { position: absolute; top: 20px; right: 24px; font: 13px var(--mono); color: var(--dim); border: 0; background: none; cursor: pointer; }
.room .close:hover { color: var(--text); }
.room button.go {
  font: 13px var(--mono); color: var(--text);
  background: transparent; border: 1px solid var(--purple); border-radius: 4px;
  padding: 10px 18px; cursor: pointer; margin-top: 28px;
  transition: background .2s;
}
.room button.go:hover { background: rgba(167, 139, 250, .15); }

.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.card {
  width: 82px; height: 118px;
  background: linear-gradient(160deg, #f4f3fb, #dcdbe8);
  border-radius: 7px;
  position: relative;
  box-shadow: 0 6px 22px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.1);
  font-family: Georgia, "Times New Roman", serif;
  color: #15151f;
  animation: deal .5s both;
}
.card.red { color: #c8233f; }
.card .c { position: absolute; top: 6px; left: 8px; line-height: 1; text-align: center; font-size: 17px; font-weight: 700; }
.card .c small { display: block; font-size: 14px; }
.card .c.b { top: auto; left: auto; bottom: 6px; right: 8px; transform: rotate(180deg); }
.card .m { position: absolute; inset: 0; display: grid; place-items: center; font-size: 38px; }
@keyframes deal { from { opacity: 0; transform: translateY(14px) rotate(-4deg); } }

.reading { font: 14px var(--mono); color: var(--blue); min-height: 1.5em; }

@media (max-width: 640px) {
  nav { padding-bottom: 36px; }
  nav a { margin-left: 14px; }
  .home, .home.has-side { grid-template-columns: 1fr; gap: 28px; }
  .side > * { transform: translateY(16px); }
  .side { max-width: 320px; width: 100%; margin: 0 auto; }
  .roamer .r-say { display: none; }
  .watch { max-width: 280px; width: 100%; margin: 0 auto; }
  .watch #watch { max-width: 200px; }
  .rows li { grid-template-columns: 1fr; gap: 0; }
  .card { width: 64px; height: 92px; }
  .card .m { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* blog */
nav a.blog { color: var(--purple); }
nav a.blog:hover { color: var(--text); }



.post { max-width: 640px; }
.post .meta { font: 12px var(--mono); color: var(--dim); margin: 0 0 8px; }
.post h1 { font: 500 clamp(26px, 5vw, 34px)/1.2 var(--mono); letter-spacing: -.01em; margin: 0 0 36px; }
.post p { font-size: 17px; line-height: 1.85; color: var(--soft); margin: 0 0 22px; }
.post em { color: var(--text); }
.post a { color: var(--text); border-bottom: 1px solid var(--purple); }
.post a:hover { color: var(--purple); }
.post .end { font: 12px var(--mono); color: var(--faint); margin-top: 44px; }

/* blog: posts listed like files in a terminal */
.term { font: 13px/1.9 var(--mono); }
.term .prompt { color: var(--dim); margin: 0 0 6px; }
.term .prompt b { color: var(--purple); font-weight: 400; }
.term-row {
  display: flex; gap: 22px; align-items: baseline; flex-wrap: wrap;
  border: 0; padding: 2px 8px; margin: 0 -8px; border-radius: 3px;
}
.term-row .d { color: var(--dim); }
.term-row .f { color: var(--text); }
.term-row .cur { color: var(--purple); opacity: 0; }
.term-row .go { color: var(--faint); margin-left: auto; opacity: 0; transition: opacity .2s; }
.term-row:hover { background: rgba(167, 139, 250, .07); color: var(--text); }
.term-row:hover .f { color: var(--purple); }
.term-row:hover .cur { opacity: 1; animation: blink 1s steps(1) infinite; margin-left: -18px; }
.term-row:hover .go { opacity: 1; }


/* research posts, laid out like the original doc */
.post.doc { max-width: 900px; }
.doc-head { text-align: center; margin-bottom: 44px; }
.doc-head .author { font: 13px var(--mono); color: var(--dim); margin: 0 0 6px; }
.doc-head h1 { margin: 0 0 6px; }
.doc-head .deck { font-size: 15px; margin: 0; }
.doc h2.sec { font: 600 18px var(--sans); color: var(--text); margin: 44px 0 14px; }
.doc > p:not([class]) { text-indent: 2em; }
.doc ol.plain { padding-left: 22px; color: var(--soft); font-size: 16px; line-height: 1.8; }
.doc ol.plain ol { padding-left: 22px; margin: 2px 0 6px; }
.doc ol.plain li::marker { color: var(--purple); font-family: var(--mono); font-size: 13px; }
.doc u { text-decoration-color: var(--purple); text-underline-offset: 3px; }

.docrow {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px;
  padding: 26px 0; border-top: 1px solid var(--line); align-items: start;
}
.docrow:last-child { border-bottom: 1px solid var(--line); }
.docrow-text.wide { grid-column: 1 / -1; }
.docrow h3 { font: 500 16px var(--sans); color: var(--text); margin: 0 0 10px; }
.docrow ul { margin: 0 0 12px; padding-left: 18px; color: var(--softer); font-size: 15px; line-height: 1.7; }
.docrow li { margin-bottom: 6px; }
.docrow li::marker { color: var(--purple); }
.docrow li.added { list-style: none; margin-left: -18px; }
.docrow p.small { font-size: 14px; color: var(--softer); margin: 0 0 6px; text-indent: 0; }
.docrow-fig { display: grid; gap: 12px; min-width: 0; }
.figcap { font: 11.5px/1.6 var(--mono) !important; color: var(--dim) !important; margin: 0 !important; text-indent: 0 !important; }

.note26 {
  display: block; margin-top: 4px;
  font: 12px/1.6 var(--mono); color: var(--purple);
}
.note26 b {
  font-weight: 500; font-size: 10px; color: var(--bg); background: var(--purple);
  padding: 1px 5px; border-radius: 3px; margin-right: 6px;
}

.chart { width: 100%; height: auto; display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.orig { width: 100%; border-radius: 6px; border: 1px solid var(--line); filter: invert(.92) hue-rotate(180deg) saturate(1.2); }
.light .orig { filter: none; }

.heatmap {
  display: grid; grid-template-columns: 76px repeat(7, 1fr); gap: 2px;
  font: 10px var(--mono); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px;
}
.hm-col { color: var(--dim); font-size: 8.5px; text-align: center; align-self: end; padding-bottom: 4px; line-height: 1.2; }
.hm-row { color: var(--dim); font-size: 9px; text-align: right; padding-right: 6px; align-self: center; }
.hm-cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 2px; font-size: 9.5px; }

.cm { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px 10px; }
.cm-grid { display: grid; grid-template-columns: 22px 16px 1fr 1fr; gap: 3px; font: 13px var(--mono); }
.cm-ylab { grid-row: 1 / 3; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; color: var(--dim); text-align: center; }
.cm-y, .cm-x { color: var(--dim); font-size: 11px; display: grid; place-items: center; }
.cm-y { grid-column: 2; }
.cm-grid > div:nth-last-child(3) { grid-column: 1 / 3; }
.cm-cell { display: grid; place-items: center; height: 64px; border-radius: 3px; }
.cm figcaption { font: 10px var(--mono); color: var(--dim); text-align: center; margin-top: 6px; padding-left: 38px; }

pre.code {
  margin: 0; padding: 12px 14px; overflow-x: auto;
  background: var(--code); border: 1px solid var(--line); border-radius: 6px;
  font: 11.5px/1.6 var(--mono); color: var(--soft);
}
pre.code.out { color: var(--blue); background: transparent; border-style: dashed; }

.doc .ref { padding-left: 2em; text-indent: -2em; font-size: 14px; line-height: 1.7; margin: 0 0 12px; word-break: break-word; }
.doc .works { text-align: center; font-size: 15px; color: var(--text); }

@media (max-width: 760px) {
  .docrow { grid-template-columns: 1fr; gap: 16px; }
  .heatmap { grid-template-columns: 58px repeat(7, 1fr); padding: 6px; }
  .hm-cell { font-size: 7.5px; }
}
.chart.small { max-width: 280px; justify-self: center; }
.debrief { margin-top: 4px; }
.debrief .kicker { font: 11px var(--mono) !important; color: var(--dim) !important; margin: 0 0 4px !important; text-indent: 0 !important; }
sup.cite { font: 10px var(--mono); line-height: 0; margin-left: 2px; }
sup.cite a { border: 0; color: var(--purple); }
sup.cite a:hover { color: var(--text); }
.doc .ref { scroll-margin-top: 80px; }
.doc .ref:target { background: rgba(167, 139, 250, .08); border-radius: 4px; }
.doc .refnum { font: 12px var(--mono); color: var(--purple); }
.doc .ref a.back { border: 0; color: var(--purple); margin-left: 4px; }
sup.cite a:target { outline: 1px solid var(--purple); outline-offset: 2px; border-radius: 2px; }
[id^="cite-"] { scroll-margin-top: 120px; }

/* the terminal on the homepage */
.term-win {
  border: 1px solid var(--line); border-radius: 8px;
  background: rgba(10, 10, 18, .88);
  font: 12.5px/1.65 var(--mono);
  overflow: hidden;
}
.t-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 14px; border-bottom: 1px solid var(--line);
  color: var(--dim); font-size: 11.5px;
}
.t-bar b { color: var(--purple); font-weight: 400; }
.t-panda { color: var(--faint); }
.t-out { height: 232px; overflow-y: auto; padding: 10px 14px 0; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.t-row { white-space: pre-wrap; word-break: break-word; }
.t-row + .t-echo { margin-top: 6px; }
.t-echo { color: var(--text); }
.t-p, .t-prompt { color: var(--dim); }
.t-prompt b, .t-p { font-weight: 400; }
.t-prompt b { color: var(--purple); }
.t-dir { color: var(--purple); }
.t-watch { color: var(--blue); }
.t-url { color: var(--blue); }
.t-post { color: var(--text); }
.t-ls { word-spacing: 0; }
.t-ls span { margin-right: 4px; }
.t-dim { color: var(--dim); }
.t-text { color: var(--softer); font-family: var(--sans); font-size: 13.5px; line-height: 1.6; margin: 2px 0; }
.t-title-line { color: var(--text); font-weight: 500; }
.t-err { color: var(--red); }
.t-ok { color: #7ee2b8; }
.t-say { color: #c9b9ff; animation: pop .35s cubic-bezier(.3, 1.6, .5, 1) both; margin: 4px 0; }
.t-face { color: var(--text); display: inline-block; animation: wiggle .6s .2s ease-in-out; }
.t-name { font: inherit; background: none; border: 0; padding: 0 2px; margin: 0 -2px; border-radius: 3px; cursor: pointer; }
.t-name:hover, .t-name:focus-visible { background: rgba(167, 139, 250, .14); outline: none; text-decoration: underline; text-underline-offset: 3px; }
.t-cmd { font: inherit; border: 0; cursor: pointer; white-space: nowrap; color: var(--text); font-weight: 500; background: rgba(167, 139, 250, .12); padding: 0 4px; border-radius: 3px; }
button.t-cmd:hover, button.t-cmd:focus-visible { background: rgba(167, 139, 250, .3); outline: none; }
b.t-cmd { cursor: default; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.97); } }
@keyframes wiggle { 30% { transform: rotate(-10deg); } 60% { transform: rotate(8deg); } }
.t-line { display: flex; gap: 8px; align-items: center; padding: 4px 14px 12px; cursor: text; }
.t-line input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: var(--text); font: inherit; caret-color: var(--purple); padding: 0;
}

/* the panda that lives along the bottom of the screen */
.roamer {
  position: fixed; left: 0; bottom: 8px; z-index: 3;
  font: 13px var(--mono); color: var(--text);
  pointer-events: none; white-space: nowrap;
  transition: opacity .3s;
}
.roamer .r-face { display: inline-block; transition: transform .3s; }
.roamer.walking .r-face { animation: waddle .5s steps(2) infinite; }
.roamer.ducked { opacity: 0; }
.roamer.ducked .r-face { transform: translateY(16px); }
.r-say { margin-left: 8px; font-size: 11px; color: var(--faint); transition: opacity .6s; }
.roamer.greeted .r-say { opacity: 0; }
@keyframes waddle { 50% { transform: translateY(-2px) rotate(-4deg); } }

/* and the one that pops out of a hole where you click */
.peek { position: fixed; z-index: 3; width: 0; height: 0; pointer-events: none; font: 15px var(--mono); }
.p-hole {
  position: absolute; left: -30px; top: -7px; width: 60px; height: 14px; border-radius: 50%;
  background: #000; box-shadow: 0 0 0 1px var(--purple), 0 0 14px rgba(167, 139, 250, .45), inset 0 3px 6px rgba(167, 139, 250, .25);
  animation: hole 2.4s ease both;
}
.p-mask { position: absolute; left: -40px; bottom: 0; width: 80px; height: 30px; overflow: hidden; text-align: center; }
.p-face { display: inline-block; color: var(--text); animation: rise 2.4s cubic-bezier(.3, 1.4, .5, 1) both; }
.p-say {
  position: absolute; left: 0; bottom: 32px; transform: translateX(-50%);
  font-size: 11px; color: var(--bg); background: var(--purple);
  padding: 2px 8px; border-radius: 10px; white-space: nowrap;
  animation: say 2.4s ease both;
}
@keyframes hole { 0% { transform: scale(0); } 12%, 82% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes rise { 0%, 12% { transform: translateY(110%); } 30%, 72% { transform: translateY(8%); } 45% { transform: translateY(8%) rotate(-8deg); } 58% { transform: translateY(8%) rotate(6deg); } 85%, 100% { transform: translateY(110%); } }
@keyframes say { 0%, 28% { opacity: 0; transform: translate(-50%, 4px); } 36%, 70% { opacity: 1; transform: translate(-50%, 0); } 80%, 100% { opacity: 0; } }

/* Blog post figures, chat excerpts, lists and references in plain posts (growing-a-second-brain) */
.post:not(.doc) .deck { font-size: 15px; color: var(--dim); margin: -24px 0 10px; }
.post .trylink { font: 13px var(--mono); color: var(--dim); margin: 0 0 36px; }
.post h2.sec { font: 600 18px var(--sans); color: var(--text); margin: 44px 0 14px; }
.post-fig { margin: 30px 0; display: grid; gap: 10px; }
.post-fig img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.post-fig .figcap { text-align: center; }
.post ul.plain { padding-left: 22px; color: var(--soft); font-size: 17px; line-height: 1.85; margin: 0 0 22px; }
.post ul.plain li { margin-bottom: 8px; }
.post ul.plain li::marker { color: var(--purple); }
blockquote.chat {
  margin: 0 0 22px; padding: 14px 18px; border-left: 2px solid var(--purple);
  background: var(--panel); border-radius: 0 6px 6px 0;
}
blockquote.chat p { font: 14px/1.7 var(--mono); color: var(--soft); margin: 0 0 8px; text-indent: 0; }
blockquote.chat p:last-child { margin-bottom: 0; }
blockquote.chat b { color: var(--purple); font-weight: 500; }
.post .ref { padding-left: 2em; text-indent: -2em; font-size: 14px; line-height: 1.7; margin: 0 0 12px; word-break: break-word; scroll-margin-top: 80px; }
.post .ref:target { background: rgba(167, 139, 250, .08); border-radius: 4px; }
.post .refnum { font: 12px var(--mono); color: var(--purple); }
.post .ref a.back { border: 0; color: var(--purple); margin-left: 4px; }

/* small asides that hang off the paragraph above them */
.post .pop {
  margin: -10px 0 26px 18px; padding: 10px 14px 11px;
  border: 1px solid var(--line); border-left: 2px solid var(--purple); border-radius: 0 6px 6px 0;
  background: var(--panel);
}
.post .pop-label { display: block; font: 11px var(--mono); color: var(--purple); letter-spacing: .03em; margin-bottom: 3px; }
.post .pop p { font-size: 14.5px; line-height: 1.7; color: var(--softer); margin: 0; }
.post .pop + .pop { margin-top: -14px; }

/* neovim, inside the terminal window */
.t-doc { color: var(--text); }
.term-win.in-vim > .t-out, .term-win.in-vim > .t-line { display: none; }
.vim { position: relative; display: flex; flex-direction: column; font: 12.5px/1.6 var(--mono); cursor: text; }
.v-buf { height: 232px; overflow-y: auto; padding-top: 6px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.v-row { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); }
.v-ln { color: var(--faint); text-align: right; padding-right: 1em; user-select: none; }
.v-line .v-ln { color: var(--purple); }
.v-line { background: rgba(167, 139, 250, .06); }
.v-txt { white-space: pre-wrap; word-break: break-word; color: #c3c6dc; padding-right: 12px; }
.v-h1 .v-txt { color: var(--purple); font-weight: 500; }
.v-h2 .v-txt { color: var(--blue); font-weight: 500; cursor: pointer; }
.v-fold { cursor: pointer; }
.v-fold .v-txt { display: flex; overflow: hidden; color: #9aa6d8; background: rgba(110, 168, 255, .07); white-space: pre; }
.v-dots { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; color: var(--faint); }
.v-dots::after { content: "··································································································"; }
.v-tilde .v-txt { color: #2c3150; }
.v-cur { background: var(--text); color: var(--bg); }
.v-hl { background: rgba(255, 214, 102, .85); color: var(--bg); }
.v-hl.v-cur { background: var(--text); }

.v-status { display: flex; align-items: center; gap: 10px; background: #12131f; border-top: 1px solid var(--line); font-size: 11.5px; }
.v-mode { padding: 1px 10px; font-weight: 500; color: var(--bg); background: var(--purple); letter-spacing: .04em; }
.v-mode.v-insert { background: #7ee2b8; }
.v-mode.v-command, .v-mode.v-search { background: var(--blue); }
.v-file { color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-pos { color: var(--dim); padding-right: 12px; white-space: pre; }
.v-cmd { min-height: 1.6em; padding: 1px 12px; color: var(--dim); white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.v-cmd.v-err { color: var(--red); }

.v-bar { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 6px 12px 10px; border-top: 1px dashed var(--line); font-size: 11px; color: var(--dim); }
.v-bar button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.v-bar b { color: var(--text); font-weight: 500; background: rgba(167, 139, 250, .14); padding: 0 5px; border-radius: 3px; margin-right: 4px; }
.v-bar button:hover b, .v-bar button:focus-visible b { background: rgba(167, 139, 250, .32); }
.v-bar button:focus-visible { outline: none; }

.v-panda {
  position: absolute; right: 12px; bottom: 92px; max-width: 300px;
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--purple);
  background: #14122a; color: #d9cffd; font-size: 12px; line-height: 1.5;
  opacity: 0; transform: translateY(8px) scale(.97); pointer-events: none;
  transition: opacity .25s, transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.v-panda.on { opacity: 1; transform: none; pointer-events: auto; }
.v-panda .v-face { color: var(--text); }
.v-panda button { font: inherit; font-weight: 500; color: var(--bg); background: var(--purple); border: 0; border-radius: 3px; padding: 0 5px; cursor: pointer; }
.v-input { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; pointer-events: none; }

/* in neovim, green and yellow pick out the highlights; everything else keeps the site's colors */
.term-win.in-vim { --vg: #39ff88; --vy: #ffd866; }
.in-vim .v-h1 .v-txt { color: var(--vg); }
.in-vim .v-h2 .v-txt { color: var(--vy); }
.in-vim .v-fold .v-txt { color: #8f93b4; background: rgba(255, 255, 255, .03); }
.in-vim .v-fmark { color: var(--vg); }
.in-vim .v-ftitle { color: var(--vy); }
.in-vim .v-line .v-ln { color: var(--vy); }
.in-vim .v-cur, .in-vim .v-hl.v-cur { background: var(--vg); color: var(--bg); }
.in-vim .v-hl { background: var(--vy); color: var(--bg); }
.in-vim .v-mode.v-normal { background: var(--vg); }
.in-vim .v-mode.v-insert { background: var(--vy); }
.in-vim .v-mode.v-command, .in-vim .v-mode.v-search { background: var(--blue); }
.in-vim .v-pos { color: var(--vy); }
.in-vim .t-bar b { color: var(--vg); }
.in-vim .v-bar b { color: var(--vg); background: rgba(57, 255, 136, .1); }
.in-vim .v-bar button:hover b, .in-vim .v-bar button:focus-visible b { background: rgba(57, 255, 136, .22); }
.in-vim .v-panda { border-color: var(--vg); }
.in-vim .v-panda button { background: var(--vg); }

/* A Wormhole Between Two Math Classes: subsections, numbered lists, equations, the decisions table, interactive figures */
.post h3.subsec { font: 600 16px var(--sans); color: var(--text); margin: 34px 0 12px; }
.post ol.plain { padding-left: 22px; color: var(--soft); font-size: 17px; line-height: 1.85; margin: 0 0 22px; }
.post ol.plain li { margin-bottom: 8px; }
.post ol.plain li::marker { color: var(--purple); font: 13px var(--mono); }
.post ol.plain ol.plain { margin: 8px 0 0; }
.post .eq { font: 15px/1.7 var(--mono); color: var(--text); text-align: center; background: var(--code); border-radius: 6px; padding: 10px 14px; overflow-x: auto; }
.table-wrap { overflow-x: auto; margin: 0 0 26px; }
table.decisions { border-collapse: collapse; font-size: 14px; line-height: 1.6; color: var(--soft); min-width: 560px; }
table.decisions th, table.decisions td { text-align: left; vertical-align: top; padding: 9px 10px; border-top: 1px solid var(--line); }
table.decisions th { font: 500 12px var(--mono); color: var(--dim); }
table.decisions td:first-child { color: var(--text); font-weight: 500; }
table.decisions tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.post-interactive > div { min-width: 0; }
