:root {
  --paper: #fafafa;
  --paper-2: #f3f3f3;
  --ink: #000;
  --ink-soft: #555;
  --muted: #707070;
  --line: #e5e5e5;
  --line-strong: #bdbdbd;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 500; }
a { color: inherit; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; top: -80px; left: 16px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

/* Header */
.site-head .wrap { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: auto; height: 24px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 32px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.nav .cta { padding-inline: 16px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.nav .cta:hover { text-decoration: none; background: #333; }

/* Shared labels */
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.4; }

/* Index */
.blog-hero { padding-block: clamp(72px, 11vw, 144px) clamp(56px, 8vw, 96px); text-align: center; }
.blog-hero h1 { max-width: 20ch; margin: 0 auto; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; letter-spacing: -.03em; }
.blog-hero .lede { max-width: 56ch; margin: 24px auto 0; color: var(--ink-soft); font-size: clamp(17px, 1.6vw, 19px); }
.insights-shell { padding-block: 0 clamp(96px, 12vw, 160px); }
.insight-library { margin-top: clamp(80px, 10vw, 128px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.section-heading h2 { max-width: 28ch; margin: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.025em; }
.section-heading > p, .section-heading > a { margin: 0; color: var(--muted); font-size: 14px; }
.section-heading > a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }

.featured-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.featured-card .card-image-link { display: block; }
.featured-card__image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); }
.featured-card h2 { margin: 16px 0; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -.03em; }
.featured-card h2 a, .post-card h2 a, .related-card h3 a { text-decoration: none; }
.featured-card h2 a:hover, .post-card h2 a:hover, .related-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.featured-card__content > p:not(.card-kicker, .card-actions) { color: var(--ink-soft); }

.blog-tools { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 20px; align-items: end; margin-bottom: 40px; }
.blog-search { display: grid; gap: 8px; }
.blog-search span { font-size: 14px; color: var(--ink-soft); }
.blog-search input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--ink); font-size: 16px; }
.blog-search input::placeholder { color: var(--muted); }
.pillar-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pillar-filters button { min-height: 48px; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer; font-size: 15px; }
.pillar-filters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.pillar-filters button:hover { border-color: var(--ink); }

.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px clamp(32px, 5vw, 72px); }
.post-grid:empty { display: none; }
.post-card { min-width: 0; }
.post-card__image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); }
.post-card__content { padding-top: 24px; }
.card-kicker { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.card-kicker span { color: var(--ink-soft); }
.post-card h2 { margin: 12px 0; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -.025em; }
.post-card__content > p:not(.card-kicker, .card-actions) { margin: 0; color: var(--ink-soft); }
.tag-list { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.post-card .tag-list, .featured-card .tag-list { margin-top: 20px; }
.tag { color: var(--muted); font-size: 14px; line-height: 1.5; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 20px 0 0; color: var(--muted); font-size: 14px; }
.read { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.empty { grid-column: 1 / -1; padding: 48px 0; color: var(--ink-soft); }
.empty h2, .empty h3 { color: var(--ink); }
.empty--results { border-top: 1px solid var(--line); }

/* Article */
.crumbs { padding-block: 24px; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs a { text-underline-offset: 3px; }
.article-head { padding-block: clamp(40px, 6vw, 80px) clamp(40px, 6vw, 72px); }
.back-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--ink-soft); font-size: 14px; text-underline-offset: 4px; }
.article-head h1 { max-width: 22ch; margin: 0; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -.03em; }
.article-head .excerpt { max-width: 60ch; margin: 24px 0 0; color: var(--ink-soft); font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; }
.article-byline { display: grid; gap: 2px; margin-top: 32px; font-size: 15px; }
.article-byline div { display: grid; }
.article-byline strong { font-weight: 500; }
.article-byline span { color: var(--muted); font-size: 14px; }
.article-head .post-meta { margin-top: 8px; }
.post-meta { color: var(--muted); font-size: 14px; line-height: 1.5; }
.article-tags { margin-top: 20px; }
.article-hero-image { margin: clamp(32px, 5vw, 56px) 0 0; }
.article-hero-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.article-hero-image figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }

.article-layout { display: grid; grid-template-columns: minmax(0, 680px) minmax(200px, 240px); justify-content: space-between; gap: clamp(40px, 7vw, 96px); align-items: start; padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.article-body { min-width: 0; max-width: 680px; font-size: 18px; line-height: 1.65; }
.article-body > *:first-child { margin-top: 0; }
.article-body h2, .article-body h3 { line-height: 1.2; letter-spacing: -.02em; }
.article-body h2 { margin: 2.2em 0 .6em; font-size: clamp(24px, 2.4vw, 30px); }
.article-body h3 { margin: 1.8em 0 .5em; font-size: 21px; }
.article-body p, .article-body ul, .article-body ol, .article-body blockquote, .article-body pre, .article-body table { margin: 0 0 1.3em; }
.article-body ul, .article-body ol { padding-left: 1.35em; }
.article-body li + li { margin-top: .4em; }
.article-body a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body a:hover { text-decoration-thickness: 2px; }
.article-body blockquote { margin-left: 0; padding: 0; color: var(--ink); font-size: 1.15em; line-height: 1.5; }
.article-body code { font-family: var(--mono); font-size: .9em; }
.article-body pre { max-width: 100%; overflow: auto; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); color: var(--ink); font-size: 15px; line-height: 1.55; }
.article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 16px; }
.article-body th, .article-body td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.article-body th { font-weight: 500; border-bottom-color: var(--ink); }
.article-body figure { margin: 32px 0; }
.article-body figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
.article-faq, .article-howto { margin-top: 3.5em; padding-top: 1.5em; border-top: 1px solid var(--line); }
.article-faq h2, .article-howto h2 { margin-top: 0; }
.article-faq dl { margin: 0; }
.article-faq dt { margin-top: 1.5em; font-weight: 500; }
.article-faq dd { margin: .45em 0 0; color: var(--ink-soft); }
.article-sidebar__sticky { position: sticky; top: 24px; display: grid; gap: 32px; }
.share-panel, .article-aside { padding-top: 16px; border-top: 1px solid var(--line); }
.share-panel h2 { margin: 0 0 14px; font-size: 14px; font-weight: 500; }
.share-links { display: grid; gap: 8px; }
.share-links a, .share-links button { min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer; font-size: 15px; text-decoration: none; }
.share-links a:hover, .share-links button:hover { border-color: var(--ink); }
.article-aside { color: var(--ink-soft); font-size: 15px; }
.article-aside p { margin-top: 0; }
.article-aside a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); text-underline-offset: 4px; }

