/* ── Blog navigation ─────────────────────────────────────────── */
.post-nav {
  margin-bottom: calc(var(--line-height) * 2);
  font-size: 0.9em;
}

.post-nav * {
  margin-top: 0;
}

.nav-sep {
  margin: 0 0.5ch;
  color: var(--text-color-alt);
}

/* ── Post header ─────────────────────────────────────────────── */
.post-title {
  margin-bottom: 0;
}

.post-date {
  color: #666;
  font-size: 0.85em;
  margin-top: calc(var(--line-height) / 2);
  margin-bottom: 0;
}

/* ── Post body headings ──────────────────────────────────────── */
article h2 {
  font-size: 1.2rem;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  margin-top: calc(var(--line-height) * 2);
}

article h3 {
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  margin-top: calc(var(--line-height) * 1.5);
}

/* ── Lists ───────────────────────────────────────────────────── */
article ol {
  list-style: decimal;
  padding-left: 3ch;
  margin: var(--line-height) 0;
}

article ul {
  list-style: disc;
  padding-left: 3ch;
  margin: var(--line-height) 0;
}

article li {
  margin-top: calc(var(--line-height) / 2);
}

article li:first-child {
  margin-top: 0;
}

/* ── Footnotes ───────────────────────────────────────────────── */
article sup {
  vertical-align: super;
  font-size: 0.75em;
  line-height: 0;
}

a.footnote-ref {
  text-decoration: none;
}

.footnotes {
  font-size: 0.85em;
  color: #666;
  margin-top: calc(var(--line-height) * 2);
}

.footnotes ol {
  margin-top: calc(var(--line-height) / 2);
}

/* ── Inline code ─────────────────────────────────────────────── */
code {
  font-family: var(--font-family);
  font-size: 0.88em;
  background: #eeeeee;
  padding: 0 0.3ch;
}

/* ── Code blocks ─────────────────────────────────────────────── */
pre {
  border-left: calc(var(--border-thickness) * 2) solid var(--text-color);
  background: none;
  padding: var(--line-height) 2ch;
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.85em;
}

/* ── Blockquotes ─────────────────────────────────────────────── */
blockquote {
  border-left: calc(var(--border-thickness) * 2) solid var(--text-color);
  padding-left: 2ch;
  margin: var(--line-height) 0;
  color: var(--text-color-alt);
}

blockquote p {
  margin: 0;
}

/* ── Display math ────────────────────────────────────────────── */
.math.display {
  overflow-x: auto;
  margin: var(--line-height) 0;
}

/* ── Blog index ──────────────────────────────────────────────── */
.empty-blog {
  text-align: center;
  margin-top: calc(var(--line-height) * 6);
  color: #666;
}

.empty-blog p {
  margin: 0;
}

.post-index-desc {
  font-size: 0.85em;
  color: #666;
}
