/* =========================================
   POST PAGE STYLES
   ========================================= */

.post-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 3.5rem clamp(1.5rem, 5vw, 2.5rem) 5rem;
  animation: fadeUp 0.6s ease both;
}

.post-header {
  margin-bottom: 3rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }

.post-meta-header {
  display: flex;
  align-items: first baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.post-tags {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.tag-pill {
  white-space: nowrap; /* Prevents tags from breaking into two lines */
}

.post-heading {
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.post-lede {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.7;
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  margin-left: 0;
}

/* ---- ARTICLE BODY ---- */
.post-content {
  font-size: 1.0rem;
  line-height: 1.85;
  color: var(--text);
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 3rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.post-content h3 {
  font-size: 1.1rem;
  margin: 2rem 0 0.75rem;
  color: var(--text-light);
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(126, 184, 247, 0.3);
  text-underline-offset: 3px;
}
.post-content a:hover {
  text-decoration-color: var(--accent);
}

.post-content blockquote {
  border-left: 2px solid var(--accent-warm);
  padding: 0.5rem 1.25rem;
  margin: 2rem 0;
  color: var(--text-light);
  font-style: italic;
}

.post-content code {
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--accent-green);
  background: rgba(126, 247, 184, 0.07);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  border: 1px solid rgba(126, 247, 184, 0.15);
}

.post-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.75rem 0;
}
.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85em;
  color: var(--text-light);
  line-height: 1.65;
}

.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.post-content li { margin-bottom: 0.4rem; }

.post-content img {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* Paper callout box */
.paper-callout {
  margin: 2.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
}
.paper-callout .mono {
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}
.paper-callout p { margin-bottom: 0.75rem; color: var(--text-light); }

/* Post footer */
.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
