/* ══════════════════════════════════════════════════════════
   Blog styles — shared by the Worker-rendered /blog index and
   /blog/<slug> articles. Linked alongside theme.css, shared-nav.css
   and animations.css. Index vs article are scoped via body classes
   (.blog-index / .blog-article) to avoid .container / .article-meta clashes.
   ══════════════════════════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--sans); color: var(--text); background: var(--warm-white); line-height: 1.7; font-weight: 300; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Article (/blog/<slug>) ── */
.page-header { background: linear-gradient(135deg, rgba(200, 169, 110, 0.08) 0%, rgba(184, 169, 154, 0.06) 100%); padding: 3rem 2rem; text-align: center; border-bottom: 1px solid var(--border); animation: fadeIn 0.8s ease-out; }
.article-eyebrow { font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin-bottom: 0.9rem; }
.page-header h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 300; color: var(--charcoal); margin: 0 auto 0.9rem; letter-spacing: -0.5px; max-width: 800px; }
.blog-article .article-meta { font-size: 0.8rem; color: var(--text-light); letter-spacing: 0.02em; }
.blog-article .container { max-width: 760px; margin: 0 auto; padding: 3rem 2rem; }
.article-body h2 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--charcoal); margin: 2.4rem 0 1rem; line-height: 1.25; }
.article-body p { font-size: 1.02rem; line-height: 1.85; color: var(--text); margin-bottom: 1.2rem; }
.article-body .lead { font-size: 1.12rem; color: var(--charcoal); font-weight: 400; }
.article-body a:not(.btn) { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.article-body ul { margin: 0 0 1.2rem 1.2rem; }
.article-body li { font-size: 1.02rem; line-height: 1.8; margin-bottom: 0.5rem; }
.article-cta { text-align: center; padding: 2.5rem 1.5rem; background: var(--cream); border: 1px solid var(--border); border-radius: 10px; margin: 3rem 0 1rem; }
.article-cta h2 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--charcoal); margin-bottom: 0.6rem; }
.article-cta p { color: var(--text-light); margin-bottom: 1.5rem; font-size: 0.95rem; }
.article-cta .btn { display: inline-block; padding: 0.85rem 2rem; border-radius: 3px; font-family: var(--sans); font-weight: 500; font-size: 0.9rem; text-decoration: none; margin: 0.3rem; transition: all 0.3s ease; }
.btn-primary { background: var(--gold); color: var(--warm-white); border: 1px solid var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-secondary { background: var(--warm-white); color: var(--charcoal); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--cream); }
.article-back { display: inline-block; margin-top: 2rem; font-size: 0.85rem; color: var(--text-light); text-decoration: none; }
.article-back:hover { color: var(--gold-deep); }

/* ── Index (/blog) ── */
.blog-index .container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.blog-header { text-align: center; padding: 3rem 2rem; animation: fadeIn 0.8s ease-out; }
.blog-header h1 { font-family: var(--serif); font-size: 3.5rem; font-weight: 300; color: var(--text); margin-bottom: 0.5rem; letter-spacing: 2px; }
.blog-header p { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; font-weight: 300; }
.blog-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 0 0 2.5rem; }
.blog-filter { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.03em; padding: 0.5rem 1.1rem; border: 1px solid var(--border); background: transparent; color: var(--text-light); border-radius: 999px; cursor: pointer; transition: all 0.2s ease; }
.blog-filter:hover { border-color: var(--gold-deep); color: var(--charcoal); }
.blog-filter.active { background: var(--charcoal); color: var(--warm-white); border-color: var(--charcoal); }
.featured-article { background: var(--cream); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 4rem; animation: fadeIn 0.8s ease-out 0.3s both; text-decoration: none; color: inherit; }
.featured-img { width: 100%; height: 400px; object-fit: cover; }
.featured-content { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.category-tag { display: inline-block; background: var(--gold); color: var(--warm-white); padding: 0.4rem 0.9rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 1rem; width: fit-content; }
.featured-content h2 { font-family: var(--serif); font-size: 2.2rem; font-weight: 400; color: var(--text); margin-bottom: 1rem; line-height: 1.2; }
.featured-content p { color: var(--text-light); margin-bottom: 1.5rem; line-height: 1.7; font-size: 1.05rem; }
.blog-index .article-meta { display: flex; gap: 1.5rem; align-items: center; color: var(--text-light); font-size: 0.9rem; margin-bottom: 1.5rem; }
.blog-index .article-meta span { display: flex; align-items: center; gap: 0.4rem; }
.read-more { display: inline-block; color: var(--gold-deep); text-decoration: none; font-weight: 600; letter-spacing: 0.5px; padding: 0.6rem 0; border-bottom: 2px solid var(--gold); transition: all 0.3s ease; width: fit-content; }
.read-more:hover { color: var(--gold-light); border-color: var(--gold-light); padding-left: 0.5rem; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; margin-bottom: 4rem; }
.article-card { background: var(--cream); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; transition: all 0.3s ease; animation: fadeIn 0.6s ease-out both; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.article-card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(60, 53, 48, 0.1); border-color: var(--gold-light); }
.article-img { width: 100%; height: 240px; object-fit: cover; display: block; }
.article-card-content { padding: 1.8rem; display: flex; flex-direction: column; flex-grow: 1; }
.article-card .category-tag { margin-bottom: 0.8rem; }
.article-card h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; color: var(--text); margin-bottom: 0.8rem; line-height: 1.3; }
.article-card p { color: var(--text-light); margin-bottom: 1.2rem; line-height: 1.6; font-size: 0.95rem; flex-grow: 1; }
.article-card .article-meta { margin-bottom: 1rem; margin-top: auto; }

/* Responsive */
@media (max-width: 768px) {
  .blog-header h1 { font-size: 2.5rem; }
  .blog-header p { font-size: 1rem; }
  .featured-article { grid-template-columns: 1fr; }
  .featured-img { height: 300px; }
  .featured-content { padding: 2rem; }
  .featured-content h2 { font-size: 1.8rem; }
  .article-grid { grid-template-columns: 1fr; }
  .blog-index .container { padding: 0 1rem; }
  .article-card-content { padding: 1.5rem; }
  .page-header { padding: 3rem 1.5rem; }
  .blog-article .container { padding: 2rem 1.5rem; }
}
@media (max-width: 480px) {
  .blog-header { padding: 2rem 1rem; }
  .blog-header h1 { font-size: 2rem; }
  .featured-content h2 { font-size: 1.5rem; }
  .article-card h3 { font-size: 1.2rem; }
  .blog-index .article-meta { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
