/* ==========================================================================
   Blog Entry Page
   ========================================================================== */
#blog-post {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-2xl);
}

.post-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-heading);
}

.post-meta {
  font-family: var(--font-ui);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  padding-bottom: 0;
}

.post-meta .post-date,
.post-meta .post-edited {
  display: inline;
}

.post-meta .post-edited::before {
  content: " | ";
}

.post-meta time {
  white-space: nowrap;
}

/* Post body content */
.post-content {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-body);
}

.post-content > :first-child {
  margin-top: 0;
}

.post-content h2 {
  font-size: 1.4rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
}

.post-content h3 {
  font-size: 1.15rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.post-content ul,
.post-content ol {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.post-content li {
  margin-bottom: var(--space-xs);
}

.post-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content em {
  text-decoration: underline;
  text-underline-offset: 1px;
}

.post-content img {
  border-radius: var(--border-radius);
  margin: var(--space-lg) auto;
}

/* Back link above the post */
.back-link {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.back-link:hover {
  color: var(--color-accent);
  text-decoration: none;
}
