/* blog.css — editorial layer on top of Berthfile's shared visual system:
   post articles, the blog index, and the homepage "From the blog" banner
   (index.html links this file too). App-owned and deployed with the app —
   never generated by the autoblogger. */

/* ---- Homepage latest-post banner (marker-injected by the autoblogger) ---- */
.latest-post-banner {
  max-width: 1320px;
  margin: 10px auto 0;
  padding: 0 20px;
  background: transparent;
  border: 0;
  font-size: 0.8rem;
}
.latest-post-banner .inner {
  padding: 9px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  background: var(--panel, #fff);
  border: 1px solid var(--line, #d9dfdc);
  border-radius: 5px;
}
.latest-post-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted, #51616f);
  font-family: var(--mono, monospace);
}
.latest-post-banner a {
  color: var(--accent, #005bb8);
  font-weight: 600;
}
.latest-post-desc {
  color: var(--muted, #51616f);
}
.latest-post-all {
  margin-left: auto;
  font-weight: 500;
  white-space: nowrap;
}

/* ---- Shared page shell ---- */
.blog-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 16px 64px;
}

header.site .wordmark {
  color: inherit;
  text-decoration: none;
}
header.site .tagline a {
  color: var(--accent, #0b6f69);
}

/* ---- Post article ---- */
.blog-post {
  background: var(--panel, #fff);
  background-image: none;
  border: 1px solid var(--line, #dbe2ea);
  border-radius: var(--radius-lg, 8px);
  box-shadow: var(--shadow-sm);
  padding: 32px 36px 36px;
}

.post-kicker {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted, #51616f);
}
.post-kicker a {
  color: var(--accent, #005bb8);
  text-decoration: none;
}

.blog-post h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3.5vw, 2.05rem);
  line-height: 1.25;
  color: var(--brand, #0f2940);
}

.post-meta {
  margin: 0 0 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line, #dbe2ea);
  color: var(--muted, #51616f);
  font-size: 0.85rem;
  font-family: var(--mono, monospace);
}

.blog-post h2 {
  margin: 34px 0 12px;
  font-size: 1.3rem;
  color: var(--brand, #0f2940);
}
.blog-post h3 {
  margin: 24px 0 10px;
  font-size: 1.05rem;
  color: var(--brand, #0f2940);
}
.blog-post p,
.blog-post li {
  font-family: var(--document, ui-serif, Georgia, serif);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft, #344656);
}
.blog-post ul,
.blog-post ol {
  padding-left: 24px;
}
.blog-post li {
  margin-bottom: 6px;
}
.blog-post blockquote {
  margin: 22px 0;
  padding: 10px 18px;
  border-left: 3px solid var(--accent, #005bb8);
  background: var(--accent-weak, rgba(0, 91, 184, 0.15));
  border-radius: 0 var(--radius, 6px) var(--radius, 6px) 0;
  color: var(--ink-soft, #344656);
}
.blog-post a {
  color: var(--accent, #005bb8);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ---- CTA box ---- */
.cta-box {
  margin-top: 28px;
  padding: 26px 28px;
  background-color: var(--brand, #0f2940);
  background-image: none;
  border-radius: var(--radius-lg, 8px);
  box-shadow: none;
  color: #e8eef4;
  text-align: center;
}
.cta-box h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1.25rem;
}
.cta-box p {
  margin: 0 0 6px;
  color: #bcd4ea;
  font-size: 0.95rem;
  line-height: 1.6;
}
.cta-actions {
  margin-top: 16px;
}
.cta-button {
  display: inline-block;
  margin: 4px 6px;
  padding: 10px 22px;
  border-radius: var(--radius, 6px);
  background-image: none;
  background-color: var(--accent, #0b6f69);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
}
.cta-button:hover {
  background-image: none;
  background-color: var(--accent-dark, #075954);
}
.cta-button.cta-secondary {
  background-image: none;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

/* ---- Related reading ---- */
.related-posts {
  margin-top: 28px;
  padding: 22px 28px;
  background: var(--panel, #fff);
  border: 1px solid var(--line, #dbe2ea);
  border-radius: var(--radius-lg, 8px);
  box-shadow: none;
}
.related-posts h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--brand, #0f2940);
}
.related-posts ul {
  margin: 0 0 12px;
  padding-left: 22px;
}
.related-posts li {
  margin-bottom: 6px;
  line-height: 1.6;
}
.related-posts p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted, #51616f);
}

/* ---- Blog index ---- */
.blog-index-head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--brand, #0f2940);
}
.blog-index-head p {
  margin: 0 0 24px;
  color: var(--muted, #51616f);
  line-height: 1.6;
}
.blog-grid {
  display: grid;
  gap: 14px;
}
.blog-card {
  display: block;
  padding: 18px 22px;
  background: var(--panel, #fff);
  background-image: none;
  border: 1px solid var(--line, #dbe2ea);
  border-radius: var(--radius-lg, 8px);
  box-shadow: none;
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.blog-card:hover {
  border-color: var(--line-strong, #aab6b3);
  box-shadow: none;
  transform: none;
}
.blog-card .card-kicker {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted, #51616f);
  font-family: var(--mono, monospace);
}
.blog-card h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--brand, #0f2940);
}
.blog-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft, #344656);
}

@media (max-width: 600px) {
  .latest-post-banner { padding: 0 14px; }
  .blog-post {
    padding: 22px 18px 26px;
  }
}
