:root {
  color-scheme: light;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: #222;
  background: #fff;
  font-size: 15px;
  line-height: 1.7;
}

* { box-sizing: border-box; }

body {
  max-width: 84ch;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  overflow-wrap: anywhere;
}

a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid; outline-offset: 4px; }
.skip-link { position: absolute; top: -5rem; left: 1rem; padding: 0.25rem 0.5rem; background: #fff; }
.skip-link:focus { top: 1rem; }

.manual-header, footer { display: flex; justify-content: space-between; gap: 1rem; }
.manual-header { margin-bottom: 3rem; font-size: 0.85rem; }
.manual-header a { text-decoration: none; }
footer { margin-top: 4rem; font-size: 0.85rem; }
.meta, footer { color: #555; }

h1, h2, h3, h4, h5, h6 { font-size: 1rem; line-height: 1.7; margin: 2rem 0 0.5rem; }
h1 { margin-top: 0; }
h2 { text-transform: uppercase; }
h3, h4, h5, h6 { margin-left: 4ch; }
p, ul, ol, dl, pre, blockquote, table { margin-top: 0; margin-bottom: 1rem; }
.intro, .post-list, .manual-body > :not(h1, h2) { margin-left: 4ch; }
.post-list dt { margin-top: 1rem; font-weight: bold; }
.post-list dd { margin: 0.25rem 0 0 4ch; }
.post-list dd p { margin-bottom: 0.25rem; }
.post-list .meta { font-size: 0.85rem; }
ul, ol { padding-left: 3ch; }
li > p { margin-bottom: 0.5rem; }
blockquote { border-left: 1px solid #999; padding-left: 2ch; color: #555; }
blockquote > :last-child { margin-bottom: 0; }

code, pre { font: inherit; }
:not(pre) > code { font-weight: bold; }
pre { padding: 0.5rem 0; overflow-x: auto; white-space: pre; }
.table-wrapper { overflow-x: auto; margin-bottom: 1rem; }
table { border-collapse: collapse; min-width: 100%; font-size: 0.9rem; }
th, td { border-bottom: 1px solid #ccc; padding: 0.4rem 1ch; text-align: left; vertical-align: top; }
th { border-bottom-color: currentColor; }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid #ccc; margin: 2rem 0; }
[id] { scroll-margin-top: 1rem; }

@media (max-width: 540px) {
  body { padding: 1.25rem 1rem; }
  .manual-header { margin-bottom: 2rem; }
  .manual-header > :last-child { display: none; }
  .intro, .post-list, .manual-body > :not(h1, h2), h3, h4, h5, h6 { margin-left: 2ch; }
  .post-list dd { margin-left: 2ch; }
}

@media print {
  body { max-width: none; padding: 0; color: #000; }
  footer { display: none; }
  pre { white-space: pre-wrap; }
}
