.blog-hero {
  padding-bottom: 28px;
}

body.blog-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.blog-page main {
  flex: 1 0 auto;
}

body.blog-page [data-site-footer] {
  margin-top: auto;
}

.blog-listing-section {
  padding-top: 24px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.blog-card {
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, rgba(237, 197, 128, 0.06), rgba(0, 0, 0, 0.2)), var(--dark-card);
  border: 1px solid rgba(237, 197, 128, 0.18);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(237, 197, 128, 0.4);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.blog-card-cover {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.blog-card-body {
  padding: 16px 16px 20px;
}

.blog-card-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 10px;
}

.blog-card-summary {
  line-height: 1.65;
  color: var(--text);
}

.blog-empty {
  padding: 24px;
  border-radius: 8px;
  border: 1px dashed rgba(237, 197, 128, 0.35);
  color: var(--text-dim);
}

.blog-post-shell {
  padding-top: 84px;
}

.post-back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--gold);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-back-link:hover {
  text-decoration: underline;
}

.post-header {
  margin-bottom: 20px;
}

.post-meta-line {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 10px;
}

.post-cover {
  margin: 0 0 28px;
  border: 1px solid rgba(237, 197, 128, 0.25);
  border-radius: 8px;
  overflow: hidden;
}

.post-cover img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.post-content {
  max-width: 760px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 1.5em;
  margin-bottom: 0.55em;
}

.post-content p,
.post-content li,
.post-content blockquote {
  line-height: 1.78;
  color: var(--text);
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content pre,
.post-content blockquote {
  margin-bottom: 1.15em;
}

.post-content a {
  color: var(--gold);
}

.post-content img {
  margin: 16px 0 8px;
  border: 1px solid rgba(237, 197, 128, 0.25);
  border-radius: 8px;
}

.post-content figcaption {
  color: var(--text-dim);
  font-size: 13px;
}

.post-content code {
  background: rgba(237, 197, 128, 0.08);
  border: 1px solid rgba(237, 197, 128, 0.18);
  border-radius: 4px;
  font-size: 0.9em;
  padding: 0.15em 0.35em;
}

.post-content pre {
  background: #070707;
  border: 1px solid rgba(237, 197, 128, 0.2);
  border-radius: 8px;
  padding: 14px;
  overflow-x: auto;
}

.post-content pre code {
  background: transparent;
  border: 0;
  padding: 0;
}

@media (max-width: 740px) {
  .blog-post-shell {
    padding-top: 72px;
  }

  .blog-card-title {
    font-size: 24px;
  }
}
