:root {
  --ink: #18142f;
  --body: #5f5b70;
  --muted: #7d788e;
  --line: #e4e0f1;
  --surface: #ffffff;
  --soft: #f6f3ff;
  --soft-strong: #eee9ff;
  --brand: #7158ee;
  --brand-dark: #5940db;
  --mint: #1fc9a9;
  --shadow: 0 18px 48px rgba(42, 31, 96, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fbfaff; font-family: "DM Sans", Arial, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.grid-surface { background-color: #fbfaff; background-image: linear-gradient(rgba(111, 91, 198, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(111, 91, 198, .075) 1px, transparent 1px); background-size: 72px 72px; }

.site-header { position: sticky; top: 0; z-index: 20; min-height: 84px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand img { width: 190px; height: auto; }
.header-nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 600; color: var(--body); }
.header-nav a:not(.button) { padding: 28px 0 25px; border-bottom: 2px solid transparent; }
.header-nav a:hover, .header-nav a.active { color: var(--brand-dark); border-color: var(--brand); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 12px; color: white; background: var(--brand); font-weight: 700; box-shadow: 0 10px 24px rgba(113, 88, 238, .2); transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); background: var(--brand-dark); }
.button-small { min-height: 44px; padding: 0 18px !important; border: 0 !important; }
.eyebrow { display: inline-block; color: var(--brand); font-size: 13px; line-height: 1.2; letter-spacing: .16em; font-weight: 700; }

.blog-hero { padding: 108px 0 96px; border-bottom: 1px solid var(--line); text-align: center; }
.blog-hero-inner { max-width: 880px; }
.blog-hero h1 { max-width: 820px; margin: 22px auto 18px; font-family: "Source Serif 4", Georgia, serif; font-size: clamp(48px, 7vw, 78px); line-height: .98; letter-spacing: -.045em; }
.blog-hero p { max-width: 700px; margin: 0 auto; color: var(--body); font-size: 19px; }

.article-section { padding: 88px 0 64px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 34px; }
.section-heading h2, .newsletter-card h2 { margin: 8px 0 0; font-family: "Source Serif 4", Georgia, serif; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; letter-spacing: -.03em; }
.text-link, .read-link { color: var(--brand-dark); font-weight: 700; }
.text-link:hover, .read-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.article-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 14px 38px rgba(42, 31, 96, .05); transition: transform .22s ease, box-shadow .22s ease; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-cover { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--soft); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover-fallback { position: relative; isolation: isolate; background: linear-gradient(135deg, #eee9ff 0%, #f9f7ff 56%, #e8fff9 100%); }
.article-cover-fallback::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(113,88,238,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(113,88,238,.08) 1px, transparent 1px); background-size: 42px 42px; }
.signal { position: absolute; width: 56%; height: 3px; left: 18%; border-radius: 999px; background: var(--brand); transform-origin: left; }
.signal-one { top: 65%; transform: rotate(-12deg); }
.signal-two { top: 53%; transform: rotate(6deg); opacity: .62; }
.signal-three { top: 42%; transform: rotate(-4deg); opacity: .35; }
.cover-label { position: absolute; left: 28px; top: 28px; padding: 9px 12px; border: 1px solid rgba(113,88,238,.2); border-radius: 9px; color: var(--brand-dark); background: rgba(255,255,255,.8); font-size: 12px; letter-spacing: .12em; font-weight: 700; }
.article-card-body { padding: 30px; }
.article-meta, .article-byline { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
.article-meta span + span::before, .article-byline span + span::before { content: "•"; margin-right: 14px; color: #b0abc0; }
.article-card h3 { margin: 14px 0 12px; font-family: "Source Serif 4", Georgia, serif; font-size: 30px; line-height: 1.12; letter-spacing: -.025em; }
.article-card h3 a:hover { color: var(--brand-dark); }
.article-excerpt { color: var(--body); }
.article-excerpt > * { margin: 0; }
.read-link { display: inline-block; margin-top: 20px; }
.empty-state { padding: 48px; border: 1px dashed var(--line); border-radius: 18px; color: var(--body); text-align: center; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 42px; }
.pagination a { color: var(--brand-dark); font-weight: 700; }

.newsletter-card { margin-top: 30px; margin-bottom: 92px; padding: 48px 52px; display: flex; align-items: center; justify-content: space-between; gap: 36px; border: 1px solid #dcd4ff; border-radius: 24px; background: linear-gradient(135deg, #f1edff, #fbfaff 58%, #edfff9); box-shadow: var(--shadow); }
.newsletter-card p { margin: 12px 0 0; color: var(--body); }

.article-header { padding: 76px 0 66px; border-bottom: 1px solid var(--line); }
.article-shell { width: min(920px, calc(100% - 48px)); margin: 0 auto; }
.breadcrumbs { display: flex; gap: 10px; margin-bottom: 40px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { color: var(--brand-dark); font-weight: 700; }
.article-header h1 { max-width: 900px; margin: 18px 0; font-family: "Source Serif 4", Georgia, serif; font-size: clamp(48px, 7vw, 76px); line-height: 1.02; letter-spacing: -.045em; }
.article-description { max-width: 760px; margin: 0 0 24px; color: var(--body); font-size: 20px; }
.article-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 64px; padding-top: 68px; padding-bottom: 96px; }
.article-aside { position: sticky; top: 116px; align-self: start; display: flex; flex-direction: column; gap: 12px; color: var(--muted); font-size: 13px; }
.article-aside span { margin-bottom: 2px; color: var(--ink); font-weight: 700; }
.article-aside a:hover { color: var(--brand-dark); }
.article-content { min-width: 0; color: #3d394b; font-size: 18px; line-height: 1.78; }
.article-content h2 { scroll-margin-top: 120px; margin: 52px 0 14px; color: var(--ink); font-family: "Source Serif 4", Georgia, serif; font-size: 38px; line-height: 1.16; letter-spacing: -.025em; }
.article-content h3 { margin: 38px 0 10px; color: var(--ink); font-size: 23px; line-height: 1.25; }
.article-content p { margin: 0 0 22px; }
.article-content ul, .article-content ol { margin: 0 0 26px; padding-left: 28px; }
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--ink); }
.article-content blockquote { margin: 34px 0; padding: 22px 26px; border-left: 4px solid var(--brand); border-radius: 0 14px 14px 0; background: var(--soft); color: var(--ink); font-family: "Source Serif 4", Georgia, serif; font-size: 23px; }
.article-content .metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 32px 0; }
.article-content .metric { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.article-content .metric b { display: block; color: var(--brand-dark); font-size: 28px; line-height: 1; }
.article-content .metric span { color: var(--muted); font-size: 13px; }
.article-cta { margin-top: 60px; padding: 38px; border: 1px solid #dcd4ff; border-radius: 20px; background: var(--soft); }
.article-cta h2 { margin-top: 0; }
.article-cta .button { margin-top: 10px; color: white; }

.site-footer { padding-top: 60px; border-top: 1px solid var(--line); background-color: white; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 52px; padding-bottom: 58px; }
.footer-brand img { width: 190px; }
.footer-brand p { max-width: 310px; margin: 20px 0 0; color: var(--body); }
.footer-links { display: flex; flex-direction: column; gap: 12px; color: var(--body); font-size: 14px; }
.footer-links span { margin-bottom: 4px; color: var(--ink); font-weight: 700; }
.footer-links a:hover { color: var(--brand-dark); }
.footer-bottom { min-height: 72px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 820px) {
  .shell, .article-shell { width: min(100% - 32px, 720px); }
  .site-header, .header-inner { min-height: 72px; }
  .brand img { width: 158px; }
  .header-nav { gap: 14px; }
  .header-nav a:not(.button) { display: none; }
  .button-small { min-height: 40px; font-size: 13px; }
  .blog-hero { padding: 72px 0 68px; }
  .blog-hero h1 { font-size: clamp(44px, 13vw, 62px); }
  .article-section { padding-top: 60px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .article-grid { grid-template-columns: 1fr; }
  .newsletter-card { align-items: flex-start; flex-direction: column; padding: 34px 28px; margin-bottom: 64px; }
  .article-header { padding: 54px 0 48px; }
  .article-header h1 { font-size: clamp(42px, 12vw, 60px); }
  .article-layout { display: block; padding-top: 46px; padding-bottom: 72px; }
  .article-aside { display: none; }
  .article-content .metric-row { grid-template-columns: 1fr; }
  .article-content h2 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .header-inner { gap: 12px; }
  .brand img { width: 140px; }
  .button-small { padding: 0 13px !important; }
  .blog-hero p { font-size: 17px; }
  .article-card-body { padding: 24px; }
  .article-card h3 { font-size: 27px; }
  .article-content { font-size: 17px; }
  .article-cta { padding: 28px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand { grid-column: auto; }
}
