:root {
  --bg: #010604;
  --screen: #02140b;
  --fg: #4eff7d;
  --bright: #c2ffd2;
  --mid: #2dbb58;
  --dim: #156630;
  --rule: #0d3d1e;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  color: var(--fg);
  font: 16px/1.6 ui-monospace, "Menlo", "Consolas", "Courier New", monospace;
  min-height: 100vh;
  display: flex;
}
.crt {
  flex: 1;
  margin: clamp(.5rem, 2vw, 1.5rem);
  border-radius: clamp(10px, 2vw, 22px);
  background-color: var(--screen);
  background-image:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 90% 80% at 50% 30%, rgba(78,255,125,.06), transparent 70%);
  background-attachment: fixed;
  box-shadow:
    inset 0 0 140px rgba(0,0,0,.9),
    inset 0 0 20px rgba(78,255,125,.08),
    0 0 0 1px #0a2614,
    0 0 60px rgba(78,255,125,.05);
  position: relative;
  overflow: hidden;
}
/* random horizontal tear/distortion — driven by JS */
.crt.distort .wrap {
  animation: crtdistort .38s steps(1) 1;
}
@keyframes crtdistort {
  0%   { transform: translateX(0); filter: brightness(1); }
  18%  { transform: translateX(-9px) skewX(-1.2deg); filter: brightness(1.18) contrast(1.1); }
  32%  { transform: translateX(7px) skewX(.8deg); filter: brightness(.8); }
  47%  { transform: translateX(-4px); filter: brightness(1.1); }
  64%  { transform: translateX(2px); filter: brightness(.92); }
  100% { transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) { .crt.distort .wrap { animation: none } }
/* random flicker — driven by JS */
.crt.flick {
  animation: crtflick .22s steps(3) 1;
}
.crt.flick-hard {
  animation: crtflickhard .5s steps(5) 1;
}
@keyframes crtflick {
  0%   { opacity: 1;   filter: brightness(1); }
  33%  { opacity: .84; filter: brightness(1.15); }
  66%  { opacity: .96; filter: brightness(.93); }
  100% { opacity: 1;   filter: brightness(1); }
}
@keyframes crtflickhard {
  0%   { opacity: 1;   filter: brightness(1); }
  20%  { opacity: .6;  filter: brightness(1.3); }
  40%  { opacity: .9;  filter: brightness(.85); }
  60%  { opacity: .75; filter: brightness(1.1); }
  80%  { opacity: .95; filter: brightness(.95); }
  100% { opacity: 1;   filter: brightness(1); }
}

/* stronger flicker on small screens — subtle blips get lost on phones */
@media (max-width: 540px) {
  @keyframes crtflick {
    0%   { opacity: 1;   filter: brightness(1); }
    33%  { opacity: .65; filter: brightness(1.3); }
    66%  { opacity: .9;  filter: brightness(.85); }
    100% { opacity: 1;   filter: brightness(1); }
  }
  @keyframes crtflickhard {
    0%   { opacity: 1;   filter: brightness(1); }
    20%  { opacity: .4;  filter: brightness(1.5); }
    40%  { opacity: .85; filter: brightness(.75); }
    60%  { opacity: .55; filter: brightness(1.25); }
    80%  { opacity: .9;  filter: brightness(.9); }
    100% { opacity: 1;   filter: brightness(1); }
  }
}

.crt::after {
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 115% 95% at 50% 50%, transparent 60%, rgba(0,0,0,.55) 100%);
  pointer-events: none; z-index: 51;
}
@media (prefers-reduced-motion: reduce) { .crt.flick, .crt.flick-hard { animation: none } }
.wrap {
  max-width: 78ch;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vh, 2.5rem) clamp(1.25rem, 5vw, 3rem) 2.5rem;
  position: relative;
  z-index: 1;
}
.sysbar {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border: 1px solid var(--mid);
  color: var(--bright);
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding: .45rem .85rem;
  margin-bottom: 1.25rem;
  text-shadow: 0 0 8px rgba(78,255,125,.5);
}
.sysbar .r { color: var(--mid); }
nav.menu-bar {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  margin-bottom: clamp(2.25rem, 6vh, 3.5rem);
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
nav.menu-bar a { color: var(--fg); text-decoration: none; padding: .15rem .45rem; }
nav.menu-bar a .num { color: var(--dim); margin-right: .6ch; }
nav.menu-bar a:hover { background: var(--fg); color: var(--screen); box-shadow: 0 0 22px rgba(78,255,125,.5); }
nav.menu-bar a:hover .num { color: var(--screen); }
nav.menu-bar a.here { background: var(--fg); color: var(--screen); font-weight: 700; }
nav.menu-bar a.here .num { color: var(--screen); }

h1.page-title {
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.02;
  margin: 0 0 1.25rem;
  color: var(--bright);
  text-transform: uppercase;
  text-shadow:
    0 0 6px rgba(78,255,125,.8),
    0 0 24px rgba(78,255,125,.4),
    0 0 70px rgba(78,255,125,.18);
}
.lead {
  margin: 0 0 clamp(2.25rem, 6vh, 3.5rem);
  font-size: 1rem;
  max-width: 56ch;
  line-height: 1.8;
  letter-spacing: .04em;
}
.cur::after { content: "█"; margin-left: .25ch; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0 } }

