/* Palette — Catppuccin Mocha (committed site theme).
   Every color on the site derives from these tokens; change them here to
   re-theme the whole site. Mocha is a dark theme, so the site commits to a
   single dark palette (no light-mode media query). */
:root {
  color-scheme: dark;

  --bg: #1e1e2e;         /* base */
  --rail-bg: #181825;    /* mantle */
  --card-bg: #313244;    /* surface0 */
  --ink: #cdd6f4;        /* text */
  --accent: #89b4fa;     /* blue */
  --accent-2: #fab387;   /* peach */
  --accent-3: #a6e3a1;   /* green */
  --rule: #45475a;       /* surface1 */
  --muted: #a6adc8;      /* subtext0 */
  --focus: #89b4fa;      /* blue */

  /* Diagram surface: a shade darker than --bg so inlined D2 diagrams read as a
     distinct panel. */
  --diagram-bg: #11111b; /* crust */
  /* Dimming layer behind the enlarge-diagram modal. */
  --overlay-bg: rgba(17, 17, 27, 0.76);
}
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, figure, dl, dd, ol, ul {
  margin: 0;
  padding: 0;
}

img, svg {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --font-body: "Public Sans", ui-sans-serif, "Segoe UI", Arial, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.15rem; font-weight: 800; letter-spacing: -0.015em; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
h5, h6 { font-size: 0.95rem; }

p {
  margin: 0 0 1.1em;
}

.content-cell > *:first-child {
  margin-top: 0;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-decoration-thickness: 0.06em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

strong { font-weight: 700; }
em { font-style: italic; }

blockquote {
  margin: 1.4em 0;
  padding: 0.2em 0 0.2em 1.1em;
  border-left: 3px solid var(--rule);
  color: var(--muted);
  font-style: italic;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.4em 0;
}
.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem 1.75rem 4rem;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 240px;
  column-gap: 1.75rem;
  align-items: start;
}
.content-cell { max-width: 620px; }
@media (max-width: 620px) {
  .article-grid { grid-template-columns: 1fr; }
}

/* The right column: a quiet rail holding margin items. */
.margin-cell {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
  padding-left: 0.9rem;
  border-left: 1px solid var(--rule);
}
.margin-cell:empty {
  border-left: 0;
}

/* When collapsed to one column, margin items stack under their content and
   lose the rail treatment so they read inline. */
@media (max-width: 620px) {
  .margin-cell {
    padding-left: 0;
    border-left: 0;
    margin: 0.4rem 0 1.4rem;
  }
}

/* Article header (title + subtitle) sits above the grid. */
.article-header {
  max-width: 620px;
  margin-bottom: 2rem;
}
.article-header .subtitle {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.4;
  margin-top: 0.4rem;
}

/* "Related on this site" block. */
.related {
  max-width: 620px;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.related h2 {
  font-size: 1.1rem;
  margin-top: 0;
}
.related .related-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
}

/* Homepage "about me" blurb (homepage only). */
.home-intro {
  max-width: 620px;
  margin: 0 0 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}
.home-intro p {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink);
}

/* ---- Homepage / tag-page essay list ---- */
.essay-list {
  list-style: none;
  max-width: 620px;
  display: grid;
  gap: 1.4rem;
}
.essay-item {
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
}
.essay-item:last-child {
  border-bottom: 0;
}
.essay-link {
  text-decoration: none;
  display: block;
}
.essay-link:hover .essay-title {
  color: var(--accent);
  text-decoration: underline;
}
.essay-title {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.essay-subtitle {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.15rem;
}
.essay-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.essay-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.essay-meta .tag {
  display: inline-block;
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.3em 0.55em;
  border-radius: 999px;
  background: var(--rail-bg);
  border: 1px solid var(--rule);
  color: var(--muted);
}

/* ---- Timeline (used inside content) ---- */
.timeline {
  list-style: none;
  margin: 1.6em 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--rule);
}
.timeline li {
  position: relative;
  padding: 0 0 1.3em 0.75rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -1.7rem;
  top: 0.45em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline .tl-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}
.timeline .tl-title {
  font-weight: 700;
  color: var(--ink);
}
.timeline .tl-desc {
  margin: 0.2em 0 0;
  color: var(--ink);
}

