  :root {
    --bg: #ffffff;
    --ink: #0f1419;
    --muted: #58646f;
    --hairline: #e3e6e8;
    --accent: #2b4c7e;
    --southern: #8c3b2e;
    --northern: #2b4c7e;
    --abolitionist: #55631f;
    --political: #7a5a1e;
    --blackvoice: #5b3a6e;
    --diarist: #4e5d5a;
    --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
    --sans: -apple-system, 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #14171b; --ink: #e9e7e2; --muted: #8b95a1; --hairline: #2a2f36;
      --accent: #8fb0dc; --southern: #d99286; --northern: #8fb0dc;
      --abolitionist: #b5c26f; --political: #d1b06b; --blackvoice: #c39fd6; --diarist: #9db8b3;
    }
  }
  :root[data-theme="light"] {
    --bg: #ffffff; --ink: #0f1419; --muted: #58646f; --hairline: #e3e6e8;
    --accent: #2b4c7e; --southern: #8c3b2e; --northern: #2b4c7e;
    --abolitionist: #55631f; --political: #7a5a1e; --blackvoice: #5b3a6e; --diarist: #4e5d5a;
  }
  :root[data-theme="dark"] {
    --bg: #14171b; --ink: #e9e7e2; --muted: #8b95a1; --hairline: #2a2f36;
    --accent: #8fb0dc; --southern: #d99286; --northern: #8fb0dc;
    --abolitionist: #b5c26f; --political: #d1b06b; --blackvoice: #c39fd6; --diarist: #9db8b3;
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
  .wrap { max-width: 600px; margin: 0 auto; border-left: 1px solid var(--hairline); border-right: 1px solid var(--hairline); min-height: 100vh; }
  header.top {
    position: sticky; top: 0; z-index: 2;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--hairline);
    padding: 12px 16px 10px;
  }
  .masthead { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: .01em; }
  .masthead .rule { color: var(--muted); font-weight: 400; }
  .banner { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
  .banner strong { color: var(--ink); font-weight: 600; }
  .post { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px; border-bottom: 1px solid var(--hairline); scroll-margin-top: 84px; }
  .avatar {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: .02em;
    background: color-mix(in srgb, var(--c) 14%, var(--bg));
    color: var(--c);
  }
  .meta { font-size: 14.5px; line-height: 1.3; }
  .meta .name { font-weight: 700; }
  .meta .sub { color: var(--muted); }
  .tweet { font-size: 15.5px; line-height: 1.45; margin: 3px 0 0; overflow-wrap: break-word; }
  details { margin-top: 10px; border-left: 2px solid var(--hairline); padding-left: 12px; }
  summary { cursor: pointer; font-size: 12.5px; color: var(--accent); letter-spacing: .03em; }
  summary:hover { text-decoration: underline; }
  details blockquote { margin: 8px 0 6px; font-family: var(--serif); font-size: 14.5px; line-height: 1.55; color: color-mix(in srgb, var(--ink) 85%, var(--muted)); }
  details .note { font-size: 12.5px; color: var(--muted); margin: 0 0 4px; line-height: 1.45; }
  .cardfoot { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
  .badges { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .scanlink { margin: 2px 0 6px; font-size: 12.5px; }
  .unverified { color: var(--southern); font-weight: 600; }
  .chip {
    border: 1px solid color-mix(in srgb, var(--c) 40%, var(--hairline));
    color: var(--c); border-radius: 999px; padding: 1.5px 9px;
    font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
  }
  .sharebtn {
    margin-left: auto; background: none; border: 1px solid var(--hairline); border-radius: 999px;
    color: var(--muted); font: 600 11px var(--sans); letter-spacing: .04em; padding: 3px 11px; cursor: pointer;
  }
  .sharebtn:hover { color: var(--accent); border-color: var(--accent); }
  .badges { width: 100%; }
  a { color: var(--accent); text-decoration: none; }
  a:hover { text-decoration: underline; }
  a:focus-visible, summary:focus-visible, .sharebtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
  footer { padding: 20px 16px 36px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
  footer .stance { font-family: var(--serif); font-style: italic; font-size: 13.5px; color: var(--ink); margin-bottom: 6px; }
  #toast {
    position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
    background: var(--ink); color: var(--bg); font-size: 13px; padding: 8px 16px;
    border-radius: 999px; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 9;
  }
  .prose { padding: 8px 16px 24px; font-size: 15px; line-height: 1.6; }
  .prose h2 { font-family: var(--serif); font-size: 19px; margin: 26px 0 8px; }
  .prose p, .prose li { color: color-mix(in srgb, var(--ink) 92%, var(--muted)); }
  .prose .small { font-size: 13px; color: var(--muted); }
