/* Blog Publisher: premium looks.
 *
 * Six whole designs for a blog, each scoped to body.theme-<key> and loaded only on blogs that use
 * one. No scripts, no fonts from elsewhere: every face is one the reader's device already has.
 *
 * What a look knows about its blog arrives as variables on <body> (lib/themes.php):
 *   --t-user  "maya"            --t-name  "Maya Okafor"       --t-host  "noted"
 *   --t-where "noted.do/maya"   --t-date  "Wednesday, November 25, 2026"
 *   --t-accent      the colour the writer picked, if any (as picked: for dark paper)
 *   --t-accent-ink  the same, darkened (for light paper)
 *
 * The writer's own colours and CSS are printed after this file, so they sit on top of a look.
 * Light looks have a dark side, written the way site.css writes dark rules: once inside the media
 * query for :root:not([data-mode="light"]), once outside for :root[data-mode="dark"].
 */

/* ------------------------------------------------------------------ shared */
body[class*="theme-"].blog { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.blog .prose img, body.blog .prose video { display: block; }
@media (prefers-reduced-motion: reduce) {
  body.blog *, body.blog *::before, body.blog *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   1. TERMINAL  a shell window that is switched on
   ========================================================================== */
body.theme-terminal {
  --ac: var(--t-accent, #62e884);
  --paper: #080b09; --card: #0d120f; --ink: #c9f3d2; --muted: #6f8f77; --rule: #1b2620; --soft: #101612;
  --navy: var(--ac); --navy-soft: color-mix(in srgb, var(--ac) 12%, transparent); --navy-mid: color-mix(in srgb, var(--ac) 26%, transparent);
  --harbor: var(--ac); --harbor-soft: var(--navy-soft);
  --field: #0b100d; --code-bg: #111a14; --block-bg: #050806; --block-ink: #d6f7dd;
  --tm-dim: color-mix(in srgb, var(--ac) 38%, #4a5a50);
  --tm-hi: color-mix(in srgb, var(--ac) 18%, #f2fff5);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --serif: var(--mono); --sans: var(--mono); --display: var(--mono);
  --measure: 44rem;
  color-scheme: dark;
  background: radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--ac) 9%, #080b09) 0%, #080b09 55%) fixed, #080b09;
  color: var(--ink);
  font: 400 .97rem/1.7 var(--mono);
  font-variant-ligatures: none;
}
/* The glass: faint scan lines and a vignette over everything, never in the way of a tap. */
body.theme-terminal::before {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgb(0 0 0 / 0) 0, rgb(0 0 0 / 0) 2px, rgb(0 0 0 / .16) 3px, rgb(0 0 0 / 0) 4px),
              radial-gradient(130% 100% at 50% 50%, transparent 62%, rgb(0 0 0 / .42) 100%);
  animation: tm-flicker 7s infinite steps(1);
}
/* A slow band of light travelling down the screen, as on an old tube. */
body.theme-terminal::after {
  content: ""; position: fixed; left: 0; right: 0; top: 0; height: 22vh; z-index: 49; pointer-events: none;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--ac) 5%, transparent) 50%, transparent);
  animation: tm-sweep 9s linear infinite;
}
@keyframes tm-flicker { 0%, 100% { opacity: 1; } 47% { opacity: .96; } 48% { opacity: .9; } 49% { opacity: 1; } 82% { opacity: .97; } 83% { opacity: 1; } }
@keyframes tm-sweep { from { transform: translateY(-30vh); } to { transform: translateY(125vh); } }
@keyframes tm-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tm-print { from { opacity: 0; transform: translateY(.35rem); } to { opacity: 1; transform: none; } }
@keyframes tm-glow { 0%, 100% { text-shadow: 0 0 .55rem color-mix(in srgb, var(--ac) 42%, transparent); } 50% { text-shadow: 0 0 .9rem color-mix(in srgb, var(--ac) 62%, transparent); } }

