/* Blog post page styles */
.post-wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

/* Article hero */
.post-hero {
  border-bottom: 1px solid var(--rule);
  padding: 48px 0 56px;
}
.post-hero .breadcrumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
}
.post-hero .breadcrumbs a { color: var(--muted); }
.post-hero .breadcrumbs a:hover { color: var(--ink); }
.post-hero .breadcrumbs .sep { opacity: 0.5; }
.post-hero .cat-pill {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
  margin-bottom: 18px;
}
.post-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  max-width: 22ch;
}
.post-hero h1 .italic-accent { font-family: var(--font-display-italic, var(--font-display)); font-style: italic; }
.post-hero .deck {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.45;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 32px;
  font-weight: 300;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 22px;
  border-top: 1px dashed var(--rule);
}
.post-meta .author {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
}
.post-meta .author .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0B1A2E, #1f3a5e);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--rule); display: inline-block; }

/* Cover */
.post-cover {
  margin: 0 calc(var(--gutter) * -1);
  padding: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.post-cover .frame {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.post-cover svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  background: #F4EFE3;
}
.post-cover figcaption {
  max-width: 1280px;
  margin: 12px auto 0;
  padding: 0 var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Body grid: aside + prose */
.post-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  padding: 64px 0 80px;
  align-items: start;
}
@media (max-width: 960px) {
  .post-body { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 56px; }
}

/* Sticky aside (TOC + share) */
.post-aside { position: sticky; top: 88px; }
.post-aside .aside-block + .aside-block { margin-top: 32px; }
.post-aside h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 500;
}
.post-toc {
  list-style: none;
  margin: 0; padding: 0;
  border-left: 1px solid var(--rule);
}
.post-toc li { margin: 0; }
.post-toc a {
  display: block;
  padding: 8px 0 8px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  transition: color .15s, border-color .15s;
}
.post-toc a:hover { color: var(--ink); }
.post-toc a.active { color: var(--ink); border-left-color: var(--signal); font-weight: 500; }
.post-share {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.post-share a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--muted);
  transition: color .15s, border-color .15s, background .15s;
}
.post-share a:hover { color: var(--ink); border-color: var(--ink); }

/* Prose: editorial typography for the article body */
.post-prose {
  max-width: 68ch;
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.7;
}
.post-prose > * + * { margin-top: 1.4em; }
.post-prose p { margin: 0; }
.post-prose p.lead-para {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 1.8em;
  padding-bottom: 1.4em;
  border-bottom: 1px dashed var(--rule);
}
.post-prose p.lead-para::first-letter {
  font-family: var(--font-display);
  font-weight: 500;
  float: left;
  font-size: 4.2em;
  line-height: 0.85;
  margin: 0.06em 12px 0 -2px;
  color: var(--ink);
}

.post-prose h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid var(--rule);
  position: relative;
}
.post-prose h2 .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 14px;
  font-weight: 500;
}
.post-prose h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  margin-top: 1.6em;
}
.post-prose strong { font-weight: 600; }
.post-prose em { font-style: italic; color: var(--muted); }
.post-prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.post-prose a:hover { text-decoration-color: var(--ink); }

.post-prose ul, .post-prose ol { padding-left: 22px; margin: 0; }
.post-prose ul li, .post-prose ol li { margin-top: 0.6em; }
.post-prose ul li::marker { color: var(--signal); }

/* Pull quote */
.post-prose blockquote {
  border-left: 3px solid var(--signal);
  padding: 0 0 0 22px;
  margin: 1.6em 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 400;
}
.post-prose blockquote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Callout / aside */
.post-callout {
  background: rgba(11, 26, 46, 0.04);
  border: 1px solid var(--rule);
  padding: 22px 26px;
  margin: 1.6em 0 !important;
  border-radius: 4px;
}
.post-callout .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal-deep, #5a8a1f);
  margin-bottom: 10px;
  font-weight: 600;
}
.post-callout p { font-size: 16px; line-height: 1.6; margin: 0; }
.post-callout p + p { margin-top: 0.8em; }

/* Stats/data row inside article */
.post-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin: 2em 0 !important;
  overflow: hidden;
}
.post-stats .stat {
  padding: 22px 18px;
  border-right: 1px solid var(--rule);
}
.post-stats .stat:last-child { border-right: 0; }
.post-stats .stat .num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  display: block;
}
.post-stats .stat .num.signal { color: var(--signal-deep, #4a7a1a); }
.post-stats .stat .num.warn { color: #c4584a; }
.post-stats .stat .label {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
@media (max-width: 720px) {
  .post-stats { grid-template-columns: 1fr; }
  .post-stats .stat { border-right: 0; border-bottom: 1px solid var(--rule); }
  .post-stats .stat:last-child { border-bottom: 0; }
}

/* Tag list at end */
.post-tags {
  margin-top: 3em;
  padding-top: 1.6em;
  border-top: 1px dashed var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.post-tags .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}

/* Author card */
.post-author-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 22px;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 26px;
  border-radius: 6px;
  margin-top: 2.4em;
}
.post-author-card .avatar-lg {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0B1A2E, #1f3a5e);
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.post-author-card .role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
}
.post-author-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 8px;
}
.post-author-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* Inline CTA card */
.post-cta-card {
  background: var(--ink);
  color: var(--paper);
  padding: 36px 32px;
  border-radius: 6px;
  margin: 3em 0 !important;
}
.post-cta-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 10px;
  color: var(--paper);
}
.post-cta-card p {
  color: rgba(244, 239, 227, 0.72);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 18px;
}
.post-cta-card .btn {
  background: var(--signal);
  color: var(--ink);
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
}
.post-cta-card .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* Related */
.post-related {
  border-top: 1px solid var(--rule);
  padding: 64px 0 80px;
}
.post-related h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 28px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  display: block;
  border: 1px solid var(--rule);
  padding: 22px;
  border-radius: 4px;
  background: var(--paper);
  transition: border-color .15s, transform .15s;
}
.related-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.related-card .cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal-deep, #5a8a1f);
  font-weight: 600;
}
.related-card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  margin: 10px 0 12px;
  color: var(--ink);
}
.related-card .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
