:root {
  --bg: #0a0a0f;    /* foot background */
  --fg: #e8e9f0;    /* foot foreground */
  --dim: #9ea0b8;   /* bright6, for meta lines */
  --rule: #2a2a38;  /* not in the palette: #13131c is invisible on this bg */
  --link: #83a5ff;  /* bright4 */
}
html, body { background: var(--bg); height: 100%; }
body {
  box-sizing: border-box;
  height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 64ch;
  padding: 5vh 1.15rem 2vh;
  color: var(--fg);
  font: 14px/1.7 ui-monospace, SFMono-Regular, "DejaVu Sans Mono", Menlo, Consolas, monospace;
}
h1 { font-size: 14px; font-weight: 700; margin: 0; }
.meta { color: var(--dim); margin: .15rem 0 0; }
a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
a:hover { border-bottom-color: var(--link); }
details { margin-top: .1rem; }
summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5ch;
  cursor: pointer;
  list-style: none;
  padding: .22rem 0;
}
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; color: var(--dim); }
details[open] summary::before { content: "\2212"; }
summary .name { color: var(--link); min-width: 11ch; border-bottom: 1px solid transparent; }
summary .name:hover { border-bottom-color: var(--link); }
summary .desc { color: var(--dim); }
details .body {
  margin: .5rem 0 1.6rem;
  padding-left: 2.5ch;
  border-left: 1px solid var(--rule);
  color: var(--fg);
}
details .body p { margin: 0 0 .95em; }
details .body p:last-child { margin-bottom: 0; }
details .body p.h { font-weight: 700; margin: 1.15em 0 .5em; }
details .body p.h:first-child { margin-top: 0; }
details .body code { background: var(--rule); padding: 0 .3ch; border-radius: 2px; }
details .body p.li { margin: 0 0 .45em; padding-left: 1.5ch; text-indent: -1.5ch; color: var(--dim); }
pre .dir { color: var(--fg); }
footer {
  margin-top: 3.5rem;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.6;
}

/* The listing stays narrow; the file you open runs wider than it. */
@media (min-width: 900px) {
  details .body { margin-left: -8ch; margin-right: -8ch; }
}
