:root {
  --paper: #fbfaf7;
  --ink: #1d1c1a;
  --muted: #6b6660;
  --line: #e3ded5;
  --accent: #8a4b2f;
  --code: #f1eee7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16151a;
    --ink: #e8e4dd;
    --muted: #9b958c;
    --line: #2c2a31;
    --accent: #d99a72;
    --code: #201f26;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 0 1.25rem 5rem;
}

.wrap { max-width: 44rem; margin: 0 auto; }

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.75rem 0 1.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: .01em;
  color: var(--ink);
  text-decoration: none;
}

.brand span { color: var(--accent); }

nav.site a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: .92rem;
}

nav.site a:hover, nav.site a[aria-current="page"] { color: var(--ink); }

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
}

h1 { font-size: 2rem; margin: 0 0 .75rem; }

h2 { font-size: 1.3rem; margin: 2.25rem 0 .6rem; }

p { margin: 0 0 1.1rem; }

.lede { font-size: 1.08rem; color: var(--muted); margin-bottom: 2.5rem; }

a { color: var(--accent); }

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
}

code { background: var(--code); padding: .12em .38em; border-radius: 3px; }

pre {
  background: var(--code);
  padding: 1rem 1.1rem;
  border-radius: 6px;
  overflow-x: auto;
  line-height: 1.55;
}

pre code { background: none; padding: 0; }

ol.notes { list-style: none; margin: 0; padding: 0; }

ol.notes li { border-top: 1px solid var(--line); padding: 1.4rem 0; }

ol.notes li:last-child { border-bottom: 1px solid var(--line); }

ol.notes .date {
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

ol.notes h2 { margin: .35rem 0 .4rem; font-size: 1.15rem; }

ol.notes h2 a { color: var(--ink); text-decoration: none; }

ol.notes h2 a:hover { color: var(--accent); }

ol.notes p { margin: 0; color: var(--muted); font-size: .95rem; }

.meta { color: var(--muted); font-size: .85rem; margin-bottom: 2rem; }

footer.site {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}

footer.site a { color: var(--muted); }

.back { display: inline-block; margin-bottom: 1.75rem; font-size: .9rem; text-decoration: none; }

blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--line);
  color: var(--muted);
}

.notfound { text-align: center; padding: 4rem 0; }

.notfound h1 { font-size: 3rem; color: var(--accent); }

@media (max-width: 520px) {
  header.site { padding-top: 2rem; }
  h1 { font-size: 1.6rem; }
}
