/* ============================================================
   YML Refinery – Blog Stylesheet
   ============================================================ */

.blog-hero {
  background: var(--bg-darkest);
  padding: 80px 0 48px;
  border-bottom: 2px solid var(--border-gold);
}

.blog-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.blog-hero h1 em { color: var(--gold); font-style: normal; }

.blog-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
}

/* ── Grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding: 48px 0;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.blog-card h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  flex: 1;
}

.blog-card-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.blog-card-link:hover { color: var(--gold-light); }

/* ── Single Post ── */
.post-hero {
  background: var(--bg-darkest);
  padding: 72px 0 40px;
  border-bottom: 2px solid var(--border-gold);
}

.post-category {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.post-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  max-width: 820px;
  margin-bottom: 16px;
}

.post-hero h1 em { color: var(--gold); font-style: normal; }

.post-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

.post-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 0 64px;
}

.post-body h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 36px 0 14px;
}

.post-body h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
  margin: 28px 0 10px;
}

.post-body p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.post-body ul, .post-body ol {
  color: var(--text-secondary);
  padding-left: 24px;
  margin-bottom: 20px;
  line-height: 1.8;
}

.post-body li { margin-bottom: 6px; }

.post-body strong { color: var(--text-primary); }

.post-body a { color: var(--gold); }
.post-body a:hover { color: var(--gold-light); }

.post-cta {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 40px;
  text-align: center;
}

.post-cta h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.post-cta p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 6px; }

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-body { padding: 32px 0 48px; }
}
