:root {
  --bg: #fbfaf8;
  --fg: #2b2b2b;
  --muted: #767676;
  --line: #e4e0d8;
  --link: #275ea8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16171a;
    --fg: #ddd9d2;
    --muted: #8b8b8b;
    --line: #2c2e33;
    --link: #7ba7de;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 Georgia, "Iowan Old Style", "Times New Roman", serif;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 1.35rem;
  margin: 0 0 .35rem;
  letter-spacing: .01em;
}

header h1 a { color: inherit; text-decoration: none; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  margin-right: 1rem;
}

nav a:hover { color: var(--link); }

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

h2 { font-size: 1.15rem; margin: 2rem 0 .5rem; }

ul.posts { list-style: none; padding: 0; margin: 0; }

ul.posts li {
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}

ul.posts a { text-decoration: none; }
ul.posts a:hover { text-decoration: underline; }

time, .meta {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  font-family: system-ui, sans-serif;
  margin-top: .2rem;
}

article p { margin: 1rem 0; }

article pre {
  background: rgba(128,128,128,.09);
  border: 1px solid var(--line);
  padding: .8rem 1rem;
  overflow-x: auto;
  font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace;
}

blockquote {
  margin: 1.4rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--line);
  color: var(--muted);
  font-style: italic;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
  font-family: system-ui, sans-serif;
}
