/* =========================================================================
   SuperMoo — Blog (list + post) in the new design system
   Depends on tokens.css + site.css. Re-skins the existing blog markup
   (class names emitted by build/build-blog.mjs) using the new tokens.
   Aliases the template's legacy vars onto the design tokens so the markup
   stays identical while the look matches the rest of the site.
   ========================================================================= */

:root {
  --bg:             var(--paper);
  --bg-alt:         var(--paper-3);
  --text:           var(--ink);
  --text-secondary: var(--ink-soft);
  --text-muted:     var(--ink-mute);
  --border:         var(--line);
  --radius:         var(--r-md);
  --transition:     .3s var(--ease);
  --pink-glow:      rgba(255, 46, 136, 0.18);
  --pink-subtle:    var(--pink-wash);
  --pink-light:     var(--pink-press);
}

/* ---- Reveal (matches the template's own IntersectionObserver) ---------- */
.reveal { opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Headings inside the blog use the body grotesque (like the legal prose),
   except the big list hero which uses the Anton display face. */
.blog-hero h1 { font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase; letter-spacing: .01em; line-height: .95; }

/* =========================================================================
   BLOG LIST
   ========================================================================= */
.blog-hero { padding: clamp(96px, 12vw, 150px) 0 clamp(40px, 6vw, 72px); text-align: center; position: relative; }
.blog-hero h1 { font-size: clamp(3rem, 6vw, 5rem); color: var(--ink); margin-bottom: 16px; }
.blog-hero p { font-size: var(--t-body-lg); color: var(--ink-soft); max-width: 520px; margin: 0 auto; line-height: 1.6; }

.featured-post { padding: 0 0 var(--s-7); }
.featured-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-lg);
  border: 1px solid var(--line); overflow: hidden; background: var(--paper-2);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease); }
.featured-card:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); border-color: var(--line-2); }
.featured-card:hover .featured-img img { transform: scale(1.04); }
.featured-img { overflow: hidden; position: relative; background: var(--paper-3); }
.featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.featured-img .placeholder { width: 100%; height: 100%; min-height: 340px;
  background-color: var(--paper-3);
  background-image: repeating-linear-gradient(135deg, rgba(24,24,27,0.045) 0 10px, transparent 10px 20px);
  display: flex; align-items: center; justify-content: center; }
.featured-img .placeholder svg { width: 56px; height: 56px; color: var(--pink); opacity: .5; }
.featured-text { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.featured-text h2 { font-family: var(--font-body); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em; color: var(--ink); margin-bottom: 16px; line-height: 1.2; }
.featured-text p { font-size: var(--t-body); color: var(--ink-soft); line-height: 1.6; margin-bottom: 24px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Shared tag pill */
.tag { display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--pink-ink); background: var(--pink-wash);
  border: 1px solid color-mix(in srgb, var(--pink) 24%, transparent); padding: 4px 12px;
  border-radius: var(--r-pill); margin-bottom: 18px; width: fit-content; }

.featured-meta, .card-meta, .article-meta { display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); }
.featured-meta { margin-bottom: 22px; }
.featured-meta .dot, .card-meta .dot, .article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-faint); }

.read-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink);
  border-bottom: 2px solid var(--pink); padding-bottom: 2px; width: fit-content; transition: color .15s var(--ease); }
.read-more:hover { color: var(--pink-press); }
.read-more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.read-more:hover svg { transform: translateX(3px); }

.divider { height: 1px; background: var(--line); margin: 0 0 var(--s-7); }

.blog-grid-section { padding: 0 0 var(--section-y); }
.section-label { font-family: var(--font-display); font-weight: 400; font-size: 16px;
  text-transform: uppercase; letter-spacing: .04em; color: var(--pink-ink); margin-bottom: var(--s-6); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }

