/* Blog listing + article (SSR pages) */

.blog-main {
  padding-top: 24px;
  padding-bottom: 64px;
  min-height: 50vh;
}

.blog-wrap {
  max-width: 960px;
}

.blog-header {
  text-align: center;
  margin-bottom: 36px;
}

.blog-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.blog-header p {
  color: var(--color-text-secondary, #666);
}

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

.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--color-border, #e8e4df);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.blog-card-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #f0ebe6;
}

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

.blog-card-body time {
  font-size: 0.8rem;
  color: var(--color-text-secondary, #888);
}

.blog-card-body h2 {
  font-size: 1.1rem;
  margin: 6px 0 8px;
  line-height: 1.35;
}

.blog-card-body p {
  font-size: 0.9rem;
  color: var(--color-text-secondary, #666);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-empty {
  text-align: center;
  color: #888;
  grid-column: 1 / -1;
}

.blog-article {
  max-width: 740px;
}

.blog-back {
  margin-bottom: 20px;
}

.blog-back a {
  color: var(--color-accent, #6b5b95);
  text-decoration: none;
}

.blog-article-header time {
  font-size: 0.9rem;
  color: #888;
}

.blog-article-header h1 {
  font-size: 2rem;
  margin: 10px 0 12px;
  line-height: 1.25;
}

.blog-lead {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}

.blog-article-cover {
  width: 100%;
  border-radius: 16px;
  margin: 24px 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #333;
}

.blog-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.blog-prose h2,
.blog-prose h3 {
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

.blog-prose p {
  margin-bottom: 1em;
}

/* Home latest posts strip */
.home-posts {
  padding: 48px 0 16px;
}

.home-posts-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.home-posts-header h2 {
  font-size: 1.4rem;
}

.home-posts-header a {
  color: var(--color-accent, #6b5b95);
  text-decoration: none;
  font-size: 0.95rem;
}
