/* Blog list and article pages; shares tokens and header/footer with styles.css and theme.css. */
nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--accent); }

.blog-hero { padding-bottom: 40px; }
.blog-hero h1 { max-width: 900px; font-size: clamp(44px, 5.4vw, 80px); }
.blog-hero h1 em { color: #c65308; }
.blog-intro { max-width: 520px; color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0; }

.blog-list { padding-top: 0; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card { border: 1px solid var(--line); border-radius: 4px; background: var(--paper); transition: border-color .2s, transform .2s; }
.post-card:hover { border-color: var(--line-dark); transform: translateY(-2px); }
.post-card > a { display: flex; flex-direction: column; height: 100%; padding: 26px; text-decoration: none; }
.post-card-image { display: block; margin: -26px -26px 22px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-tint); border-bottom: 1px solid var(--line); }
.post-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-card h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.3; letter-spacing: -.02em; }
.post-card p { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 16px; color: var(--muted); font-size: 11px; }
.post-tag { color: var(--accent-dark); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.post-more { margin-top: auto; font-size: 12px; font-weight: 600; }
.post-card:hover .post-more { color: var(--accent-dark); }
@media (min-width: 900px) {
  /* Cards with an image run full width so text-only cards keep an even height. */
  .post-card.has-image { grid-column: 1 / -1; }
  .post-card.has-image > a { display: grid; grid-template-columns: 1.1fr 1fr; grid-auto-rows: min-content; column-gap: 40px; align-content: center; min-height: 340px; padding: 36px 40px 36px 0; }
  .post-card.has-image > a > :not(.post-card-image) { grid-column: 2; }
  .post-card.has-image .post-card-image { grid-column: 1; grid-row: 1 / span 5; height: calc(100% + 72px); margin: -36px 0; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .post-card.has-image h2 { font-size: 26px; }
}

.post { max-width: 800px; padding-bottom: 72px; }
.post-breadcrumb { display: flex; gap: 10px; margin-bottom: 40px; color: var(--muted); font-size: 12px; }
.post-breadcrumb a { color: var(--ink); text-underline-offset: 4px; }
.post-header h1 { margin-bottom: 22px; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.1; letter-spacing: -.045em; }
.post-lede { margin-bottom: 18px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.post-header .post-meta { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.post-cover { margin: 36px 0 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-tint); border-radius: 4px; }
.post-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

.post-body { padding-top: 36px; font-size: 16px; line-height: 1.8; }
.post-body h2 { margin: 44px 0 14px; font-size: 26px; line-height: 1.25; letter-spacing: -.03em; }
.post-body h3 { margin: 30px 0 8px; font-size: 18px; }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 18px; }
.post-body ul, .post-body ol { padding-left: 22px; }
.post-body li { margin-bottom: 8px; }
.post-body li::marker { color: var(--accent-dark); }
.post-body strong { font-weight: 600; }
.post-body a { color: var(--accent-dark); text-underline-offset: 3px; }
.post-body table { width: 100%; margin: 8px 0 24px; border-collapse: collapse; font-size: 14px; }
.post-body th, .post-body td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-body th { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.post-sources { margin-top: 44px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-tint); }
.post-sources h2 { margin-bottom: 12px; font-size: 15px; }
.post-sources ol { margin: 0 0 14px; padding-left: 20px; font-size: 13px; line-height: 1.7; }
.post-sources li { margin-bottom: 6px; overflow-wrap: anywhere; }
.post-sources a { color: var(--ink); text-underline-offset: 3px; }
.post-sources p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.post-cta { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 28px; padding: 64px var(--gutter); background: var(--accent); color: var(--ink); }
.post-cta > div { max-width: 640px; }
.post-cta .section-label, .post-cta p { color: #3e291b; }
.post-cta h2 { margin-bottom: 14px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.15; letter-spacing: -.04em; }
.post-cta p:last-child { margin: 0; font-size: 14px; line-height: 1.7; }

.post-related { padding-top: 88px; }
.post-related h2#more-heading { margin-bottom: 36px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.04em; }

@media (max-width: 740px) {
  .blog-hero { padding-top: 56px; padding-bottom: 28px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card > a { padding: 22px; }
  .post-card-image { margin: -22px -22px 20px; }
  .post { padding-top: 40px; }
  .post-breadcrumb { margin-bottom: 28px; }
  .post-header h1 { font-size: 30px; }
  .post-lede { font-size: 16px; }
  .post-body { font-size: 15px; }
  .post-body h2 { font-size: 22px; }
  .post-sources { padding: 22px 20px; }
  .post-cta { padding-block: 48px; }
  .post-related { padding-top: 64px; }
}
