/* === Post header === */
.post-header {
  margin-bottom: 40px;
}

.post-title {
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 18px;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.post-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* === Table of contents === */
.toc-container {
  margin-bottom: 40px;
}

.toc {
  list-style: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.toc li {
  margin-bottom: 6px;
}

.toc li::before {
  content: "~";
  color: var(--highlight);
  margin-right: 10px;
}

.toc .h3 { padding-left: 20px; }
.toc .h4, .toc .h5, .toc .h6 { padding-left: 40px; }

.toc a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.toc a:hover {
  color: var(--accent);
}

@media (max-width: 520px) {
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
