:root {
  color-scheme: dark;
  --night: #171b26;
  --night-2: #20242d;
  --paper: #f3eee6;
  --paper-hi: #fbf8f3;
  --ink: #171b26;
  --text: #f8f5ef;
  --text-soft: #aaa8a4;
  --line: rgba(255,255,255,.13);
  --line-dark: rgba(23,27,38,.18);
  --stone: #d6d0c7;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { line-height: 1.75; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; z-index: 100; left: 12px; top: 12px; padding: 10px 14px; transform: translateY(-160%); background: var(--paper); color: var(--ink); }
.skip:focus { transform: translateY(0); }
a:focus-visible { outline: 3px solid rgba(214,208,199,.7); outline-offset: 4px; }

.header { background: var(--night); color: var(--text); border-bottom: 1px solid var(--line); }
.nav { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand img { width: 140px; filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: 28px; color: var(--text-soft); font-size: 14px; font-weight: 650; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta { min-height: 42px; padding: 0 17px; display: inline-flex; align-items: center; border: 1px solid var(--text); background: var(--text); color: var(--night); }

.blog-hero {
  padding: 120px 0 96px;
  overflow: hidden;
  background-color: var(--night);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  color: var(--text);
}
.eyebrow { margin: 0 0 24px; color: var(--stone); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.blog-hero h1 { max-width: 900px; margin: 0; font-size: clamp(64px, 9vw, 124px); font-weight: 560; letter-spacing: -.065em; line-height: .9; }
.blog-hero .lede { max-width: 620px; margin: 42px 0 0 auto; color: var(--text-soft); font-size: 18px; }

.article-list { padding: 0 0 128px; background: var(--paper); }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.article-card { min-height: 390px; padding: 42px; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line-dark); }
.article-card:nth-child(odd) { border-right: 1px solid var(--line-dark); }
.article-card:nth-child(even) { padding: 42px; }
.article-card h2 { max-width: 480px; margin: 0 0 18px; font-size: clamp(32px, 4vw, 48px); font-weight: 600; letter-spacing: -.045em; line-height: 1.03; }
.article-card p { max-width: 500px; margin: 0 0 30px; color: #555b65; font-size: 15px; }
.article-card .read { width: fit-content; padding-bottom: 5px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 750; }

.article-hero { padding: 82px 0 90px; background: var(--night); color: var(--text); }
.breadcrumbs { margin: 0 0 58px; color: #8d8e91; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.breadcrumbs a:hover { color: var(--text); }
.article-hero h1 { max-width: 1040px; margin: 0; font-size: clamp(52px, 7.6vw, 102px); font-weight: 560; letter-spacing: -.06em; line-height: .93; }
.article-hero .summary { max-width: 690px; margin: 40px 0 0 auto; color: #b8b7b3; font-size: 19px; }
.article-byline { margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 28px; border-top: 1px solid var(--line); color: #858993; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }

.article-shell { padding: 92px 0 130px; background: var(--paper); }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); justify-content: center; gap: 80px; align-items: start; }
.toc { position: sticky; top: 28px; padding-top: 10px; border-top: 1px solid var(--line-dark); }
.toc strong { display: block; margin-bottom: 17px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.toc a { display: block; padding: 7px 0; color: #646971; font-size: 12px; line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.article-body { min-width: 0; }
.article-body h2 { margin: 76px 0 20px; font-size: clamp(34px, 4vw, 48px); font-weight: 620; letter-spacing: -.045em; line-height: 1.06; scroll-margin-top: 24px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin: 42px 0 14px; font-size: 24px; letter-spacing: -.025em; }
.article-body p, .article-body li { color: #3f4652; font-size: 17px; }
.article-body ul, .article-body ol { margin: 18px 0 28px; padding-left: 24px; }
.article-body li { margin: 10px 0; line-height: 1.65; }
.answer { margin: 28px 0 40px; padding: 24px 28px; border-left: 3px solid var(--ink); background: var(--paper-hi); }
.answer strong { display: block; margin-bottom: 7px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.answer p { margin: 0; color: var(--ink); font-size: 18px; font-weight: 570; }
.checklist { list-style: none; padding-left: 0 !important; counter-reset: step; }
.checklist li { position: relative; min-height: 72px; padding: 20px 0 20px 64px; border-top: 1px solid var(--line-dark); counter-increment: step; }
.checklist li:last-child { border-bottom: 1px solid var(--line-dark); }
.checklist li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 20px; color: #777b83; font-family: var(--mono); font-size: 11px; }
.criteria { width: 100%; margin: 28px 0 38px; border-collapse: collapse; font-size: 14px; }
.criteria th, .criteria td { padding: 16px 14px; border: 1px solid var(--line-dark); text-align: left; vertical-align: top; line-height: 1.55; }
.criteria th { background: var(--ink); color: var(--text); }
.criteria td { color: #3f4652; }
.article-cta { margin-top: 82px; padding: 34px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; background: var(--night); color: var(--text); }
.article-cta h2 { margin: 0; font-size: 31px; }
.article-cta p { margin: 9px 0 0; color: var(--text-soft); font-size: 14px; }
.article-cta a { min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; background: var(--text); color: var(--night); font-size: 13px; font-weight: 750; }

.footer { padding: 50px 0; background: var(--night); color: var(--text); }
.footer-row { display: grid; grid-template-columns: 1fr auto auto; gap: 60px; align-items: start; }
.footer img { width: 124px; filter: brightness(0) invert(1); }
.footer-links { display: grid; gap: 9px; color: var(--text-soft); font-size: 12px; }
.footer-meta { color: #777b83; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 860px) {
  .wrap { width: min(100% - 32px, 720px); }
  .nav-links > a:first-child { display: none; }
  .blog-hero { padding: 92px 0 76px; }
  .blog-hero .lede, .article-hero .summary { margin-left: 0; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card, .article-card:nth-child(even) { min-height: 320px; padding: 30px 0; border-right: 0; }
  .article-layout { grid-template-columns: 1fr; gap: 34px; }
  .toc { position: static; }
  .article-cta { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 26px); }
  .brand img { width: 120px; }
  .nav { min-height: 74px; }
  .nav-cta { min-height: 40px; padding-inline: 13px; font-size: 12px; }
  .nav-links > a:not(.nav-cta) { display: none; }
  .blog-hero h1 { font-size: 58px; }
  .article-hero { padding: 58px 0 70px; }
  .breadcrumbs { margin-bottom: 40px; }
  .article-hero h1 { font-size: 49px; }
  .article-hero .summary { font-size: 17px; }
  .article-byline { flex-direction: column; gap: 9px; }
  .article-shell { padding: 64px 0 90px; }
  .article-body p, .article-body li { font-size: 16px; }
  .criteria { display: block; overflow-x: auto; }
  .footer-row { grid-template-columns: 1fr; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
