/* ==========================================================================
   Blog page — featured post, article grid, article reader modal
   ========================================================================== */

.featured-post {
  display: grid;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--ink);
  text-align: left;
  box-shadow: 0 30px 60px -20px rgba(36,24,9,0.4);
}
@media (min-width: 1024px) { .featured-post { grid-template-columns: repeat(2, 1fr); } }
.featured-post-media { overflow: hidden; }
.featured-post-media img { height: 100%; width: 100%; object-fit: cover; min-height: 280px; transition: transform 0.7s ease; }
.featured-post:hover .featured-post-media img { transform: scale(1.05); }
.featured-post-body { display: flex; flex-direction: column; justify-content: center; padding: 2.5rem; }
@media (min-width: 1024px) { .featured-post-body { padding: 3.5rem; } }
.featured-post-tag {
  display: inline-flex; align-items: center; gap: 0.5rem; width: fit-content;
  border-radius: 999px; background: var(--sunset); color: var(--cream);
  padding: 0.4rem 1rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
}
.featured-post-tag svg { width: 12px; height: 12px; }
.featured-post-body h2 { margin-top: 1.25rem; font-family: var(--font-display); font-weight: 900; line-height: 1.2; color: var(--cream); font-size: clamp(1.5rem, 3vw, 2.25rem); }
.featured-post-body p { margin-top: 1rem; font-size: 1.125rem; line-height: 1.65; color: rgba(250,243,227,0.75); }
.featured-post-meta { display: flex; gap: 1rem; font-size: 0.875rem; font-weight: 600; color: rgba(250,243,227,0.6); }
.featured-post-meta span { display: flex; align-items: center; gap: 0.4rem; }
.featured-post-meta svg { width: 14px; height: 14px; }
.featured-post-cta { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.75rem; font-weight: 700; color: var(--gold); }
.featured-post-cta svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.featured-post:hover .featured-post-cta svg { transform: translateX(3px); }

.blog-grid { margin-top: 3.5rem; display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  display: flex; flex-direction: column;
  height: 100%; width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--cream);
  text-align: left;
  box-shadow: 0 15px 30px -15px rgba(36,24,9,0.2);
  transition: transform 0.3s ease;
}
.blog-card:hover { transform: translateY(-6px); }
.blog-card-media { overflow: hidden; }
.blog-card-media img { aspect-ratio: 16/10; width: 100%; object-fit: cover; transition: transform 0.7s ease; }
.blog-card:hover .blog-card-media img { transform: scale(1.1); }
.blog-card-body { flex: 1; display: flex; flex-direction: column; padding: 1.5rem; }
.blog-card-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sunset); }
.blog-card-body h3 { margin-top: 0.5rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.blog-card:hover .blog-card-body h3 { color: var(--russet); }
.blog-card-excerpt {
  margin-top: 0.5rem; flex: 1; font-size: 0.9rem; line-height: 1.6; color: rgba(36,24,9,0.65);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-meta {
  display: flex; gap: 1rem; margin-top: 1rem;
  border-top: 1px solid rgba(204,129,56,0.15); padding-top: 1rem;
  font-size: 0.75rem; font-weight: 600; color: rgba(36,24,9,0.5);
}
.blog-card-meta span { display: flex; align-items: center; gap: 0.35rem; }
.blog-card-meta svg { width: 13px; height: 13px; }

/* ---- Article reader modal ---- */
.article-reader {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  visibility: hidden; opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.article-reader.is-open { visibility: visible; opacity: 1; }
.article-reader-backdrop { position: absolute; inset: 0; background: rgba(36,24,9,0.7); }
.article-reader-panel {
  position: relative;
  max-width: 48rem; width: 100%; max-height: 90vh;
  overflow-y: auto;
  background: var(--cream);
  border-radius: var(--radius-lg);
}
.article-reader-hero { position: relative; }
.article-reader-hero img { aspect-ratio: 16/8; width: 100%; object-fit: cover; }
.article-reader-close {
  position: absolute; right: 1rem; top: 1rem;
  border-radius: 999px; background: rgba(36,24,9,0.6);
  padding: 0.55rem; color: var(--cream); backdrop-filter: blur(4px);
}
.article-reader-close:hover { background: var(--sunset); }
.article-reader-close svg { width: 20px; height: 20px; }
.article-reader-body { padding: 2rem 1.75rem; }
@media (min-width: 640px) { .article-reader-body { padding: 2rem 2.5rem; } }
.article-reader-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sunset); }
.article-reader-meta span { display: flex; align-items: center; gap: 0.4rem; }
.article-reader-meta svg { width: 14px; height: 14px; }
#article-date, #article-read { color: rgba(36,24,9,0.5); }
.article-reader-body h2 { margin-top: 0.75rem; font-family: var(--font-display); font-weight: 900; line-height: 1.25; color: var(--ink); font-size: clamp(1.5rem, 3vw, 2.25rem); }
.article-reader-body #article-content p { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.7; color: rgba(36,24,9,0.8); }
.article-reader-note { margin-top: 2rem; border-radius: 1rem; background: var(--sand); padding: 1.5rem; }
.article-reader-note-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.article-reader-note p { margin-top: 0.25rem; font-size: 0.9rem; color: rgba(36,24,9,0.65); }

/* ---- Empty state ---- */
.blog-empty { text-align: center; padding: 3rem 0; font-size: 1.05rem; color: rgba(36,24,9,0.6); }
