/* ============================================================
   Blog — index page, tag archives, and individual post pages.

   Index/tag pages: light-gray topo intro + vertical list of
   blog-card rows (image-left, copy-right on desktop).
   Post pages: dark hero with title + date + tags, optional
   featured image strip, prose body on cream below.
   ============================================================ */

/* === BLOG INDEX / TAG INTRO === */

.blog-intro {
  padding-top: 72px;
  padding-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.blog-intro .container {
  position: relative;
  z-index: 2;
}
.blog-eyebrow-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.blog-eyebrow-link:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* === BLOG LIST === */

.blog-list-section {
  padding-top: 24px;
  padding-bottom: 96px;
}
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.blog-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: stretch;
  background: var(--bg-light);
  border: 1px solid var(--border-on-light);
  border-radius: var(--radius-card-lg, 14px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease-out, ease), border-color 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong-on-light);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}
.blog-card:focus-visible {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(220, 115, 76, 0.22);
}

.blog-card-media {
  position: relative;
  /* Stretch the image to fill its grid track horizontally and the
     full row height vertically. Inner <img> uses object-fit: cover
     so the image fills cleanly at any aspect. min-width: 0
     overrides the default grid-item min-width so the column can't
     burst past its 280px track when body content is long. */
  min-width: 0;
  align-self: stretch;
  min-height: 200px;
  background: linear-gradient(135deg, #e1dccf 0%, #c8c0aa 100%);
  overflow: hidden;
}
.blog-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: var(--weight-medium);
  letter-spacing: -0.04em;
  color: rgba(26, 24, 21, 0.18);
}

.blog-card-body {
  padding: 24px 28px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-card-meta {
  font-size: 12.5px;
  color: var(--text-dark-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.blog-card-meta-sep { opacity: 0.5; }
.blog-card-tag-lead {
  color: var(--orange);
  font-weight: var(--weight-medium);
}
.blog-card-body h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-h3);
  color: var(--text-dark);
  margin: 0 0 10px;
  line-height: 1.25;
}
.blog-card-body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark-2);
  margin: 0 0 14px;
}
.blog-card-link {
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--blue);
  letter-spacing: 0.01em;
  margin-top: auto;
}
.blog-card-link .arrow {
  transition: transform 0.2s ease;
  display: inline-block;
}
.blog-card:hover .blog-card-link .arrow { transform: translateX(3px); }

/* === PAGINATION === */

.blog-pagination {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.blog-pagination-link {
  color: var(--text-dark-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: var(--weight-medium);
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}
.blog-pagination-link:hover { background: rgba(0, 0, 0, 0.04); color: var(--orange); }
.blog-pagination-link.is-disabled { opacity: 0.35; pointer-events: none; }
.blog-pagination-pages {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 6px;
}
.blog-pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: var(--weight-medium);
  color: var(--text-dark-2);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.blog-pagination-page:hover { background: rgba(0, 0, 0, 0.04); color: var(--orange); }
.blog-pagination-page.is-current {
  background: var(--orange);
  color: #fff;
}

.blog-feed-link {
  margin-top: 48px;
  text-align: center;
  font-size: 14px;
  color: var(--text-dark-3);
}
.blog-feed-link a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 93, 148, 0.3);
}
.blog-feed-link a:hover { color: var(--orange); border-bottom-color: var(--orange); }

.blog-empty { text-align: center; color: var(--text-dark-3); padding: 60px 0; }

/* === POST HERO === */

.post-hero {
  background: var(--bg-dark);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  /* Pull under the transparent nav-wrap--over-hero (driven by --nav-h).
     Matches the same pattern used by home-hero, faqs-hero, etc. */
  margin-top: calc(var(--nav-h) * -1);
  padding-top: var(--nav-h);
}
.post-hero-inner {
  padding: 56px 0;
  position: relative;
  z-index: 2;
}
.post-hero-content {
  max-width: 780px;
}
.post-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light-3);
  text-decoration: none;
  margin-bottom: 18px;
  transition: color 0.2s ease;
}
.post-eyebrow:hover { color: var(--orange); }
.arrow-left { display: inline-block; }

.post-hero h1 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: var(--weight-medium);
  letter-spacing: -0.018em;
  line-height: 1.15;
  color: var(--text-light);
  margin: 0 0 20px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-light-2);
  margin-bottom: 16px;
}
.post-meta-sep { opacity: 0.5; }

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.post-tag {
  display: inline-block;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-light-2);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.post-tag:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-light);
}

/* Featured image strip below hero, above body. */
.post-featured {
  background: var(--bg-light);
  padding: 32px 0 0;
}
.post-featured-img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 0 auto;
  max-height: 520px;
  object-fit: cover;
}

/* === POST PROSE === */

.post-body {
  padding-top: 48px;
  padding-bottom: 80px;
}
.post-prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-dark-2);
}
.post-prose h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-h3);
  color: var(--text-dark);
  margin: 44px 0 14px;
}
.post-prose h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: var(--weight-medium);
  letter-spacing: -0.005em;
  color: var(--text-dark);
  margin: 32px 0 10px;
}
.post-prose p { margin: 0 0 18px; }
.post-prose ul, .post-prose ol { margin: 0 0 18px; padding-left: 22px; }
.post-prose li { margin-bottom: 6px; }
.post-prose a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 93, 148, 0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.post-prose a:hover { color: var(--orange); border-bottom-color: var(--orange); }
.post-prose strong { color: var(--text-dark); font-weight: var(--weight-medium); }
.post-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 24px auto;
  display: block;
}
.post-prose blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--orange);
  color: var(--text-dark);
  font-style: italic;
}
.post-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text-dark);
}
.post-prose pre {
  background: #15191e;
  color: #e6e6e6;
  padding: 16px 18px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 14px;
}
.post-prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}

@media (max-width: 760px) {
  .blog-card { grid-template-columns: 1fr; }
  .blog-card-media { aspect-ratio: 16 / 9; }
  .blog-card-body { padding: 22px 22px 24px; }
  .blog-card-body h2 { font-size: 20px; }
  .post-hero-inner { padding: 110px 0 40px; }
  .post-hero h1 { font-size: 32px; }
  .post-prose { font-size: 16px; }
  .blog-pagination { gap: 12px; }
}
