/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.875rem;
}
.pagination-link {
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 0.5rem 1rem;
}
.pagination-link:hover { color: var(--primary); border-color: var(--primary); background: none; }
.pagination-current { color: var(--muted); }

/* ── Post header ── */
.post-back {
  display: inline-block;
  font-size: 16px;
  color: var(--muted);
  border-bottom: none;
  margin-bottom: 2rem;
}
.post-back:hover { color: var(--primary); background: none; }

.post-header { margin-bottom: 2rem; }
.post-title {
  color: var(--ink);
  font-size: clamp(24px, 4.5vw, 30px);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 4px;
}
.post-date { color: var(--dim); font-size: 16px; }

.post-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px dashed var(--rule); }
.post-footer .post-back { margin-bottom: 0; }

/* ── Prose ── */
.post-content {
  max-width: var(--measure);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  text-transform: lowercase;
}
/* code keeps its real case */
.post-content code,
.post-content pre { text-transform: none; }
.post-content > * + * { margin-top: 1.25rem; }
.post-content p { color: var(--ink); }
.post-content a { border-bottom: 1px dotted var(--primary); }

.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}
.post-content h2 { font-size: 1.375rem; }
.post-content h3 { font-size: 1.1875rem; }
.post-content h4 { font-size: 1.0625rem; }

.post-content ul,
.post-content ol { padding-left: 1.5rem; color: var(--dim); }
.post-content li { margin-bottom: 0.375rem; }
.post-content ul li::marker { color: var(--primary); }
.post-content ol li::marker { color: var(--primary); font-family: var(--font-mono); }

.post-content blockquote {
  border-left: 2px solid var(--primary);
  padding-left: 1.25rem;
  color: var(--muted);
  font-style: italic;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: hsl(230 12% 10%);
  border: 1px solid var(--rule);
  padding: 0.125rem 0.375rem;
  border-radius: 2px;
}
.post-content pre {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--rule);
  overflow-x: auto;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
  margin: 1.5rem 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin: 1.5rem 0;
}
.post-content th,
.post-content td {
  text-align: left;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--rule);
}
.post-content th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 500;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}
