/* ─── Reset + base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0;
  background: #fbfaf7;
  color: #1a1a1a;
  font-family: "Iowan Old Style", "Charter", "Source Serif Pro", Georgia, serif;
  font-size: 18px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Layout ────────────────────────────────────────────────── */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

/* ─── Header ────────────────────────────────────────────────── */
header.site-header {
  margin-bottom: 64px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e6e1d6;
}
header.site-header a.site-name {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -0.01em;
}
header.site-header a.site-name:hover { color: #6b4d2c; }
header.site-header .tagline {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 13px;
  color: #6b6b6b;
  margin-top: 4px;
}

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: #0a0a0a;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
}
h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 56px 0 16px;
}
h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 8px;
}

p, ul, ol, blockquote {
  margin: 0 0 18px;
}
p.subtitle {
  font-style: italic;
  color: #555;
  margin-bottom: 32px;
  font-size: 17px;
}

a { color: #6b4d2c; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #2a1a08; }

strong { font-weight: 700; color: #0a0a0a; }
em { font-style: italic; }

ul, ol { padding-left: 28px; }
li { margin-bottom: 8px; }
li > strong:first-child { color: #0a0a0a; }

blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid #d4ccba;
  color: #444;
  font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }

hr {
  border: 0;
  height: 1px;
  background: #e6e1d6;
  margin: 48px 0;
}

/* ─── Code ──────────────────────────────────────────────────── */
code, pre {
  font-family: "JetBrains Mono", "Fira Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
code {
  font-size: 0.88em;
  background: #f0ebe0;
  color: #4a3825;
  padding: 1.5px 6px;
  border-radius: 3px;
  white-space: nowrap;
}
pre {
  background: #f5f1e8;
  border: 1px solid #e6dfcc;
  border-radius: 4px;
  padding: 16px 20px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
  margin: 24px 0;
}
pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  white-space: pre;
  font-size: inherit;
  color: #2a2520;
}

/* ─── Article footer ────────────────────────────────────────── */
.article-meta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 13px;
  color: #6b6b6b;
  margin: 0 0 48px;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 32px 0;
}
.post-list li {
  margin: 0 0 24px;
  padding: 0;
}
.post-list a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}
.post-list a:hover { color: #6b4d2c; text-decoration: underline; }
.post-list .post-date {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 13px;
  color: #888;
}
.post-list .post-blurb {
  font-size: 15px;
  color: #555;
  margin-top: 4px;
  line-height: 1.5;
}

/* ─── Mobile ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .container { padding: 40px 18px 64px; }
  h1 { font-size: 26px; }
  h2 { font-size: 20px; margin-top: 40px; }
  pre { padding: 12px 14px; font-size: 12.5px; }
}
