:root {
  --bg: #fbfaf7;
  --fg: #22211f;
  --muted: #6d6a64;
  --rule: #e4e0d8;
  --link: #8a3b12;
  --code-bg: #f1eee8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18181a;
    --fg: #e6e3dd;
    --muted: #9b978f;
    --rule: #2e2d2b;
    --link: #e39a6b;
    --code-bg: #232224;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 18px/1.65 Charter, "Bitstream Charter", "Iowan Old Style", Georgia, "Times New Roman", serif;
}
.wrap { max-width: 42rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.site-header {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .5rem 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); margin-bottom: 2rem;
}
.brand { font-weight: 700; font-size: 1.2rem; color: var(--fg); text-decoration: none; letter-spacing: .01em; }
.site-header nav a {
  margin-left: 1.1rem; color: var(--muted); text-decoration: none;
  font: 15px/1.4 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.site-header nav a:first-child { margin-left: 0; }
.site-header nav a:hover { color: var(--fg); }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 .4rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.section-title {
  font: 600 13px/1.4 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.intro { color: var(--muted); font-style: italic; margin-bottom: 1.5rem; }
.lede { color: var(--muted); }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { display: flex; flex-wrap: wrap; gap: .2rem 1rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.post-list time, .post-list .kind, .date, .book-meta {
  font: 14px/1.6 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--muted);
}
.post-list time { min-width: 7.5rem; }
.post-list .kind { margin-left: auto; }

.post-header { margin-bottom: 1.5rem; }
.book-meta { margin: 0; }
.date { margin: .2rem 0 0; }
.content p { margin: 0 0 1.1rem; }
.content blockquote { margin: 1.2rem 0; padding-left: 1rem; border-left: 3px solid var(--rule); color: var(--muted); }
code { background: var(--code-bg); padding: .1em .35em; border-radius: 3px; font-size: .88em; }

.photos figure { margin: 0 0 1rem; }
.photos img { display: block; max-width: 100%; height: auto; border-radius: 4px; }

.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .95rem; }
.pager .next { margin-left: auto; text-align: right; }

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