/* ==========================================================================
   POST PAGE - posts/[slug]/index.html & projects/[slug]/index.html
   Theme-aware typography (Obsidian Dark & Alabaster Light)
   ========================================================================== */

.post-header {
  padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-12);
  border-bottom: 1px solid var(--color-border);
}

.post-header__inner {
  max-width: var(--max-width-narrow);
}

.post-header__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  transition: color var(--duration-fast);
}
.post-header__back:hover { color: var(--color-accent); }

.post-header__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.post-header__date,
.post-header__read-time {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.post-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-5);
  color: var(--color-text);
}

.post-header__excerpt {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 640px;
}

.post-body { padding: var(--space-12) 0 var(--space-16); }

.post-content {
  max-width: var(--max-width-narrow);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text-body);
}

.post-content > p:first-of-type {
  font-size: clamp(1.08rem, 1.4vw, 1.2rem);
  line-height: 1.72;
  color: var(--color-text);
}

.post-content p {
  margin-bottom: var(--space-6);
  color: var(--color-text-body);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--color-text);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}
.post-content h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.post-content h3 { font-size: 1.25rem; }

.post-content ul,
.post-content ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-8);
  list-style: initial;
}
.post-content ol { list-style: decimal; }
.post-content li {
  margin-bottom: var(--space-3);
  color: var(--color-text-body);
  line-height: 1.72;
}

.post-content li.checklist-item {
  list-style: none;
  margin-left: calc(-1 * var(--space-8));
  padding-left: 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.post-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding: var(--space-3) var(--space-6);
  margin: var(--space-8) 0;
  background: var(--color-surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-content blockquote p {
  margin-bottom: 0;
  color: var(--color-text);
}

.post-content strong { font-weight: 600; color: var(--color-text); }
.post-content em { font-style: italic; }

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.15em 0.4em;
  color: var(--color-text);
}

.post-content pre {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  overflow-x: auto;
  margin-bottom: var(--space-6);
}
.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-10) 0;
}

.post-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-footer {
  padding: var(--space-12) 0 var(--space-20);
  border-top: 1px solid var(--color-border);
}

.post-footer__inner {
  max-width: var(--max-width-narrow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.post-footer__cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.post-footer__cta-text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
}
