  :root {
    --background: #000000;
    --canvas: #080d11;
    --surface: #101920;
    --raised: #17232c;
    --hover: #21313b;
    --border: #304550;
    --text: #e9f2f3;
    --text-secondary: #a3b5bb;
    --text-muted: #778c97;
    --accent: #65d6de;
    --accent-subtle: #17373e;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--canvas);
    color: var(--text);
    font: 17px/1.6 ui-monospace, "JetBrains Mono", "IBM Plex Mono", Menlo, Consolas, monospace;
  }
  main { max-width: 64rem; margin: 0 auto; padding: 2rem 1rem 4rem; }
  .site-header { display: flex; align-items: center; gap: 2rem; padding-bottom: 1rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border); }
  .site-brand { display: block; flex: 0 0 3rem; }
  .site-brand img { display: block; width: 100%; height: auto; }
  .site-header .site-nav { flex: 1; min-width: 0; margin: 0; }
  .site-header .site-nav a { white-space: nowrap; }
  .site-source { display: inline-flex; flex: 0 0 auto; align-items: center; padding: 0.375rem; margin: -0.375rem; color: var(--text-secondary); }
  .site-source svg { display: block; width: 1em; height: 1em; fill: currentColor; }
  .site-source:hover, .site-source:focus-visible { color: var(--accent); }
  .home h1 { position: absolute; left: -9999px; }
  p { max-width: 42rem; }
  .lead { font-size: 1.15rem; margin-top: 1.5rem; }
  .muted { color: var(--text-secondary); }
  figure { margin: 2.5rem 0; }
  figure img {
    width: 100%; height: auto; display: block;
    border: 1px solid var(--border); border-radius: 4px;
  }
  figcaption { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.6rem; }
  ul { padding-left: 1.2rem; max-width: 42rem; }
  li { margin: 0.3rem 0; }
  a { color: var(--accent); text-decoration-color: var(--accent-subtle); text-underline-offset: 0.2em; }
  a:hover { color: var(--text); }
  code { background: var(--raised); padding: 0.1rem 0.35rem; border-radius: 3px; }
  footer { margin-top: 3rem; color: var(--text-muted); font-size: 0.9rem; }

  .site-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.5rem 0; }
  .site-nav a[aria-current="page"] { color: var(--text); }
  .prose h1 { font-size: 1.65rem; line-height: 1.3; margin: 2rem 0 1rem; }
  .prose h2 { font-size: 1.2rem; margin-top: 2.5rem; }
  .prose h3 { font-size: 1.05rem; margin-top: 2rem; }
  .prose p, .prose ul, .prose ol { max-width: 52rem; }
  .prose pre { overflow-x: auto; background: var(--surface); padding: 1rem; border: 1px solid var(--border); border-radius: 4px; }
  .prose pre code { background: none; padding: 0; }
  .prose table { border-collapse: collapse; width: 100%; font-size: 0.9rem; margin: 1.5rem 0; }
  .prose th, .prose td { border: 1px solid var(--border); padding: 0.6rem; text-align: left; vertical-align: top; }
  .prose th { background: var(--surface); }
  .table-scroll { overflow-x: auto; }
  .prose img { max-width: 100%; height: auto; }
  .prose figure { margin-bottom: 1rem; }
  .prose figure + p { color: var(--text-secondary); font-size: 0.9rem; }
  .notice { border-left: 3px solid var(--accent); padding: 0.5rem 1rem; background: var(--surface); }
  .manual-layout { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 2rem; }
  .manual-sidebar { position: sticky; top: 1rem; align-self: start; padding: 1rem 0; font-size: 0.9rem; }
  .manual-sidebar ul { list-style: none; padding: 0; margin: 0.75rem 0 0; }
  .manual-sidebar li { margin: 0.75rem 0; }
  .manual-sidebar a[aria-current="page"] { color: var(--text); }
  .manual-layout .prose { min-width: 0; }
  .manual-layout .prose h1 { margin-top: 0.75rem; }
  .prose :target { scroll-margin-top: 1rem; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
  @media (max-width: 52rem) {
    .manual-layout { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
    .manual-sidebar { position: static; border-bottom: 1px solid var(--border); }
    .manual-sidebar ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
    .manual-sidebar li { margin: 0; }
  }
  @media (max-width: 40rem) {
    .prose table { font-size: 0.8rem; }
    .site-header { gap: 0.75rem; }
    .site-brand { flex-basis: 2.5rem; }
    .site-header .site-nav { gap: 0.5rem; }
    .site-header .site-nav, .site-source { font-size: clamp(0.85rem, 3.5vw, 1rem); }
  }
