/* ---------- Cover Image ---------- */
.post-cover {
  width: 100%;
  height: 480px;
  background-color: var(--color-sand);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* ---------- Body Wrap / Article Column ---------- */
.post-body {
  padding: 56px 0;
}

.post-article {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-meta__category {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-terracotta);
  text-transform: uppercase;
}

.post-meta__dot,
.post-meta__date {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
}

.post-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
  color: var(--text-primary);
}

/* ---------- Article Prose (renders Ghost's {{content}}) ---------- */
.article-prose {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 28px;
  color: var(--text-primary);
}

.article-prose h1,
.article-prose h2,
.article-prose h3,
.article-prose h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.article-prose h2 {
  font-size: 28px;
}

.article-prose h3 {
  font-size: 22px;
}

.article-prose h4 {
  font-size: 19px;
}

.article-prose strong {
  font-weight: 600;
}

.article-prose em {
  font-style: italic;
}

.article-prose a {
  color: var(--color-terracotta);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-prose a:hover {
  color: var(--color-terracotta-dark);
}

.article-prose ul,
.article-prose ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-left: 1.25em;
}

.article-prose li {
  line-height: 28px;
}

.article-prose blockquote {
  margin: 0;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--color-terracotta);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-primary);
}

.article-prose figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-prose img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

.article-prose figcaption {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

.article-prose iframe {
  width: 100%;
  max-width: 100%;
  border: none;
  border-radius: var(--radius-md);
}

.article-prose hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 0;
}

/* ---------- Related Articles ---------- */
.post-related {
  width: 100%;
  background-color: var(--color-sand);
  padding: 40px 0 80px;
}

.post-related .section-head {
  margin-bottom: var(--space-lg);
}

.post-related .section-head__heading {
  font-size: 24px;
  margin-top: 0;
}

.post-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .post-cover {
    height: 320px;
  }

  .post-body {
    padding: 40px 0;
  }

  .post-title {
    font-size: 32px;
    line-height: 1.25;
  }

  .post-related__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .post-cover {
    height: 220px;
  }

  .post-body {
    padding: 32px 0;
  }

  .post-article {
    gap: 16px;
  }

  .post-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .article-prose {
    font-size: 16px;
    line-height: 26px;
    gap: 16px;
  }

  .article-prose blockquote {
    font-size: 18px;
  }

  .post-related {
    padding: 32px 0 48px;
  }

  .post-related__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
