
:root {
  color-scheme: light;
  --paper: #f1f2f3;
  --ink: #25292d;
  --muted: #59616a;
  --link: #173d9d;
  --visited: #694392;
  --line: #b5bbc1;
  font-family: "DejaVu Sans Mono", "Liberation Mono", Consolas, monospace;
  font-size: 15px;
  line-height: 1.75;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body { margin: 0; }
::selection { background: #c9d6fa; color: #152447; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:visited { color: var(--visited); }
a:hover { color: var(--paper); background: var(--link); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
.sheet { width: min(110ch, calc(100% - 7rem)); margin: 4rem auto 2rem; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding-bottom: 2.4rem; border-bottom: 1px solid var(--ink); }
.brand { display: inline-block; text-decoration: none; color: var(--ink); }
.brand:visited, .brand:hover { color: var(--ink); background: none; }
.brand pre { margin: 0; font-size: 23px; line-height: 1.15; font-weight: 700; }
pre { font-family: inherit; white-space: pre; }
.masthead-note { font-size: 12px; line-height: 1.9; }
.muted { color: var(--muted); }
.page-grid { display: grid; grid-template-columns: 23ch minmax(0, 1fr); gap: 5ch; padding-top: 2.8rem; }
.sidebar { font-size: 13px; }
.directory-title { margin: 0 0 .5rem; font-weight: 700; }
.directory { list-style: none; padding: 0; margin: 0; line-height: 2.5; }
.directory li { white-space: nowrap; }
.directory li > span { color: var(--muted); }
.directory [aria-current="page"] { color: var(--ink); text-decoration: none; font-weight: 700; }
.directory [aria-current="page"]::after { content: " <"; }
.directory [aria-current="page"]:hover { color: var(--paper); }
.side-note { margin-top: 4rem; color: var(--muted); font-size: 11px; line-height: 1.7; }
.side-note pre { font-size: 11px; line-height: 1.25; color: var(--ink); }
.side-note p { margin-top: 1.5rem; }
.side-meta { margin-top: 3rem; color: var(--muted); font-size: 11px; }
main { min-width: 0; padding-bottom: 2rem; }
main:focus { outline: none; }
.file-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; font-size: 11px; color: var(--muted); border-bottom: 1px dashed var(--line); padding-bottom: .8rem; }
h1 { font-size: 12px; font-weight: 400; color: var(--muted); margin: 1rem 0 2.2rem; }
h1::before { content: "[ "; } h1::after { content: " ]"; }
h2 { font-size: 17px; line-height: 1.5; margin: 2.5rem 0 1rem; letter-spacing: -.025em; }
h1 + h2 { margin-top: 0; font-size: 24px; letter-spacing: -.04em; }
p { margin: 0 0 1.2rem; overflow-wrap: anywhere; }
.note { font-size: 12px; color: var(--muted); margin: 1.8rem 0; padding-left: 2.5ch; text-indent: -2.5ch; }
.date { font-size: 11px; color: var(--muted); margin-bottom: .7rem; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { margin-bottom: 1.2rem; padding-left: 2ch; position: relative; }
.link-list li::before { content: "+"; position: absolute; left: 0; color: var(--muted); }
.link-list p { color: var(--muted); font-size: 12px; margin: .2rem 0 0; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--ink); padding-top: 1.1rem; margin-top: 2rem; font-size: 11px; color: var(--muted); }
.skip { position: absolute; top: -6rem; left: 1rem; padding: .6rem; background: var(--paper); }
.skip:focus { top: 1rem; z-index: 1; }
@media (min-width: 1600px) { .sheet { margin-top: 6rem; } }
@media (max-width: 780px) {
  .sheet { width: calc(100% - 3rem); margin-top: 2.5rem; }
  .masthead { gap: 1.5rem; }
  .brand pre { font-size: 19px; }
  .masthead-note { font-size: 10px; }
  .page-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 1.5rem; }
  .directory-title, .side-note, .side-meta, .directory li > span { display: none; }
  .directory { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; line-height: 2.4; }
  .directory [aria-current="page"]::after { content: ""; }
  .directory [aria-current="page"] { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 5px; }
  main { max-width: 66ch; }
}
@media (max-width: 480px) {
  :root { font-size: 14px; }
  .sheet { width: calc(100% - 2.4rem); margin-top: 2rem; }
  .masthead { align-items: flex-start; flex-direction: column; gap: 1.2rem; padding-bottom: 1.5rem; }
  .brand pre { font-size: 21px; }
  .masthead-note { font-size: 11px; }
  .directory { gap: .2rem 1.4rem; }
  h1 + h2 { font-size: 21px; }
  footer { margin-top: .5rem; }
}
@media print {
  html { background: white; color: black; }
  .sheet { width: 100%; margin: 0; }
  .sidebar, .skip, .file-line a, footer a { display: none; }
  .page-grid { display: block; }
  .masthead { padding-bottom: 1rem; }
  a, a:visited { color: black; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10px; overflow-wrap: anywhere; }
  h2 { break-after: avoid; }
  .link-list li { break-inside: avoid; }
}
