/* ═══════════════════════════════════════════════════
   THE UNION BLUEPRINT — Blog
═══════════════════════════════════════════════════ */
.container { max-width: 1200px; margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
a { text-decoration: none; color: inherit; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 9999px;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600;
  letter-spacing: 0.02em; cursor: pointer; transition: all var(--transition);
  border: 2px solid transparent;
}
.btn--primary { background: var(--rose); color: white; border-color: var(--rose); }
.btn--primary:hover { background: var(--rose-deep); border-color: var(--rose-deep); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(176,80,112,0.35); }
.btn--gold { background: var(--gold); color: var(--plum); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px); }
.btn--lg { padding: 1rem 2.5rem; font-size: var(--text-base); }

.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

.eyebrow { display: inline-block; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 0.875rem; }

/* ── Blog index hero ── */
.blog-hero { padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--color-border); }
.blog-hero h1 { font-size: var(--text-2xl); font-weight: 500; line-height: 1.1; margin-bottom: 1rem; max-width: 18ch; }
.blog-hero p { font-size: var(--text-lg); font-weight: 300; color: var(--color-text-muted); line-height: 1.6; max-width: 52ch; }

.blog-list { padding-block: clamp(3rem, 6vw, 5rem); }

/* Featured (latest) post */
.post-featured {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.post-featured .post-img { aspect-ratio: 16 / 10; }
.post-featured h2 { font-size: var(--text-xl); font-weight: 500; line-height: 1.15; margin-bottom: 0.875rem; }
.post-featured p.excerpt { font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
@media (max-width: 800px) { .post-featured { grid-template-columns: 1fr; } }

.post-img { display: block; overflow: hidden; border-radius: var(--radius-xl); background: var(--color-surface-2); aspect-ratio: 16 / 9; box-shadow: var(--shadow-md); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
a:hover .post-img img, .post-img:hover img { transform: scale(1.03); }

.post-meta { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: 0.625rem; }
.post-meta .dot { margin-inline: 0.5rem; }
.read-more { font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); display: inline-flex; align-items: center; gap: 0.375rem; }
.read-more:hover { color: var(--color-primary-hover); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.post-card { display: flex; flex-direction: column; }
.post-card .post-img { margin-bottom: 1.25rem; }
.post-card h3 { font-size: var(--text-lg); font-weight: 600; line-height: 1.25; margin-bottom: 0.625rem; }
.post-card h3 a:hover { color: var(--color-primary); }
.post-card p.excerpt { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.65; margin-bottom: 1rem; }

.section-label { max-width: none; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-faint); padding-bottom: 1rem; margin-bottom: 2rem; border-bottom: 1px solid var(--color-border); }

.blog-empty { text-align: center; padding: clamp(3rem, 6vw, 5rem) 1.5rem; background: var(--color-surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); }
.blog-empty h2 { font-size: var(--text-xl); font-weight: 500; margin-bottom: 0.75rem; }
.blog-empty p { color: var(--color-text-muted); margin: 0 auto 1.75rem; max-width: 46ch; }

/* ── Single post ── */
.post-header { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 2.75rem); }
.post-header-inner { max-width: 820px; margin-inline: auto; text-align: center; }
.post-header .back { display: inline-flex; align-items: center; gap: 0.375rem; font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); margin-bottom: 1.75rem; }
.post-header .back:hover { color: var(--color-primary); }
.post-header h1 { font-size: var(--text-2xl); font-weight: 500; line-height: 1.1; margin-bottom: 1.25rem; }
.post-header .dek { font-size: var(--text-lg); font-weight: 300; color: var(--color-text-muted); line-height: 1.55; margin: 0 auto 1.5rem; max-width: 52ch; }
.byline { display: inline-flex; align-items: center; gap: 0.75rem; font-size: var(--text-sm); color: var(--color-text-muted); }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.byline strong { color: var(--color-text); font-weight: 600; }

.post-hero-img { max-width: 1100px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.post-hero-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }

.prose { max-width: 700px; margin-inline: auto; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.8; color: var(--color-text); }
.prose > * + * { margin-top: 1.4em; }
.prose p, .prose li { max-width: none; }
.prose h2 { font-size: var(--text-xl); font-weight: 600; line-height: 1.2; margin-top: 2.2em; }
.prose h3 { font-size: var(--text-lg); font-weight: 600; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.75em; }
.prose a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--color-primary-hover); }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--color-primary); }
.prose blockquote {
  border-left: 3px solid var(--gold); padding: 0.25em 0 0.25em 1.5em;
  font-family: var(--font-display); font-size: 1.35em; line-height: 1.45; color: var(--color-text-muted);
}
.prose hr { border: 0; height: 1px; background: var(--color-border); margin-block: 2.5em; }
.prose img { border-radius: var(--radius-lg); }
.prose > p:first-child { display: flow-root; }
.prose > p:first-child::first-letter {
  font-family: var(--font-display); float: left; font-size: 3.6em; line-height: 0.85;
  padding: 0.08em 0.12em 0 0; color: var(--color-primary);
}

.author-card {
  max-width: 700px; margin: clamp(3rem, 6vw, 4rem) auto 0; padding: clamp(1.5rem, 3vw, 2rem);
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl);
}
.author-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-card h3 { font-size: var(--text-lg); font-weight: 600; margin-bottom: 0.375rem; }
.author-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.65; }
.author-card a { color: var(--color-primary); font-weight: 600; }
@media (max-width: 520px) { .author-card { flex-direction: column; } }

.post-cta { margin-top: clamp(3.5rem, 7vw, 5rem); background: var(--plum); color: white; padding-block: clamp(3rem, 6vw, 4.5rem); text-align: center; }
.post-cta h2 { font-size: var(--text-xl); font-weight: 500; color: white; margin: 0 auto 0.875rem; max-width: 24ch; }
.post-cta p { color: rgba(255,255,255,0.7); margin: 0 auto 1.75rem; max-width: 50ch; }
.post-cta .eyebrow { color: var(--gold); }

.more-posts { padding-block: clamp(3rem, 6vw, 4.5rem); }

/* Standard closing section */
.post-closing {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--rose-pale); border-radius: var(--radius-xl);
}
[data-theme="dark"] .post-closing { background: var(--color-surface-2); }
.post-closing h2 { margin-top: 0; }
.post-closing hr { margin-block: 1.75em; background: var(--color-border-strong); }
.post-closing small { display: block; font-size: 0.8em; line-height: 1.6; color: var(--color-text-muted); }
.post-closing > p:first-child::first-letter { all: unset; }
