/* ── Blog Hero ── */
#blog-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(45, 90, 39, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 30%, rgba(196, 146, 58, 0.1) 0%, transparent 50%),
    var(--forest-deep);
  overflow: hidden;
  padding: 8rem 2rem 4rem;
  text-align: center;
  z-index: 1;
}

.blog-hero-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1.2rem;
}

.blog-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.12;
  margin-bottom: 1.2rem;
}

.blog-hero-title em {
  font-style: italic;
  color: var(--amber);
}

.blog-hero-sub {
  color: var(--stone);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Blog Section ── */
#blog {
  padding: 5rem 2rem 7rem;
  position: relative;
  z-index: 1;
}

/* ── Tag Filter ── */
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.tag-btn {
  background: transparent;
  border: 1px solid rgba(74, 103, 65, 0.35);
  border-radius: 2px;
  color: var(--stone);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.tag-btn:hover {
  border-color: var(--moss);
  color: var(--cream);
}

.tag-btn.active {
  background: var(--forest-mid);
  border-color: var(--forest-mid);
  color: var(--cream);
}

/* ── Post Grid ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Post Card ── */
.post-card {
  background: rgba(74, 103, 65, 0.05);
  border: 1px solid rgba(74, 103, 65, 0.15);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.35s;
  cursor: pointer;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 103, 65, 0.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.post-card[hidden] { display: none; }

.post-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-body {
  padding: 1.8rem;
}

.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.post-tag {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  border: 1px solid rgba(122, 158, 106, 0.3);
  border-radius: 2px;
  padding: 0.2rem 0.6rem;
  line-height: 1.6;
}

.post-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.25;
  margin-bottom: 0.8rem;
  color: var(--cream);
}

.post-card-excerpt {
  color: var(--stone);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}

.post-card-meta time { color: var(--stone); }

.post-card-meta .read-time {
  margin-left: auto;
  color: var(--moss);
}

.post-card-link {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  border-bottom: 1px solid rgba(232, 176, 96, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.25s, color 0.25s;
}

.post-card-link:hover {
  color: var(--cream);
  border-color: rgba(242, 237, 228, 0.5);
}

/* ── No Results ── */
.no-posts {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem 0;
  color: var(--stone);
}

/* ════════════════════════════════════════
   Individual Post Page styles
   ════════════════════════════════════════ */

/* ── Post Hero ── */
#post-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  z-index: 1;
}

.post-hero-image {
  position: absolute;
  inset: 0;
}

.post-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.post-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 26, 15, 0.35) 0%,
    rgba(14, 26, 15, 0.65) 60%,
    rgba(14, 26, 15, 0.95) 100%
  );
}

.post-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 2rem;
  transition: color 0.25s;
}

.post-back-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.post-back-link:hover { color: var(--cream); }

.post-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.post-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.post-hero-title em {
  font-style: italic;
  color: var(--amber);
}

.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  flex-wrap: wrap;
}

.post-hero-meta .read-time { color: var(--moss); }

/* ── Article Body ── */
#post-body {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem 7rem;
}

.post-content {
  max-width: 720px;
  margin: 0 auto;
}

.post-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 300;
  color: var(--cream);
  margin: 3rem 0 1.2rem;
  line-height: 1.2;
}

.post-content h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  font-weight: 400;
  color: var(--parchment);
  margin: 2.2rem 0 0.9rem;
  line-height: 1.3;
}

.post-content p {
  color: var(--stone);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.4rem;
}

.post-content strong {
  color: var(--cream);
  font-weight: 400;
}

.post-content em {
  font-style: italic;
  color: var(--parchment);
}

.post-content ul,
.post-content ol {
  color: var(--stone);
  font-size: 1rem;
  line-height: 1.85;
  margin: 0 0 1.4rem 1.5rem;
}

.post-content li { margin-bottom: 0.4rem; }

.post-content blockquote {
  border-left: 2px solid var(--forest-mid);
  padding: 0.5rem 0 0.5rem 1.8rem;
  margin: 2.5rem 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 300;
  color: var(--parchment);
  line-height: 1.6;
}

.post-content blockquote cite {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--moss);
}

/* ── Inline figure / photo ── */
.post-figure {
  margin: 3rem -2rem;
  position: relative;
}

.post-figure img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 2px;
}

.post-figure figcaption {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--stone);
  text-align: center;
  font-style: italic;
}

/* ── Callout box ── */
.post-callout {
  background: rgba(74, 103, 65, 0.08);
  border: 1px solid rgba(74, 103, 65, 0.2);
  border-radius: 3px;
  padding: 1.6rem 2rem;
  margin: 2.5rem 0;
}

.post-callout-label {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.7rem;
}

.post-callout p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* ── Post tag chips (reused in article header) ── */
.post-tag { white-space: nowrap; }

/* ── Author strip ── */
.post-author {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(74, 103, 65, 0.2);
}

.post-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 35% 35%, rgba(45, 90, 39, 0.8) 0%, rgba(14, 26, 15, 0.9) 100%);
  border: 1px solid rgba(74, 103, 65, 0.3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--moss);
}

.post-author-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.post-author-bio {
  font-size: 0.82rem;
  color: var(--stone);
  line-height: 1.5;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-figure { margin: 2.5rem 0; }
}

@media (max-width: 600px) {
  #blog-hero { padding: 7rem 1.5rem 3rem; }
  .tag-filter { gap: 0.4rem; }
  .post-card-body { padding: 1.3rem; }
  #post-hero { min-height: 50vh; }
  .post-hero-content { padding: 0 1.5rem 3rem; }
  #post-body { padding: 3rem 1.5rem 5rem; }
}
