/* ============================================================
   Ponderosa Pixels — Blog index styles
   Loaded after site.css. Built to accept future posts.
   ============================================================ */

.blog {
  background: var(--bg-primary);
  padding: clamp(72px, 10vw, 144px) 0 clamp(96px, 12vw, 160px);
}

/* Section intro above the post grid */
.blog__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.blog__intro h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
}
.blog__intro h2 .canyon { color: var(--color-canyon); font-style: italic; font-weight: var(--fw-regular); }
.blog__intro .meta {
  font-size: var(--fs-body);
  color: var(--fg-secondary);
  max-width: 40ch;
  line-height: var(--lh-body);
  justify-self: end;
  padding-bottom: 6px;
}

/* ------------------------------------------------------------
   Post grid + cards (no rounded SaaS cards — editorial framing)
   ------------------------------------------------------------ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.5vw, 48px);
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-decoration: none;
  color: inherit;
}
.post-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 2px;
  background: var(--color-sand);
}
.post-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-cinematic);
}
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__media::after {
  content: "";
  position: absolute;
  bottom: -1px; right: -1px;
  width: 22%; height: 1px;
  background: var(--color-canyon);
}
.post-card__media::before {
  content: "";
  position: absolute;
  bottom: -1px; right: -1px;
  width: 1px; height: 22%;
  background: var(--color-canyon);
  z-index: 1;
}
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-primary);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--fg-muted);
}
.post-card__meta .cat { color: var(--color-canyon); }
.post-card__title {
  font-family: var(--font-primary);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  color: var(--fg-primary);
  max-width: 24ch;
}
.post-card__excerpt {
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  color: var(--fg-secondary);
  max-width: 42ch;
}
.post-card .link-arrow { margin-top: 2px; }

/* ------------------------------------------------------------
   Empty / coming-soon state (shown until first post ships)
   ------------------------------------------------------------ */
.blog-empty {
  position: relative;
  background: var(--color-pine);
  color: var(--color-stone);
  border-radius: var(--radius-md);
  padding: clamp(48px, 8vw, 112px) clamp(28px, 5vw, 72px);
  overflow: hidden;
  text-align: center;
}
.blog-empty::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../assets/patterns/topo_map_overlay_dark_with_transparency.svg');
  background-size: 900px;
  background-repeat: repeat;
  opacity: 0.08;
  pointer-events: none;
}
.blog-empty__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 56ch;
  margin-inline: auto;
}
.blog-empty .eyebrow { color: var(--color-sage); justify-content: center; }
.blog-empty h2 {
  font-family: var(--font-primary);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-stone);
  max-width: 18ch;
}
.blog-empty h2 .canyon { color: var(--color-canyon); font-style: italic; font-weight: var(--fw-regular); }
.blog-empty p {
  font-family: var(--font-primary);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: var(--lh-body);
  color: rgba(245, 241, 234, 0.85);
}
.blog-empty .btn { margin-top: 8px; }

@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .blog__intro { grid-template-columns: 1fr; gap: 16px; }
  .blog__intro .meta { justify-self: start; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
}
