/* Blog list + single post — extends the main site styles. */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ece9e3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.blog-card-img {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft) center/cover no-repeat;
}
.blog-card-img.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 2.4rem; color: var(--accent);
  background: linear-gradient(135deg, #2f3e49, #1f2a33);
}
.blog-card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-card-date { font-size: .78rem; color: var(--accent); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.blog-card-body h3 { margin: 10px 0 10px; font-size: 1.25rem; line-height: 1.3; }
.blog-card-body h3 a { color: var(--text); }
.blog-card-body h3 a:hover { color: var(--primary); }
.blog-card-body p { color: var(--text-light); font-size: .94rem; margin: 0 0 18px; }
.blog-card-more { margin-top: auto; color: var(--primary); font-weight: 600; font-size: .9rem; }

.blog-empty { text-align: center; color: var(--text-light); padding: 40px 0; }

/* ---- Single post ---- */
.post-article { max-width: 760px; margin: 0 auto; padding: 64px 0 40px; }
.post-meta { font-size: .82rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.post-article h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; margin: 14px 0 22px; }
.post-cover { width: 100%; border-radius: 14px; margin: 8px 0 30px; }
.post-body { font-size: 1.06rem; line-height: 1.8; color: #3a3a3a; }
.post-body p { margin: 0 0 20px; color: #3a3a3a; }
.post-body h2 { font-size: 1.5rem; margin: 34px 0 14px; }
.post-body h3 { font-size: 1.2rem; margin: 28px 0 12px; }
.post-body ul, .post-body ol { margin: 0 0 20px; padding-left: 22px; }
.post-body li { margin-bottom: 8px; }
.post-body img { max-width: 100%; border-radius: 10px; }
.post-body a { color: var(--primary); text-decoration: underline; }
.post-back { display: inline-block; margin-bottom: 26px; color: var(--primary); font-weight: 600; }
