/* more eyes: one small stylesheet, light and dark by system setting. */
:root {
  --bg: #ffffff; --fg: #1f2328; --muted: #59636e; --link: #0b5cad;
  --rule: #d1d9e0; --code-bg: #f3f5f7; --head-bg: #f6f8fa;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216; --fg: #e6e8eb; --muted: #9aa4af; --link: #7ab7ff;
    --rule: #2f363d; --code-bg: #1a1f25; --head-bg: #151a20;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }

.site-header { background: var(--head-bg); border-bottom: 1px solid var(--rule); padding: 1.5rem 0 1rem; }
.brand { margin: 0; font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.brand a { color: var(--fg); text-decoration: none; }
.tagline { margin: .25rem 0 .75rem; color: var(--muted); font-style: italic; }
nav a { margin-right: 1.25rem; font-weight: 600; text-decoration: none; }
nav a:hover { text-decoration: underline; }

main { padding: 1.5rem 1.25rem 2rem; }
.back { margin: 0 0 1rem; font-size: .95rem; }
.back:last-child { margin: 2rem 0 0; }

h1, h2, h3, h4 { line-height: 1.25; margin: 2rem 0 .75rem; }
h1 { font-size: 2rem; margin-top: .5rem; }
h2 { font-size: 1.45rem; padding-bottom: .3rem; border-bottom: 1px solid var(--rule); }
h3 { font-size: 1.15rem; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
blockquote { margin: 1rem 0; padding: 0 1rem; color: var(--muted); border-left: 3px solid var(--rule); }
code, pre { font: .88em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--code-bg); border-radius: 4px; }
code { padding: .1em .35em; }
pre { padding: .9rem 1rem; overflow-x: auto; }
pre code { padding: 0; background: none; }
table { display: block; overflow-x: auto; border-collapse: collapse; margin: 1rem 0; font-size: .93rem; }
th, td { border: 1px solid var(--rule); padding: .4rem .65rem; vertical-align: top; text-align: left; }
th { background: var(--head-bg); }
img { max-width: 100%; }

.note-list { list-style: none; padding: 0; margin: .5rem 0 1.5rem; }
.note-list li { padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.note-list li:last-child { border-bottom: 0; }
.note-title { display: block; font-weight: 650; font-size: 1.1rem; text-decoration: none; }
.note-title:hover { text-decoration: underline; }
.note-sub { display: block; font-style: italic; }
.note-ver { display: block; color: var(--muted); font-size: .9rem; }

.site-footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: .92rem; padding: 1.25rem 0 2rem; }
.site-footer p { margin: .3rem 0; }
