:root {
  --bg: #f6f4ef;
  --text: #171717;
  --muted: #62605a;
  --rule: #dcd8cf;
  --accent: #a8332b;
  --mark: #f2c14e;
  --code-bg: #ebe7de;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --text: #ecebe8;
    --muted: #a3a09a;
    --rule: #2c2b29;
    --accent: #ff7a6b;
    --mark: #f2c14e;
    --code-bg: #1e1d1b;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  max-width: 46rem;
  padding: 0 22px;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.7 ui-serif, Georgia, "Iowan Old Style", Cambria, "Times New Roman", serif;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

header.site, footer.site, .meta, .posts time, .pager, .year {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
header.site {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  padding: 30px 0 18px;
  margin-bottom: 30px;
  border-bottom: 3px solid var(--text);
  font-size: 0.85rem;
}
.brand {
  font: 900 1.6rem/1 ui-serif, Georgia, serif;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
}
.brand span { background: var(--mark); color: #171717; padding: 0 0.18em; margin-right: 0.12em; }
header.site nav { display: flex; gap: 18px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; font-size: 0.75rem; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--accent); }

footer.site { margin: 64px 0 0; padding: 18px 0 40px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.82rem; }
footer.site a { color: inherit; }

.intro { font-size: 1.2rem; font-style: italic; color: var(--muted); margin: 0 0 30px; }
.intro p { margin: 0; }

.posts { list-style: none; margin: 0; padding: 0; }
.posts li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.posts time { display: block; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.posts a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.25rem; line-height: 1.3; }
.posts a:hover { color: var(--accent); }
.empty { color: var(--muted); }
.more { margin-top: 20px; }

.page-title { font-size: 2.1rem; line-height: 1.15; margin: 0 0 20px; }
.year { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; color: var(--muted); margin: 30px 0 0; }

.post-head h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 10px; }
.meta { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.04em; margin: 0 0 28px; text-transform: uppercase; }

.prose > p:first-child::first-letter {
  float: left;
  font-size: 3.4em;
  line-height: 0.85;
  font-weight: 700;
  padding: 0.06em 0.08em 0 0;
  color: var(--accent);
}
.prose h2 { font-size: 1.45rem; margin: 2em 0 0.4em; line-height: 1.25; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 0.3em; }
.prose img { max-width: 100%; height: auto; border-radius: 4px; display: block; margin: 0 auto 1.2em; }
.prose blockquote { margin: 1.4em 0; padding: 0.2em 0 0.2em 1em; border-left: 4px solid var(--mark); font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }
code, pre { font: 0.82em/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
:not(pre) > code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 3px; }
pre { background: var(--code-bg); padding: 14px 16px; overflow-x: auto; border-radius: 6px; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
}
.pager a { text-decoration: none; }
