/* ========================================
   Post Pages
   ======================================== */

.post-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(26, 24, 22, 0.08);
  z-index: 2000;
}

#post-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--text);
  transform-origin: left center;
  transform: scaleX(0);
}

.article-shell {
  padding: 156px 48px 80px;
  max-width: 940px;
  margin: 0 auto;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.post-back::before {
  content: "←";
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

.post-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.post-deck {
  font-size: 18px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.post-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.post-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
}

.post-body {
  font-size: 18px;
  line-height: 2;
  color: var(--text-secondary);
}

.post-body p + p,
.post-body p + h2,
.post-body p + h3,
.post-body h2 + p,
.post-body h3 + p,
.post-body blockquote + p {
  margin-top: 18px;
}

.post-body h2,
.post-body h3 {
  font-family: var(--font-serif);
  color: var(--text);
}

.post-body h2 {
  font-size: 34px;
  line-height: 1.2;
  margin-top: 44px;
}

.post-body h3 {
  font-size: 24px;
  line-height: 1.3;
  margin-top: 32px;
}

.post-body strong {
  color: var(--text);
}

.post-body blockquote {
  margin: 32px 0;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--text);
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.7;
  color: var(--text);
}

.post-foot {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.post-foot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.post-related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.post-related-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 10px;
}

.post-related-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.post-related-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.post-related-link::after {
  content: "↗";
  font-size: 12px;
}

@media (max-width: 768px) {
  .article-shell {
    padding: 124px 20px 64px;
  }

  .post-body {
    font-size: 16px;
  }

  .post-foot-grid {
    grid-template-columns: 1fr;
  }
}