/* ---- Dialogue (used inside content) ---- */
.dialogue {
  margin: 1.6em 0;
  display: grid;
  gap: 0.9rem;
}
.dialogue .line {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: var(--rail-bg);
  border: 1px solid var(--rule);
}
.dialogue .line .speaker {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.dialogue .line p {
  margin: 0;
  color: var(--ink);
}
.dialogue .speaker-a {
  border-left: 3px solid var(--accent);
}
.dialogue .speaker-a .speaker {
  color: var(--accent);
}
.dialogue .speaker-b {
  border-left: 3px solid var(--accent-3);
  background: var(--card-bg);
}
.dialogue .speaker-b .speaker {
  color: var(--accent-3);
}
.site-header {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
}
.site-header .brand {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-header .brand:hover {
  color: var(--accent);
}
.site-nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.92rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer {
  max-width: 1040px;
  margin: 3rem auto 0;
  padding: 1.5rem 1.75rem 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--muted);
}
.site-footer a:hover {
  color: var(--accent);
}
.margin-card {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.4rem;
  color: var(--ink);
}

.margin-card .crumb {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
  line-height: 1.4;
}
.margin-card .crumb a {
  color: var(--muted);
  text-decoration: none;
}
.margin-card .crumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.margin-card dl {
  margin: 0;
}
.margin-card dl .row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.25rem 0;
  border-top: 1px solid var(--rule);
}
.margin-card dl .row:first-child {
  border-top: 0;
}
.margin-card dl dt {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.margin-card dl dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  text-align: right;
}