/* Shared card (list grid + "more articles" on posts) */
.blog-card { border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper-2);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease); }
.blog-card:hover { border-color: var(--line-2); box-shadow: var(--sh-md); transform: translateY(-3px); }
.blog-card:hover .card-img img { transform: scale(1.04); }
.blog-card.hidden { display: none; }
.card-img { overflow: hidden; aspect-ratio: 16/10; position: relative; background: var(--paper-3); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-img .placeholder { width: 100%; height: 100%; background-color: var(--paper-3);
  background-image: repeating-linear-gradient(135deg, rgba(24,24,27,0.045) 0 10px, transparent 10px 20px);
  display: flex; align-items: center; justify-content: center; }
.card-img .placeholder svg { width: 40px; height: 40px; color: var(--pink); opacity: .45; }
.card-body { padding: var(--s-6); display: flex; flex-direction: column; flex: 1; }
.card-body .tag { font-size: 10.5px; margin-bottom: 14px; }
.card-body h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.1rem; color: var(--ink);
  margin-bottom: 10px; line-height: 1.3; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body p { font-size: var(--t-small); color: var(--ink-mute); line-height: 1.55; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.card-meta { margin-top: auto; }

.load-more-wrap { text-align: center; margin-top: var(--s-7); }
.btn-load-more, .btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 15px 24px;
  background: transparent; color: var(--ink); border-radius: var(--r-pill); font-family: var(--font-body);
  font-weight: 700; font-size: var(--t-small); border: 1.5px solid var(--line-2); cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease); }
.btn-load-more:hover, .btn-secondary:hover { border-color: var(--ink); background: rgba(24,24,27,0.03); }
.btn-load-more svg, .btn-secondary svg { width: 16px; height: 16px; }

/* Bottom CTA box (list) */
.cta-box { padding: clamp(48px, 7vw, 80px) clamp(24px, 4vw, 48px); max-width: 900px;
  margin: 0 auto var(--section-y); text-align: center; border-radius: var(--r-lg);
  border: 1px solid var(--line-dk); background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.cta-box h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1; margin-bottom: 16px; color: var(--on-ink); }
.cta-box p { font-size: var(--t-body-lg); color: var(--on-ink-soft); margin-bottom: 28px; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 18px 30px; background: var(--pink);
  color: #fff; border-radius: var(--r-pill); font-weight: 700; font-size: var(--t-body); border: none; cursor: pointer;
  transition: background .18s var(--ease), transform .18s var(--ease); }
.btn-primary:hover { background: var(--pink-press); transform: translateY(-1px); }

/* =========================================================================
   BLOG POST
   ========================================================================= */
.article-hero { padding: clamp(110px, 13vw, 150px) 0 0; }
.article-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 48px); align-items: center; }
.article-hero-inner.no-image { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
.article-hero-img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--paper-3); }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article-hero-img .placeholder { width: 100%; height: 100%; background-color: var(--paper-3);
  background-image: repeating-linear-gradient(135deg, rgba(24,24,27,0.045) 0 10px, transparent 10px 20px);
  display: flex; align-items: center; justify-content: center; }
.article-hero-img .placeholder svg { width: 72px; height: 72px; color: var(--pink); opacity: .4; }
.article-hero-text h1 { font-family: var(--font-body); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em; color: var(--ink); margin-bottom: 18px; line-height: 1.12; }
.article-hero-text .description { font-size: var(--t-body-lg); color: var(--ink-soft); line-height: 1.6; margin-bottom: 22px; }
.article-meta .updated { font-style: italic; }

/* Key takeaways (accordion) */
.takeaways { margin: var(--s-7) 0 0; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-md); border-left: 4px solid var(--pink); overflow: hidden; }
.takeaways summary { list-style: none; cursor: pointer; padding: 22px 28px; display: flex;
  align-items: center; justify-content: space-between; gap: 16px; }
.takeaways summary::-webkit-details-marker { display: none; }
.takeaways summary h3 { font-family: var(--font-display); font-weight: 400; font-size: 15px;
  text-transform: uppercase; letter-spacing: .04em; color: var(--pink-ink); margin: 0; }
