/* ══════════════════════════════════════
   BLOG — listing, post, hero variants
   Builds on css/style.css design tokens
   ══════════════════════════════════════ */

/* ── Hero — listing page (dark, full-bleed) ── */
.blog-listing-hero {
  padding: 180px 24px 100px;
  background: var(--obsidian);
  color: var(--white);
  text-align: center;
  position: relative;
}
.blog-listing-hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: rgba(255,255,255,0.06);
}
.blog-listing-hero__inner { max-width: var(--max-w); margin: 0 auto; }
.blog-listing-hero .lif-label { justify-content: center; margin-bottom: 24px; }
.blog-listing-hero h1 {
  font-family: var(--font-accent);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.blog-listing-hero h1 em { font-style: italic; font-weight: 400; color: var(--soft-moss); }
.blog-listing-hero p {
  font-size: 1.05rem; font-weight: 300; line-height: 1.7;
  color: rgba(255,255,255,0.72); max-width: 640px; margin: 0 auto;
}

/* ── Card grid ── */
.blog-grid-wrap {
  padding: 40px 24px 120px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 640px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(26,26,26,0.10); }
.blog-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--warm-cream);
}
.blog-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.blog-card:hover .blog-card__media img { transform: scale(1.04); }
.blog-card__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.blog-card__play::after {
  content: ''; display: block;
  width: 0; height: 0;
  border-style: solid; border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--deep-olive);
  margin-left: 4px;
}
.blog-card__body {
  padding: 24px 24px 28px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.blog-card__meta {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--terracotta);
  display: flex; align-items: center; gap: 10px;
}
.blog-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(26,26,26,0.3); }
.blog-card__title {
  font-family: var(--font-accent);
  font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.01em;
  color: var(--obsidian);
}
.blog-card__excerpt {
  font-size: 0.95rem; line-height: 1.6;
  color: rgba(26,26,26,0.65);
}
.blog-card__more {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--deep-olive);
  display: inline-flex; align-items: center; gap: 10px;
}
.blog-card__more::after {
  content: ''; width: 18px; height: 1px; background: currentColor;
  transition: width 0.3s;
}
.blog-card:hover .blog-card__more::after { width: 28px; }

.blog-grid-empty {
  padding: 80px 24px;
  text-align: center;
  color: rgba(26,26,26,0.55);
  font-size: 1rem;
}

/* ══════════════════════════════════════
   POST PAGE
   ══════════════════════════════════════ */

/* ── Hero — image variant ── */
.blog-hero {
  position: relative;
  min-height: 70vh;
  display: flex; align-items: flex-end;
  padding: 120px 24px 60px;
  overflow: hidden;
  background: var(--obsidian);
}
.blog-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  opacity: 0.85;
  animation: blogHeroZoom 14s var(--ease) forwards;
}
@keyframes blogHeroZoom { from { transform: scale(1.04); } to { transform: scale(1); } }
.blog-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.10) 45%, rgba(0,0,0,0.55) 80%, rgba(0,0,0,0.85) 100%);
}
.blog-hero__inner {
  position: relative; z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto; width: 100%;
}
.blog-hero .lif-label { color: var(--soft-moss); margin-bottom: 16px; }
.blog-hero .lif-label::before { background: var(--soft-moss); }
.blog-hero__title {
  font-family: var(--font-accent);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.08; letter-spacing: -0.02em;
  color: var(--white);
  max-width: 920px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.blog-hero__title em { font-style: italic; font-weight: 400; }

/* ── Hero — video variant ── */
.blog-hero--video .blog-hero__bg { display: none; }
.blog-hero__video {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.blog-hero__video iframe,
.blog-hero__video video {
  position: absolute; top: 50%; left: 50%;
  width: 177.78vh; height: 100vh;
  min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%) scale(1.2);
  pointer-events: none; border: 0;
  object-fit: cover;
}

/* ── Meta strip under hero ── */
.blog-meta {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(26,26,26,0.55);
}
.blog-meta__author { color: var(--obsidian); }
.blog-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(26,26,26,0.3); }

/* ── Article body typography ── */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(26,26,26,0.85);
}
.blog-article > * + * { margin-top: 1.4em; }
.blog-article h2 {
  font-family: var(--font-accent);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2; letter-spacing: -0.01em;
  color: var(--obsidian);
  margin-top: 2em;
}
.blog-article h3 {
  font-family: var(--font-body);
  font-size: 1.25rem; font-weight: 600;
  color: var(--obsidian);
  margin-top: 1.8em;
}
.blog-article p { font-weight: 300; }
.blog-article a {
  color: var(--deep-olive);
  border-bottom: 1px solid rgba(66,104,46,0.3);
  transition: border-color 0.2s;
}
.blog-article a:hover { border-bottom-color: var(--deep-olive); }
.blog-article ul, .blog-article ol { padding-left: 1.4em; }
.blog-article li + li { margin-top: 0.5em; }
.blog-article blockquote {
  border-left: 3px solid var(--deep-olive);
  padding: 8px 0 8px 24px;
  font-family: var(--font-accent);
  font-size: 1.4rem; line-height: 1.4;
  font-style: italic;
  color: var(--obsidian);
}
.blog-article figure {
  margin: 2em 0;
}
.blog-article figure img,
.blog-article figure video,
.blog-article figure iframe {
  width: 100%; height: auto;
  border-radius: var(--radius-md);
  display: block;
}
.blog-article figure iframe { aspect-ratio: 16 / 9; }
.blog-article figcaption {
  margin-top: 12px;
  font-size: 0.85rem; color: rgba(26,26,26,0.55);
  text-align: center; font-style: italic;
}
.blog-article hr {
  border: 0; height: 1px;
  background: rgba(26,26,26,0.12);
  margin: 3em auto;
  max-width: 120px;
}

/* ── Related posts ── */
.blog-related {
  background: var(--warm-cream);
  padding: 80px 24px;
}
.blog-related__inner {
  max-width: var(--max-w); margin: 0 auto;
}
.blog-related h2 {
  font-family: var(--font-accent);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 40px;
  text-align: center;
}
.blog-related h2 em { font-style: italic; color: var(--deep-olive); }

/* ── CTA band ── */
.blog-cta {
  background: var(--deep-olive);
  color: var(--white);
  padding: 100px 24px;
  text-align: center;
}
.blog-cta__inner { max-width: 720px; margin: 0 auto; }
.blog-cta .lif-label { color: var(--soft-moss); justify-content: center; margin-bottom: 20px; }
.blog-cta .lif-label::before { background: var(--soft-moss); }
.blog-cta h2 {
  font-family: var(--font-accent);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.blog-cta h2 em { font-style: italic; }
.blog-cta p {
  font-size: 1.05rem; font-weight: 300; line-height: 1.7;
  color: rgba(255,255,255,0.78);
  margin-bottom: 36px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}

@media (max-width: 640px) {
  .blog-listing-hero { padding: 140px 20px 56px; }
  .blog-grid-wrap { padding: 24px 20px 80px; }
  .blog-hero { min-height: 60vh; padding: 120px 20px 48px; }
  .blog-meta { padding: 32px 20px 0; gap: 10px; font-size: 0.7rem; }
  .blog-article { padding: 32px 20px 64px; font-size: 1rem; }
  .blog-related { padding: 56px 20px; }
  .blog-cta { padding: 72px 20px; }
}