.related-insights { padding-bottom: clamp(64px, 9vw, 112px); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; }
.related-card { min-width: 0; }
.related-card__image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); }
.related-card__content { padding-top: 20px; }
.related-card h3 { margin: 12px 0; font-size: 20px; line-height: 1.2; letter-spacing: -.02em; }
.related-card__content > p:not(.card-kicker) { margin: 0; color: var(--ink-soft); font-size: 15px; }
.article-conversion { padding-block: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); }
.article-conversion__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; }
.article-conversion h2 { max-width: 20ch; margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.03em; }
.article-conversion p:not(.eyebrow) { max-width: 56ch; margin: 20px 0 0; color: var(--ink-soft); }
.conversion-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 28px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid transparent; border-radius: var(--radius); font-size: 15px; text-decoration: none; }
.button--primary { background: var(--ink); color: #fff; }
.button--primary:hover { background: #333; }
.button--secondary { padding-inline: 0; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.button--secondary:hover { text-decoration-thickness: 2px; }

/* Footer */
.site-foot { padding-block: 56px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: grid; gap: 28px; justify-items: center; text-align: center; }
.foot-products { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 40px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.foot-products a { color: var(--ink); text-decoration: none; }
.foot-products a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.site-foot a { min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 3px; }
.foot-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
.foot-meta span:last-child { display: flex; gap: 20px; }

@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; }
  .blog-tools { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 200px; gap: 40px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-conversion__inner { grid-template-columns: 1fr; align-items: start; }
  .conversion-actions { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .site-head .wrap { flex-direction: column; align-items: flex-start; gap: 4px; padding-block: 16px; }
  .nav { justify-content: flex-start; gap: 0 20px; font-size: 12px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .post-grid, .related-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { border-top: 1px solid var(--line); padding-top: 32px; }
  .article-sidebar__sticky { position: static; grid-template-columns: 1fr; }
  .share-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .conversion-actions { width: 100%; }
  .conversion-actions .button--primary { width: 100%; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 32px, 1120px); }
  .blog-hero h1, .article-head h1 { overflow-wrap: anywhere; }
  .pillar-filters { display: grid; grid-template-columns: 1fr; }
  .pillar-filters button { width: 100%; }
  .share-links { grid-template-columns: 1fr; }
  .article-body { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