.takeaways summary::after { content: ''; width: 20px; height: 20px; min-width: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF2E88' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat; transition: transform .2s var(--ease); }
.takeaways[open] summary::after { transform: rotate(180deg); }
.takeaways ul { list-style: none; display: flex; flex-direction: column; gap: 12px; padding: 0 28px 24px; margin: 0; }
.takeaways li { display: flex; align-items: flex-start; gap: 12px; font-size: var(--t-small); color: var(--ink-soft); line-height: 1.55; }
.takeaways li .check { width: 20px; height: 20px; min-width: 20px; border-radius: 50%; background: var(--pink-wash);
  border: 1px solid color-mix(in srgb, var(--pink) 22%, transparent); display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.takeaways li .check svg { width: 12px; height: 12px; stroke: var(--pink-ink); }

/* Quick answer / TL;DR (AEO) */
.quick-answer { margin: var(--s-7) 0 0; padding: 28px 32px; background: var(--pink-wash);
  border: 1px solid color-mix(in srgb, var(--pink) 16%, transparent); border-radius: var(--r-md); }
.quick-answer .label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display);
  font-weight: 400; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--pink-ink); margin-bottom: 12px; }
.quick-answer .label svg { width: 15px; height: 15px; }
.quick-answer p { font-size: 1.25rem; line-height: 1.45; color: var(--ink); margin: 0; }
.tldr { margin: var(--s-5) 0 0; padding: 28px 32px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.tldr h3 { font-family: var(--font-display); font-weight: 400; font-size: 15px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--ink-mute); margin-bottom: 16px; }
.tldr ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tldr li { display: flex; align-items: flex-start; gap: 12px; font-size: var(--t-small); color: var(--ink-soft); line-height: 1.55; }
.tldr li::before { content: ''; width: 6px; height: 6px; min-width: 6px; border-radius: 50%; background: var(--pink); margin-top: 9px; }

/* Layout */
.article-section { padding: var(--s-8) 0 var(--section-y); }
.article-layout { display: grid; grid-template-columns: 280px 1fr; gap: clamp(40px, 5vw, 60px); }
.article-sidebar { position: relative; }
.sidebar-sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; max-height: calc(100vh - 120px); }

/* TOC */
.sidebar-toc { padding: 22px 24px; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-md); flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.sidebar-toc h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-mute); margin-bottom: 14px; }
.sidebar-toc ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.sidebar-toc a { display: block; font-size: var(--t-small); font-weight: 500; color: var(--ink-mute); line-height: 1.4;
  padding: 4px 0 4px 12px; border-left: 2px solid var(--line); transition: color .15s var(--ease), border-color .15s var(--ease); }
.sidebar-toc a:hover { color: var(--pink-ink); border-left-color: var(--pink); }
.sidebar-toc .toc-sub { list-style: none; margin: 6px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sidebar-toc .toc-sub li a { font-size: 13px; font-weight: 400; color: var(--ink-faint); padding-left: 22px; }

/* Sidebar / inline CTA */
.sidebar-cta { flex: 0 0 auto; padding: 22px; background: var(--ink); color: var(--on-ink);
  border: 1px solid var(--line-dk); border-radius: var(--r-md); }
.sidebar-cta h3 { font-family: var(--font-body); font-weight: 800; font-size: 1rem; color: var(--on-ink); margin-bottom: 8px; line-height: 1.3; }
.sidebar-cta p { font-size: var(--t-small); color: var(--on-ink-soft); line-height: 1.5; margin-bottom: 14px; }
.btn-sidebar { display: block; width: 100%; padding: 13px; text-align: center; background: var(--pink); color: #fff;
  border-radius: var(--r-pill); font-weight: 700; font-size: var(--t-small); transition: background .18s var(--ease); border: none; cursor: pointer; }
.btn-sidebar:hover { background: var(--pink-press); }
.mobile-cta { display: none; }

/* Article content (prose) */
.article-content h2 { font-family: var(--font-body); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em; color: var(--ink); margin: 48px 0 16px; scroll-margin-top: 100px; }
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; color: var(--ink);
  margin: 32px 0 12px; scroll-margin-top: 100px; }