h2 {
  color: var(--mid);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin: clamp(2.25rem, 6vh, 3rem) 0 .85rem;
  display: flex; align-items: center; gap: 1rem;
}
h2::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
p { margin: 0 0 1rem; max-width: 62ch; line-height: 1.8; letter-spacing: .02em; }
strong { color: var(--bright); font-weight: 700; }
em { color: var(--bright); font-style: italic; }
a { color: var(--bright); text-decoration: none; border-bottom: 1px solid var(--mid); }
a:hover { background: var(--fg); color: var(--screen); border-bottom-color: transparent; }
.muted { color: var(--dim); }

.panel {
  border: 1px solid var(--rule);
  padding: 1.25rem 1.25rem 1.1rem;
  position: relative;
  margin: 1.75rem 0;
}
.panel > .tag {
  position: absolute;
  top: -.7em; left: .85rem;
  background: var(--screen);
  padding: 0 .6ch;
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--mid);
}
.rows .row { display: flex; gap: 1ch; font-size: .85rem; margin-bottom: .65rem; flex-wrap: wrap; letter-spacing: .04em; }
.rows .row:last-child { margin-bottom: 0; }
.rows .k { color: var(--dim); min-width: 13ch; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; padding-top: .1em; }
.rows .v { color: var(--bright); }

footer {
  border-top: 1px solid var(--rule);
  margin-top: clamp(2.5rem, 7vh, 4rem);
  padding-top: 1rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  color: var(--dim); font-size: .7rem; letter-spacing: .25em; text-transform: uppercase;
}