.margin-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.8rem;
}
.margin-card .tags .tag {
  display: inline-block;
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.3em 0.55em;
  border-radius: 999px;
  background: var(--rail-bg);
  border: 1px solid var(--rule);
  color: var(--muted);
}
.margin-note {
  border-left: 3px solid var(--accent-3);
  padding-left: 0.75rem;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.margin-note .kind {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.margin-citation {
  border-left: 3px solid var(--accent-2);
  padding-left: 0.75rem;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.margin-citation .kind {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  /* accent-2 only passes AA-large; this label is bold decorative text.
     Kept on muted for guaranteed body-size contrast, matching the note. */
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.margin-citation cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.85rem;
}

.margin-citation .src {
  color: var(--muted);
  font-style: italic;
}

.margin-citation a {
  color: var(--accent);
  word-break: break-word;
}
.margin-chip {
  display: block;
  text-decoration: none;
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  margin-bottom: 1.4rem;
  color: var(--ink);
  line-height: 1.4;
}
.margin-chip:hover {
  border-color: var(--accent);
}
.margin-chip:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.margin-chip .domain {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: lowercase;
  margin-bottom: 0.35rem;
}

.margin-chip .dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

.margin-chip .chip-title {
  display: block;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.86rem;
  margin-bottom: 0.15rem;
}

.margin-chip .chip-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Internal variant: same-site link, tinted with accent-3. */
.margin-chip.internal .dot {
  background: var(--accent-3);
}
.margin-chip.internal:hover {
  border-color: var(--accent-3);
}
/* Diagrams (inlined D2 SVGs) and generic figures.
   Colors come entirely from tokens.css so the palette stays swappable. */

figure {
  margin: 1.8em 0;
  text-align: center;
}

figure img {
  max-width: 100%;
  height: auto;
}

figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}

/* ---- D2 diagram thumbnail --------------------------------------------- */

.diagram {
  margin: 1.8em 0;
}

/* The clickable thumbnail: a bounded panel with the darker diagram surface. */
.diagram-thumb {
  display: inline-block;
  max-width: 380px;
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--diagram-bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  cursor: zoom-in;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.diagram-thumb:hover,
.diagram-thumb:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  outline: none;
}

.diagram-thumb svg {
  width: 100%;
  height: auto;
  max-width: 100%;
  color: var(--ink); /* diagram strokes/text that use currentColor follow theme */
}

/* Override the white background rectangle D2 bakes into the SVG (class fill-N7)
   so it matches our darker diagram surface instead of a bright-white cutout. */
.diagram svg .fill-N7,
.diagram-modal svg .fill-N7 {
  fill: var(--diagram-bg);
}

.diagram-hint {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- CSS-only modal via a hidden checkbox (no JavaScript) -------------- */
/* A checkbox toggle is used instead of :target so opening/closing the modal
   never changes the URL fragment and therefore never moves the reader's
   scroll position. */

/* The hidden toggle is fixed to the top-left of the viewport rather than
   absolutely positioned within the article. When a label is clicked, focus
   moves to this checkbox and the browser scrolls it into view; a fixed element
   already in the viewport makes that scroll a no-op, so the background never
   jumps. */
.diagram-toggle {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Lock background scroll while any diagram modal is open, so the page behind
   the overlay can't scroll. Zero JavaScript. */
html:has(.diagram-toggle:checked) {
  overflow: hidden;
}

.diagram-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: clamp(1rem, 5vw, 3rem);
  align-items: center;
  justify-content: center;
  overflow: auto; /* the modal itself scrolls if the enlarged diagram is tall */
}

.diagram-toggle:checked ~ .diagram-modal {
  display: flex;
}

/* Show a visible focus ring on the thumbnail when the (hidden) checkbox is
   focused via keyboard, so the control remains keyboard-operable. */
.diagram-toggle:focus-visible ~ .diagram-thumb {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.diagram-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay-bg);
  cursor: zoom-out;
}

.diagram-modal-body {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  overflow: auto;
  padding: 1.5rem;
  background: var(--diagram-bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.diagram-modal-body svg {
  width: 100%;
  height: auto;
  max-width: 100%;
  color: var(--ink);
}

.diagram-modal-close {
  position: absolute;
  top: 0.4rem;
  right: 0.7rem;
  font-size: 1.6rem;
  line-height: 1;
  text-decoration: none;
  color: var(--muted);
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
  cursor: pointer;
}

.diagram-modal-close:hover,
.diagram-modal-close:focus-visible {
  color: var(--ink);
  outline: 2px solid var(--focus);
}

@media (prefers-reduced-motion: reduce) {
  .diagram-thumb {
    transition: none;
  }
}
pre, pre.chroma {
  background: var(--rail-bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 1.5em 0;
}

pre code {
  font-family: inherit;
  font-size: inherit;
  background: none;
  padding: 0;
  color: inherit;
}

/* Inline code (not inside a pre). */
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--rail-bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.08em 0.35em;
  color: var(--ink);
}

/* ---- Chroma token colors ---- */

/* Keywords (k-family) except types -> accent */
.chroma .k,
.chroma .kd,
.chroma .kn,
.chroma .kp,
.chroma .kr,
.chroma .kc {
  color: var(--accent);
}

/* Types -> accent-3 */
.chroma .kt {
  color: var(--accent-3);
}

/* String literals (s-family) -> accent-2 */
.chroma .s,
.chroma .s1,
.chroma .s2,
.chroma .sb,
.chroma .sd {
  color: var(--accent-2);
}

/* Comments (c-family) -> muted italic */
.chroma .c,
.chroma .c1,
.chroma .cm,
.chroma .cs {
  color: var(--muted);
  font-style: italic;
}

/* Numbers (m-family) -> accent-2 */
.chroma .m,
.chroma .mi,
.chroma .mf {
  color: var(--accent-2);
}

/* Function / identifier names */
.chroma .nf {
  color: var(--ink);
  font-weight: 700;
}
.chroma .n,
.chroma .na,
.chroma .nb {
  color: var(--ink);
}
/* Books dashboard: hero stat, charts, read-frequency buckets, collapsed table.
   All color via tokens (Mocha). */

.books-dash {
  max-width: 820px;
}

/* ---- Hero number ------------------------------------------------------ */
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  gap: 0.15rem;
  margin: 0.5rem 0 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}
.hero-number {
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.hero-label {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
}
.hero-sub {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---- Charts ----------------------------------------------------------- */
.books-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.books-chart {
  margin: 0;
  padding: 1.1rem 1.2rem 1.3rem;
  background: var(--diagram-bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow-x: auto;
}
.books-chart .chart-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.books-chart svg {
  max-width: 100%;
  height: auto;
}

/* ---- Featured book (re-picked each build) ---------------------------- */
.featured {
  margin-bottom: 2.5rem;
  padding: 1.4rem 1.6rem;
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent-2);
  border-radius: 12px;
}
.featured-kind {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin-bottom: 0.5rem;
}
.featured-title {
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 0.25rem;
  color: var(--ink);
  text-wrap: balance;
}
.featured-meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.featured-genre {
  color: var(--accent-3);
}
.featured-notes {
  margin: 0.9rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
}

/* ---- Collapsed full table -------------------------------------------- */
.books-table-wrap {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}
.books-table-wrap > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
  padding: 0.4rem 0;
  list-style: none;
}
.books-table-wrap > summary::-webkit-details-marker {
  display: none;
}
.books-table-wrap > summary::before {
  content: "▸ ";
  color: var(--muted);
}
.books-table-wrap[open] > summary::before {
  content: "▾ ";
}
.books-table-wrap > summary:hover {
  text-decoration: underline;
}
.table-scroll {
  margin-top: 1rem;
  max-height: 70vh;
  overflow: auto;
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.books-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.books-table thead th {
  position: sticky;
  top: 0;
  background: var(--rail-bg);
  text-align: left;
  padding: 0.6rem 0.9rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}
.books-table td {
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.books-table tbody tr:last-child td {
  border-bottom: none;
}
.books-table tbody tr:hover td {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.bt-title {
  color: var(--ink);
  font-weight: 500;
  min-width: 11rem;
}
.bt-author,
.bt-genre {
  color: var(--muted);
  white-space: nowrap;
}
.bt-notes {
  color: var(--muted);
  min-width: 18rem;
  line-height: 1.45;
}
@media print {
  .site-header,
  .site-nav,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .page {
    max-width: none;
    padding: 0;
  }

  /* Single column: drop the margin rail. */
  .article-grid {
    display: block;
  }
  .content-cell {
    max-width: none;
  }
  .margin-cell {
    border-left: 0;
    padding-left: 0;
    color: #333;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  /* Show the destination of external links. */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
  }

  pre, pre.chroma, code {
    background: #f4f4f4;
    border: 1px solid #ccc;
    color: #000;
  }

  .margin-card,
  .margin-chip {
    border: 1px solid #ccc;
    background: #fff;
  }
}