.article-content p { font-size: 1.05rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 20px; }
.article-content strong { color: var(--ink); font-weight: 700; }
.article-content a { color: var(--ink); border-bottom: 1.5px solid var(--pink); padding-bottom: 1px; font-weight: 600; }
.article-content a:hover { color: var(--pink-press); }
.article-content ul, .article-content ol { margin: 0 0 20px 22px; color: var(--ink-soft); line-height: 1.75; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote { margin: 32px 0; padding: 22px 28px; background: var(--paper-2);
  border-left: 4px solid var(--pink); border-radius: 0 var(--r-md) var(--r-md) 0; }
.article-content blockquote p { color: var(--ink); font-size: 1.1rem; font-weight: 500; margin: 0; }
.article-content figure { margin: 32px 0; }
.article-content figure .placeholder { width: 100%; aspect-ratio: 16/9; background-color: var(--paper-3);
  background-image: repeating-linear-gradient(135deg, rgba(24,24,27,0.045) 0 10px, transparent 10px 20px);
  border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; }
.article-content figure .placeholder svg { width: 48px; height: 48px; color: var(--pink); opacity: .35; }
.article-content figcaption { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); text-align: center; margin-top: 12px; }

/* Inline mid-article CTA */
.inline-cta-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  margin: 40px 0; padding: 26px 28px; background: var(--pink-wash);
  border: 1px solid color-mix(in srgb, var(--pink) 20%, transparent); border-radius: var(--r-md); }
.inline-cta-card .inline-cta-text { flex: 1 1 300px; }
.inline-cta-card h3 { font-family: var(--font-body) !important; font-weight: 800 !important; font-size: 1.1rem !important;
  color: var(--ink) !important; margin: 0 0 6px !important; line-height: 1.3 !important; }
.inline-cta-card p { margin: 0 !important; font-size: var(--t-small) !important; color: var(--ink-soft) !important; line-height: 1.5 !important; }
.inline-cta-card .btn-inline-cta { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; background: var(--pink);
  color: #fff; border-radius: var(--r-pill); font-weight: 700; font-size: var(--t-small); white-space: nowrap;
  transition: background .18s var(--ease), transform .18s var(--ease); }
.inline-cta-card .btn-inline-cta:hover { background: var(--pink-press); transform: translateY(-1px); }
.inline-cta-card .btn-inline-cta svg { width: 16px; height: 16px; }