/* page paint-in: content reveals top-to-bottom in scan steps */
.crt.booting .wrap {
  animation: scanreveal 1.9s steps(64, end) .25s backwards;
}
@keyframes scanreveal {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0% 0); }
}
.wrap::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 2px;
  transform: translateY(-100%);
  background: rgba(150,255,180,.65);
  box-shadow: 0 0 10px rgba(78,255,125,.8), 0 0 30px rgba(78,255,125,.35);
  opacity: 0;
  pointer-events: none;
}
.crt.booting .wrap::after {
  animation: scanline 1.9s steps(64, end) .25s forwards;
}
@keyframes scanline {
  from { top: 0; opacity: 1; }
  96%  { opacity: 1; }
  to   { top: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .crt.booting .wrap { clip-path: none; animation: none; }
  .crt.booting .wrap::after { display: none; }
}

/* page exit — reverse scan wipe (with a tear) before navigating */
.crt.leaving .wrap {
  animation: scanout .55s steps(48, end) forwards;
}
@keyframes scanout {
  0%   { clip-path: inset(0 0 0 0); transform: translateX(0); }
  10%  { transform: translateX(-7px) skewX(-.8deg); filter: brightness(1.25); }
  22%  { transform: translateX(5px); filter: brightness(.85); }
  38%  { transform: translateX(0); filter: none; }
  100% { clip-path: inset(0 0 100% 0); }
}
.crt.leaving .wrap::after {
  animation: scanlineup .55s steps(48, end) forwards;
}
@keyframes scanlineup {
  from { top: 100%; opacity: 1; }
  96%  { opacity: 1; }
  to   { top: 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .crt.leaving .wrap { animation: none; }
  .crt.leaving .wrap::after { display: none; }
}

::selection { background: var(--fg); color: var(--screen); }

.bootseq {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mid);
}
.bootseq .line { display: block; overflow: hidden; white-space: nowrap; width: 0; margin-bottom: .35rem; }
.bootseq .line:last-child { margin-bottom: 0; }
.bootseq .line.t1 { animation: type 2.2s steps(34) .8s forwards; }
.bootseq .line.t2 { animation: type 2.3s steps(38) 3.7s forwards; }
.bootseq .line.t3 { animation: type 2.4s steps(40) 6.7s forwards; }
.bootseq .line.t4 { animation: type 2.3s steps(38) 9.8s forwards; }
.bootseq .line.t5 { animation: type 2.3s steps(38) 12.8s forwards; }
.bootseq .line.t6 { animation: type 1s steps(10) 15.8s forwards; color: var(--fg); }
@keyframes type { from { width: 0 } to { width: 100% } }
@media (prefers-reduced-motion: reduce) { .bootseq .line { width: 100%; animation: none; } }
.bootseq .ok { color: var(--fg); }
.bootseq .warn { color: var(--bright); }

.panels { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin: 0; }
@media (min-width: 720px) { .panels { grid-template-columns: 1.3fr 1fr; } }
.panels .panel { margin: 0; min-width: 0;}
.bootseq { overflow: hidden; max-width: 100%; }
@media (max-width: 540px) {
  .bootseq { font-size: .62rem; letter-spacing: .06em; }
}
.panel.wide { grid-column: 1 / -1; }
.navlist { list-style: none; margin: 0; padding: 0; }
.navlist li { margin-bottom: .55rem; }
.navlist li:last-child { margin-bottom: 0; }
.navlist a {
  color: var(--fg); text-decoration: none; border-bottom: none;
  font-size: .95rem; letter-spacing: .12em; text-transform: uppercase;
  display: inline-block; padding: .1rem .4rem .1rem 0;
}
.navlist a .num { color: var(--dim); margin-right: 1ch; }
.navlist a:hover { background: var(--fg); color: var(--screen); box-shadow: 0 0 22px rgba(78,255,125,.5); }
.navlist a:hover .num { color: var(--screen); }

/* book panel — clickable cover */
a.book-panel {
  display: block;
  padding: 0;
  border-bottom: 1px solid var(--rule);
  min-height: 200px;
}
a.book-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
  transition: opacity .2s;
}
a.book-panel:hover {
  background: transparent;
  border-color: var(--mid);
  box-shadow: 0 0 28px rgba(78,255,125,.25), inset 0 0 28px rgba(78,255,125,.08);
}
a.book-panel:hover img { opacity: 1; }
a.book-panel .book-cta {
  position: absolute;
  left: .85rem; bottom: .65rem;
  z-index: 2;
  color: var(--fg);
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0,0,0,.95), 0 1px 2px rgba(0,0,0,.9);
}
a.book-panel .tag { z-index: 2; }
@media (max-width: 540px) {
  nav.menu-bar .num { display: none; }
}

