/* Post page layout */
.post-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.post-hero-inner {
  max-width: 740px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

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

.post-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.post-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.post-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-info-date {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.post-info-read {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Article body */
.article-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 3rem;
  align-items: start;
}

.article-body h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  line-height: 1.4;
}

.article-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.article-body p {
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.8;
}

.article-body ul, .article-body ol {
  margin: 0.75rem 0 1rem 1.5rem;
  color: var(--text);
}

.article-body li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.article-body strong { font-weight: 600; }

.article-body .inline-code {
  background: #1e1e2e;
  color: #cdd6f4;
  font-family: var(--mono);
  font-size: 0.82rem;
  padding: 1px 6px;
  border-radius: 4px;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
}

.tip {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.tip strong { color: #166534; }

.warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.warning strong { color: #9a3412; }

/* TOC sidebar */
.toc {
  position: sticky;
  top: 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.toc h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.toc ul { list-style: none; margin: 0; }

.toc li { margin-bottom: 0.3rem; }

.toc a {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

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

/* Post nav */
.post-nav {
  max-width: 740px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.post-nav a {
  font-size: 0.875rem;
  color: var(--accent);
}

.post-nav a:hover { text-decoration: underline; }

@media (max-width: 680px) {
  .article-wrap { grid-template-columns: 1fr; }
  .toc { display: none; }
  .post-title { font-size: 1.5rem; }
}