/* Term definition / quick steps / key concepts / insights */
.term-definition { margin: 40px 0; padding: 28px 32px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.term-definition h3 { font-family: var(--font-display) !important; font-weight: 400 !important; font-size: 15px !important;
  text-transform: uppercase; letter-spacing: .04em; color: var(--pink-ink) !important; margin: 0 0 10px !important; }
.term-definition p { margin: 0 !important; font-size: 1.05rem !important; color: var(--ink) !important; line-height: 1.7 !important; }

.quick-steps { margin: 40px 0; }
.quick-steps h2 { font-family: var(--font-body); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; color: var(--ink); margin: 0 0 20px; }
.quick-steps ol { list-style: none; counter-reset: steps; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.quick-steps ol li { counter-increment: steps; display: flex; align-items: flex-start; gap: 16px; padding: 18px 22px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 1rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.quick-steps ol li::before { content: counter(steps); flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--pink); color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .95rem; display: flex; align-items: center; justify-content: center; }

.key-concepts { margin: 40px 0; }
.key-concepts h2 { font-family: var(--font-body); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; color: var(--ink); margin: 0 0 20px; }
.key-concepts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 0; }
.key-concepts .concept { padding: 22px 24px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-sm); transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.key-concepts .concept:hover { border-color: var(--line-2); box-shadow: var(--sh-sm); }
.key-concepts dt { font-family: var(--font-body); font-weight: 800; font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
.key-concepts dd { margin: 0; font-size: var(--t-small); color: var(--ink-soft); line-height: 1.55; }

.insights { margin: 40px 0; padding: 32px; background: var(--pink-wash);
  border: 1px solid color-mix(in srgb, var(--pink) 16%, transparent); border-radius: var(--r-md); }
.insights h2 { font-family: var(--font-display); font-weight: 400; font-size: 15px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--pink-ink); margin: 0 0 18px; }
.insights ul { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; }
.insights li { margin: 0; padding: 0 0 0 24px; position: relative; font-size: 1.15rem; line-height: 1.5; color: var(--ink); }
.insights li::before { content: '\201C'; position: absolute; left: 0; top: 2px; font-family: var(--font-display); font-size: 1.5rem; color: var(--pink); line-height: 1; }

/* FAQs */
.faqs-section { padding: var(--section-y) 0; background: var(--paper-3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faqs-section .section-header { text-align: center; margin-bottom: 40px; }
.faqs-section h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; margin-bottom: 12px; }
.faqs-section .lead { color: var(--ink-soft); font-size: var(--t-body); max-width: 560px; margin: 0 auto; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; transition: border-color .18s var(--ease); }
.faq-item[open] { border-color: var(--line-2); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; font-weight: 700; font-size: 1rem; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; width: 20px; height: 20px; min-width: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF2E88' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat; transition: transform .2s var(--ease); }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .answer { padding: 0 24px 20px; color: var(--ink-soft); font-size: var(--t-small); line-height: 1.65; }

/* More articles */
.more-articles { padding: var(--s-8) 0 var(--section-y); }
.more-articles h2 { font-family: var(--font-body); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; margin-bottom: 32px; color: var(--ink); }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.more-articles-link { text-align: center; margin-top: 40px; }

/* Bottom article CTA */
.article-cta { padding: var(--s-8) 0; background: var(--paper-3); }
.article-cta .cta-inner { max-width: 720px; margin: 0 auto; text-align: center; padding: clamp(36px, 5vw, 48px) 32px;
  background: var(--ink); color: var(--on-ink); border: 1px solid var(--line-dk); border-radius: var(--r-lg); }
.article-cta h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; margin-bottom: 16px; color: var(--on-ink); }
.article-cta p { color: var(--on-ink-soft); font-size: var(--t-body-lg); line-height: 1.5; margin: 0 auto 28px; max-width: 480px; }
.article-cta .btn-cta { display: inline-flex; align-items: center; gap: 8px; padding: 18px 30px; background: var(--pink);
  color: #fff; border-radius: var(--r-pill); font-weight: 700; font-size: var(--t-body); transition: background .18s var(--ease), transform .18s var(--ease); }
.article-cta .btn-cta:hover { background: var(--pink-press); transform: translateY(-1px); }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-img .placeholder { min-height: 240px; }
  .blog-grid, .articles-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .article-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .mobile-cta { display: block; margin: 32px 0; padding: 24px; background: var(--paper-2);
    border: 1px solid var(--line); border-radius: var(--r-md); text-align: center; }
  .mobile-cta .btn-sidebar { display: inline-block; width: auto; padding: 14px 30px; }
}

/* =========================================================================
   DARK THEME — fix surfaces that use --ink as a *background*.
   --ink flips to light in dark mode while --on-ink text stays light, which
   would make these cards light-on-light (invisible text). Pin them to an
   elevated dark surface so the light text stays legible — same approach as
   site.css uses for .band-ink / .footer.
   ========================================================================= */
[data-theme="dark"] .cta-box,
[data-theme="dark"] .sidebar-cta,
[data-theme="dark"] .article-cta .cta-inner {
  background: var(--paper-2);
  border-color: var(--line);
}