/* --- book page additions --- */
.scene {
  display: block;
  width: 100%;
  margin: clamp(1.75rem, 5vh, 2.5rem) 0;
  border: 1px solid var(--rule);
  background: #000;
  position: relative;
  overflow: hidden;
}
.scene img { display: block; width: 100%; height: auto; }
.scene .caption,
.scene figcaption {
  position: absolute; left: .85rem; bottom: .6rem;
  color: var(--mid); font-size: .7rem; letter-spacing: .25em; text-transform: uppercase;
  text-shadow: 0 0 6px rgba(0,0,0,.9);
  z-index: 2;
}
.by-line { color: var(--mid); letter-spacing: .25em; text-transform: uppercase; font-size: .75rem; margin-bottom: 1.5rem; }
.by-line .by-name { color: var(--fg); }
.boot-prompt { color: var(--fg); margin-top: 1.1rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.boot-prompt::before { content: "C:\\BOOK> "; color: var(--dim); }
.specs-type { max-width: 100%; min-width: 0; }
/* specs rows type in like the home page system check */
.specs-type .row,
.specs-type .boot-prompt {
  overflow: hidden;
  white-space: nowrap;
  flex-wrap: nowrap;
  width: 0;
}
@media (max-width: 540px) {
  .specs-type .row { font-size: .72rem; }
  .specs-type .row .k { min-width: 9ch; }
}
.specs-type .row.s1 { animation: type 1.9s steps(32) .8s forwards; }
.specs-type .row.s2 { animation: type 1.8s steps(28) 3.4s forwards; }
.specs-type .row.s3 { animation: type 1.6s steps(22) 5.9s forwards; }
.specs-type .row.s4 { animation: type 1.6s steps(22) 8.1s forwards; }
.specs-type .boot-prompt { animation: type 1.2s steps(15) 10.3s forwards; }
@keyframes type { from { width: 0 } to { width: 100% } }
@media (prefers-reduced-motion: reduce) {
  .specs-type .row, .specs-type .boot-prompt { width: 100%; animation: none; }
}
@media (max-width: 540px) {
  nav.menu-bar .num { display: none; }
}

/* --- home 'Currently' panel (was an inline style) --- */
.panel.wide .now { margin: 0; color: var(--bright); }

/* ===== blog index (Log) ===== */
/* log entries */
.entries { margin-top: 1.25rem; }
article.entry {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0 1.65rem;
}
.entries article.entry:last-child { border-bottom: 1px solid var(--rule); }
.entry-meta {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  font-size: .7rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--dim);
  margin-bottom: .6rem;
}
.entry-meta .id { color: var(--mid); }
.entry-meta .cat { margin-left: auto; }
article.entry h3 {
  margin: 0 0 .65rem;
  font-size: clamp(1.15rem, 3.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .03em;
  text-transform: uppercase;
}
article.entry h3 a {
  color: var(--bright);
  border-bottom: none;
  text-shadow: 0 0 6px rgba(78,255,125,.55), 0 0 22px rgba(78,255,125,.22);
}
article.entry h3 a:hover { background: var(--fg); color: var(--screen); text-shadow: none; }
article.entry p { margin: 0 0 .9rem; font-size: .95rem; }
a.more {
  font-size: .72rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--fg); border-bottom: none; padding: .1rem .35rem .1rem 0;
}
a.more:hover { background: var(--fg); color: var(--screen); box-shadow: 0 0 22px rgba(78,255,125,.5); }

/* archive */
ul.archive { list-style: none; margin: 0 0 .5rem; padding: 0; }
ul.archive li {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  padding: .55rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: .92rem;
}
ul.archive li:last-child { border-bottom: none; }
ul.archive .d {
  color: var(--dim);
  font-size: .75rem; letter-spacing: .12em;
  min-width: 11ch;
  padding-top: .2em;
}
ul.archive a { color: var(--fg); border-bottom: none; }
ul.archive a:hover { background: var(--fg); color: var(--screen); }
ul.archive .cat {
  margin-left: auto;
  color: var(--dim);
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  padding-top: .25em;
}
@media (max-width: 540px) {
  ul.archive .cat { display: none; }
  .entry-meta .cat { margin-left: 0; }
}

/* ===== books index ===== */
/* Large book cards: cover on the left, title + summary + open-link on the right.
   Shares the .entry-meta / .more / glowing-title tokens with the Log index. */
.books { margin-top: 1.25rem; }
article.book {
  display: flex;
  gap: clamp(1rem, 4vw, 2rem);
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0 1.85rem;
}
.books article.book:last-child { border-bottom: 1px solid var(--rule); }
.book-cover {
  flex: 0 0 auto;
  width: clamp(110px, 26vw, 170px);
  align-self: flex-start;
  display: block;
  border: 1px solid var(--rule);
  background: #000;
  line-height: 0;
}
.book-cover img { display: block; width: 100%; height: auto; }
.book-cover:hover { box-shadow: 0 0 22px rgba(78,255,125,.35); }
.book-body { flex: 1 1 auto; min-width: 0; }
article.book h3 {
  margin: 0 0 .7rem;
  font-size: clamp(1.2rem, 3.4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .03em;
  text-transform: uppercase;
}
article.book h3 a {
  color: var(--bright);
  border-bottom: none;
  text-shadow: 0 0 6px rgba(78,255,125,.55), 0 0 22px rgba(78,255,125,.22);
}
article.book h3 a:hover { background: var(--fg); color: var(--screen); text-shadow: none; }
.book-summary { margin: 0 0 1rem; font-size: 1rem; line-height: 1.6; }
@media (max-width: 540px) {
  article.book { flex-direction: column; }
  .book-cover { width: clamp(150px, 55vw, 220px); }
}

/* ===== blog post ===== */
/* post header */
.entry-meta {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  font-size: .7rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1rem;
}
.entry-meta .id { color: var(--mid); }
h1.post-title {
  font-size: clamp(1.7rem, 5.5vw, 2.9rem);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  color: var(--bright);
  text-transform: uppercase;
  text-shadow:
    0 0 6px rgba(78,255,125,.8),
    0 0 24px rgba(78,255,125,.4),
    0 0 70px rgba(78,255,125,.18);
}
.lead {
  margin: 0 0 clamp(2rem, 5vh, 3rem);
  font-size: 1rem;
  max-width: 56ch;
  line-height: 1.8;
  letter-spacing: .04em;
  color: var(--bright);
}
.cur::after { content: "█"; margin-left: .25ch; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0 } }

