/* ============================================
   ONE FOR ALL — BLOG (index + article pages)
   Reuses shared nav/footer/section-tag from styles.css.
============================================ */

/* ============== SHARED HERO (mirrors svc-hero) ============== */
.blog-hero {
  padding: 180px 48px 64px;
  max-width: 1100px;
  margin: 0 auto;
}
.blog-hero .crumb {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 28px;
}
.blog-hero .crumb a { color: var(--mid); text-decoration: none; transition: color 0.3s; }
.blog-hero .crumb a:hover { color: var(--ink); text-decoration: underline; }

.blog-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 9vw, 110px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}
.blog-hero h1 em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
}
.blog-hero .lede {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.6;
  color: var(--soft);
  max-width: 680px;
}

/* ============== INDEX GRID ============== */
.blog-wrap { padding: 0 48px 90px; }
.blog-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.blog-card {
  background: var(--bone);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: background 0.35s, color 0.35s;
}
.blog-card:hover { background: var(--ink); color: var(--bone); }

.blog-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--paper);
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.05);
  transition: transform 0.6s ease, filter 0.4s;
}
.blog-card:hover .blog-card-media img { transform: scale(1.06); filter: grayscale(0%); }

.blog-card-body {
  padding: 26px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.blog-card-meta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}
.blog-card:hover .blog-card-meta { color: rgba(250, 250, 250, 0.6); }
.blog-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  line-height: 1.02;
  letter-spacing: 0.02em;
}
.blog-card-excerpt {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  color: var(--soft);
}
.blog-card:hover .blog-card-excerpt { color: rgba(250, 250, 250, 0.8); }
.blog-card-go {
  margin-top: auto;
  padding-top: 6px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Featured (first) card spans two columns so 5 posts fill the grid cleanly */
.blog-card.is-featured {
  grid-column: span 2;
  flex-direction: row;
}
.blog-card.is-featured .blog-card-media {
  flex: 0 0 50%;
  aspect-ratio: auto;
}
.blog-card.is-featured .blog-card-body {
  justify-content: center;
  padding: 44px 48px;
  gap: 16px;
}
.blog-card.is-featured .blog-card-title { font-size: 44px; }
.blog-card.is-featured .blog-card-excerpt { font-size: 16px; max-width: 46ch; }

/* ============== ARTICLE PAGE ============== */
.post-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 170px 48px 40px;
}
.post-hero .crumb {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 26px;
}
.post-hero .crumb a { color: var(--mid); text-decoration: none; transition: color 0.3s; }
.post-hero .crumb a:hover { color: var(--ink); text-decoration: underline; }

.post-cat {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 6px 12px;
  margin-bottom: 22px;
}
.post-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(38px, 6.5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.post-hero h1 em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
}
.post-byline {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mid);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}
.post-byline .dot { opacity: 0.4; }

.post-feature {
  max-width: 1000px;
  margin: 0 auto 56px;
  padding: 0 48px;
}
.post-feature img {
  width: 100%;
  height: clamp(280px, 42vw, 500px);
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
}
.post-feature figcaption {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mid);
  margin-top: 10px;
  text-align: center;
}

/* Article prose */
.post-prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 48px 80px;
}
.post-prose > p:first-of-type {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
}
.post-prose h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.02em;
  margin: 46px 0 16px;
}
.post-prose h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.02em;
  margin: 32px 0 12px;
}
.post-prose p {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.85;
  color: var(--soft);
  margin-bottom: 20px;
}
.post-prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.post-prose a:hover { color: var(--mid); }
.post-prose ul, .post-prose ol {
  margin: 4px 0 24px;
  padding: 0;
  list-style: none;
}
.post-prose li {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--soft);
  padding: 11px 0 11px 28px;
  border-bottom: 1px solid var(--paper);
  position: relative;
}
.post-prose li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--ink);
}
.post-prose blockquote {
  border-left: 3px solid var(--ink);
  padding: 6px 0 6px 26px;
  margin: 32px 0;
}
.post-prose blockquote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

/* Inline book CTA */
.post-cta {
  background: var(--ink);
  color: var(--bone);
  padding: 40px 44px;
  max-width: 720px;
  margin: 8px auto 0;
  text-align: center;
}
.post-cta h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.post-cta p {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(250, 250, 250, 0.8);
  max-width: 440px;
  margin: 0 auto 24px;
}
.post-cta .svc-btn {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}
.post-cta .svc-btn:hover { background: transparent; color: var(--bone); }

/* Article FAQ */
.post-faq {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 48px 8px;
}
.post-faq h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.faq-item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.faq-item p {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--soft);
}
.faq-item p a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* Back / related */
.post-more {
  background: var(--paper);
  padding: 64px 48px;
  margin-top: 72px;
}
.post-more-inner { max-width: 1100px; margin: 0 auto; }
.post-more h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.post-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.post-more-grid a {
  background: var(--bone);
  padding: 26px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.3s, color 0.3s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 130px;
}
.post-more-grid a:hover { background: var(--ink); color: var(--bone); }
.post-more-grid .m-cat {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--mid);
}
.post-more-grid a:hover .m-cat { color: rgba(250, 250, 250, 0.6); }
.post-more-grid .m-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: 0.02em;
}
.post-more-grid .m-arrow { margin-top: auto; font-size: 16px; opacity: 0.5; }

/* ============== RESPONSIVE ============== */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card.is-featured { flex-direction: column; }
  .blog-card.is-featured .blog-card-media { flex: none; aspect-ratio: 3 / 2; }
  .blog-card.is-featured .blog-card-body { padding: 30px 28px; }
  .blog-card.is-featured .blog-card-title { font-size: 34px; }
}
@media (max-width: 768px) {
  .blog-hero { padding: 140px 24px 48px; }
  .blog-wrap { padding: 0 24px 60px; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-hero { padding: 130px 24px 32px; }
  .post-feature { padding: 0 24px; margin-bottom: 40px; }
  .post-prose { padding: 0 24px 60px; }
  .post-faq { padding: 8px 24px; }
  .post-cta { padding: 34px 26px; }
  .post-more { padding: 48px 24px; }
}
