/*
Blog templates (single.php, home.php, archive.php) — styles unique to
blog content. Everything else they need (reset, :root palette, body/html,
nav, hamburger, mobile menu, footer, .fade-in, the shared .page-header/
.crumb/.page-eyebrow/.page-title block, the shared .content-meta bar, and
the shared .prose long-form typography -- also used by the Legal Page)
already lives in the shared style.css and loads on every page via
ironwood_enqueue_styles(). This file is enqueued only when viewing a
single post, the blog listing, or a category/tag/date archive (see the
is_single()/is_home()/is_archive() check in functions.php) so it never
adds weight to the rest of the site.
*/

/* ── FEATURED IMAGE (single post only) ── */
.post-feature-img {
  max-width: 1040px;
  margin: -44px auto 0;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(176,144,61,0.25);
  box-shadow: 0 24px 48px rgba(13,29,23,0.18);
}
.post-feature-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* ── POST BODY WRAP ── */
.blog-wrap { padding: 76px 80px 110px; max-width: 900px; margin: 0 auto; }
.post-content { max-width: 720px; margin: 0 auto; }

/* ── CATEGORY TAGS (single post only) ── */
.post-tags {
  max-width: 720px; margin: 8px auto 0;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.post-tag {
  font-family: 'Raleway', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-muted);
  border: 1px solid rgba(176,144,61,0.3); padding: 7px 14px; text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.post-tag:hover { color: var(--gold); border-color: var(--gold); }

/* ── PREV / NEXT POST NAV (single post only) ── */
.post-nav {
  max-width: 720px; margin: 64px auto 0; padding-top: 32px;
  border-top: 1px solid rgba(176,144,61,0.2);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.post-nav-link { text-decoration: none; max-width: 300px; }
.post-nav-next { text-align: right; margin-left: auto; }
.post-nav-label {
  display: block; font-family: 'Raleway', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.post-nav-title {
  display: block; font-family: 'Playfair Display', serif; font-size: 17px;
  font-weight: 600; color: var(--forest); line-height: 1.35; transition: color 0.2s;
}
.post-nav-link:hover .post-nav-title { color: var(--gold); }

/* ── POST CARD GRID (blog listing + archives) ── */
.post-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.post-card {
  display: block; background: #fff; border: 1px solid rgba(176,144,61,0.16);
  text-decoration: none; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(22,43,34,0.13); border-color: rgba(176,144,61,0.35); }
.post-card-visual { aspect-ratio: 16/10; background: var(--cream-warm); overflow: hidden; }
.post-card-visual img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease; }
.post-card:hover .post-card-visual img { transform: scale(1.05); }
.post-card-visual-empty { background: linear-gradient(135deg, var(--forest-deep), var(--forest-mid)); }
.post-card-body { padding: 24px 26px 28px; }
.post-card-meta {
  font-family: 'Raleway', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-muted);
  margin-bottom: 12px;
}
.post-card-title {
  font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 600;
  color: var(--forest); margin-bottom: 10px; line-height: 1.3;
}
.post-card-excerpt { font-family: 'EB Garamond', serif; font-size: 15px; line-height: 1.6; color: var(--text-mid); margin-bottom: 16px; }
.post-card-link {
  font-family: 'Raleway', sans-serif; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.blog-empty {
  grid-column: 1 / -1;
  font-family: 'EB Garamond', serif; font-size: 18px; color: var(--text-mid);
  text-align: center; padding: 40px 0;
}

/* ── PAGINATION (blog listing + archives) ── */
.post-pagination {
  max-width: 1200px; margin: 56px auto 0;
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.post-pagination .page-numbers {
  font-family: 'Raleway', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mid);
  text-decoration: none; padding: 10px 16px; border: 1px solid rgba(176,144,61,0.25);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.post-pagination .page-numbers:hover { color: var(--gold); border-color: var(--gold); }
.post-pagination .page-numbers.current { background: var(--forest); color: #fff; border-color: var(--forest); }
.post-pagination .page-numbers.dots { border: none; padding: 10px 4px; }

@media (max-width: 1024px) {
  .blog-wrap { padding: 60px 40px 90px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-feature-img { margin-top: -36px; }
}
@media (max-width: 768px) {
  .blog-wrap { padding: 48px 20px 72px; }
  .post-grid { grid-template-columns: 1fr; gap: 24px; }
  .post-feature-img { margin: 0; }
  .post-nav { flex-direction: column; gap: 20px; }
  .post-nav-next { text-align: left; margin-left: 0; }
}