h2 {
  color: var(--mid);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin: clamp(2.25rem, 6vh, 3rem) 0 .85rem;
  display: flex; align-items: center; gap: 1rem;
}
h2::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
p { margin: 0 0 1rem; max-width: 62ch; line-height: 1.8; letter-spacing: .02em; }
strong { color: var(--bright); font-weight: 700; }
em { color: var(--bright); font-style: italic; }
a { color: var(--bright); text-decoration: none; border-bottom: 1px solid var(--mid); }
a:hover { background: var(--fg); color: var(--screen); border-bottom-color: transparent; }
.muted { color: var(--dim); }

blockquote {
  margin: 1.75rem 0;
  padding: .2rem 0 .2rem 1.5rem;
  border-left: 1px solid var(--mid);
  color: var(--bright);
  font-style: italic;
  max-width: 56ch;
}
blockquote p { margin: 0; }
blockquote cite {
  display: block;
  margin-top: .6rem;
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--dim);
}

/* code — the whole theme is monospace, so set code apart with a darker inset
   panel and a phosphor-green edge; long lines wrap instead of scrolling. */
pre {
  margin: 0 0 1rem;
  max-width: 100%;
  padding: 1rem 1.15rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--mid);
  color: var(--bright);
  font-size: .9rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
pre code { padding: 0; background: none; border: 0; color: inherit; font-size: inherit; }
code {
  padding: .05em .4em;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--bright);
  font-size: .9em;
}

/* image block (matches the old inline-styled blog <img>) */
.image { margin: 20px 0; }
.image img { display: block; max-width: 100%; height: auto; }
/* pull-quote block: neutralize the <figure> default margin so the inner
   <blockquote> keeps its own styling, matching a bare blockquote */
.pullquote { margin: 0; padding: 0; }

/* prev / next */
nav.post-nav {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  margin-top: clamp(2.5rem, 6vh, 3.5rem);
  padding-top: 1.25rem;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
}
nav.post-nav a { color: var(--fg); border-bottom: none; padding: .15rem .45rem; }
nav.post-nav a:hover { background: var(--fg); color: var(--screen); box-shadow: 0 0 22px rgba(78,255,125,.5); }
nav.post-nav .off { color: var(--dim); padding: .15rem .45rem; }

footer {
  border-top: 1px solid var(--rule);
  margin-top: clamp(2.5rem, 7vh, 4rem);
  padding-top: 1rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  color: var(--dim); font-size: .7rem; letter-spacing: .25em; text-transform: uppercase;
}


/* post extras: reading time, table of contents, tags, related */
.reading-time::before { content: "· "; }
nav.toc {
  border: 1px solid var(--rule); padding: 1rem 1.25rem; margin: 1.5rem 0;
  position: relative; max-width: 56ch;
}
nav.toc > .tag {
  position: absolute; top: -.7em; left: .85rem; background: var(--screen);
  padding: 0 .6ch; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mid);
}
nav.toc ul { list-style: none; margin: 0; padding: 0; }
nav.toc li { font-size: .85rem; margin: .3rem 0; }
nav.toc li.lvl3 { padding-left: 1.5rem; }
nav.toc a { color: var(--fg); }
.tags { margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags a {
  font-size: .72rem; letter-spacing: .12em; text-transform: lowercase;
  border: 1px solid var(--rule); padding: .15rem .6rem; color: var(--mid);
}
.tags a:hover { color: var(--bright); border-color: var(--mid); text-decoration: none; }
aside.related {
  border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-top: 1.25rem;
  position: relative;
}
aside.related > .tag { color: var(--mid); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; }
aside.related ul { list-style: none; margin: .75rem 0 0; padding: 0; }
aside.related li { margin: .35rem 0; }
