/* ============================================
   BLOG — shared styles for index + posts
   ============================================ */

/* Blog index hero */
.blog-hero {
  padding: 4rem 0 3rem;
  background: var(--cream-dark);
  text-align: center;
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.blog-hero p {
  color: var(--graphite);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Post listing grid */
.post-grid {
  padding: 3.5rem 0 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(34,29,23,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(34,29,23,0.1);
}
.post-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--cream-dark);
}
.post-card-body { padding: 1.5rem; }
.post-card-meta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}
.post-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}
.post-card-excerpt {
  font-size: 0.92rem;
  color: var(--graphite);
  line-height: 1.6;
  margin: 0;
}
.post-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  margin-top: 1rem;
}

.blog-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--graphite);
}

/* ============================================
   ARTICLE / POST PAGE
   ============================================ */
.post-hero {
  padding: 3.5rem 0 2.5rem;
  background: var(--cream-dark);
}
.post-hero-inner { max-width: 720px; margin: 0 auto; }
.post-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.post-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.post-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--graphite);
}
.post-meta-dot {
  width: 4px; height: 4px;
  background: var(--graphite);
  border-radius: 50%;
  opacity: 0.5;
}

.post-hero-img {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  display: block;
  aspect-ratio: 16/8;
  object-fit: cover;
  border-radius: var(--radius-md);
  transform: translateY(2rem);
  box-shadow: 0 20px 50px rgba(34,29,23,0.12);
}

.post-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}
.post-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}
.post-body h2:first-child { margin-top: 0; }
.post-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2rem 0 0.85rem;
}
.post-body p {
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.post-body ul, .post-body ol {
  margin: 0 0 1.25rem 0;
  padding-left: 1.4rem;
}
.post-body li {
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.75;
  margin-bottom: 0.6rem;
}
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body a { color: var(--teal); text-decoration: underline; text-decoration-color: rgba(63,182,201,0.35); text-underline-offset: 2px; }
.post-body a:hover { text-decoration-color: var(--teal); }

/* Buttons inside post content should never inherit the inline-link
   styling above — restore their intended button appearance explicitly. */
.post-body a.btn {
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
}
.post-body a.btn:hover { text-decoration: none; }

.post-pullquote {
  border-left: 3px solid var(--coral);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}

.post-cta {
  background: var(--cream-dark);
  border: 1px solid rgba(34,29,23,0.08);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}
.post-cta p:first-child {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.post-cta p { color: var(--graphite); font-size: 0.95rem; margin-bottom: 1.25rem; }

.post-footer-nav {
  border-top: 1px solid rgba(34,29,23,0.1);
  padding: 2.5rem 1.5rem 0;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.post-footer-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}

@media (min-width: 640px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
}
