/* --- Header Styling --- */
.post-header {
  margin-top: 60px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 30px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent-indigo);
  text-decoration: none;
  margin-bottom: 20px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.7;
}

.post-title {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.post-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

/* --- Content Body Styling --- */
.post-body {
  font-size: 17px;
  line-height: 1.8;
  color: #e2e8f0; /* Soft white for long-form reading */
  max-width: 750px; /* Optimal line length for readability */
}

.post-body h2, .post-body h3 {
  color: #ffffff;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.post-body p {
  margin-bottom: 1.5em;
}

/* Style for Markdown images */
.post-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Style for code blocks */
.post-body pre {
  background: #1a2235;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid rgba(129, 140, 248, 0.2);
}

.post-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  background: rgba(129, 140, 248, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}