/* Blog Publisher: premium looks, second set. The ones that move.
 *
 * Nine designs scoped to body.theme-<key>, loaded only on blogs that use one. No scripts and no
 * fonts from elsewhere: all motion is CSS, and it stops for readers who ask their device for less.
 * A look knows its blog through the same variables as the first set (see themes.css): --t-user,
 * --t-name, --t-host, --t-where, --t-date, --t-accent (as picked) and --t-accent-ink (darkened).
 *
 * The first part is what the nine share; each look then sets its colours and adds what makes it
 * itself. Moving layers are fixed pseudo-elements that animate transform or opacity only, so a
 * phone can keep up, and none of them takes a tap.
 */

/* ------------------------------------------------------------------ shared */
body[class*="theme-"].blog { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@media (prefers-reduced-motion: reduce) {
  body.blog, body.blog *, body.blog::before, body.blog::after, body.blog *::before, body.blog *::after { animation: none !important; transition: none !important; }
}
body:where(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) {
  --navy: var(--ac); --navy-soft: color-mix(in srgb, var(--ac) 13%, transparent); --navy-mid: color-mix(in srgb, var(--ac) 30%, transparent);
  --harbor: var(--ac); --harbor-soft: var(--navy-soft);
  --rad: 16px; --measure: 41rem;
  --sys: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  --book: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --code: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  color: var(--ink);
}
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) h1, body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) h2, body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) h3, body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) h4 { font-family: var(--display); color: var(--hi); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) a { color: var(--ac); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) ::selection { background: color-mix(in srgb, var(--ac) 45%, transparent); color: var(--hi); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .topbar { max-width: 50rem; margin: 0 auto; position: relative; z-index: 2; }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .topbar .brand { color: var(--hi); font-family: var(--display); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .topnav a { color: var(--muted); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .topnav .nav-cta { background: var(--navy-soft); color: var(--ac); border: 1px solid var(--rule); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .page { max-width: 50rem; position: relative; z-index: 1; }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .blog-head { position: relative; }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .blog-title { color: var(--hi); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .blog-handle { color: var(--muted); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .blog-bio { color: var(--ink); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .avatar { background: var(--navy-soft); box-shadow: 0 0 0 1px var(--rule); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .avatar-initial { color: var(--hi); font-family: var(--display); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .profile-links a { border: 1px solid var(--rule); background: var(--card); color: var(--ink); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .blog-head-foot, body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .blog-head.compact { border-color: var(--rule); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .blog-nav a { color: var(--muted); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .blog-nav a:first-child, body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .blog-nav a:hover { color: var(--hi); background: var(--navy-soft); text-decoration: none; }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .blog-search input { border: 1px solid var(--rule); background: var(--field); color: var(--hi); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .blog-name { color: var(--hi); font-family: var(--display); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .word-count, body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .reading-label { color: var(--muted); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .post-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .post-preview { position: relative; margin: 0; padding: 1.25rem 1.35rem 1.15rem; border: 1px solid var(--rule); border-radius: var(--rad); background: var(--card); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .preview-title { font-size: 1.28rem; line-height: 1.22; margin: 0; }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .preview-title a { color: var(--hi); text-decoration: none; }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .preview-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* the whole card opens the post */
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .post-meta { color: var(--muted); font-size: .8rem; }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .preview-body { margin-top: .55rem; font-size: .96rem; line-height: 1.55; color: var(--ink); opacity: .86; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .read-more { display: none; }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .pin-label { color: var(--ac); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .pager a { padding: .4rem .95rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .post { margin: 2.2rem auto 0; }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .post-head h1 { font-size: clamp(2rem, 6.4vw, 3rem); line-height: 1.08; }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .prose { color: var(--ink); font-size: 1.1rem; line-height: 1.78; }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .prose strong { color: var(--hi); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .prose a { color: var(--ac); text-decoration: underline; text-decoration-color: var(--navy-mid); text-underline-offset: .18em; }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .prose a:hover { text-decoration-color: var(--ac); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .prose blockquote { margin-left: 0; margin-right: 0; padding: .95rem 1.25rem; border: 0; border-left: 3px solid var(--ac); border-radius: 0 var(--rad) var(--rad) 0; background: var(--card); color: var(--hi); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .prose code { background: var(--code-bg); border-radius: 5px; }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .prose pre, body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .prose pre.code { border: 1px solid var(--rule); border-radius: var(--rad); background: var(--block-bg); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .prose pre code { background: none; }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .prose hr { border: 0; height: 1px; background: linear-gradient(to right, transparent, var(--navy-mid), transparent); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .prose img, body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .prose video { display: block; border-radius: var(--rad); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .prose mark { background: color-mix(in srgb, var(--ac) 32%, transparent); color: var(--hi); border-radius: 3px; padding: 0 .15em; }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .post-tags a { border: 1px solid var(--rule); background: var(--card); color: var(--ac); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .subscribe, body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .series, body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .post-nav a, body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .notice { border: 1px solid var(--rule); border-radius: var(--rad); background: var(--card); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .subscribe label { color: var(--hi); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .help { color: var(--muted); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) input:not([type="checkbox"]):not([type="radio"]), body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) textarea, body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .subscribe-row input { border: 1px solid var(--rule); background: var(--field); color: var(--hi); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) input:focus, body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) textarea:focus { outline: 0; border-color: var(--ac); box-shadow: 0 0 0 3px var(--navy-soft); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) button, body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .button { border: 0; background: var(--ac); color: var(--on-ac); font-weight: 650; }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .reactions button { border: 1px solid var(--rule); background: var(--card); color: var(--ink); font-weight: 400; box-shadow: none; }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .post-nav a { color: var(--hi); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .post-nav small { color: var(--ac); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .comments, body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .post-foot, body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .colophon { border-top-color: var(--rule); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .colophon a, body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .post-foot a { color: var(--muted); }
body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .compose { background: var(--ac); color: var(--on-ac); }
@media (max-width: 40rem) {
  body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .post-preview { padding: 1.05rem 1.1rem 1rem; }
  body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .prose { font-size: 1.05rem; }
  body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .avatar { width: 4.2rem; height: 4.2rem; }
  body:is(.theme-rain, .theme-candle, .theme-sky, .theme-neon, .theme-ink, .theme-aurora, .theme-arcade, .theme-tide, .theme-glitch) .blog-identity { gap: 1rem; }
}
@keyframes lv-rise { from { opacity: 0; transform: translateY(.6rem); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   1. RAINY WINDOW  a fogged pane, city lights behind it, rain on the glass
   ========================================================================== */
body.theme-rain {
  --ac: var(--t-accent, #8fd3ff);
  --paper: #0f161e; --card: rgb(16 24 34 / .55); --ink: #cfdbe7; --muted: #8497aa; --rule: rgb(255 255 255 / .13); --soft: rgb(255 255 255 / .04);
  --field: rgb(255 255 255 / .07); --code-bg: rgb(255 255 255 / .09); --block-bg: rgb(0 0 0 / .4); --hi: #f2f7fc; --on-ac: #0b141c;
  --serif: var(--sys); --sans: var(--sys); --display: var(--sys);
  color-scheme: dark;
  background:
    radial-gradient(11rem 11rem at 14% 16%, rgb(255 176 92 / .30), transparent 70%),
    radial-gradient(14rem 14rem at 84% 10%, color-mix(in srgb, var(--ac) 34%, transparent), transparent 70%),
    radial-gradient(9rem 9rem at 66% 44%, rgb(255 118 118 / .20), transparent 70%),
    radial-gradient(13rem 13rem at 24% 72%, rgb(118 222 200 / .16), transparent 70%),
    radial-gradient(10rem 10rem at 90% 88%, rgb(255 190 110 / .18), transparent 70%),
    linear-gradient(#1c2733, #0d131a);
  background-color: #0d131a; background-attachment: fixed;
  font: 400 1.05rem/1.7 var(--sys);
}
/* The rain: nine thin streaks of different lengths, on a sheet taller than the screen that slides down by one full pattern. */
body.theme-rain::before {
  --d: linear-gradient(to bottom, transparent 0 62%, rgb(215 235 255 / .7));
  content: ""; position: fixed; left: 0; right: 0; top: -480px; height: calc(100% + 480px); z-index: 40; pointer-events: none; opacity: .5;
  background: var(--d) 6% 0 / 1.5px 120px repeat-y, var(--d) 17% 40px / 1.5px 160px repeat-y, var(--d) 29% 90px / 1px 240px repeat-y,
    var(--d) 41% 10px / 1.5px 120px repeat-y, var(--d) 52% 130px / 1px 160px repeat-y, var(--d) 63% 60px / 1.5px 240px repeat-y,
    var(--d) 74% 20px / 1px 120px repeat-y, var(--d) 85% 100px / 1.5px 160px repeat-y, var(--d) 95% 70px / 1px 240px repeat-y;
  animation: rn-fall 1.5s linear infinite; will-change: transform;
}
body.theme-rain::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgb(0 0 0 / .45)); }
@keyframes rn-fall { to { transform: translateY(480px); } }
body.theme-rain .blog-head:not(.compact) { margin: 1.2rem 0 1.8rem; padding: 1.6rem 1.5rem 1.2rem; border: 1px solid var(--rule); border-radius: 22px; background: var(--card); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); animation: lv-rise .5s both; }
body.theme-rain .blog-title { font: 620 clamp(2rem, 6vw, 3rem)/1.06 var(--sys); letter-spacing: -.03em; text-shadow: 0 0 1.6rem color-mix(in srgb, var(--ac) 55%, transparent); }
body.theme-rain .post-preview, body.theme-rain .subscribe, body.theme-rain .series, body.theme-rain .post-nav a { backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); transition: transform .2s, border-color .2s; }
body.theme-rain .post-preview:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--ac) 55%, transparent); }
body.theme-rain .post-meta time { color: var(--ac); }
body.theme-rain .post { padding: 1.8rem 1.6rem; border: 1px solid var(--rule); border-radius: 22px; background: var(--card); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
body.theme-rain .post-head h1 { font-weight: 620; letter-spacing: -.03em; text-shadow: 0 0 1.6rem color-mix(in srgb, var(--ac) 45%, transparent); }
body.theme-rain .prose blockquote { background: rgb(255 255 255 / .05); }
@media (max-width: 40rem) {
  body.theme-rain { background-attachment: scroll; }
  body.theme-rain .blog-head:not(.compact), body.theme-rain .post { padding: 1.2rem 1.05rem; border-radius: 18px; }
  body.theme-rain .post-preview:hover { transform: none; }
}

/* ==========================================================================
   2. CANDLELIGHT  one flame, late at night
   ========================================================================== */
body.theme-candle {
  --ac: var(--t-accent, #ffb866);
  --paper: #140e09; --card: rgb(255 214 160 / .045); --ink: #e2d2b9; --muted: #a08c70; --rule: rgb(241 227 205 / .16); --soft: rgb(255 214 160 / .04);
  --field: rgb(255 214 160 / .06); --code-bg: rgb(255 214 160 / .09); --block-bg: rgb(0 0 0 / .4); --hi: #fbf0dc; --on-ac: #1c1206;
  --serif: var(--book); --sans: var(--book); --display: var(--book); --rad: 6px; --measure: 38rem;
  color-scheme: dark; background: #140e09; font: 400 1.1rem/1.75 var(--book);
}
/* The light of the flame on the wall: it breathes, never quite evenly. */
body.theme-candle::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(34rem 30rem at 50% 6rem, color-mix(in srgb, var(--ac) 42%, transparent), transparent 70%); animation: cd-glow 3.2s infinite; }
@keyframes cd-glow { 0%, 100% { opacity: .9; } 8% { opacity: .72; } 12% { opacity: .95; } 31% { opacity: .8; } 36% { opacity: 1; } 58% { opacity: .84; } 63% { opacity: .97; } 82% { opacity: .76; } }
@keyframes cd-sway { 0% { transform: rotate(-5deg) scaleY(1); } 40% { transform: rotate(3deg) scaleY(1.12); } 100% { transform: rotate(-2deg) scaleY(.94); } }
/* The candle itself, above the name and above a post's title. */
body.theme-candle .blog-head:not(.compact)::before, body.theme-candle .post-head::before {
  content: ""; display: block; width: 12px; height: 22px; margin: 0 auto 1.3rem; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: linear-gradient(#fff6d8, var(--ac) 55%, #e2582a);
  box-shadow: 0 0 22px 8px color-mix(in srgb, var(--ac) 55%, transparent), 0 31px 0 -3px #e9dcc3, 0 37px 0 -3px #e9dcc3;
  transform-origin: 50% 100%; animation: cd-sway 1.4s ease-in-out infinite alternate;
}
body.theme-candle .blog-head:not(.compact) { margin: 1.6rem 0 1.4rem; padding-top: 3.6rem; text-align: center; }
body.theme-candle .blog-head:not(.compact)::before { position: absolute; top: .3rem; left: calc(50% - 6px); margin: 0; }
body.theme-candle .blog-head:not(.compact) .blog-identity { flex-direction: column; align-items: center; gap: .9rem; }
body.theme-candle .blog-head:not(.compact) .avatar { display: none; }
body.theme-candle .blog-head:not(.compact) .blog-identity > div, body.theme-arcade .blog-head:not(.compact) .blog-identity > div { text-align: center; }
body.theme-candle .blog-head:not(.compact) .blog-title, body.theme-arcade .blog-head:not(.compact) .blog-title { display: block; text-align: center; }
body.theme-candle .blog-title { font: italic 400 clamp(2.2rem, 7vw, 3.3rem)/1.08 var(--book); }
body.theme-candle .blog-bio { font-style: italic; }
body.theme-candle .blog-head-foot { justify-content: center; }
body.theme-candle .profile-links { justify-content: center; }
body.theme-candle .post-list { gap: 0; }
body.theme-candle .post-preview { padding: 1.3rem 0 1.2rem; border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: none; }
body.theme-candle .preview-title { font: 400 1.45rem/1.2 var(--book); }
body.theme-candle .preview-title a:hover { color: var(--ac); }
body.theme-candle .post-meta { font-style: italic; font-size: .86rem; color: var(--ac); }
body.theme-candle .post-head { text-align: center; padding-top: 1rem; }
body.theme-candle .post-head h1 { font: italic 400 clamp(2.1rem, 6.6vw, 3rem)/1.1 var(--book); margin-top: 1.8rem; }
body.theme-candle .prose { font: 400 1.16rem/1.85 var(--book); }
body.theme-candle .prose > p:first-of-type::first-letter { float: left; font: 400 3.5em/.82 var(--book); padding: .08em .1em 0 0; color: var(--ac); }
body.theme-candle .prose blockquote { background: none; border-left: 0; text-align: center; font-style: italic; font-size: 1.25rem; padding: .6rem 1rem; }
body.theme-candle button, body.theme-candle .button { border-radius: 4px; }

/* ==========================================================================
   3. NIGHT SKY  stars over a dusk horizon
   ========================================================================== */
body.theme-sky {
  --ac: var(--t-accent, #ffe9a8);
  --paper: #0a1026; --card: rgb(255 255 255 / .05); --ink: #cdd3f0; --muted: #8b93bd; --rule: rgb(233 236 255 / .16); --soft: rgb(255 255 255 / .04);
  --field: rgb(255 255 255 / .07); --code-bg: rgb(255 255 255 / .09); --block-bg: rgb(0 0 0 / .4); --hi: #f4f6ff; --on-ac: #131733;
  --serif: var(--sys); --sans: var(--sys); --display: var(--sys);
  color-scheme: dark; background: #111a3c linear-gradient(#070b1d 0%, #111a3c 62%, #3a2a55 100%) fixed; font: 400 1.05rem/1.72 var(--sys);
}
/* Two fields of stars that fade in and out against each other. */
body.theme-sky::before, body.theme-sky::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; animation: sk-twinkle 3.4s ease-in-out infinite alternate; }
body.theme-sky::before { background-image:
  radial-gradient(1.4px 1.4px at 4% 9%, #fff, transparent), radial-gradient(1px 1px at 11% 31%, #fff, transparent), radial-gradient(1.6px 1.6px at 18% 14%, #fff, transparent),
  radial-gradient(1px 1px at 24% 48%, #fff, transparent), radial-gradient(1.3px 1.3px at 31% 6%, #fff, transparent), radial-gradient(1px 1px at 38% 27%, #fff, transparent),
  radial-gradient(1.7px 1.7px at 45% 17%, #fff, transparent), radial-gradient(1px 1px at 52% 41%, #fff, transparent), radial-gradient(1.2px 1.2px at 58% 8%, #fff, transparent),
  radial-gradient(1px 1px at 64% 33%, #fff, transparent), radial-gradient(1.5px 1.5px at 71% 21%, #fff, transparent), radial-gradient(1px 1px at 77% 52%, #fff, transparent),
  radial-gradient(1.3px 1.3px at 83% 12%, #fff, transparent), radial-gradient(1px 1px at 89% 38%, #fff, transparent), radial-gradient(1.6px 1.6px at 95% 24%, #fff, transparent),
  radial-gradient(1px 1px at 8% 62%, #fff, transparent), radial-gradient(1.2px 1.2px at 35% 66%, #fff, transparent), radial-gradient(1px 1px at 68% 61%, #fff, transparent); }
body.theme-sky::after { animation-duration: 2.6s; animation-direction: alternate-reverse; background-image:
  radial-gradient(1px 1px at 7% 22%, #fff, transparent), radial-gradient(1.5px 1.5px at 14% 44%, #fff, transparent), radial-gradient(1px 1px at 21% 4%, #fff, transparent),
  radial-gradient(1.2px 1.2px at 28% 36%, #fff, transparent), radial-gradient(1px 1px at 34% 19%, #fff, transparent), radial-gradient(1.6px 1.6px at 42% 55%, #fff, transparent),
  radial-gradient(1px 1px at 49% 3%, #fff, transparent), radial-gradient(1.3px 1.3px at 55% 29%, #fff, transparent), radial-gradient(1px 1px at 61% 47%, #fff, transparent),
  radial-gradient(1.4px 1.4px at 67% 11%, #fff, transparent), radial-gradient(1px 1px at 74% 39%, #fff, transparent), radial-gradient(1.5px 1.5px at 80% 5%, #fff, transparent),
  radial-gradient(1px 1px at 86% 58%, #fff, transparent), radial-gradient(1.2px 1.2px at 92% 16%, #fff, transparent), radial-gradient(1px 1px at 97% 45%, #fff, transparent); }
@keyframes sk-twinkle { from { opacity: .25; } to { opacity: 1; } }
/* A shooting star, every so often. */
body.theme-sky .topbar::after { content: ""; position: fixed; top: 14vh; left: -8rem; width: 6.5rem; height: 1.5px; z-index: 0; pointer-events: none; background: linear-gradient(90deg, transparent, #fff); opacity: 0; animation: sk-shoot 9s ease-in infinite; }
@keyframes sk-shoot { 0%, 80% { transform: translate(0, 0) rotate(16deg); opacity: 0; } 82% { opacity: 1; } 93% { transform: translate(115vw, 33vw) rotate(16deg); opacity: 0; } 100% { opacity: 0; } }
/* The moon, beside the name. */
body.theme-sky .blog-head:not(.compact)::after { content: ""; position: absolute; right: .4rem; top: .2rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: radial-gradient(circle at 78% 30%, transparent 0 1.25rem, var(--ac) 1.3rem); filter: drop-shadow(0 0 .9rem color-mix(in srgb, var(--ac) 60%, transparent)); transform: rotate(-22deg); }
body.theme-sky .blog-head:not(.compact) { margin: 1.4rem 0 1.8rem; padding-right: 3.6rem; animation: lv-rise .5s both; }
body.theme-sky .blog-title { font: 300 clamp(2.1rem, 6.4vw, 3.2rem)/1.08 var(--sys); letter-spacing: .01em; }
body.theme-sky .avatar { border-radius: 50%; }
body.theme-sky .post-list { gap: 1.5rem; }
body.theme-sky .post-preview { padding: .1rem 0 .1rem 1.2rem; border: 0; border-left: 1px solid var(--rule); border-radius: 0; background: none; transition: border-color .2s; }
body.theme-sky .post-preview::before { content: ""; position: absolute; left: -3.5px; top: .55rem; width: 6px; height: 6px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 .6rem var(--ac); }
body.theme-sky .post-preview:hover { border-left-color: var(--ac); }
body.theme-sky .preview-title { font: 500 1.3rem/1.25 var(--sys); }
body.theme-sky .post-meta time { color: var(--ac); }
body.theme-sky .post-head h1 { font-weight: 300; letter-spacing: .005em; }
body.theme-sky .prose h2, body.theme-sky .prose h3 { font-weight: 500; }
body.theme-sky .subscribe, body.theme-sky .series, body.theme-sky .post-nav a, body.theme-sky .prose blockquote { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body.theme-sky button, body.theme-sky .button { border-radius: 999px; }
@media (max-width: 40rem) { body.theme-sky { background-attachment: scroll; } }

/* ==========================================================================
   4. NEON  your name as a sign on a dark wall
   ========================================================================== */
body.theme-neon {
  --ac: var(--t-accent, #ff4fd8); --ac2: #7df9ff;
  --paper: #0c0a12; --card: rgb(255 255 255 / .03); --ink: #d6cfe6; --muted: #8d84a6; --rule: color-mix(in srgb, var(--ac) 34%, transparent); --soft: rgb(255 255 255 / .03);
  --field: rgb(255 255 255 / .05); --code-bg: rgb(255 255 255 / .08); --block-bg: rgb(0 0 0 / .45); --hi: #fff; --on-ac: #14061a;
  --serif: var(--sys); --sans: var(--sys); --display: var(--sys); --rad: 12px;
  color-scheme: dark; background: #0c0a12 repeating-linear-gradient(0deg, transparent 0 1.55rem, rgb(255 255 255 / .028) 1.55rem calc(1.55rem + 1px)); font: 400 1.05rem/1.7 var(--sys);
}
body.theme-neon::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(40rem 22rem at 50% 4rem, color-mix(in srgb, var(--ac) 26%, transparent), transparent 70%); animation: ne-buzz 5s infinite; }
@keyframes ne-buzz { 0%, 2%, 5%, 49%, 52%, 100% { opacity: 1; } 3%, 4% { opacity: .45; } 50%, 51% { opacity: .72; } }
body.theme-neon .blog-head:not(.compact) { margin: 1.6rem 0 1.8rem; }
body.theme-neon .blog-title, body.theme-neon .post-head h1 { text-transform: uppercase; letter-spacing: .05em; font-weight: 750; color: #fff; text-shadow: 0 0 4px #fff, 0 0 12px var(--ac), 0 0 28px var(--ac), 0 0 52px var(--ac); animation: ne-buzz 5s infinite; }
body.theme-neon .blog-title { font-size: clamp(1.9rem, 6.2vw, 3rem); line-height: 1.12; }
body.theme-neon .blog-handle { color: var(--ac2); text-shadow: 0 0 .6rem #29d9ff; letter-spacing: .08em; }
body.theme-neon .avatar { border-radius: 14px; box-shadow: 0 0 0 1.5px var(--ac), 0 0 1.2rem color-mix(in srgb, var(--ac) 55%, transparent); }
body.theme-neon .blog-nav a:first-child, body.theme-neon .blog-nav a:hover { box-shadow: inset 0 0 0 1px var(--rule); }
body.theme-neon .post-preview { border: 1.5px solid color-mix(in srgb, var(--ac) 72%, #fff); box-shadow: 0 0 .8rem color-mix(in srgb, var(--ac) 42%, transparent), inset 0 0 .7rem color-mix(in srgb, var(--ac) 14%, transparent); transition: box-shadow .2s, transform .2s; }
body.theme-neon .post-preview:hover { transform: translateY(-2px); box-shadow: 0 0 1.5rem color-mix(in srgb, var(--ac) 65%, transparent), inset 0 0 1rem color-mix(in srgb, var(--ac) 22%, transparent); }
body.theme-neon .preview-title { font-weight: 700; }
body.theme-neon .post-meta { color: var(--ac2); letter-spacing: .04em; }
body.theme-neon .post-head h1 { font-size: clamp(1.8rem, 5.8vw, 2.7rem); }
body.theme-neon .prose h2, body.theme-neon .prose h3 { color: var(--ac2); text-shadow: 0 0 .7rem rgb(41 217 255 / .55); }
body.theme-neon .prose blockquote { border: 1.5px solid var(--ac2); border-radius: var(--rad); background: none; box-shadow: 0 0 .9rem rgb(41 217 255 / .3), inset 0 0 .7rem rgb(41 217 255 / .1); }
body.theme-neon button, body.theme-neon .button { background: none; color: #fff; border: 1.5px solid var(--ac); border-radius: 999px; box-shadow: 0 0 .8rem color-mix(in srgb, var(--ac) 55%, transparent), inset 0 0 .6rem color-mix(in srgb, var(--ac) 25%, transparent); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
body.theme-neon .reactions button { text-transform: none; letter-spacing: 0; font-size: 1rem; }
body.theme-neon .subscribe { box-shadow: 0 0 .8rem color-mix(in srgb, var(--ac) 30%, transparent); }
@media (max-width: 40rem) { body.theme-neon .post-preview:hover { transform: none; } }

/* ==========================================================================
   5. INK  fountain pen on good paper
   ========================================================================== */
body.theme-ink {
  --ac: var(--t-accent-ink, #1c3faa);
  --paper: #fbfaf5; --card: #fffefb; --ink: #2a2c33; --muted: #777a86; --rule: #e3e0d6; --soft: #f3f1e8;
  --field: #fffefb; --code-bg: #efede4; --block-bg: #f1efe6; --hi: #14161b; --on-ac: #fff;
  --serif: var(--book); --sans: var(--book); --display: var(--book); --rad: 4px; --measure: 38rem;
  background: #fbfaf5; font: 400 1.1rem/1.75 var(--book);
}
/* A drop of ink soaks into the corner of the page, once. */
body.theme-ink::before { content: ""; position: fixed; right: -5rem; top: -5rem; width: 16rem; height: 16rem; z-index: 0; pointer-events: none; border-radius: 47% 53% 44% 56% / 52% 46% 54% 48%; background: radial-gradient(circle, color-mix(in srgb, var(--ac) 78%, transparent) 0 32%, color-mix(in srgb, var(--ac) 30%, transparent) 55%, transparent 72%); filter: blur(7px); opacity: .3; animation: ik-blot 2.8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes ik-blot { from { transform: scale(.15); opacity: 0; } to { transform: scale(1); opacity: .3; } }
@keyframes ik-stroke { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ik-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -1% 0 0); } }
body.theme-ink .blog-head:not(.compact) { margin: 1.6rem 0 1.6rem; }
body.theme-ink .blog-title { display: inline-block; position: relative; padding-bottom: .22em; font: italic 400 clamp(2.3rem, 7.2vw, 3.5rem)/1.06 var(--book); animation: ik-write 1s .1s ease-out both; }
/* The underline is one stroke of the pen. */
body.theme-ink .blog-title::after, body.theme-ink .post-head h1::after { content: ""; position: absolute; left: 0; right: -.25em; bottom: 0; height: 3px; border-radius: 2px 60% 2px 40%; background: var(--ac); transform-origin: 0 50%; animation: ik-stroke 1.1s .9s cubic-bezier(.6, 0, .2, 1) both; }
body.theme-ink .blog-bio { font-style: italic; color: var(--muted); }
body.theme-ink .avatar { border-radius: 50%; }
body.theme-ink .blog-nav a:first-child, body.theme-ink .blog-nav a:hover { background: none; color: var(--ac); text-decoration: underline; text-underline-offset: .3em; }
body.theme-ink .post-list { gap: 0; }
body.theme-ink .post-preview { padding: 1.25rem 0 1.15rem; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: none; animation: ik-write .9s ease-out both; }
body.theme-ink .post-preview:nth-child(1) { animation-delay: 1.1s; } body.theme-ink .post-preview:nth-child(2) { animation-delay: 1.5s; }
body.theme-ink .post-preview:nth-child(3) { animation-delay: 1.9s; } body.theme-ink .post-preview:nth-child(4) { animation-delay: 2.3s; }
body.theme-ink .post-preview:nth-child(n+5) { animation-delay: 2.6s; }
body.theme-ink .preview-title { font: 600 1.4rem/1.22 var(--book); }
body.theme-ink .preview-title a:hover { color: var(--ac); }
body.theme-ink .post-meta { font-style: italic; font-size: .88rem; color: var(--ac); }
body.theme-ink .post-head h1 { display: inline-block; position: relative; padding-bottom: .2em; font: italic 400 clamp(2.1rem, 6.6vw, 3.1rem)/1.1 var(--book); }
body.theme-ink .prose { font: 400 1.16rem/1.85 var(--book); }
body.theme-ink .prose > p:first-of-type::first-letter { float: left; font: italic 400 3.6em/.8 var(--book); padding: .1em .12em 0 0; color: var(--ac); }
body.theme-ink .prose blockquote { background: none; border-left: 2px solid var(--ac); border-radius: 0; font-style: italic; }
body.theme-ink .prose mark { background: color-mix(in srgb, var(--ac) 18%, transparent); }
body.theme-ink .subscribe, body.theme-ink .series, body.theme-ink .post-nav a { box-shadow: 0 1px 0 var(--rule); }
@media (max-width: 40rem) { body.theme-ink::before { width: 11rem; height: 11rem; right: -4.5rem; top: -4.5rem; } }
/* Ink at night: pale ink on dark paper. */
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-mode="light"])) body.theme-ink { --ac: var(--t-accent, #8fa8ff); --paper: #14161b; --card: #1a1d24; --ink: #d6d4cc; --muted: #8d8f99; --rule: #2a2d36; --soft: #1a1d24; --field: #1a1d24; --code-bg: #232630; --block-bg: #0f1115; --hi: #f3f1e8; --on-ac: #10121a; background: #14161b; color-scheme: dark; }
}
:where(:root[data-mode="dark"]) body.theme-ink { --ac: var(--t-accent, #8fa8ff); --paper: #14161b; --card: #1a1d24; --ink: #d6d4cc; --muted: #8d8f99; --rule: #2a2d36; --soft: #1a1d24; --field: #1a1d24; --code-bg: #232630; --block-bg: #0f1115; --hi: #f3f1e8; --on-ac: #10121a; background: #14161b; color-scheme: dark; }

/* ==========================================================================
   6. AURORA  northern lights behind glass
   ========================================================================== */
body.theme-aurora {
  --ac: var(--t-accent, #7ff5cf);
  --paper: #070b14; --card: rgb(255 255 255 / .06); --ink: #cfe0dd; --muted: #86a09d; --rule: rgb(255 255 255 / .13); --soft: rgb(255 255 255 / .04);
  --field: rgb(255 255 255 / .07); --code-bg: rgb(255 255 255 / .09); --block-bg: rgb(0 0 0 / .4); --hi: #f1fbf9; --on-ac: #06231b;
  --serif: var(--sys); --sans: var(--sys); --display: var(--sys);
  color-scheme: dark; background: #070b14; font: 400 1.05rem/1.72 var(--sys);
}
/* Two sheets of light that lean and slide past each other, slowly. */
body.theme-aurora::before, body.theme-aurora::after { content: ""; position: fixed; left: -25%; right: -25%; top: -18%; height: 62%; z-index: 0; pointer-events: none; filter: blur(46px); will-change: transform; }
body.theme-aurora::before { background: radial-gradient(45% 70% at 25% 45%, color-mix(in srgb, var(--ac) 58%, transparent), transparent 70%), radial-gradient(40% 80% at 62% 25%, rgb(90 140 255 / .5), transparent 70%); animation: au-drift 13s ease-in-out infinite alternate; }
body.theme-aurora::after { background: radial-gradient(40% 70% at 80% 50%, rgb(200 90 255 / .45), transparent 70%); animation: au-drift 17s ease-in-out infinite alternate-reverse; }
@keyframes au-drift { from { transform: translateX(-12%) skewX(-8deg); } to { transform: translateX(12%) skewX(10deg); } }
body.theme-aurora .blog-head:not(.compact) { margin: 1.4rem 0 1.9rem; animation: lv-rise .5s both; }
body.theme-aurora .blog-title { font: 650 clamp(2.1rem, 6.4vw, 3.2rem)/1.05 var(--sys); letter-spacing: -.03em; }
body.theme-aurora .avatar { border-radius: 28%; }
body.theme-aurora .post-preview, body.theme-aurora .subscribe, body.theme-aurora .series, body.theme-aurora .post-nav a, body.theme-aurora .prose blockquote { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body.theme-aurora .post-preview { transition: transform .2s, border-color .2s; animation: lv-rise .5s both; }
body.theme-aurora .post-preview:nth-child(2) { animation-delay: .07s; } body.theme-aurora .post-preview:nth-child(3) { animation-delay: .14s; } body.theme-aurora .post-preview:nth-child(n+4) { animation-delay: .2s; }
body.theme-aurora .post-preview:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--ac) 55%, transparent); }
body.theme-aurora .preview-title { font-weight: 620; letter-spacing: -.015em; }
body.theme-aurora .post-meta time { color: var(--ac); }
body.theme-aurora .post-head h1 { font-weight: 650; letter-spacing: -.03em; }
body.theme-aurora button, body.theme-aurora .button { border-radius: 999px; }
@media (max-width: 40rem) { body.theme-aurora::before, body.theme-aurora::after { filter: blur(34px); } body.theme-aurora .post-preview:hover { transform: none; } }

/* ==========================================================================
   7. ARCADE  a start screen; the posts are levels
   ========================================================================== */
body.theme-arcade {
  --ac: var(--t-accent, #ff3d7f); --ac2: #3df0ff; --gold: #ffd23f;
  --paper: #0d0b1f; --card: #0d0b1f; --ink: #dcd9f2; --muted: #8f8ab8; --rule: #3a3566; --soft: #15122e;
  --field: #15122e; --code-bg: #1d1940; --block-bg: #070614; --hi: #fff; --on-ac: #fff;
  --arc: "Courier New", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif: var(--arc); --sans: var(--arc); --display: var(--arc); --rad: 0px;
  color-scheme: dark; background: #0d0b1f; font: 700 1rem/1.65 var(--arc); counter-reset: level;
}
body.theme-arcade::before { content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 3px, rgb(0 0 0 / .22) 3px 4px); }
@keyframes ar-blink { 50% { opacity: 0; } }
body.theme-arcade .topbar .brand, body.theme-arcade .topnav a { color: var(--gold); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
body.theme-arcade .topnav .nav-cta { background: none; border: 2px solid var(--gold); border-radius: 0; color: var(--gold); }
body.theme-arcade .blog-head:not(.compact) { margin: 1rem 0 1.4rem; text-align: center; }
body.theme-arcade .blog-head:not(.compact)::before { content: "1UP  " var(--t-user) "     ♥♥♥"; display: block; margin-bottom: 1.2rem; color: var(--gold); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; white-space: pre; overflow: hidden; }
body.theme-arcade .blog-head:not(.compact) .blog-identity { flex-direction: column; align-items: center; gap: .8rem; }
body.theme-arcade .avatar { border-radius: 0; box-shadow: 0 0 0 3px #fff, 5px 5px 0 3px var(--ac); image-rendering: pixelated; }
body.theme-arcade .blog-title, body.theme-arcade .post-head h1 { text-transform: uppercase; letter-spacing: .06em; font-weight: 900; color: var(--ac); text-shadow: 3px 3px 0 var(--ac2), 6px 6px 0 #2a1f6b; }
body.theme-arcade .blog-title { font-size: clamp(1.7rem, 6.4vw, 2.9rem); line-height: 1.15; }
body.theme-arcade .blog-handle { color: var(--ac2); letter-spacing: .1em; }
body.theme-arcade .blog-bio { font-weight: 400; }
body.theme-arcade .blog-head-foot { justify-content: center; border-top: 0; }
body.theme-arcade .profile-links { justify-content: center; }
body.theme-arcade .blog-nav a { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; border-radius: 0; }
body.theme-arcade .blog-nav a:first-child, body.theme-arcade .blog-nav a:hover { background: none; color: var(--gold); }
body.theme-arcade .blog-nav a:first-child::before { content: "▶ "; }
body.theme-arcade .blog-search input { border: 2px solid #fff; border-radius: 0; }
body.theme-arcade #posts::before { content: "SELECT A POST"; display: block; margin: .4rem 0 1.2rem; text-align: center; color: var(--ac2); font-size: .8rem; letter-spacing: .28em; }
body.theme-arcade #posts::after { content: "PRESS START"; display: block; margin: 1.8rem 0 .4rem; text-align: center; color: var(--gold); font-size: .85rem; letter-spacing: .28em; animation: ar-blink 1s steps(1) infinite; }
body.theme-arcade .post-list { gap: 1.1rem; }
body.theme-arcade .post-preview { counter-increment: level; padding: .95rem 1.1rem .9rem; border: 3px solid #fff; box-shadow: 5px 5px 0 var(--ac); margin-right: 5px; }
body.theme-arcade .post-preview::before { content: "LV " counter(level); display: block; margin-bottom: .25rem; color: var(--gold); font-size: .74rem; letter-spacing: .14em; }
body.theme-arcade .post-preview:hover, body.theme-arcade .post-preview:focus-within { border-color: var(--gold); box-shadow: 5px 5px 0 var(--ac2); }
/* The selector steps through the first five posts, two seconds on each. Fewer posts, shorter round. */
body.theme-arcade .post-list:not(:hover) .post-preview:nth-child(-n+5) { animation: ar-pick5 10s steps(1) infinite; }
body.theme-arcade .post-list:not(:hover) .post-preview:nth-child(2) { animation-delay: 2s; } body.theme-arcade .post-list:not(:hover) .post-preview:nth-child(3) { animation-delay: 4s; }
body.theme-arcade .post-list:not(:hover) .post-preview:nth-child(4) { animation-delay: 6s; } body.theme-arcade .post-list:not(:hover) .post-preview:nth-child(5) { animation-delay: 8s; }
@keyframes ar-pick5 { 0% { border-color: var(--gold); box-shadow: 5px 5px 0 var(--ac2); transform: translateX(6px); } 20%, 100% { border-color: #fff; box-shadow: 5px 5px 0 var(--ac); transform: none; } }
@keyframes ar-pick4 { 0% { border-color: var(--gold); box-shadow: 5px 5px 0 var(--ac2); transform: translateX(6px); } 25%, 100% { border-color: #fff; box-shadow: 5px 5px 0 var(--ac); transform: none; } }
@keyframes ar-pick3 { 0% { border-color: var(--gold); box-shadow: 5px 5px 0 var(--ac2); transform: translateX(6px); } 33.4%, 100% { border-color: #fff; box-shadow: 5px 5px 0 var(--ac); transform: none; } }
@keyframes ar-pick2 { 0% { border-color: var(--gold); box-shadow: 5px 5px 0 var(--ac2); transform: translateX(6px); } 50%, 100% { border-color: #fff; box-shadow: 5px 5px 0 var(--ac); transform: none; } }
body.theme-arcade .post-list:not(:hover):has(> :last-child:nth-child(4)) .post-preview { animation-name: ar-pick4; animation-duration: 8s; }
body.theme-arcade .post-list:not(:hover):has(> :last-child:nth-child(3)) .post-preview { animation-name: ar-pick3; animation-duration: 6s; }
body.theme-arcade .post-list:not(:hover):has(> :last-child:nth-child(2)) .post-preview { animation-name: ar-pick2; animation-duration: 4s; }
body.theme-arcade .post-list:has(> :only-child) .post-preview { animation: none; border-color: var(--gold); box-shadow: 5px 5px 0 var(--ac2); }
body.theme-arcade .preview-title { font: 900 1.08rem/1.3 var(--arc); text-transform: uppercase; letter-spacing: .03em; }
body.theme-arcade .post-meta { color: var(--ac2); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
body.theme-arcade .preview-body { font-weight: 400; font-size: .9rem; -webkit-line-clamp: 2; }
body.theme-arcade .post-head { text-align: center; }
body.theme-arcade .post-head h1 { font-size: clamp(1.5rem, 5.6vw, 2.4rem); line-height: 1.2; }
body.theme-arcade .prose { font: 400 1.04rem/1.8 var(--code); }
body.theme-arcade .prose h2, body.theme-arcade .prose h3 { color: var(--gold); text-transform: uppercase; letter-spacing: .06em; font-size: 1.1rem; }
body.theme-arcade .prose h2::before { content: "▶ "; color: var(--ac); }
body.theme-arcade .prose blockquote { border: 3px solid var(--ac2); background: none; }
body.theme-arcade .prose img, body.theme-arcade .prose video { border: 3px solid #fff; box-shadow: 5px 5px 0 var(--ac); }
body.theme-arcade .subscribe, body.theme-arcade .series, body.theme-arcade .post-nav a, body.theme-arcade .notice { border: 3px solid #fff; box-shadow: 5px 5px 0 var(--ac2); }
body.theme-arcade input:not([type="checkbox"]):not([type="radio"]), body.theme-arcade textarea, body.theme-arcade .subscribe-row input { border: 2px solid #fff; border-radius: 0; }
body.theme-arcade button, body.theme-arcade .button { border-radius: 0; text-transform: uppercase; letter-spacing: .1em; box-shadow: 3px 3px 0 var(--ac2); font-family: var(--arc); }
body.theme-arcade .reactions button { border: 2px solid #fff; }
body.theme-arcade .post-tags a { border: 2px solid var(--ac2); border-radius: 0; color: var(--ac2); }
body.theme-arcade .pager a { border: 2px solid #fff; border-radius: 0; }
@media (max-width: 40rem) { body.theme-arcade { font-size: .95rem; } body.theme-arcade .prose { font-size: .98rem; } }

/* ==========================================================================
   8. TIDE  a bright sea over clean paper
   ========================================================================== */
body.theme-tide {
  --ac: var(--t-accent-ink, #0f7f8c); --sea: var(--t-accent, #19a7b8);
  --paper: #f4fbfa; --card: #fff; --ink: #24424a; --muted: #6b8a90; --rule: #d5e9e7; --soft: #e9f5f4;
  --field: #fff; --code-bg: #e4f1f0; --block-bg: #e9f5f4; --hi: #0e2a31; --on-ac: #fff;
  --serif: var(--sys); --sans: var(--sys); --display: var(--sys); --rad: 14px;
  background: #f4fbfa; font: 400 1.06rem/1.72 var(--sys);
}
@keyframes td-wave { to { background-position-x: 48px; } }
/* The sea: a band of colour behind the name, with two lines of waves rolling along its lower edge. */
body.theme-tide .blog-head:not(.compact) { margin: .6rem 0 1.8rem; padding: 1.9rem 1.6rem 2.9rem; border-radius: 22px 22px 0 0; background: linear-gradient(var(--sea), color-mix(in srgb, var(--sea) 72%, #06323c)); color: #fff; overflow: hidden; }
body.theme-tide .blog-head:not(.compact)::before, body.theme-tide .blog-head:not(.compact)::after, body.theme-tide .post-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 14px; pointer-events: none;
  background: radial-gradient(24px 14px at 50% 100%, var(--paper) 97%, transparent) 0 0 / 48px 14px repeat-x; animation: td-wave 4s linear infinite;
}
body.theme-tide .blog-head:not(.compact)::before { bottom: 6px; opacity: .45; animation-duration: 6.5s; animation-direction: reverse; }
body.theme-tide .blog-head:not(.compact) :is(.blog-title, .blog-handle, .blog-bio, .word-count) { color: #fff; text-shadow: 0 1px 2px rgb(0 40 50 / .3); }
body.theme-tide .blog-title { font: 650 clamp(2.1rem, 6.4vw, 3.1rem)/1.06 var(--sys); letter-spacing: -.03em; }
body.theme-tide .blog-head:not(.compact) .avatar { box-shadow: 0 0 0 3px rgb(255 255 255 / .85); background: rgb(255 255 255 / .2); }
body.theme-tide .blog-head:not(.compact) .avatar-initial { color: #fff; }
body.theme-tide .blog-head:not(.compact) .blog-head-foot { border-top-color: rgb(255 255 255 / .3); }
body.theme-tide .blog-head:not(.compact) .blog-nav a { color: rgb(255 255 255 / .85); }
body.theme-tide .blog-head:not(.compact) .blog-nav a:first-child, body.theme-tide .blog-head:not(.compact) .blog-nav a:hover { color: #fff; background: rgb(255 255 255 / .2); }
body.theme-tide .blog-head:not(.compact) .blog-search input { border-color: rgb(255 255 255 / .4); background: rgb(255 255 255 / .18); color: #fff; }
body.theme-tide .blog-head:not(.compact) .blog-search input::placeholder { color: rgb(255 255 255 / .8); }
body.theme-tide .blog-head:not(.compact) .profile-links a { background: rgb(255 255 255 / .18); border-color: rgb(255 255 255 / .35); color: #fff; }
body.theme-tide .blog-head.compact { border-bottom: 2px solid var(--sea); }
body.theme-tide .post-preview { box-shadow: 0 .5rem 1.4rem rgb(15 127 140 / .07); transition: transform .2s, box-shadow .2s; }
body.theme-tide .post-preview:hover { transform: translateY(-2px); box-shadow: 0 .9rem 2rem rgb(15 127 140 / .14); }
body.theme-tide .preview-title { font-weight: 650; letter-spacing: -.015em; }
body.theme-tide .post-meta time { color: var(--ac); }
/* A post's title rides a strip of the same sea. */
body.theme-tide .post-head { position: relative; margin: 0 0 1.8rem; padding: 1.7rem 1.5rem 2.4rem; border-radius: 18px 18px 0 0; background: linear-gradient(var(--sea), color-mix(in srgb, var(--sea) 72%, #06323c)); overflow: hidden; }
body.theme-tide .post-head h1 { color: #fff; font-weight: 650; letter-spacing: -.03em; text-shadow: 0 1px 2px rgb(0 40 50 / .3); }
body.theme-tide .post-head .post-meta, body.theme-tide .post-head .post-meta time { color: rgb(255 255 255 / .9); }
body.theme-tide .prose blockquote { background: var(--soft); }
body.theme-tide button, body.theme-tide .button { border-radius: 999px; }
@media (max-width: 40rem) {
  body.theme-tide .blog-head:not(.compact) { padding: 1.4rem 1.1rem 2.6rem; border-radius: 18px 18px 0 0; }
  body.theme-tide .post-head { padding: 1.3rem 1.1rem 2.2rem; }
  body.theme-tide .post-preview:hover { transform: none; }
}
/* Tide at night: dark water, the same waves. */
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-mode="light"])) body.theme-tide { --ac: var(--t-accent, #5fd4e2); --sea: color-mix(in srgb, var(--t-accent, #19a7b8) 62%, #04222a); --paper: #0b1a1e; --card: #11252a; --ink: #c4d9dc; --muted: #7d9ba1; --rule: #1f3a40; --soft: #11252a; --field: #11252a; --code-bg: #183036; --block-bg: #081417; --hi: #eef9fa; --on-ac: #062025; background: #0b1a1e; color-scheme: dark; }
}
:where(:root[data-mode="dark"]) body.theme-tide { --ac: var(--t-accent, #5fd4e2); --sea: color-mix(in srgb, var(--t-accent, #19a7b8) 62%, #04222a); --paper: #0b1a1e; --card: #11252a; --ink: #c4d9dc; --muted: #7d9ba1; --rule: #1f3a40; --soft: #11252a; --field: #11252a; --code-bg: #183036; --block-bg: #081417; --hi: #eef9fa; --on-ac: #062025; background: #0b1a1e; color-scheme: dark; }

/* ==========================================================================
   9. GLITCH  black and red; a signal that slips
   ========================================================================== */
body.theme-glitch {
  --ac: var(--t-accent, #e5252a);
  --paper: #09090a; --card: #101012; --ink: #b9b9bd; --muted: #6e6e75; --rule: #232327; --soft: #101012;
  --field: #101012; --code-bg: #1a1a1d; --block-bg: #050506; --hi: #f4f4f5; --on-ac: #fff;
  --serif: var(--code); --sans: var(--code); --display: var(--code); --rad: 0px; --measure: 42rem;
  color-scheme: dark; background: #09090a; font: 400 .98rem/1.72 var(--code); font-variant-ligatures: none; counter-reset: file;
}
/* Scan lines over everything, and a band of interference that crosses the screen now and then. */
body.theme-glitch::before { content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 2px, rgb(0 0 0 / .2) 2px 3px); }
body.theme-glitch::after { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 9vh; z-index: 41; pointer-events: none; background: linear-gradient(transparent, color-mix(in srgb, var(--ac) 9%, transparent) 40%, rgb(255 255 255 / .05) 50%, transparent); transform: translateY(-12vh); animation: gl-band 7s linear infinite; }
@keyframes gl-band { 0%, 62% { transform: translateY(-12vh); } 100% { transform: translateY(112vh); } }
/* The slip: most of the time the words sit still; twice in a cycle they split into red and blue and jump. */
@keyframes gl-slip {
  0%, 86%, 100% { text-shadow: none; transform: none; clip-path: none; }
  87% { text-shadow: -3px 0 var(--ac), 3px 0 #29d9ff; transform: translateX(3px); clip-path: inset(0 0 58% 0); }
  88% { text-shadow: 3px 0 var(--ac), -3px 0 #29d9ff; transform: translateX(-4px); clip-path: inset(42% 0 0 0); }
  89% { text-shadow: -2px 0 var(--ac), 2px 0 #29d9ff; transform: translateX(2px) skewX(-6deg); clip-path: inset(18% 0 30% 0); }
  90% { text-shadow: none; transform: none; clip-path: none; }
  95% { text-shadow: 2px 0 var(--ac), -2px 0 #29d9ff; transform: translateX(-2px); }
  96% { text-shadow: none; transform: none; }
}
@keyframes gl-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
body.theme-glitch .topbar .brand { text-transform: lowercase; letter-spacing: .04em; }
body.theme-glitch .topbar .brand::before { content: "■ "; color: var(--ac); }
body.theme-glitch .topnav .nav-cta { border-radius: 0; border-color: var(--ac); }
body.theme-glitch .blog-head:not(.compact) { margin: 1.4rem 0 1.6rem; }
body.theme-glitch .blog-head:not(.compact)::before { content: "> signal acquired: " var(--t-where); display: block; margin-bottom: 1.1rem; color: var(--ac); font-size: .8rem; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: clip; animation: gl-type 1.4s steps(34) both; }
body.theme-glitch .blog-title, body.theme-glitch .post-head h1 { text-transform: lowercase; font-weight: 800; letter-spacing: -.02em; animation: gl-slip 6s steps(1) infinite; }
body.theme-glitch .blog-title { font-size: clamp(2rem, 7vw, 3.3rem); line-height: 1.05; }
body.theme-glitch .blog-title::after { content: "_"; color: var(--ac); animation: gl-cursor 1s steps(1) infinite; }
@keyframes gl-cursor { 50% { opacity: 0; } }
body.theme-glitch .avatar { border-radius: 0; filter: grayscale(1) contrast(1.15); box-shadow: 0 0 0 1px var(--ac); }
body.theme-glitch .blog-handle { color: var(--ac); }
body.theme-glitch .blog-nav a { border-radius: 0; text-transform: lowercase; }
body.theme-glitch .blog-nav a::before { content: "/"; color: var(--muted); }
body.theme-glitch .blog-nav a:first-child, body.theme-glitch .blog-nav a:hover { background: none; color: var(--ac); }
body.theme-glitch .blog-search input { border-radius: 0; }
body.theme-glitch .post-list { gap: .7rem; }
body.theme-glitch .post-preview { counter-increment: file; padding: 1rem 1.15rem .95rem; border: 1px solid var(--rule); border-left: 2px solid var(--ac); transition: background .15s, box-shadow .15s; animation: lv-rise .4s both; }
body.theme-glitch .post-preview:nth-child(2) { animation-delay: .08s; } body.theme-glitch .post-preview:nth-child(3) { animation-delay: .16s; } body.theme-glitch .post-preview:nth-child(n+4) { animation-delay: .24s; }
body.theme-glitch .post-preview::before { content: "file_" counter(file, decimal-leading-zero) ".log"; display: block; margin-bottom: .3rem; color: var(--muted); font-size: .72rem; letter-spacing: .06em; }
body.theme-glitch .post-preview:hover { background: #151517; box-shadow: -6px 0 1.4rem -6px var(--ac); }
body.theme-glitch .post-preview:hover .preview-title { animation: gl-slip .9s steps(1) infinite; animation-delay: -.75s; }
body.theme-glitch .preview-title { font: 700 1.14rem/1.3 var(--code); text-transform: lowercase; }
body.theme-glitch .post-meta { font-size: .74rem; letter-spacing: .04em; }
body.theme-glitch .post-meta time { color: var(--ac); }
body.theme-glitch .preview-body { font-size: .9rem; -webkit-line-clamp: 2; }
body.theme-glitch .post-head::before { content: "> open " var(--t-user) "/post"; display: block; margin-bottom: .9rem; color: var(--ac); font-size: .8rem; white-space: nowrap; overflow: hidden; animation: gl-type 1s steps(22) both; }
body.theme-glitch .post-head h1 { font-size: clamp(1.8rem, 6.2vw, 2.8rem); line-height: 1.1; }
body.theme-glitch .prose { font: 400 1.02rem/1.85 var(--code); }
body.theme-glitch .prose h2, body.theme-glitch .prose h3 { text-transform: lowercase; font-size: 1.15rem; }
body.theme-glitch .prose h2::before, body.theme-glitch .prose h3::before { content: "## "; color: var(--ac); }
body.theme-glitch .prose blockquote { border-left: 2px solid var(--ac); background: var(--card); color: var(--hi); }
/* Marked words are blacked out in red until the reader points at them. */
body.theme-glitch .prose mark { background: var(--ac); color: var(--ac); border-radius: 0; transition: color .15s, background .15s; }
body.theme-glitch .prose mark:hover, body.theme-glitch .prose mark:active { background: color-mix(in srgb, var(--ac) 25%, transparent); color: var(--hi); }
body.theme-glitch .prose img, body.theme-glitch .prose video { border: 1px solid var(--rule); filter: contrast(1.05) saturate(.85); }
body.theme-glitch .post-tags a { border-radius: 0; }
body.theme-glitch button, body.theme-glitch .button { border-radius: 0; text-transform: lowercase; letter-spacing: .04em; }
body.theme-glitch .reactions button { border-radius: 0; }
body.theme-glitch .pager a { border-radius: 0; }
@media (max-width: 40rem) {
  body.theme-glitch { font-size: .94rem; }
  body.theme-glitch .blog-head:not(.compact)::before, body.theme-glitch .post-head::before { font-size: .72rem; }
  body.theme-glitch .prose { font-size: .97rem; }
}
