:root { --primary: #5741f2; --ink: #10273d; --muted: #52647a; --line: #e1e7ef; --tint: #f4f2ff; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: #fff; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: #4937ce; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.04em; }
h1 { font-size: clamp(2.4rem, 5.3vw, 4.4rem); font-weight: 400; margin: 18px 0 24px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 500; }
p { margin: 0 0 1.3rem; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: 10px; padding: 8px 16px; background: #fff; z-index: 10; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { display: block; width: 155px; height: auto; }
nav { display: flex; flex-wrap: wrap; gap: 24px; }
nav a { color: var(--ink); text-decoration: none; font-size: .88rem; }
nav a[aria-current="page"] { color: var(--primary); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 11px 20px; border-radius: 999px; background: var(--primary); color: #fff; text-decoration: none; font-size: .88rem; font-weight: 500; }
.button:hover { background: #4937ce; }
.eyebrow { color: #4937ce; font-size: .73rem; font-weight: 650; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.blog-hero { padding: 86px 0 74px; background: radial-gradient(ellipse at 80% 0, #eeebff, transparent 60%), #f9fafc; border-bottom: 1px solid var(--line); }
.blog-hero h1 { max-width: 850px; }
.lead { max-width: 690px; font-size: 1.18rem; color: var(--muted); line-height: 1.7; }
.posts-section { padding-block: 52px 90px; min-height: 370px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; }
.section-heading > a { font-size: .88rem; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.post-card { border: 1px solid var(--line); border-radius: 18px; padding: 32px; background: #fff; }
.post-card h3 { font-size: 1.55rem; font-weight: 500; margin: 0 0 16px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--primary); text-decoration: underline; }
.post-card > p:not(.eyebrow) { color: var(--muted); font-size: .95rem; }
.card-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 26px; font-size: .82rem; color: var(--muted); }
.article-shell { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 38px 0 68px; }
.breadcrumbs { gap: 10px; color: var(--muted); font-size: .78rem; line-height: 1.5; margin-bottom: 44px; }
.breadcrumbs a { font-size: inherit; }
.article-header h1 { font-size: clamp(2.35rem, 5vw, 3.5rem); }
.article-header { padding-bottom: 26px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.article-toc { display: block; padding: 22px 26px; margin-bottom: 36px; border: 1px solid var(--line); border-radius: 12px; background: #f9fafc; }
.article-toc summary { font-weight: 600; cursor: pointer; }
.article-toc nav { display: block; margin-top: 14px; }
.article-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.article-toc li { break-inside: avoid; margin-bottom: 8px; line-height: 1.5; }
.article-toc a { text-decoration: underline; }
.article-cta .cta-note { margin: 14px 0 0; font-size: .82rem; }
.byline { color: var(--muted); font-size: .84rem; margin: 28px 0 0; }
.prose { font-size: 1.06rem; line-height: 1.85; overflow-wrap: anywhere; }
.prose h2 { font-size: 1.8rem; margin: 44px 0 18px; scroll-margin-top: 20px; }
.prose h3 { font-size: 1.3rem; margin: 32px 0 14px; }
.prose li { margin-bottom: 10px; }
.prose img { display: block; max-width: 100%; height: auto; border-radius: 12px; }
.prose blockquote { margin: 28px 0; padding: 16px 24px; border-left: 3px solid var(--primary); background: var(--tint); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose pre { overflow: auto; padding: 20px; border-radius: 10px; background: #f5f7fa; }
.prose :not(pre) > code { background: #f5f7fa; padding: 2px 5px; border-radius: 4px; }
.prose table { display: block; max-width: 100%; overflow-x: auto; overflow-wrap: normal; border-collapse: collapse; margin: 24px 0; font-size: .95rem; line-height: 1.6; }
.prose th, .prose td { min-width: 130px; padding: 12px; border: 1px solid var(--line); text-align: left; }
.prose th:first-child, .prose td:first-child { min-width: 72px; }
.article-cta { margin: 54px 0 28px; padding: 32px; border: 1px solid #e4dfff; border-radius: 18px; background: var(--tint); }
.article-cta h2 { margin: 0 0 16px; }
.article-cta p:not(.eyebrow) { color: var(--muted); }
.back-link { font-size: .9rem; }
.draft-notice { padding: 10px 16px; color: #614700; background: #fff4cf; border-radius: 8px; }
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.footer-inner p { margin: 0; font-size: .88rem; font-weight: 600; }
.footer-inner p span { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; }
.footer-inner nav { gap: 18px; }
.footer-inner nav a { font-size: .78rem; }
@media (max-width: 700px) {
  .container, .article-shell { width: calc(100% - 36px); }
  .header-inner { gap: 14px; flex-wrap: wrap; padding-block: 16px; }
  .header-inner > nav { order: 3; width: 100%; gap: 24px; }
  .brand img { width: 135px; }
  .header-inner .button { font-size: .78rem; padding-inline: 14px; }
  .blog-hero { padding: 48px 0; }
  .blog-hero h1 br { display: none; }
  .section-heading, .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card, .article-cta { padding: 24px; }
  .breadcrumbs { margin-bottom: 32px; }
  .article-toc ol { columns: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
