/* ============================================================
   BLOG STYLES — loaded alongside /style.css (landing base)
   ============================================================ */

/* ── Breadcrumbs ── */
.breadcrumbs {
  padding: 24px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumbs a:hover {
  color: var(--amber);
}

.bc-sep {
  margin: 0 6px;
  opacity: 0.5;
}


/* ── Post header ── */
.post {
  padding: 40px 0 60px;
}

.post-header {
  margin-bottom: 32px;
}

.post-hero {
  margin: 0 0 40px;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}

.post-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.post-header h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.post-meta time {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.post-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-bg);
  padding: 3px 10px;
  border-radius: 3px;
}


/* ── Article body typography ── */
.post-body h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--navy);
  margin: 40px 0 16px;
}

.post-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 12px;
}

.post-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 8px;
}

.post-body p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.post-body ul,
.post-body ol {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 24px;
  margin-bottom: 16px;
}

.post-body li {
  margin-bottom: 6px;
}

.post-body blockquote {
  border-left: 3px solid var(--amber);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--amber-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.post-body blockquote p {
  color: var(--navy);
  margin-bottom: 0;
}

.post-body code {
  font-size: 14px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 6px;
  color: var(--navy);
}

.post-body pre {
  background: var(--navy);
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 24px 0;
  line-height: 1.6;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: 14px;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 24px 0;
}

.post-body a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-body a:hover {
  color: var(--amber-light);
}

.post-body strong {
  color: var(--navy);
  font-weight: 600;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}


/* ── Blog CTA ── */
.blog-cta {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
}

.blog-cta-card {
  text-align: center;
  background: var(--navy);
  color: #ffffff;
  border-radius: 8px;
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
}

.blog-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-conic-gradient(
      var(--bg) 0% 25%, transparent 0% 50%
    );
  background-size: 40px 40px;
  pointer-events: none;
}

.blog-cta-card h2 {
  color: #ffffff;
  position: relative;
  margin-bottom: 12px;
}

.blog-cta-card p {
  color: #8a9ab5;
  margin-bottom: 24px;
  font-size: 16px;
  position: relative;
}


/* ── Post cards (index + "more posts") ── */
.more-posts {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
}

.post-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.post-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.post-card:hover {
  border-color: var(--amber);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.post-card time {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.post-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 8px 0 6px;
  line-height: 1.35;
}

.post-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}


/* ── Blog index hero ── */
.blog-hero {
  padding: 140px 28px 60px;
  text-align: center;
  background: var(--navy);
  color: #ffffff;
}

.blog-hero h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 12px;
}

.blog-hero p {
  font-size: 17px;
  color: #a8b5c7;
  max-width: 520px;
  margin: 0 auto;
}

.blog-index {
  padding: 60px 0 80px;
}


/* ── Mobile ── */
@media (max-width: 700px) {
  .post {
    padding: 28px 0 40px;
  }

  .post-cards {
    grid-template-columns: 1fr;
  }

  .blog-cta-card {
    padding: 36px 20px;
  }

  .blog-hero {
    padding: 120px 20px 48px;
  }
}
