:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #242424;
  background: #faf9f6;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
header, main, footer { width: min(100% - 2rem, 46rem); margin-inline: auto; }
header { padding-block: 1.25rem .75rem; border-bottom: 1px solid #d8d5ce; }
main { padding-block: 1.25rem 3rem; }
nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
a { color: #155e91; text-decoration-thickness: .07em; text-underline-offset: .18em; overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #ad681a; outline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; overflow-wrap: anywhere; }
h1 { font-size: 1.8rem; margin-block: .4rem 1rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4, h5, h6 { font-size: 1.1rem; }
.article h2, .article h3, .article h4 { margin-top: 1.6em; }
p, ul, ol, blockquote, pre, table { margin-block: 1em; }
ul, ol { padding-inline-start: 1.5em; }
li + li { margin-top: .25em; }
blockquote { margin-inline: 0; padding: .1rem 1rem; border-left: 3px solid #a6a095; color: #57534c; }
hr { border: 0; border-top: 1px solid #d8d5ce; margin-block: 1.7rem; }
.article, .redacted { overflow-wrap: anywhere; }
.redacted { white-space: pre-wrap; }
code, pre { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .88em; }
code { background: #eceae4; padding: .12em .3em; border-radius: .2rem; }
pre { overflow-x: auto; padding: 1rem; background: #eceae4; border-radius: .35rem; line-height: 1.5; }
pre code { padding: 0; font-size: 1em; background: transparent; }
table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: .45rem .75rem; border: 1px solid #d8d5ce; text-align: left; vertical-align: top; }
th { background: #eceae4; }
.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }
.size-15 { font-size: 15px; }
.size-17 { font-size: 17px; }
.size-20 { font-size: 20px; }
.size-24 { font-size: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; list-style: none; }
.tags > * { border-radius: .3rem; padding: .05rem .45rem; background: #eceae4; font-size: .85rem; }
.note-list, .directory-list { padding: 0; list-style: none; }
.note-list > li, .directory-list > li { border-bottom: 1px solid #d8d5ce; padding-block: .8rem; }
.note-list h2, .note-list h3 { margin-block: 0 .3rem; font-size: 1.15rem; }
.note-list p { margin-block: .3rem; }
time, .timestamp, .snapshot { font-size: .85rem; color: #686258; }
.snapshot { padding: .65rem .8rem; border: 1px solid #d8d5ce; border-radius: .3rem; }
form { display: flex; flex-wrap: wrap; gap: .65rem; align-items: end; }
label { display: block; }
input, button { font: inherit; border: 1px solid #a6a095; border-radius: .35rem; padding: .45rem .65rem; min-height: 44px; }
input { min-width: 0; max-width: 100%; background: #fff; color: inherit; }
button { background: #155e91; color: #fff; cursor: pointer; }
@media (prefers-color-scheme: dark) {
  :root { color: #e5e2dc; background: #1c1d1e; }
  a { color: #9dccf0; }
  blockquote, time, .timestamp, .snapshot { color: #bab4a9; }
  code, pre, th, .tags > * { background: #2b2d2f; }
  header, hr, th, td, .note-list > li, .directory-list > li, .snapshot { border-color: #50504b; }
  input { background: #252729; }
  button { background: #28648d; }
}
@media (max-width: 480px) {
  header, main, footer { width: calc(100% - 1.5rem); }
  h1 { font-size: 1.6rem; }
  th, td { padding: .4rem .55rem; }
}
