  :root {
    --bg: #000;
    --fg: #f2f2f2;
    --dim: rgba(242, 242, 242, 0.72);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body {
    background: var(--bg);
    color: var(--fg);
  }
  body {
    font-family: "Courier Prime", "Courier New", Courier, monospace;
    -webkit-font-smoothing: antialiased;
  }
  canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }
  main {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    padding: 8vh 22px 18vh;
  }
  /* One column that scrolls, with a thin divider before the research section. */
  article {
    width: 100%;
    max-width: 38em;
    font-size: 17px;
    line-height: 1.65;
  }
  .page + .page { border-top: 1px solid rgba(242, 242, 242, 0.14); margin-top: 3em; padding-top: 3em; }
  .folio { display: none; }
  h1 {
    font-size: 1em;
    font-weight: 400;
    letter-spacing: 0.3em;
    margin-bottom: 1.4em;
  }
  p {
    color: var(--dim);
    margin-bottom: 0.9em;
  }
  p.strong { color: var(--fg); font-weight: 400; margin: 1.4em 0; }
  p.lead { color: var(--fg); font-weight: 400; font-size: 1.4em; margin-bottom: 1em; }
  h2 {
    font-size: 1em;
    font-weight: 400;
    letter-spacing: 0.3em;
    margin: 2em 0 0.8em;
  }
  h2.first { margin-top: 0; margin-bottom: 1em; }
  p.intro { margin-bottom: 1.8em; }
  .term { color: var(--fg); }
  p.close { color: var(--fg); margin-top: 1.6em; margin-bottom: 0; }
  p.outro { color: var(--fg); margin: 1.8em 0 0; }
  ul.areas { margin-bottom: 0; }
  .signoff .soon { margin: 0 0 1.2em; }
  .signoff .mark { color: var(--fg); margin: 0; }
  ul.areas { list-style: none; margin-bottom: 1.8em; }
  ul.areas li { margin-bottom: 0.9em; padding-left: 1.7em; position: relative; }
  ul.areas li::before { content: "—"; position: absolute; left: 0; color: var(--dim); }
  ul.areas .name { display: block; color: var(--fg); }
  ul.areas .def { display: block; color: rgba(242, 242, 242, 0.55); font-size: 0.9em; line-height: 1.5; }
  ul.areas li:has(.def) { margin-bottom: 1.2em; }
  a { color: var(--fg); text-decoration: underline; text-decoration-color: rgba(242,242,242,0.35); text-underline-offset: 0.2em; }
  a:hover { text-decoration-color: var(--fg); }
  p.lead { line-height: 1.5; margin: 1.2em 0 1.4em; }
  p.soon { font-style: normal; margin-top: 1.6em; margin-bottom: 0; }
  .cursor {
    display: inline-block;
    width: 0.55em;
    height: 1em;
    margin-left: 0.15em;
    vertical-align: -0.12em;
    background: var(--fg);
    animation: blink 1.1s steps(1) infinite;
  }
  @media (max-width: 640px) {
    main { padding: 10vh 22px 14vh; }
    article { font-size: 15px; }
    .page + .page { margin-top: 2.5em; padding-top: 2.5em; }
  }
  @keyframes blink { 50% { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

  /* Side navigation */
  .layout { display: flex; gap: 4.5em; width: 100%; max-width: 56em; align-items: flex-start; }
  nav.side { flex: 0 0 10em; position: sticky; top: 8vh; font-size: 15px; line-height: 1.6; }
  nav.side .wordmark { display: block; color: var(--fg); text-decoration: none; letter-spacing: 0.3em; margin-bottom: 2.2em; white-space: nowrap; }
  nav.side ul { list-style: none; }
  nav.side li { margin-bottom: 0.7em; }
  nav.side li a { color: var(--dim); text-decoration: none; }
  nav.side li a:hover, nav.side li a[aria-current="page"] { color: var(--fg); }
  nav.side li a[aria-current="page"]::before { content: "— "; }
  .layout article { flex: 1; min-width: 0; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  @media (max-width: 760px) {
    .layout { flex-direction: column; gap: 2.5em; }
    nav.side { position: static; flex: none; }
    nav.side .wordmark { margin-bottom: 1em; }
    nav.side ul { display: flex; flex-wrap: wrap; gap: 0.4em 1.4em; }
    nav.side li { margin: 0; }
    nav.side li a[aria-current="page"]::before { content: ""; }
  }

  p.logos { margin-top: 2.2em; padding-top: 1.4em; border-top: 1px solid rgba(242, 242, 242, 0.14); color: rgba(242, 242, 242, 0.55); font-size: 0.9em; letter-spacing: 0.04em; }

  /* ---------- Light mode preview ---------- */
  :root { --bg: #f4f2ec; --fg: #16151a; --dim: rgba(22, 21, 26, 0.72); }
  canvas { filter: invert(1) hue-rotate(180deg); mix-blend-mode: multiply; }
  .page + .page, p.logos { border-top-color: rgba(22, 21, 26, 0.14); }
  ul.areas .def, p.logos { color: rgba(22, 21, 26, 0.55); }
  a { text-decoration-color: rgba(22, 21, 26, 0.35); }
  ::selection { background: #16151a; color: #f4f2ec; }
  :root { --accent: #6b4fe0; }
  a { text-decoration-color: rgba(107, 79, 224, 0.5); }
  a:hover { color: var(--accent); text-decoration-color: var(--accent); }
  nav.side li a:hover, nav.side li a[aria-current="page"] { color: var(--accent); }
  .cursor { background: var(--accent); }
  ::selection { background: var(--accent); color: #fff; }
