:root {
  --bg: #faf8f3;
  --text: #2a2a26;
  --muted: #6d6b62;
  --accent: #3f6b4f;
  --rule: #e3dfd3;
  --code-bg: #f0ede4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161916;
    --text: #e4e1d8;
    --muted: #9a978d;
    --accent: #8dbd9c;
    --rule: #2b2f2a;
    --code-bg: #20241f;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.65;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1rem;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

header.site {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand svg { width: 1.4rem; height: 1.4rem; color: var(--accent); flex: none; position: relative; top: 0.1rem; }
nav.site a {
  color: var(--muted);
  text-decoration: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  margin-left: 1.1rem;
}
nav.site a:first-child { margin-left: 0; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

.intro { color: var(--muted); margin: 0 0 2.5rem; }

h2.year {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.5rem 0 0.75rem;
}
ul.posts { list-style: none; padding: 0; margin: 0; }
ul.posts li { margin: 0 0 1.6rem; }
ul.posts .title { font-size: 1.2rem; font-weight: 600; text-decoration: none; }
ul.posts .title:hover { text-decoration: underline; }
ul.posts time, .meta {
  display: block;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}
ul.posts p { margin: 0.25rem 0 0; color: var(--muted); }

article h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.4rem;
  font-weight: 600;
}
article .meta { margin-bottom: 2rem; }
article ul { padding-left: 1.3rem; }
article li { margin: 0.3rem 0; }
article p { margin: 0 0 1.15rem; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding-top: 1.25rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
}
.pager a { text-decoration: none; }
.pager .next { text-align: right; margin-left: auto; }

footer.site {
  margin-top: 4rem;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
}
footer.site a { color: var(--muted); }

@media (max-width: 30rem) {
  body { font-size: 1.05rem; }
  header.site { padding-top: 1.75rem; }
  article h1 { font-size: 1.65rem; }
}