body.theme-terminal ::selection { background: var(--ac); color: #050806; }
body.theme-terminal a { color: var(--ac); text-decoration: none; }
body.theme-terminal a:hover { background: var(--ac); color: #050806; text-decoration: none; }
body.theme-terminal h1, body.theme-terminal h2, body.theme-terminal h3, body.theme-terminal h4 { font-family: var(--mono); letter-spacing: 0; }
body.theme-terminal :focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; border-radius: 0; }

/* The window: a title bar, then the session. */
body.theme-terminal .topbar { max-width: 50rem; margin: 1.2rem auto 0; padding: .55rem .9rem; border: 1px solid var(--rule); border-bottom: 0; border-radius: 10px 10px 0 0; background: #0f1512; font-size: .78rem; }
body.theme-terminal .topbar .brand { font: 400 .78rem var(--mono); color: var(--muted); }
body.theme-terminal .topbar .brand::before { content: "● ● ●"; margin-right: .8rem; letter-spacing: .12em; color: var(--tm-dim); font-size: .6rem; vertical-align: .1em; }
body.theme-terminal .topbar .brand::after { content: " — " var(--t-user) "@" var(--t-host) ": ~"; }
body.theme-terminal .topnav { gap: .9rem; }
body.theme-terminal .topnav a, body.theme-terminal .topnav .nav-cta { padding: 0; background: none; color: var(--muted); font-weight: 400; border-radius: 0; }
body.theme-terminal .topnav a:hover { background: var(--ac); color: #050806; }
body.theme-terminal .page { max-width: 50rem; margin-bottom: 2rem; padding: 1.4rem 1.6rem 2.2rem; border: 1px solid var(--rule); border-radius: 0 0 10px 10px; background: color-mix(in srgb, #0a0e0b 86%, transparent); box-shadow: 0 0 0 1px rgb(0 0 0 / .5), 0 1.5rem 4rem rgb(0 0 0 / .55), 0 0 5rem color-mix(in srgb, var(--ac) 7%, transparent); }

/* whoami */
body.theme-terminal .blog-head { margin: 0 0 1.6rem; }
body.theme-terminal .blog-head:not(.compact)::before { content: var(--t-user) "@" var(--t-host) ":~$ whoami"; display: block; width: max-content; max-width: 100%; margin-bottom: .7rem; color: var(--tm-dim); white-space: nowrap; overflow: hidden; animation: tm-type .9s steps(22, end) both; }
body.theme-terminal .blog-identity { gap: 1.1rem; align-items: flex-start; animation: tm-print .35s .95s both; }
body.theme-terminal .avatar { width: 4rem; height: 4rem; border-radius: 4px; border: 1px solid var(--navy-mid); filter: grayscale(1) contrast(1.15) brightness(.92); mix-blend-mode: luminosity; background: var(--navy-soft); }
body.theme-terminal .avatar-initial { font: 700 1.9rem/1 var(--mono); color: var(--ac); filter: none; mix-blend-mode: normal; }
body.theme-terminal .blog-title { font: 700 clamp(1.5rem, 4.6vw, 2rem)/1.2 var(--mono); color: var(--tm-hi); animation: tm-glow 4.5s ease-in-out infinite; }
body.theme-terminal .blog-title::before { content: "# "; color: var(--ac); }
body.theme-terminal .blog-handle { color: var(--muted); font-size: .86rem; }
body.theme-terminal .blog-bio { color: var(--ink); font: 400 .97rem/1.6 var(--mono); }
body.theme-terminal .blog-bio::before { content: "// "; color: var(--tm-dim); }
body.theme-terminal .profile-links a { border-radius: 0; border: 1px solid var(--rule); background: none; color: var(--ink); }
body.theme-terminal .profile-links a:hover { background: var(--ac); color: #050806; border-color: var(--ac); }
body.theme-terminal .blog-head-foot { margin-top: 1.2rem; padding-top: .9rem; border-top: 1px dashed var(--rule); animation: tm-print .35s 1.15s both; }
body.theme-terminal .blog-nav { gap: .2rem .9rem; }
body.theme-terminal .blog-nav a, body.theme-terminal .blog-nav a:first-child { padding: 0 .1rem; border-radius: 0; background: none; color: var(--ac); font-size: .9rem; font-weight: 400; text-transform: lowercase; }
body.theme-terminal .blog-nav a::before { content: "["; color: var(--tm-dim); }
body.theme-terminal .blog-nav a::after { content: "]"; color: var(--tm-dim); }
body.theme-terminal .blog-nav a:hover { background: var(--ac); color: #050806; }
body.theme-terminal .blog-nav a:hover::before, body.theme-terminal .blog-nav a:hover::after { color: #050806; }
body.theme-terminal .blog-search input { border-radius: 0; border: 0; border-bottom: 1px solid var(--rule); background: none; font: .86rem var(--mono); color: var(--tm-hi); }
body.theme-terminal .blog-search input::placeholder { color: var(--tm-dim); }
body.theme-terminal .blog-search input:focus { outline: 0; border-bottom-color: var(--ac); }
body.theme-terminal .word-count { color: var(--muted); font-weight: 400; }
body.theme-terminal .blog-head.compact { border-bottom: 1px dashed var(--rule); }
body.theme-terminal .blog-head.compact .blog-home .avatar { width: 1.9rem; height: 1.9rem; }
body.theme-terminal .blog-name { font: 700 .97rem var(--mono); color: var(--tm-hi); }
body.theme-terminal .blog-name::before { content: "~/"; color: var(--tm-dim); font-weight: 400; }

/* ls -lt posts/ */
body.theme-terminal #posts::before { content: var(--t-user) "@" var(--t-host) ":~$ ls -lt posts/"; display: block; width: max-content; max-width: 100%; margin-bottom: .9rem; color: var(--tm-dim); white-space: nowrap; overflow: hidden; animation: tm-type .8s 1.25s steps(20, end) both; }
body.theme-terminal .post-list { gap: 0; }
body.theme-terminal .post-preview { padding: .95rem 0 1rem 1rem; border: 0; border-left: 2px solid var(--rule); border-radius: 0; background: none; animation: tm-print .32s both; transition: border-color .15s, background .15s; }
body.theme-terminal .post-preview:nth-child(1) { animation-delay: 2.05s; } body.theme-terminal .post-preview:nth-child(2) { animation-delay: 2.17s; }
body.theme-terminal .post-preview:nth-child(3) { animation-delay: 2.29s; } body.theme-terminal .post-preview:nth-child(4) { animation-delay: 2.41s; }
body.theme-terminal .post-preview:nth-child(5) { animation-delay: 2.53s; } body.theme-terminal .post-preview:nth-child(n+6) { animation-delay: 2.65s; }
body.theme-terminal .post-preview:hover { border-left-color: var(--ac); background: linear-gradient(to right, var(--navy-soft), transparent 70%); }
body.theme-terminal .post-preview.pinned { border-left-color: var(--navy-mid); }
body.theme-terminal .pin-label { color: var(--ac); font-weight: 400; letter-spacing: 0; text-transform: lowercase; }
body.theme-terminal .pin-label::before { content: "* "; }
body.theme-terminal .preview-title { font: 700 1.08rem/1.4 var(--mono); }
body.theme-terminal .preview-title a { color: var(--tm-hi); }
body.theme-terminal .preview-title a::before { content: "./"; color: var(--ac); font-weight: 400; }
body.theme-terminal .preview-title a:hover { background: none; color: var(--ac); text-shadow: 0 0 .7rem color-mix(in srgb, var(--ac) 55%, transparent); }
body.theme-terminal .post-meta { margin-top: .15rem; font-size: .8rem; color: var(--muted); }
body.theme-terminal .post-meta::before { content: "-rw-r--r--  " var(--t-user) "  "; color: var(--tm-dim); }
body.theme-terminal .post-meta .sep { color: var(--tm-dim); }
body.theme-terminal .preview-body { margin-top: .5rem; font: 400 .9rem/1.65 var(--mono); color: color-mix(in srgb, var(--ink) 78%, var(--muted)); }
body.theme-terminal .read-more { margin-top: .5rem; font-size: .86rem; font-weight: 400; }
body.theme-terminal .read-more::before { content: "$ cat "; color: var(--tm-dim); }
body.theme-terminal .pager { margin-top: 1.4rem; padding-top: .9rem; border-top: 1px dashed var(--rule); font-size: .86rem; }
/* The prompt that is still waiting, with its cursor. */
body.theme-terminal main::after { content: var(--t-user) "@" var(--t-host) ":~$"; display: inline-block; max-width: 100%; margin-top: 1.8rem; padding-right: .55ch; border-right: .62em solid var(--ac); color: var(--tm-dim); line-height: 1.25; white-space: nowrap; overflow: hidden; animation: tm-cursor 1.06s steps(1) infinite; }
@keyframes tm-cursor { 0%, 49% { border-right-color: var(--ac); } 50%, 100% { border-right-color: transparent; } }

/* cat post.md */
body.theme-terminal .post { margin-top: 1.4rem; }
body.theme-terminal .post-head::before { content: var(--t-user) "@" var(--t-host) ":~/posts$ cat post.md"; display: block; width: max-content; max-width: 100%; margin-bottom: .7rem; color: var(--tm-dim); white-space: nowrap; overflow: hidden; animation: tm-type .9s steps(26, end) both; }
body.theme-terminal .post-head h1 { font: 700 clamp(1.45rem, 4.4vw, 1.95rem)/1.25 var(--mono); color: var(--tm-hi); animation: tm-print .35s .95s both, tm-glow 4.5s 1.3s ease-in-out infinite; }
body.theme-terminal .post-head h1::before { content: "# "; color: var(--ac); }
body.theme-terminal .post-head .post-meta { animation: tm-print .35s 1.05s both; }
body.theme-terminal .post .prose { margin-top: 1.5rem; animation: tm-print .45s 1.2s both; }
body.theme-terminal .prose { font: 400 .97rem/1.8 var(--mono); color: var(--ink); }
body.theme-terminal .prose h1, body.theme-terminal .prose h2, body.theme-terminal .prose h3, body.theme-terminal .prose h4 { margin: 1.9em 0 .6em; font-size: 1.05rem; color: var(--tm-hi); }
body.theme-terminal .prose h1::before { content: "# "; color: var(--ac); }
body.theme-terminal .prose h2::before { content: "## "; color: var(--ac); }
body.theme-terminal .prose h3::before { content: "### "; color: var(--ac); }
body.theme-terminal .prose h4::before { content: "#### "; color: var(--ac); }
body.theme-terminal .prose a { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: .2em; }
body.theme-terminal .prose a:hover { text-decoration: none; }
body.theme-terminal .prose strong { color: var(--tm-hi); }
body.theme-terminal .prose em { color: color-mix(in srgb, var(--ac) 55%, #fff); }
body.theme-terminal .prose ul { list-style: none; padding-left: 0; }
body.theme-terminal .prose ul > li { position: relative; padding-left: 1.6ch; }
body.theme-terminal .prose ul > li::before { content: "-"; position: absolute; left: 0; color: var(--ac); }
body.theme-terminal .prose ol { padding-left: 3.2ch; }
body.theme-terminal .prose ol > li::marker { color: var(--ac); }
body.theme-terminal .prose blockquote { padding: .1em 0 .1em 1rem; border-left: 2px solid var(--ac); color: color-mix(in srgb, var(--ac) 45%, var(--ink)); font-style: normal; }
body.theme-terminal .prose code { padding: .08em .4em; border: 1px solid var(--rule); border-radius: 3px; background: var(--code-bg); color: #ffd866; font-family: var(--mono); }
body.theme-terminal .prose pre, body.theme-terminal .prose pre.code { border: 1px solid var(--rule); border-radius: 4px; background: var(--block-bg); }
body.theme-terminal .prose pre code { border: 0; color: inherit; }
body.theme-terminal .prose hr { border: 0; border-top: 1px dashed var(--tm-dim); }
body.theme-terminal .prose img, body.theme-terminal .prose video { border: 1px solid var(--rule); border-radius: 4px; }
body.theme-terminal .prose table { border-collapse: collapse; font-size: .9rem; }
body.theme-terminal .prose th, body.theme-terminal .prose td { border: 1px solid var(--rule); padding: .35rem .7rem; }
body.theme-terminal .prose th { color: var(--tm-hi); text-align: left; }
body.theme-terminal .prose details { border: 1px dashed var(--rule); border-radius: 0; }
body.theme-terminal .prose mark { background: color-mix(in srgb, var(--ac) 28%, transparent); color: var(--tm-hi); }
body.theme-terminal .post-tags a { margin-right: .9rem; color: var(--muted); }
body.theme-terminal .post-tags a:hover { color: #050806; }
body.theme-terminal .reactions button, body.theme-terminal button, body.theme-terminal .button { border: 1px solid var(--ac); border-radius: 0; background: transparent; color: var(--ac); font: 400 .9rem var(--mono); box-shadow: none; }
body.theme-terminal .reactions button:hover, body.theme-terminal button:hover, body.theme-terminal .button:hover { background: var(--ac); color: #050806; filter: none; text-decoration: none; }
body.theme-terminal .reactions .count { color: inherit; }
body.theme-terminal .subscribe, body.theme-terminal .series, body.theme-terminal .post-nav a, body.theme-terminal .comments .comment, body.theme-terminal .notice { border: 1px dashed var(--rule); border-radius: 0; background: none; }
body.theme-terminal .subscribe label { font-weight: 400; color: var(--tm-hi); }
body.theme-terminal .subscribe label::before { content: "$ "; color: var(--ac); }
body.theme-terminal input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), body.theme-terminal textarea, body.theme-terminal select { border: 1px solid var(--rule); border-radius: 0; background: var(--field); color: var(--tm-hi); font: .92rem var(--mono); caret-color: var(--ac); }
body.theme-terminal input:focus, body.theme-terminal textarea:focus { outline: 0; border-color: var(--ac); box-shadow: 0 0 0 1px var(--ac), 0 0 1rem color-mix(in srgb, var(--ac) 25%, transparent); }
body.theme-terminal .post-nav a { color: var(--ink); transition: border-color .15s; }
body.theme-terminal .post-nav a:hover { border: 1px solid var(--ac); background: var(--navy-soft); color: var(--tm-hi); }
body.theme-terminal .post-nav small { color: var(--tm-dim); text-transform: lowercase; }
body.theme-terminal .post-nav .newer small::before { content: "← "; } body.theme-terminal .post-nav .older small::after { content: " →"; }
body.theme-terminal .comments { border-top: 1px dashed var(--rule); }
body.theme-terminal .comments > h2 { font-size: 1.05rem; color: var(--tm-hi); }
body.theme-terminal .comments > h2::before { content: "## "; color: var(--ac); }
body.theme-terminal .post-foot { border-top: 1px dashed var(--rule); }
body.theme-terminal .reading-label { color: var(--tm-dim); }
body.theme-terminal .reading-label::before { content: "["; } body.theme-terminal .reading-label::after { content: "]"; }
body.theme-terminal .colophon { margin-top: 0; padding-top: 0; border-top: 0; font-size: .8rem; color: var(--tm-dim); }
body.theme-terminal .colophon a { color: var(--muted); }
body.theme-terminal .colophon a:hover { color: #050806; }
body.theme-terminal .compose { border-radius: 0; background: var(--ac); color: #050806; box-shadow: 0 0 1.2rem color-mix(in srgb, var(--ac) 45%, transparent); }
body.theme-terminal .empty { color: var(--muted); }
body.theme-terminal .empty::before { content: "total 0 — "; color: var(--tm-dim); }
@media (max-width: 40rem) {
  body.theme-terminal { font-size: .92rem; }
  body.theme-terminal .topbar { margin: 0; border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
  body.theme-terminal .topbar .brand::after { content: ""; }
  body.theme-terminal .page { margin: 0; padding: 1.1rem 1rem 2rem; border: 0; border-radius: 0; box-shadow: none; background: none; }
  body.theme-terminal .avatar { width: 3.1rem; height: 3.1rem; }
  body.theme-terminal .post-meta::before { content: ""; }
  body.theme-terminal .post-preview { padding-left: .8rem; }
  body.theme-terminal .blog-head-foot { gap: .7rem; }
  body.theme-terminal .blog-search input, body.theme-terminal .blog-search input:focus { width: 100%; }
  body.theme-terminal .blog-tools { width: 100%; }
  body.theme-terminal .blog-search { flex: 1; }
  body.theme-terminal::after { display: none; }
}

/* ==========================================================================
   2. BROADSHEET  a newspaper: masthead, lead story, columns
   ========================================================================== */
body.theme-broadsheet {
  --ac: var(--t-accent-ink, #a3271b);
  --paper: #f6f1e7; --card: #f6f1e7; --ink: #1b1a17; --muted: #5d584d; --rule: #cdc5b3; --soft: #ece5d6;
  --navy: var(--ac); --navy-soft: color-mix(in srgb, var(--ac) 9%, transparent); --navy-mid: color-mix(in srgb, var(--ac) 22%, transparent);
  --harbor: var(--ink); --field: #fbf8f1; --code-bg: #ebe4d4;
  --bs-head: "Times New Roman", Times, "Liberation Serif", "Nimbus Roman", Georgia, serif;
  --bs-body: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --bs-label: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --serif: var(--bs-body); --display: var(--bs-head); --sans: var(--bs-body);
  --measure: 41rem;
  font: 400 1.06rem/1.62 var(--bs-body);
}
body.theme-broadsheet h1, body.theme-broadsheet h2, body.theme-broadsheet h3, body.theme-broadsheet h4 { font-family: var(--bs-head); letter-spacing: -.005em; }
body.theme-broadsheet .topbar { max-width: 60rem; margin: 0 auto; padding: .5rem 1.5rem; border-bottom: 1px solid var(--rule); font: 500 .68rem/1 var(--bs-label); letter-spacing: .12em; text-transform: uppercase; }
body.theme-broadsheet .topbar .brand { font: 700 .68rem/1 var(--bs-label); letter-spacing: .14em; }
body.theme-broadsheet .topnav a, body.theme-broadsheet .topnav .nav-cta { padding: 0; background: none; color: var(--muted); border-radius: 0; }
body.theme-broadsheet .page { max-width: 60rem; padding-top: 1.4rem; }
/* The masthead */
body.theme-broadsheet .blog-head:not(.compact) { margin: 0 0 1.6rem; text-align: center; }
body.theme-broadsheet .blog-head:not(.compact) .blog-identity { display: block; padding: 1.1rem 0 .9rem; border-top: 4px double var(--ink); border-bottom: 1px solid var(--ink); }
body.theme-broadsheet .blog-head:not(.compact) .avatar { display: none; }
body.theme-broadsheet .blog-title { font: 700 clamp(2.3rem, 7.2vw, 4.2rem)/1 var(--bs-head); letter-spacing: -.012em; }
body.theme-broadsheet .blog-handle { display: flex; justify-content: space-between; gap: 1rem; margin: .85rem 0 0; font: 500 .66rem/1.3 var(--bs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
body.theme-broadsheet .blog-handle::before { content: var(--t-date); }
body.theme-broadsheet .blog-handle::after { content: var(--t-where); }
body.theme-broadsheet .blog-handle > * { display: none; }
body.theme-broadsheet .blog-handle { font-size: 0; } body.theme-broadsheet .blog-handle::before, body.theme-broadsheet .blog-handle::after { font-size: .66rem; }
body.theme-broadsheet .blog-bio { max-width: 38rem; margin: .9rem auto 0; font: italic 1.08rem/1.45 var(--bs-body); color: var(--muted); }
body.theme-broadsheet .profile-links { justify-content: center; }
body.theme-broadsheet .profile-links a { border-radius: 0; }
body.theme-broadsheet .blog-head-foot { margin-top: 0; padding: .55rem 0; border-top: 0; border-bottom: 1px solid var(--ink); justify-content: center; }
body.theme-broadsheet .blog-nav { justify-content: center; gap: .2rem 1.5rem; }
body.theme-broadsheet .blog-nav a, body.theme-broadsheet .blog-nav a:first-child { padding: 0; border-radius: 0; background: none; color: var(--ink); font: 600 .68rem/1.6 var(--bs-label); letter-spacing: .14em; text-transform: uppercase; }
body.theme-broadsheet .blog-nav a:hover { color: var(--ac); background: none; text-decoration: none; }
body.theme-broadsheet .blog-tools { gap: 1.2rem; }
body.theme-broadsheet .blog-search input { border-radius: 0; border: 0; border-bottom: 1px solid var(--rule); background: none; font: .8rem var(--bs-label); width: 8rem; }
body.theme-broadsheet .word-count { font: 500 .66rem var(--bs-label); letter-spacing: .12em; text-transform: uppercase; }
body.theme-broadsheet .blog-head.compact { justify-content: space-between; padding: .2rem 0 .8rem; border-bottom: 3px double var(--ink); }
body.theme-broadsheet .blog-head.compact .avatar { display: none; }
body.theme-broadsheet .blog-name { font: 700 1.5rem/1 var(--bs-head); }
/* The front page: the newest story leads across the page, the rest run in columns beneath it. */
body.theme-broadsheet .post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.8rem; }
body.theme-broadsheet .post-preview { padding: 1.1rem 0 1.2rem; border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: none; }
body.theme-broadsheet .post-preview:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: .2rem 2rem; padding: .3rem 0 1.5rem; border-top: 0; border-bottom: 1px solid var(--ink); margin-bottom: .2rem; }
body.theme-broadsheet .post-preview:first-child .preview-title { grid-column: 1; font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.04; }
body.theme-broadsheet .post-preview:first-child .post-meta { grid-column: 1; align-self: start; }
body.theme-broadsheet .post-preview:first-child .preview-body { grid-column: 2; grid-row: 1 / span 3; margin: 0; padding-left: 2rem; border-left: 1px solid var(--rule); font-size: 1.02rem; text-align: justify; hyphens: auto; }
body.theme-broadsheet .post-preview:first-child .preview-body > p:first-child::first-letter { float: left; margin: .06em .09em 0 0; font: 700 3.5em/.8 var(--bs-head); color: var(--ink); }
body.theme-broadsheet .post-preview:first-child .read-more { grid-column: 1; align-self: end; }
body.theme-broadsheet .post-preview:nth-child(2), body.theme-broadsheet .post-preview:nth-child(3), body.theme-broadsheet .post-preview:nth-child(4) { border-top: 0; }
body.theme-broadsheet .pin-label { color: var(--ac); font: 700 .64rem var(--bs-label); letter-spacing: .16em; }
body.theme-broadsheet .preview-title { font: 700 1.42rem/1.14 var(--bs-head); }
body.theme-broadsheet .preview-title a:hover { color: var(--ac); }
body.theme-broadsheet .post-meta { margin-top: .5rem; font: 500 .64rem/1.5 var(--bs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
body.theme-broadsheet .preview-body { margin-top: .6rem; font-size: .95rem; line-height: 1.5; color: color-mix(in srgb, var(--ink) 86%, var(--paper)); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
body.theme-broadsheet .post-preview:first-child .preview-body { -webkit-line-clamp: 12; }
body.theme-broadsheet .read-more { margin-top: .6rem; font: 700 .66rem var(--bs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ac); }
body.theme-broadsheet .pager { padding-top: 1rem; border-top: 3px double var(--ink); font: 600 .7rem var(--bs-label); letter-spacing: .12em; text-transform: uppercase; }
/* A story */
body.theme-broadsheet .post { max-width: 43rem; margin: 2rem auto 0; }
body.theme-broadsheet .post-head { text-align: center; padding-bottom: 1.1rem; border-bottom: 1px solid var(--ink); }
body.theme-broadsheet .post-head h1 { font: 700 clamp(2.1rem, 6vw, 3.3rem)/1.05 var(--bs-head); letter-spacing: -.012em; }
body.theme-broadsheet .post-head .post-meta { margin-top: 1rem; }
body.theme-broadsheet .prose { font: 400 1.13rem/1.68 var(--bs-body); hyphens: auto; }
body.theme-broadsheet .post .prose > p:first-of-type::first-letter { float: left; margin: .05em .08em 0 0; font: 700 4.1em/.78 var(--bs-head); }
body.theme-broadsheet .prose h2 { margin-top: 2.2em; padding-top: .7em; border-top: 1px solid var(--rule); font: 700 1.5rem/1.15 var(--bs-head); }
body.theme-broadsheet .prose h3 { font: 700 .74rem/1.4 var(--bs-label); letter-spacing: .14em; text-transform: uppercase; }
body.theme-broadsheet .prose a { color: var(--ac); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
body.theme-broadsheet .prose blockquote { margin: 1.6em 0; padding: .9em 0; border: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); color: var(--ink); font: italic 1.45rem/1.3 var(--bs-body); text-align: center; hyphens: manual; }
body.theme-broadsheet .prose hr { width: 4rem; margin: 2.4em auto; border-top: 3px double var(--ink); }
body.theme-broadsheet .prose img { border-radius: 0; filter: saturate(.92) contrast(1.02); }
body.theme-broadsheet .prose figcaption, body.theme-broadsheet .prose img + em { font: italic .86rem var(--bs-body); color: var(--muted); }
body.theme-broadsheet .prose code { border-radius: 0; }
body.theme-broadsheet .prose pre, body.theme-broadsheet .prose pre.code { border-radius: 0; }
body.theme-broadsheet .post-tags a { font: 600 .66rem var(--bs-label); letter-spacing: .12em; text-transform: uppercase; border-radius: 0; }
body.theme-broadsheet .subscribe, body.theme-broadsheet .series, body.theme-broadsheet .post-nav a { max-width: 43rem; margin-left: auto; margin-right: auto; border-radius: 0; border: 0; border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); background: none; }
body.theme-broadsheet .subscribe label { font: 700 1.25rem var(--bs-head); }
body.theme-broadsheet .subscribe-row input, body.theme-broadsheet input:not([type="checkbox"]):not([type="radio"]), body.theme-broadsheet textarea { border-radius: 0; border: 1px solid var(--ink); background: var(--field); font-family: var(--bs-body); }
body.theme-broadsheet button, body.theme-broadsheet .button, body.theme-broadsheet .reactions button { border-radius: 0; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); font: 700 .7rem var(--bs-label); letter-spacing: .12em; text-transform: uppercase; }
body.theme-broadsheet .reactions button { background: none; color: var(--ink); }
body.theme-broadsheet .post-nav { max-width: 43rem; margin-left: auto; margin-right: auto; }
body.theme-broadsheet .post-nav a { border-top: 1px solid var(--ink); border-bottom: 0; font: 700 1.1rem/1.2 var(--bs-head); padding-left: 0; padding-right: 0; }
body.theme-broadsheet .post-nav small { font: 600 .62rem var(--bs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ac); }
body.theme-broadsheet .comments, body.theme-broadsheet .post-foot { max-width: 43rem; margin-left: auto; margin-right: auto; }
body.theme-broadsheet .post-foot, body.theme-broadsheet .colophon { font: 500 .68rem var(--bs-label); letter-spacing: .1em; text-transform: uppercase; }
body.theme-broadsheet .colophon { border-top: 3px double var(--ink); text-align: center; }
body.theme-broadsheet .colophon > p, body.theme-broadsheet .footer-links { justify-content: center; }
body.theme-broadsheet .reading-label { font: 600 .62rem var(--bs-label); letter-spacing: .12em; text-transform: uppercase; }
body.theme-broadsheet .compose { border-radius: 0; background: var(--ink); color: var(--paper); }
@media (max-width: 52rem) {
  body.theme-broadsheet .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.theme-broadsheet .post-preview:nth-child(4) { border-top: 1px solid var(--rule); }
}
@media (max-width: 40rem) {
  body.theme-broadsheet { font-size: 1.02rem; }
  body.theme-broadsheet .page { padding: 1rem 1.1rem 2.5rem; }
  body.theme-broadsheet .post-list { grid-template-columns: minmax(0, 1fr); }
  body.theme-broadsheet .post-preview, body.theme-broadsheet .post-preview:nth-child(n) { border-top: 1px solid var(--rule); }
  body.theme-broadsheet .post-preview:first-child { display: block; border-top: 0; padding-bottom: 1.2rem; }
  body.theme-broadsheet .post-preview:first-child .preview-body { margin-top: .8rem; padding-left: 0; border-left: 0; text-align: left; -webkit-line-clamp: 8; }
  body.theme-broadsheet .blog-handle { flex-direction: column; align-items: center; gap: .2rem; }
  body.theme-broadsheet .blog-head-foot { flex-direction: column; gap: .5rem; }
  body.theme-broadsheet .blog-nav { gap: .1rem 1.1rem; }
  body.theme-broadsheet .prose { font-size: 1.08rem; hyphens: manual; }
  body.theme-broadsheet .prose blockquote { font-size: 1.25rem; }
  body.theme-broadsheet .post-head { text-align: left; }
}
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-mode="light"])) body.theme-broadsheet { --ac: var(--t-accent, #e8806f); --paper: #16150f; --card: #16150f; --ink: #ece6d8; --muted: #a39c8a; --rule: #37342a; --soft: #1e1c15; --field: #1c1a14; --code-bg: #24221a; }
}
:where(:root[data-mode="dark"]) body.theme-broadsheet { --ac: var(--t-accent, #e8806f); --paper: #16150f; --card: #16150f; --ink: #ece6d8; --muted: #a39c8a; --rule: #37342a; --soft: #1e1c15; --field: #1c1a14; --code-bg: #24221a; }

/* ==========================================================================
   3. TYPEWRITER  a typed manuscript on a sheet of paper
   ========================================================================== */
body.theme-typewriter {
  --ac: var(--t-accent-ink, #9a2a20);
  --paper: #e9e2d2; --card: #fbf8f0; --ink: #2a2622; --muted: #857c6c; --rule: #d6cdb9; --soft: #f1ecdf;
  --navy: var(--ink); --navy-soft: rgb(42 38 34 / .07); --navy-mid: rgb(42 38 34 / .18); --harbor: var(--muted);
  --field: #fffdf7; --code-bg: #efe9da;
  --tw: "Courier New", Courier, "Nimbus Mono PS", "Liberation Mono", ui-monospace, monospace;
  --serif: var(--tw); --sans: var(--tw); --display: var(--tw);
  --measure: 38rem;
  background: var(--paper);
  font: 400 1rem/1.9 var(--tw);
}
body.theme-typewriter h1, body.theme-typewriter h2, body.theme-typewriter h3, body.theme-typewriter h4 { font-family: var(--tw); letter-spacing: 0; }
body.theme-typewriter a { color: var(--ink); text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
body.theme-typewriter a:hover { color: var(--ac); }
body.theme-typewriter .topbar { max-width: 46rem; margin: 0 auto; font-size: .8rem; }
body.theme-typewriter .topbar .brand { font: 400 .8rem var(--tw); letter-spacing: .08em; text-transform: uppercase; }
body.theme-typewriter .topnav a, body.theme-typewriter .topnav .nav-cta { padding: 0; background: none; border-radius: 0; color: var(--muted); font-weight: 400; }
/* The sheet */
body.theme-typewriter .page { position: relative; max-width: 46rem; margin: .6rem auto 3rem; padding: 3.4rem 3.6rem 3rem; background: var(--card); box-shadow: 0 1px 0 var(--rule), 0 .7rem 1.6rem rgb(60 50 30 / .13), 0 0 0 1px rgb(60 50 30 / .05); }
body.theme-typewriter .page::before { content: var(--t-name) " / " counter(page, upper-roman); counter-reset: page 1; position: absolute; top: 1.3rem; right: 1.8rem; color: var(--muted); font-size: .86rem; }
body.theme-typewriter .blog-head:not(.compact) { margin: 0 0 2.2rem; text-align: center; }
body.theme-typewriter .blog-head:not(.compact) .blog-identity { display: block; }
body.theme-typewriter .avatar { width: 4.4rem; height: 4.4rem; margin: 0 auto 1rem; border-radius: 0; filter: grayscale(1) sepia(.25) contrast(1.05); box-shadow: 0 0 0 1px var(--rule), 0 0 0 .35rem var(--card), 0 0 0 calc(.35rem + 1px) var(--rule); }
body.theme-typewriter .avatar-initial { display: none; }
body.theme-typewriter .blog-title { font: 700 clamp(1.25rem, 4vw, 1.6rem)/1.5 var(--tw); letter-spacing: .14em; text-transform: uppercase; }
body.theme-typewriter .blog-handle { color: var(--muted); font-size: .9rem; }
body.theme-typewriter .blog-bio { max-width: 28rem; margin: .7rem auto 0; font: 400 1rem/1.8 var(--tw); color: var(--muted); }
body.theme-typewriter .blog-bio::after { content: "*   *   *"; display: block; margin-top: 1.1rem; letter-spacing: .3em; }
body.theme-typewriter .profile-links { justify-content: center; }
body.theme-typewriter .profile-links a { border-radius: 0; background: none; border: 1px solid var(--rule); }
body.theme-typewriter .blog-head-foot { margin-top: 1.3rem; padding-top: 0; border-top: 0; justify-content: center; }
body.theme-typewriter .blog-nav { justify-content: center; gap: .1rem 0; }
body.theme-typewriter .blog-nav a, body.theme-typewriter .blog-nav a:first-child { padding: 0 .2rem; border-radius: 0; background: none; color: var(--ink); font-size: .92rem; font-weight: 400; }
body.theme-typewriter .blog-nav a + a::before { content: "/"; margin-right: .75rem; margin-left: .55rem; color: var(--muted); display: inline-block; text-decoration: none; }
body.theme-typewriter .blog-nav a:hover { background: none; color: var(--ac); }
body.theme-typewriter .blog-tools { display: none; }
body.theme-typewriter .blog-head.compact { border-bottom: 1px solid var(--rule); }
body.theme-typewriter .blog-head.compact .avatar { display: none; }
body.theme-typewriter .blog-name { font: 700 .95rem var(--tw); letter-spacing: .12em; text-transform: uppercase; }
/* A table of contents, with leaders out to the date. */
body.theme-typewriter #posts::before { content: "Recent pages"; display: block; margin-bottom: 1rem; font-weight: 700; text-decoration: underline; text-underline-offset: .25em; }
body.theme-typewriter .post-list { gap: 0; }
body.theme-typewriter .post-preview { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .8rem; align-items: baseline; padding: .5rem 0 .9rem; border: 0; border-radius: 0; background: none; }
body.theme-typewriter .preview-title { display: flex; align-items: baseline; gap: .7rem; min-width: 0; font: 700 1.02rem/1.6 var(--tw); }
body.theme-typewriter .preview-title::after { content: ""; flex: 1 1 2rem; min-width: 1.5rem; border-bottom: 2px dotted color-mix(in srgb, var(--muted) 70%, transparent); translate: 0 -.3em; }
body.theme-typewriter .preview-title a { text-decoration: none; }
body.theme-typewriter .preview-title a:hover { text-decoration: underline; }
body.theme-typewriter .post-meta { grid-column: 2; grid-row: 1; margin: 0; font: 400 .92rem/1.6 var(--tw); color: var(--muted); white-space: nowrap; }
body.theme-typewriter .post-meta .sep, body.theme-typewriter .post-preview .post-meta .sep ~ * { display: none; }
body.theme-typewriter .post-meta { font-size: 0; } body.theme-typewriter .post-meta time { font-size: .92rem; }
body.theme-typewriter .preview-body { grid-column: 1 / -1; max-width: 33rem; margin-top: .15rem; font: 400 .92rem/1.75 var(--tw); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.theme-typewriter .read-more, body.theme-typewriter .pin-label { display: none; }
body.theme-typewriter .post-preview.pinned .preview-title a::before { content: "★ "; }
body.theme-typewriter .pager { justify-content: center; }
/* A page of the manuscript */
body.theme-typewriter .post { margin: 1.6rem auto 0; }
body.theme-typewriter .post-head { text-align: center; }
body.theme-typewriter .post-head h1 { font: 700 clamp(1.2rem, 3.8vw, 1.5rem)/1.6 var(--tw); letter-spacing: .1em; text-transform: uppercase; }
body.theme-typewriter .post-head .post-meta { margin-top: .3rem; font-size: .92rem; color: var(--muted); }
body.theme-typewriter .prose { font: 400 1.02rem/1.95 var(--tw); }
body.theme-typewriter .post .prose { margin-top: 2.2rem; }
body.theme-typewriter .prose > p { text-indent: 2.4em; }
body.theme-typewriter .prose > p:first-of-type, body.theme-typewriter .prose h2 + p, body.theme-typewriter .prose h3 + p { text-indent: 0; }
body.theme-typewriter .prose h1, body.theme-typewriter .prose h2, body.theme-typewriter .prose h3, body.theme-typewriter .prose h4 { margin: 1.9em 0 .7em; font-size: 1.02rem; font-weight: 700; text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
body.theme-typewriter .prose blockquote { margin: 0 2.4em 1.15em; padding: 0; border: 0; color: color-mix(in srgb, var(--ink) 78%, var(--card)); font-style: normal; }
body.theme-typewriter .prose del { color: var(--ac); text-decoration-thickness: 2px; }
body.theme-typewriter .prose mark { background: none; color: inherit; text-decoration: underline wavy var(--ac) 1px; text-underline-offset: .3em; }
body.theme-typewriter .prose hr { border: 0; height: auto; margin: 2em 0; text-align: center; }
body.theme-typewriter .prose hr::before { content: "*   *   *"; letter-spacing: .3em; color: var(--muted); }
body.theme-typewriter .prose code, body.theme-typewriter .prose pre { border-radius: 0; font-family: var(--tw); }
body.theme-typewriter .prose img { border-radius: 0; filter: grayscale(.35) sepia(.18); box-shadow: 0 0 0 .5rem var(--card), 0 0 0 calc(.5rem + 1px) var(--rule); margin: 2em auto; }
body.theme-typewriter .post .prose::after { content: "# # #"; display: block; margin-top: 2.4rem; text-align: center; letter-spacing: .4em; color: var(--muted); }
body.theme-typewriter .post-tags a { border-radius: 0; background: none; border: 0; padding: 0; margin-right: .9rem; color: var(--muted); }
body.theme-typewriter .subscribe, body.theme-typewriter .series, body.theme-typewriter .post-nav a { border-radius: 0; background: none; border: 1px solid var(--rule); }
body.theme-typewriter .subscribe label { font-weight: 700; }
body.theme-typewriter input:not([type="checkbox"]):not([type="radio"]), body.theme-typewriter textarea, body.theme-typewriter .subscribe-row input { border-radius: 0; border: 0; border-bottom: 1px solid var(--ink); background: none; font: 1rem var(--tw); }
body.theme-typewriter button, body.theme-typewriter .button, body.theme-typewriter .reactions button { border-radius: 0; background: none; border: 1px solid var(--ink); color: var(--ink); font: 700 .86rem var(--tw); letter-spacing: .1em; text-transform: uppercase; box-shadow: 2px 2px 0 var(--ink); }
body.theme-typewriter button:hover, body.theme-typewriter .button:hover { filter: none; translate: 1px 1px; box-shadow: 1px 1px 0 var(--ink); text-decoration: none; }
body.theme-typewriter .reactions button { box-shadow: none; border-color: var(--rule); }
body.theme-typewriter .post-nav small { text-transform: uppercase; letter-spacing: .1em; }
body.theme-typewriter .post-nav a { text-decoration: none; }
body.theme-typewriter .colophon { text-align: center; }
body.theme-typewriter .colophon > p, body.theme-typewriter .footer-links { justify-content: center; }
body.theme-typewriter .compose { border-radius: 0; }
@media (max-width: 40rem) {
  body.theme-typewriter { font-size: .96rem; background: var(--card); }
  body.theme-typewriter .page { margin: 0; padding: 2.6rem 1.25rem 2.2rem; box-shadow: none; }
  body.theme-typewriter .page::before { top: .9rem; right: 1.25rem; font-size: .78rem; }
  body.theme-typewriter .prose { font-size: .98rem; line-height: 1.85; }
  body.theme-typewriter .prose > p { text-indent: 1.6em; }
  body.theme-typewriter .prose blockquote { margin: 0 1.2em 1.15em; }
  body.theme-typewriter .post-preview { grid-template-columns: minmax(0, 1fr); }
  body.theme-typewriter .post-meta { grid-column: 1; grid-row: 2; }
  body.theme-typewriter .preview-title::after { display: none; }
  body.theme-typewriter .preview-title { display: block; }
}
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-mode="light"])) body.theme-typewriter { --ac: var(--t-accent, #f08a7c); --paper: #12110e; --card: #1b1915; --ink: #e6dfd0; --muted: #9a917f; --rule: #37332a; --soft: #211f1a; --field: #1f1d18; --code-bg: #26231d; --navy-soft: rgb(230 223 208 / .07); --navy-mid: rgb(230 223 208 / .2); }
  :where(:root:not([data-mode="light"])) body.theme-typewriter .page { box-shadow: 0 0 0 1px var(--rule), 0 .7rem 1.6rem rgb(0 0 0 / .4); }
}
:where(:root[data-mode="dark"]) body.theme-typewriter { --ac: var(--t-accent, #f08a7c); --paper: #12110e; --card: #1b1915; --ink: #e6dfd0; --muted: #9a917f; --rule: #37332a; --soft: #211f1a; --field: #1f1d18; --code-bg: #26231d; --navy-soft: rgb(230 223 208 / .07); --navy-mid: rgb(230 223 208 / .2); }
:where(:root[data-mode="dark"]) body.theme-typewriter .page { box-shadow: 0 0 0 1px var(--rule), 0 .7rem 1.6rem rgb(0 0 0 / .4); }

/* ==========================================================================
   4. MIDNIGHT  deep blue, a soft glow, cards of glass
   ========================================================================== */
body.theme-midnight {
  --ac: var(--t-accent, #b4b8ff);
  --ac2: color-mix(in oklab, var(--ac) 55%, #ff9cf0);
  --paper: #0b0c1c; --card: rgb(255 255 255 / .045); --ink: #d9dcf4; --muted: #8e93c2; --rule: rgb(180 184 255 / .16); --soft: rgb(255 255 255 / .04);
  --navy: var(--ac); --navy-soft: color-mix(in srgb, var(--ac) 13%, transparent); --navy-mid: color-mix(in srgb, var(--ac) 28%, transparent);
  --harbor: var(--ac); --field: rgb(255 255 255 / .06); --code-bg: rgb(255 255 255 / .08); --block-bg: rgb(0 0 0 / .35);
  --mn: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  --serif: var(--mn); --sans: var(--mn); --display: var(--mn);
  --measure: 41rem;
  color-scheme: dark;
  background:
    radial-gradient(70rem 36rem at 88% -8%, color-mix(in srgb, var(--ac) 26%, transparent) 0%, transparent 62%),
    radial-gradient(52rem 30rem at -8% 108%, color-mix(in srgb, var(--ac2) 20%, transparent) 0%, transparent 62%),
    #0b0c1c;
  background-attachment: fixed;
  font: 400 1.06rem/1.7 var(--mn);
}
@keyframes mn-rise { from { opacity: 0; transform: translateY(.7rem); } to { opacity: 1; transform: none; } }
@keyframes mn-sheen { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
body.theme-midnight h1, body.theme-midnight h2, body.theme-midnight h3, body.theme-midnight h4 { font-family: var(--mn); letter-spacing: -.02em; color: #fff; }
body.theme-midnight a { color: var(--ac); }
body.theme-midnight ::selection { background: color-mix(in srgb, var(--ac) 45%, transparent); color: #fff; }
body.theme-midnight .topbar { max-width: 50rem; margin: 0 auto; }
body.theme-midnight .topbar .brand { font: 600 .95rem var(--mn); color: #fff; letter-spacing: -.01em; }
body.theme-midnight .topnav a { color: var(--muted); }
body.theme-midnight .topnav .nav-cta { background: var(--navy-soft); color: var(--ac); border: 1px solid var(--rule); }
body.theme-midnight .page { max-width: 50rem; }
body.theme-midnight .blog-head:not(.compact) { margin: 1.2rem 0 2rem; animation: mn-rise .5s both; }
body.theme-midnight .avatar { border-radius: 26%; box-shadow: 0 0 0 1px var(--rule), 0 .8rem 2.2rem color-mix(in srgb, var(--ac) 28%, transparent); background: var(--navy-soft); }
body.theme-midnight .avatar-initial { font: 700 2.4rem/1 var(--mn); color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 55%, #1a1b3a), color-mix(in srgb, var(--ac2) 45%, #1a1b3a)); }
body.theme-midnight .blog-title { font: 750 clamp(2.1rem, 6.4vw, 3.3rem)/1.04 var(--mn); letter-spacing: -.035em; background: linear-gradient(92deg, #fff 0%, var(--ac) 45%, var(--ac2) 75%, #fff 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: mn-sheen 9s linear infinite; padding-bottom: .08em; }
body.theme-midnight .blog-title .badge, body.theme-midnight .blog-title svg { -webkit-text-fill-color: initial; }
body.theme-midnight .blog-handle { color: var(--muted); }
body.theme-midnight .blog-bio { color: #c5c9ec; font-size: 1.12rem; }
body.theme-midnight .profile-links a { border: 1px solid var(--rule); background: var(--card); color: var(--ink); backdrop-filter: blur(8px); }
body.theme-midnight .blog-head-foot { border-top-color: var(--rule); }
body.theme-midnight .blog-nav a { color: var(--muted); }
body.theme-midnight .blog-nav a:first-child, body.theme-midnight .blog-nav a:hover { background: var(--navy-soft); color: #fff; box-shadow: inset 0 0 0 1px var(--rule); }
body.theme-midnight .blog-search input { border: 1px solid var(--rule); background: var(--field); color: #fff; }
body.theme-midnight .blog-search input:focus { outline: 0; border-color: var(--ac); box-shadow: 0 0 0 3px var(--navy-soft); }
body.theme-midnight .blog-head.compact { border-bottom-color: var(--rule); }
body.theme-midnight .blog-name { font: 650 1rem var(--mn); color: #fff; letter-spacing: -.01em; }
/* The newest post is featured; the rest sit in a grid of glass cards. */
body.theme-midnight .post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
body.theme-midnight .post-preview { position: relative; display: flex; flex-direction: column; padding: 1.35rem 1.4rem 1.25rem; border: 1px solid var(--rule); border-radius: 20px; background: var(--card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; animation: mn-rise .5s both; }
body.theme-midnight .post-preview:nth-child(2) { animation-delay: .06s; } body.theme-midnight .post-preview:nth-child(3) { animation-delay: .12s; }
body.theme-midnight .post-preview:nth-child(4) { animation-delay: .18s; } body.theme-midnight .post-preview:nth-child(n+5) { animation-delay: .24s; }
body.theme-midnight .post-preview:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ac) 55%, transparent); box-shadow: 0 1.2rem 2.6rem rgb(0 0 0 / .35), 0 0 0 1px color-mix(in srgb, var(--ac) 20%, transparent), 0 0 2.6rem color-mix(in srgb, var(--ac) 16%, transparent); }
body.theme-midnight .post-preview:first-child { grid-column: 1 / -1; padding: 1.9rem 1.9rem 1.7rem; border-radius: 24px; background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 17%, transparent), color-mix(in srgb, var(--ac2) 8%, transparent) 60%, rgb(255 255 255 / .03)); }
body.theme-midnight .post-preview:first-child::before { content: "Latest"; align-self: flex-start; margin-bottom: .8rem; padding: .16rem .7rem; border: 1px solid color-mix(in srgb, var(--ac) 45%, transparent); border-radius: 999px; color: var(--ac); font-size: .74rem; font-weight: 600; letter-spacing: .02em; }
body.theme-midnight .post-preview:first-child .preview-title { font-size: clamp(1.7rem, 4.6vw, 2.3rem); line-height: 1.08; letter-spacing: -.03em; }
body.theme-midnight .pin-label { color: var(--ac); }
body.theme-midnight .preview-title { font: 680 1.2rem/1.25 var(--mn); letter-spacing: -.015em; }
body.theme-midnight .preview-title a { color: #fff; }
body.theme-midnight .preview-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* the whole card opens the post */
body.theme-midnight .preview-title a:hover { color: #fff; text-decoration: none; }
body.theme-midnight .post-meta { order: 5; margin-top: auto; padding-top: .9rem; font-size: .8rem; color: var(--muted); }
body.theme-midnight .preview-body { margin-top: .6rem; font-size: .95rem; line-height: 1.55; color: #b9bde0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.theme-midnight .post-preview:first-child .preview-body { font-size: 1.04rem; -webkit-line-clamp: 4; max-width: 38rem; }
body.theme-midnight .read-more { display: none; }
body.theme-midnight .pager a { padding: .4rem .95rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); }
/* A post */
body.theme-midnight .post { margin: 2.4rem auto 0; }
body.theme-midnight .post-head { animation: mn-rise .5s both; }
body.theme-midnight .post-head h1 { font: 750 clamp(2.1rem, 6.6vw, 3.2rem)/1.05 var(--mn); letter-spacing: -.035em; background: linear-gradient(92deg, #fff 18%, var(--ac) 62%, var(--ac2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .1em; }
body.theme-midnight .post-head .post-meta { color: var(--muted); }
body.theme-midnight .post .prose { animation: mn-rise .55s .08s both; }
body.theme-midnight .prose { font: 400 1.12rem/1.78 var(--mn); color: var(--ink); }
body.theme-midnight .prose h2 { font-size: 1.55rem; }
body.theme-midnight .prose h3 { font-size: 1.22rem; }
body.theme-midnight .prose a { color: var(--ac); text-decoration: none; background: linear-gradient(var(--navy-mid), var(--navy-mid)) 0 100% / 100% 1px no-repeat; transition: background-size .18s; }
body.theme-midnight .prose a:hover { background-size: 100% 100%; color: #fff; }
body.theme-midnight .prose strong { color: #fff; }
body.theme-midnight .prose blockquote { padding: 1.05rem 1.3rem; border: 1px solid var(--rule); border-left: 3px solid var(--ac); border-radius: 16px; background: var(--card); color: #eef0ff; font-style: normal; font-size: 1.14rem; }
body.theme-midnight .prose code { border: 1px solid var(--rule); border-radius: 6px; color: #ffd9a8; }
body.theme-midnight .prose pre, body.theme-midnight .prose pre.code { border: 1px solid var(--rule); border-radius: 16px; }
body.theme-midnight .prose pre code { border: 0; }
body.theme-midnight .prose hr { border-top: 0; height: 1px; background: linear-gradient(to right, transparent, var(--navy-mid), transparent); }
body.theme-midnight .prose img, body.theme-midnight .prose video { border-radius: 18px; box-shadow: 0 1.4rem 3rem rgb(0 0 0 / .4), 0 0 0 1px var(--rule); }
body.theme-midnight .prose mark { background: color-mix(in srgb, var(--ac) 30%, transparent); color: #fff; border-radius: 4px; padding: 0 .15em; }
body.theme-midnight .post-tags a { border: 1px solid var(--rule); background: var(--card); color: var(--ac); }
body.theme-midnight .subscribe, body.theme-midnight .series, body.theme-midnight .post-nav a, body.theme-midnight .notice { border: 1px solid var(--rule); border-radius: 20px; background: var(--card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body.theme-midnight .subscribe label { color: #fff; font-size: 1.1rem; }
body.theme-midnight input:not([type="checkbox"]):not([type="radio"]), body.theme-midnight textarea, body.theme-midnight .subscribe-row input { border: 1px solid var(--rule); background: var(--field); color: #fff; }
body.theme-midnight input:focus, body.theme-midnight textarea:focus { outline: 0; border-color: var(--ac); box-shadow: 0 0 0 3px var(--navy-soft); }
body.theme-midnight button, body.theme-midnight .button { border: 0; background: linear-gradient(135deg, var(--ac), var(--ac2)); color: #0b0c1c; font-weight: 650; box-shadow: 0 .6rem 1.6rem color-mix(in srgb, var(--ac) 28%, transparent); }
body.theme-midnight .reactions button { border: 1px solid var(--rule); background: var(--card); color: var(--ink); box-shadow: none; font-weight: 400; }
body.theme-midnight .post-nav a { color: #fff; transition: transform .2s, border-color .2s; }
body.theme-midnight .post-nav a:hover { transform: translateY(-2px); border-color: var(--ac); }
body.theme-midnight .post-nav small { color: var(--ac); }
body.theme-midnight .comments, body.theme-midnight .post-foot, body.theme-midnight .colophon { border-top-color: var(--rule); }
body.theme-midnight .compose { background: linear-gradient(135deg, var(--ac), var(--ac2)); color: #0b0c1c; }
@media (max-width: 40rem) {
  body.theme-midnight { font-size: 1.02rem; background-attachment: scroll; }
  body.theme-midnight .post-list { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  body.theme-midnight .post-preview, body.theme-midnight .post-preview:first-child { padding: 1.15rem 1.15rem 1.05rem; border-radius: 18px; }
  body.theme-midnight .post-preview:hover { transform: none; }
  body.theme-midnight .prose { font-size: 1.07rem; }
  body.theme-midnight .blog-identity { gap: 1rem; }
  body.theme-midnight .avatar { width: 4.2rem; height: 4.2rem; }
}

/* ==========================================================================
   5. NOTEBOOK  ruled paper the writing sits on, a margin, a highlighter
   ========================================================================== */
body.theme-notebook {
  --ac: var(--t-accent-ink, #2a5ea8);
  --hl: color-mix(in srgb, var(--t-accent, #ffd84d) 62%, #fff6c9);
  --line: 2rem;
  --paper: #ece7da; --card: #fdfbf4; --ink: #24303c; --muted: #76818d; --rule: #c9d6e3; --soft: #f4f1e6;
  --navy: var(--ac); --navy-soft: color-mix(in srgb, var(--ac) 9%, transparent); --navy-mid: color-mix(in srgb, var(--ac) 24%, transparent); --harbor: var(--rule);
  --field: #fffef9; --code-bg: #f0ece0; --nb-margin: #e3a09d;
  --nb: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --serif: var(--nb); --sans: var(--nb); --display: var(--nb);
  --measure: 38rem;
  background: var(--paper);
  font: 400 1.06rem/var(--line) var(--nb);
}
body.theme-notebook h1, body.theme-notebook h2, body.theme-notebook h3, body.theme-notebook h4 { font-family: var(--nb); letter-spacing: 0; }
body.theme-notebook .topbar { max-width: 48rem; margin: 0 auto; }
body.theme-notebook .topbar .brand { font: italic 700 1rem var(--nb); }
/* The page: lines every --line, a red margin, three punched holes. Everything inside keeps to the lines. */
body.theme-notebook .page { position: relative; max-width: 48rem; margin: .4rem auto 3rem; padding: var(--line) 2.4rem calc(var(--line) * 2) 5.2rem; border-radius: 4px 14px 14px 4px; box-shadow: 0 1px 0 #d9d2c0, 0 .9rem 2rem rgb(60 50 30 / .14);
  background:
    radial-gradient(circle at 1.45rem 14%, var(--paper) 0 .5rem, transparent .54rem), radial-gradient(circle at 1.45rem 50%, var(--paper) 0 .5rem, transparent .54rem), radial-gradient(circle at 1.45rem 86%, var(--paper) 0 .5rem, transparent .54rem),
    linear-gradient(to right, transparent 3.9rem, var(--nb-margin) 3.9rem, var(--nb-margin) calc(3.9rem + 2px), transparent calc(3.9rem + 2px)),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--line) - 1px), var(--rule) calc(var(--line) - 1px), var(--rule) var(--line)),
    var(--card);
  background-attachment: local; }
body.theme-notebook .page > main > *, body.theme-notebook .page p, body.theme-notebook .page li { line-height: var(--line); }
body.theme-notebook .blog-head:not(.compact) { margin: 0 0 var(--line); }
body.theme-notebook .blog-identity { gap: 1.1rem; align-items: flex-start; }
body.theme-notebook .avatar { width: calc(var(--line) * 2.5); height: calc(var(--line) * 2.5); margin-top: calc(var(--line) * .25); border-radius: 3px; rotate: -3deg; box-shadow: 0 0 0 .3rem #fff, 0 .3rem .8rem rgb(40 30 10 / .25); background: #fff; }
body.theme-notebook .avatar-initial { font: italic 700 2rem/1 var(--nb); color: var(--ac); background: var(--soft); }
body.theme-notebook .blog-title { font: 700 clamp(1.7rem, 5vw, 2.2rem)/calc(var(--line) * 1.5) var(--nb); margin: 0; }
body.theme-notebook .blog-handle { margin: 0; font: italic .92rem/var(--line) var(--nb); color: var(--muted); }
body.theme-notebook .blog-bio { margin: 0; font: italic 1.06rem/var(--line) var(--nb); color: color-mix(in srgb, var(--ink) 82%, var(--card)); }
body.theme-notebook .profile-links { margin: 0; min-height: var(--line); align-items: center; }
body.theme-notebook .blog-head-foot { margin: 0; padding: 0; border: 0; min-height: var(--line); }
body.theme-notebook .blog-nav { gap: 0 1.1rem; }
body.theme-notebook .blog-nav a, body.theme-notebook .blog-nav a:first-child { padding: 0; border-radius: 0; background: none; color: var(--ac); font: 400 1rem/var(--line) var(--nb); }
body.theme-notebook .blog-nav a:first-child { background: linear-gradient(transparent 46%, var(--hl) 46%, var(--hl) 90%, transparent 90%); color: var(--ink); }
body.theme-notebook .blog-nav a:hover { text-decoration: underline; background: none; }
body.theme-notebook .blog-search input { height: calc(var(--line) - 6px); padding: 0 .6rem; border: 0; border-bottom: 1px dashed var(--muted); border-radius: 0; background: none; font: italic .92rem var(--nb); }
body.theme-notebook .word-count { font: italic .9rem/var(--line) var(--nb); }
body.theme-notebook .blog-head.compact { padding: 0; border: 0; min-height: var(--line); margin-bottom: 0; }
body.theme-notebook .blog-head.compact .avatar { width: 1.5rem; height: 1.5rem; margin: 0; rotate: none; box-shadow: none; }
body.theme-notebook .blog-name { font: italic 700 1.02rem/var(--line) var(--nb); }
/* The index: date in the margin, title on the line. */
body.theme-notebook #posts::before { content: "Lately"; display: block; font: 700 1.2rem/var(--line) var(--nb); }
body.theme-notebook .post-list { gap: 0; }
body.theme-notebook .post-preview { position: relative; padding: 0 0 var(--line); border: 0; border-radius: 0; background: none; }
body.theme-notebook .preview-title { font: 700 1.16rem/var(--line) var(--nb); margin: 0; }
body.theme-notebook .preview-title a { color: var(--ink); background: linear-gradient(var(--hl), var(--hl)) 0 86% / 0 44% no-repeat; transition: background-size .25s ease; }
body.theme-notebook .preview-title a:hover { background-size: 100% 44%; text-decoration: none; color: var(--ink); }
body.theme-notebook .post-meta { position: absolute; top: 0; right: calc(100% + 1.5rem); width: 3.2rem; margin: 0; overflow: hidden; white-space: nowrap; text-align: right; font: italic .74rem/var(--line) var(--nb); color: var(--muted); font-size: 0; }
body.theme-notebook .post-meta time { font-size: .74rem; }
body.theme-notebook .post-preview .post-meta time { display: inline-block; max-width: 3.2rem; overflow: hidden; text-overflow: clip; vertical-align: top; }
body.theme-notebook .preview-body { margin: 0; font: 400 1rem/var(--line) var(--nb); color: color-mix(in srgb, var(--ink) 78%, var(--card)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.theme-notebook .preview-body p { margin: 0; }
body.theme-notebook .read-more { display: none; }
body.theme-notebook .pin-label { position: absolute; left: -1.3rem; top: 0; margin: 0; font-size: 0; }
body.theme-notebook .pin-label::before { content: "★"; font-size: .9rem; line-height: var(--line); color: var(--nb-margin); }
body.theme-notebook .pager { margin: 0; min-height: var(--line); font: italic .95rem/var(--line) var(--nb); }
/* An entry */
body.theme-notebook .post { margin: var(--line) 0 0; }
body.theme-notebook .post-head h1 { font: 700 clamp(1.6rem, 5vw, 2rem)/calc(var(--line) * 1.5) var(--nb); margin: 0; }
body.theme-notebook .post-head .post-meta { position: static; width: auto; margin: 0; text-align: left; font: italic .95rem/var(--line) var(--nb); }
body.theme-notebook .post-head .post-meta time, body.theme-notebook .post-head .post-meta { font-size: .95rem; }
body.theme-notebook .post .prose { margin-top: var(--line); }
body.theme-notebook .prose { font: 400 1.08rem/var(--line) var(--nb); }
body.theme-notebook .prose p, body.theme-notebook .prose ul, body.theme-notebook .prose ol, body.theme-notebook .prose blockquote, body.theme-notebook .prose pre, body.theme-notebook .prose table { margin: 0 0 var(--line); }
body.theme-notebook .prose h1, body.theme-notebook .prose h2, body.theme-notebook .prose h3, body.theme-notebook .prose h4 { margin: 0; font-size: 1.22rem; line-height: var(--line); }
body.theme-notebook .prose li + li { margin-top: 0; }
body.theme-notebook .prose a { color: var(--ac); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
body.theme-notebook .prose mark, body.theme-notebook .prose strong { background: linear-gradient(transparent 44%, var(--hl) 44%, var(--hl) 90%, transparent 90%); color: inherit; font-weight: 600; }
body.theme-notebook .prose blockquote { padding: 0 0 0 1rem; border-left: 3px solid var(--rule); font-style: italic; color: color-mix(in srgb, var(--ink) 74%, var(--card)); }
body.theme-notebook .prose hr { margin: calc(var(--line) / 2 - 1px) 0 calc(var(--line) / 2); border-top: 2px dashed var(--nb-margin); }
body.theme-notebook .prose code { background: var(--code-bg); border-radius: 3px; }
body.theme-notebook .prose pre { line-height: var(--line); padding: 0 1rem; background: color-mix(in srgb, var(--code-bg) 80%, transparent); border-radius: 4px; }
body.theme-notebook .prose pre.code { padding: var(--line) 1rem; line-height: 1.6; }
body.theme-notebook .prose img, body.theme-notebook .prose video { margin: var(--line) auto; padding: .45rem .45rem 0; background: #fff; border-radius: 2px; rotate: -.6deg; box-shadow: 0 .4rem 1.1rem rgb(40 30 10 / .22); }
body.theme-notebook .post-tags { margin: 0; min-height: var(--line); }
body.theme-notebook .post-tags a { padding: 0; margin-right: .8rem; border: 0; border-radius: 0; background: none; font: italic .95rem/var(--line) var(--nb); }
body.theme-notebook .reactions { margin: 0; height: calc(var(--line) * 2); align-items: center; }
body.theme-notebook .subscribe, body.theme-notebook .series, body.theme-notebook .post-nav a, body.theme-notebook .notice { margin-top: var(--line); padding: calc(var(--line) / 2) 1.1rem; border: 1px solid var(--rule); border-radius: 3px; background: #fffef8; box-shadow: 0 .25rem .7rem rgb(40 30 10 / .1); rotate: .25deg; }
body.theme-notebook .subscribe label { font: 700 1.05rem/var(--line) var(--nb); margin: 0; }
body.theme-notebook input:not([type="checkbox"]):not([type="radio"]), body.theme-notebook textarea, body.theme-notebook .subscribe-row input { border: 0; border-bottom: 1px solid var(--muted); border-radius: 0; background: none; font: 1rem var(--nb); }
body.theme-notebook button, body.theme-notebook .button { border-radius: 4px; background: var(--ac); color: #fff; font: 600 .95rem var(--nb); }
body.theme-notebook .reactions button { background: none; border: 1px solid var(--rule); color: var(--ink); border-radius: 999px; }
body.theme-notebook .post-nav { margin-top: var(--line); gap: 1rem; }
body.theme-notebook .post-nav a { margin: 0; rotate: -.3deg; color: var(--ink); }
body.theme-notebook .comments { margin-top: var(--line); padding-top: var(--line); border-top: 2px dashed var(--nb-margin); }
body.theme-notebook .post-foot { margin-top: var(--line); padding: 0; border: 0; min-height: var(--line); align-items: center; font: italic .92rem/var(--line) var(--nb); }
body.theme-notebook .colophon { margin-top: var(--line); padding: 0; border: 0; font: italic .88rem/var(--line) var(--nb); }
body.theme-notebook .colophon > p, body.theme-notebook .footer-links { gap: 0 1.1rem; }
body.theme-notebook .reading-label { font: italic .86rem/var(--line) var(--nb); margin-top: 0; }
@media (max-width: 40rem) {
  body.theme-notebook { --line: 1.9rem; font-size: 1.02rem; background: var(--card); }
  body.theme-notebook .page { margin: 0; padding: var(--line) 1.1rem calc(var(--line) * 2) 2.6rem; border-radius: 0; box-shadow: none;
    background: linear-gradient(to right, transparent 1.9rem, var(--nb-margin) 1.9rem, var(--nb-margin) calc(1.9rem + 2px), transparent calc(1.9rem + 2px)),
      repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--line) - 1px), var(--rule) calc(var(--line) - 1px), var(--rule) var(--line)), var(--card);
    background-attachment: local; }
  body.theme-notebook .post-meta { position: static; width: auto; text-align: left; }
  body.theme-notebook .post-preview .post-meta time { max-width: none; font-size: .86rem; }
  body.theme-notebook .avatar { width: calc(var(--line) * 2); height: calc(var(--line) * 2); }
  body.theme-notebook .pin-label { left: -1.05rem; }
  body.theme-notebook .prose { font-size: 1.04rem; }
  body.theme-notebook .blog-head-foot { display: block; }
  body.theme-notebook .blog-tools { min-height: var(--line); }
}
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-mode="light"])) body.theme-notebook { --ac: var(--t-accent, #8ab6f5); --hl: color-mix(in srgb, var(--t-accent, #c9a227) 46%, #2a2a20); --paper: #121417; --card: #1a1d22; --ink: #dfe5ec; --muted: #8b96a3; --rule: #2c343e; --soft: #20242a; --field: #1e2228; --code-bg: #242931; --nb-margin: #7d4442; }
  :where(:root:not([data-mode="light"])) body.theme-notebook .subscribe, :where(:root:not([data-mode="light"])) body.theme-notebook .series, :where(:root:not([data-mode="light"])) body.theme-notebook .post-nav a, :where(:root:not([data-mode="light"])) body.theme-notebook .notice { background: #20242a; }
  :where(:root:not([data-mode="light"])) body.theme-notebook .page { box-shadow: 0 0 0 1px var(--rule), 0 .9rem 2rem rgb(0 0 0 / .4); }
}
:where(:root[data-mode="dark"]) body.theme-notebook { --ac: var(--t-accent, #8ab6f5); --hl: color-mix(in srgb, var(--t-accent, #c9a227) 46%, #2a2a20); --paper: #121417; --card: #1a1d22; --ink: #dfe5ec; --muted: #8b96a3; --rule: #2c343e; --soft: #20242a; --field: #1e2228; --code-bg: #242931; --nb-margin: #7d4442; }
:where(:root[data-mode="dark"]) body.theme-notebook .subscribe, :where(:root[data-mode="dark"]) body.theme-notebook .series, :where(:root[data-mode="dark"]) body.theme-notebook .post-nav a, :where(:root[data-mode="dark"]) body.theme-notebook .notice { background: #20242a; }
:where(:root[data-mode="dark"]) body.theme-notebook .page { box-shadow: 0 0 0 1px var(--rule), 0 .9rem 2rem rgb(0 0 0 / .4); }

/* ==========================================================================
   6. POSTER  heavy type, one loud colour, hard rules, a numbered index
   ========================================================================== */
body.theme-poster {
  --ac: var(--t-accent, #ff4f1f);
  --paper: #ffffff; --card: #ffffff; --ink: #0a0a0a; --muted: #4c4c4c; --rule: #0a0a0a; --soft: #f2f2f2;
  --navy: var(--ink); --navy-soft: color-mix(in srgb, var(--ac) 16%, transparent); --navy-mid: color-mix(in srgb, var(--ac) 40%, transparent); --harbor: var(--ac);
  --field: #fff; --code-bg: #f0f0f0; --bw: 3px;
  --ps: "Helvetica Neue", Helvetica, "Arial Nova", Arial, "Liberation Sans", system-ui, sans-serif;
  --serif: var(--ps); --sans: var(--ps); --display: var(--ps);
  --measure: 40rem;
  font: 400 1.05rem/1.6 var(--ps);
}
body.theme-poster h1, body.theme-poster h2, body.theme-poster h3, body.theme-poster h4 { font-family: var(--ps); font-weight: 800; letter-spacing: -.035em; }
body.theme-poster a { color: var(--ink); text-decoration: underline; text-decoration-thickness: var(--bw); text-decoration-color: var(--ac); text-underline-offset: .16em; }
body.theme-poster a:hover { background: var(--ac); color: #0a0a0a; text-decoration-color: transparent; }
body.theme-poster ::selection { background: var(--ac); color: #0a0a0a; }
body.theme-poster .topbar { max-width: 56rem; margin: 0 auto; padding: .8rem 1.5rem; border-bottom: var(--bw) solid var(--ink); font: 700 .7rem/1 var(--ps); letter-spacing: .12em; text-transform: uppercase; }
body.theme-poster .topbar .brand { font: 800 .7rem/1 var(--ps); letter-spacing: .14em; }
body.theme-poster .topnav a, body.theme-poster .topnav .nav-cta { padding: 0; border-radius: 0; background: none; color: var(--ink); text-decoration: none; }
body.theme-poster .page { max-width: 56rem; padding: 0 1.5rem 3rem; }
/* The block */
body.theme-poster .blog-head:not(.compact) { margin: 0 -1.5rem 0; }
body.theme-poster .blog-head:not(.compact) .blog-identity { align-items: flex-end; gap: 1.2rem; padding: 2.2rem 1.5rem 1.7rem; background: var(--ac); color: #0a0a0a; border-bottom: var(--bw) solid var(--ink); }
body.theme-poster .avatar { width: 5rem; height: 5rem; border-radius: 0; border: var(--bw) solid #0a0a0a; filter: grayscale(1) contrast(1.2); background: #fff; }
body.theme-poster .avatar-initial { font: 800 2.6rem/1 var(--ps); color: #0a0a0a; filter: none; }
body.theme-poster .blog-title { font: 800 clamp(2.5rem, 9.4vw, 5rem)/.92 var(--ps); letter-spacing: -.05em; text-transform: lowercase; color: #0a0a0a; }
body.theme-poster .blog-handle { margin-top: .6rem; font: 700 .7rem/1.3 var(--ps); letter-spacing: .14em; text-transform: uppercase; color: #0a0a0a; }
body.theme-poster .blog-bio { max-width: 34rem; font: 500 1.08rem/1.35 var(--ps); color: #0a0a0a; }
body.theme-poster .profile-links a { border-radius: 0; border: 2px solid #0a0a0a; background: none; color: #0a0a0a; text-decoration: none; }
body.theme-poster .blog-head-foot { margin: 0; padding: .7rem 1.5rem; border-top: 0; border-bottom: var(--bw) solid var(--ink); }
body.theme-poster .blog-nav { gap: .1rem 0; }
body.theme-poster .blog-nav a, body.theme-poster .blog-nav a:first-child { padding: 0; border-radius: 0; background: none; color: var(--ink); font: 700 .7rem/1.8 var(--ps); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
body.theme-poster .blog-nav a + a::before { content: "/"; margin: 0 .7rem; font-weight: 400; display: inline-block; }
body.theme-poster .blog-nav a:hover { background: var(--ac); }
body.theme-poster .blog-search input { border-radius: 0; border: 0; border-bottom: 2px solid var(--ink); background: none; font: 600 .82rem var(--ps); }
body.theme-poster .word-count { font: 700 .68rem var(--ps); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
body.theme-poster .blog-head.compact { margin: 0 -1.5rem; padding: .8rem 1.5rem; border-bottom: var(--bw) solid var(--ink); }
body.theme-poster .blog-head.compact .avatar { width: 2rem; height: 2rem; border-width: 2px; }
body.theme-poster .blog-home { text-decoration: none; }
body.theme-poster .blog-name { font: 800 1.15rem/1 var(--ps); letter-spacing: -.03em; text-transform: lowercase; }
/* The index, numbered */
body.theme-poster .post-list { gap: 0; counter-reset: issue; }
body.theme-poster .post-preview { counter-increment: issue; display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; gap: 0 1.2rem; align-items: baseline; padding: 1.25rem 0 1.3rem; border: 0; border-bottom: var(--bw) solid var(--ink); border-radius: 0; background: none; transition: padding .18s ease, background .18s ease; }
body.theme-poster .post-preview::before { content: counter(issue, decimal-leading-zero); grid-column: 1; grid-row: 1 / span 3; font: 800 1.05rem/1.7 var(--ps); color: color-mix(in srgb, var(--ac) 82%, #000); letter-spacing: .02em; }
body.theme-poster .post-preview:hover { padding-left: .7rem; background: linear-gradient(to right, var(--navy-soft), transparent 55%); }
body.theme-poster .pin-label { grid-column: 2; margin: 0 0 .2rem; color: var(--ink); font: 800 .64rem var(--ps); letter-spacing: .16em; }
body.theme-poster .preview-title { grid-column: 2; font: 800 clamp(1.5rem, 4.4vw, 2.1rem)/1 var(--ps); letter-spacing: -.045em; text-transform: lowercase; }
body.theme-poster .preview-title a { text-decoration: none; }
body.theme-poster .preview-title a:hover { background: none; text-decoration: underline; text-decoration-thickness: var(--bw); text-decoration-color: var(--ac); }
body.theme-poster .post-meta { grid-column: 3; grid-row: 1; margin: 0; font: 700 .68rem/2.4 var(--ps); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); white-space: nowrap; font-size: 0; }
body.theme-poster .post-meta time { font-size: .68rem; }
body.theme-poster .preview-body { grid-column: 2; margin-top: .45rem; max-width: 36rem; font: 400 .98rem/1.45 var(--ps); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.theme-poster .read-more { display: none; }
body.theme-poster .pager { padding-top: 1rem; font: 700 .72rem var(--ps); letter-spacing: .12em; text-transform: uppercase; }
/* A post */
body.theme-poster .post { max-width: none; margin: 0; }
body.theme-poster .post-head { margin: 0 -1.5rem; padding: 2rem 1.5rem 1.6rem; background: var(--ac); color: #0a0a0a; border-bottom: var(--bw) solid var(--ink); }
body.theme-poster .post-head h1 { max-width: 46rem; font: 800 clamp(2.3rem, 8.4vw, 4.4rem)/.94 var(--ps); letter-spacing: -.05em; text-transform: lowercase; color: #0a0a0a; }
body.theme-poster .post-head .post-meta { margin-top: 1.1rem; font: 700 .7rem/1.4 var(--ps); letter-spacing: .12em; text-transform: uppercase; color: #0a0a0a; }
body.theme-poster .post-head .post-meta time { font-size: .7rem; }
body.theme-poster .post-head .post-meta a { color: #0a0a0a; }
body.theme-poster .post .prose { max-width: var(--measure); margin: 2rem 0 0; padding-left: 5.2rem; border-left: 0; }
body.theme-poster .prose { font: 400 1.1rem/1.6 var(--ps); }
body.theme-poster .prose h2 { margin-top: 1.9em; font-size: 1.8rem; line-height: 1; text-transform: lowercase; }
body.theme-poster .prose h3 { font-size: 1.3rem; text-transform: lowercase; }
body.theme-poster .prose blockquote { margin: 1.4em 0; padding: 0; border: 0; color: var(--ink); font: 800 clamp(1.5rem, 4.6vw, 2.1rem)/1.06 var(--ps); letter-spacing: -.04em; font-style: normal; }
body.theme-poster .prose blockquote p::before { content: "“"; color: var(--ac); }
body.theme-poster .prose hr { border-top: var(--bw) solid var(--ink); }
body.theme-poster .prose img, body.theme-poster .prose video { border-radius: 0; border: var(--bw) solid var(--ink); }
body.theme-poster .prose code { border-radius: 0; background: var(--navy-soft); }
body.theme-poster .prose pre, body.theme-poster .prose pre.code { border-radius: 0; border: var(--bw) solid var(--ink); }
body.theme-poster .prose mark { background: var(--ac); color: #0a0a0a; }
body.theme-poster .prose ul { list-style: square; }
body.theme-poster .prose li::marker { color: color-mix(in srgb, var(--ac) 85%, #000); }
body.theme-poster .post-tags, body.theme-poster .reactions, body.theme-poster .comments, body.theme-poster .subscribe, body.theme-poster .series { margin-left: 5.2rem; }
body.theme-poster .post-tags a { border-radius: 0; border: 2px solid var(--ink); background: none; font: 700 .68rem var(--ps); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
body.theme-poster .subscribe, body.theme-poster .series, body.theme-poster .post-nav a, body.theme-poster .notice { border: var(--bw) solid var(--ink); border-radius: 0; background: none; box-shadow: .45rem .45rem 0 var(--ac); }
body.theme-poster .subscribe label { font: 800 1.4rem/1 var(--ps); letter-spacing: -.03em; text-transform: lowercase; }
body.theme-poster input:not([type="checkbox"]):not([type="radio"]), body.theme-poster textarea, body.theme-poster .subscribe-row input { border: 2px solid var(--ink); border-radius: 0; background: var(--field); font: 500 1rem var(--ps); }
body.theme-poster button, body.theme-poster .button { border: var(--bw) solid var(--ink); border-radius: 0; background: var(--ink); color: var(--paper); font: 800 .76rem var(--ps); letter-spacing: .1em; text-transform: uppercase; }
body.theme-poster button:hover, body.theme-poster .button:hover { background: var(--ac); color: #0a0a0a; filter: none; }
body.theme-poster .reactions button { background: none; color: var(--ink); border-width: 2px; }
body.theme-poster .post-nav a { font: 800 1.2rem/1.05 var(--ps); letter-spacing: -.03em; text-transform: lowercase; text-decoration: none; transition: translate .15s, box-shadow .15s; }
body.theme-poster .post-nav a:hover { translate: .2rem .2rem; box-shadow: .25rem .25rem 0 var(--ac); background: none; }
body.theme-poster .post-nav small { font: 700 .64rem var(--ps); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
body.theme-poster .comments, body.theme-poster .post-foot, body.theme-poster .colophon { border-top: var(--bw) solid var(--ink); }
body.theme-poster .post-foot, body.theme-poster .colophon { font: 700 .68rem var(--ps); letter-spacing: .1em; text-transform: uppercase; }
body.theme-poster .colophon a { color: var(--ink); text-decoration: none; }
body.theme-poster .reading-label { font: 700 .64rem var(--ps); letter-spacing: .12em; text-transform: uppercase; }
body.theme-poster .compose { border-radius: 0; background: var(--ink); color: var(--paper); text-decoration: none; box-shadow: .3rem .3rem 0 var(--ac); }
@media (max-width: 40rem) {
  body.theme-poster { --bw: 2px; font-size: 1.02rem; }
  body.theme-poster .page { padding: 0 1.1rem 2.5rem; }
  body.theme-poster .topbar { padding: .7rem 1.1rem; }
  body.theme-poster .blog-head:not(.compact), body.theme-poster .blog-head.compact, body.theme-poster .post-head { margin-left: -1.1rem; margin-right: -1.1rem; }
  body.theme-poster .blog-head:not(.compact) .blog-identity { flex-direction: column; align-items: flex-start; padding: 1.5rem 1.1rem 1.3rem; }
  body.theme-poster .blog-head-foot, body.theme-poster .blog-head.compact { padding-left: 1.1rem; padding-right: 1.1rem; }
  body.theme-poster .post-head { padding: 1.5rem 1.1rem 1.3rem; }
  body.theme-poster .avatar { width: 3.6rem; height: 3.6rem; }
  body.theme-poster .post-preview { grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0 .8rem; padding: 1rem 0 1.05rem; }
  body.theme-poster .post-preview:hover { padding-left: 0; }
  body.theme-poster .post-preview::before { font-size: .86rem; }
  body.theme-poster .post-meta { grid-column: 2; grid-row: auto; line-height: 1.8; }
  body.theme-poster .post .prose { padding-left: 0; margin-top: 1.5rem; }
  body.theme-poster .post-tags, body.theme-poster .reactions, body.theme-poster .comments, body.theme-poster .subscribe, body.theme-poster .series { margin-left: 0; }
  body.theme-poster .subscribe, body.theme-poster .series, body.theme-poster .post-nav a, body.theme-poster .notice { box-shadow: .3rem .3rem 0 var(--ac); }
  body.theme-poster .prose { font-size: 1.06rem; }
}
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-mode="light"])) body.theme-poster { --paper: #0a0a0a; --card: #0a0a0a; --ink: #f4f4f4; --muted: #b3b3b3; --rule: #f4f4f4; --soft: #171717; --field: #121212; --code-bg: #1c1c1c; }
}
:where(:root[data-mode="dark"]) body.theme-poster { --paper: #0a0a0a; --card: #0a0a0a; --ink: #f4f4f4; --muted: #b3b3b3; --rule: #f4f4f4; --soft: #171717; --field: #121212; --code-bg: #1c1c1c; }

/* ==========================================================================
   Finishing: things every look shares, and corrections found on real pages
   ========================================================================== */
/* The reader's Light / Dark switch keeps its own shape in every look. */
body.theme-broadsheet .mode-switch a, body.theme-typewriter .mode-switch a, body.theme-notebook .mode-switch a, body.theme-poster .mode-switch a { text-decoration: none; background: none; }
body.theme-broadsheet .mode-switch a.current, body.theme-typewriter .mode-switch a.current, body.theme-poster .mode-switch a.current { background: var(--ink); color: var(--paper); }
body.theme-notebook .mode-switch a.current { background: var(--ac); color: var(--card); }
body.theme-poster .mode-switch, body.theme-typewriter .mode-switch, body.theme-broadsheet .mode-switch { border-radius: 0; border-color: var(--ink); }
body.theme-poster .mode-switch a, body.theme-typewriter .mode-switch a, body.theme-broadsheet .mode-switch a { border-radius: 0; }
body.theme-broadsheet .colophon > p.mode-switch, body.theme-typewriter .colophon > p.mode-switch { margin-left: auto; margin-right: auto; }

/* Broadsheet: the masthead is centred, and the lead story's headline keeps its byline close. */
body.theme-broadsheet .blog-head:not(.compact) .blog-identity > div { text-align: center; }
body.theme-broadsheet .blog-head:not(.compact) .blog-title { display: block; text-align: center; }
body.theme-broadsheet .post-preview:first-child { grid-template-rows: auto auto 1fr; align-content: start; }
body.theme-broadsheet .post-preview:first-child .read-more { align-self: end; justify-self: start; }
body.theme-broadsheet .reading-label { float: none; display: block; margin: 0 0 .4rem; text-align: right; }

/* Typewriter: the name is centred like a title page; a post keeps the dot between its date and reading time. */
body.theme-typewriter .blog-head:not(.compact) .blog-identity > div { text-align: center; }
body.theme-typewriter .blog-head:not(.compact) .blog-title { display: block; text-align: center; }
body.theme-typewriter .post-head .post-meta, body.theme-typewriter .post-head .post-meta time { font-size: .92rem; }
body.theme-typewriter .post-head .post-meta .sep, body.theme-typewriter .post-head .post-meta .sep ~ * { display: inline; }

/* Notebook: the date sits at the end of the title's line, where there is room for all of it. */
body.theme-notebook .post-preview { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 1rem; align-items: baseline; }
body.theme-notebook .post-preview .post-meta { position: static; grid-column: 2; grid-row: 1; width: auto; text-align: right; overflow: visible; }
body.theme-notebook .post-preview .post-meta time { display: inline; max-width: none; font-size: .86rem; }
body.theme-notebook .post-preview .preview-body { grid-column: 1 / -1; }
body.theme-notebook .post-preview.pinned .pin-label { grid-column: 1; }
@media (max-width: 40rem) {
  body.theme-notebook .post-preview { grid-template-columns: minmax(0, 1fr); }
  body.theme-notebook .post-preview .post-meta { grid-column: 1; grid-row: auto; text-align: left; }
}
