@font-face {
  font-family: Geist;
  src: url('/blog/assets/Geist.ttf') format('truetype');
  font-display: swap;
  font-weight: 100 900;
}
@font-face {
  font-family: GeistMono;
  src: url('/blog/assets/GeistMono.ttf') format('truetype');
  font-display: swap;
  font-weight: 100 900;
}
:root {
  --ink: #0b1220;
  --blue: #2e5bff;
  --link: #2449d6;
  --muted: #5b6475;
  --line: #dde3ed;
  --control-line: #737f94;
  --soft: #f6f8fc;
  --tint: #eef2ff;
  --mono: GeistMono, monospace;
  --sans: Geist, system-ui, sans-serif;
}

/* Reading, native controls and keyboard focus. */
* { box-sizing: border-box; }
html { scroll-padding-top: 102px; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 17px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
img { max-width: 100%; height: auto; }
button, a, input, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.035em; color: var(--ink); }
h1 { font-size: clamp(36px, 4vw, 56px); font-weight: 680; margin: 14px 0 22px; }
h2 { font-size: 30px; font-weight: 650; margin: 10px 0 22px; }
h3 { font-size: 21px; line-height: 1.4; margin-top: 30px; }
p { margin: 18px 0; }
small { font-size: 14px; line-height: 1.65; color: var(--muted); }
[hidden] { display: none !important; }
.skip { position: fixed; top: -100px; left: 20px; z-index: 20; background: white; padding: 12px; }
.skip:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Shared site chrome. */
.site-header { height: 78px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { width: min(1192px, calc(100% - 48px)); margin: auto; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 680; font-size: 22px; letter-spacing: -.7px; }
.brand img { object-fit: contain; }
.header-inner nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.header-inner nav > a:first-child { padding: 10px 0; }
.header-cta { background: var(--ink); color: white; padding: 10px 16px; min-height: 44px; border-radius: 9px; text-decoration: none; font-weight: 550; display: flex; align-items: center; gap: 18px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.breadcrumbs a { color: inherit; }
.site-footer { border-top: 1px solid var(--line); padding: 42px max(24px, calc((100% - 1192px)/2)); font-size: 13px; color: var(--muted); }
.site-footer > .brand { margin-bottom: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 22px; }
.site-footer nav a { color: var(--muted); padding-block: 6px; }
.site-footer small { font-size: 12px; }

/* Article header and video. */
.article-intro { width: min(850px, calc(100% - 48px)); margin: 38px auto 54px; }
.lede { font-size: 21px; color: var(--muted); line-height: 1.55; margin: 0 0 26px; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted); margin: 24px 0; }
.byline a { color: var(--ink); }
.article-cover { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--line); margin: 30px 0 10px; }
.video-thumbnail { display: block; }
.video-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.article-layout { width: min(1192px, calc(100% - 48px)); margin: 0 auto 90px; display: grid; grid-template-columns: 260px minmax(0, 760px); column-gap: 62px; justify-content: center; align-items: start; }

/* Desktop contents are always visible. Only mobile has a disclosure control. */
.toc { position: sticky; top: 102px; max-height: calc(100vh - 126px); overflow: auto; border: 1px solid var(--line); border-radius: 9px; padding: 16px 12px; scrollbar-gutter: stable; }
.toc-title { margin: 0 8px 12px; font-size: 16px; line-height: 1.5; letter-spacing: 0; }
.toc-toggle { display: none; }
.toc ol { padding: 0; margin: 0; list-style: none; }
.toc a { display: flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 10px 8px; color: var(--link); font-size: 14px; line-height: 1.5; border-radius: 5px; text-decoration: underline; }
.toc a span { font: 12px/1.5 var(--mono); color: var(--muted); flex-shrink: 0; text-decoration: none; }
.toc a:hover { background: var(--tint); }
.toc a:focus-visible { outline-offset: -2px; }

/* Steps, copyable commands and screenshots. */
.post-body { min-width: 0; overflow-wrap: anywhere; }
.post-body > section { border-top: 1px solid var(--line); padding: 30px 0 45px; }
.post-body > section:first-child { border-top: 0; padding-top: 0; }
.step-meta { font: 12px/1.6 var(--mono); display: flex; justify-content: space-between; align-items: baseline; gap: 20px; color: var(--muted); margin: 0 0 16px; }
.step-meta > span:first-child { text-transform: uppercase; letter-spacing: .05em; color: var(--link); }
.step-meta a { padding-block: 5px; }
.post-body ol, .post-body ul { padding-left: 24px; }
.post-body li { padding-left: 4px; margin: 12px 0; }
.post-body strong { font-weight: 650; }
.notice { padding: 20px 23px; background: var(--tint); border-left: 3px solid var(--blue); font-size: 15px; line-height: 1.7; margin: 28px 0; }
.checkpoint { padding: 16px 20px; border: 1px solid #b6d8ca; border-radius: 7px; background: #f1f9f5; font-size: 15px; color: #15533e; }
.copy-block { margin: 26px 0; background: #0b1220; color: #f6f8fc; border-radius: 10px; overflow: hidden; }
.copy-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #15223a; padding: 10px 16px; font-size: 12px; color: #c6d4ec; }
.copy-head button { background: #fff; color: #0b1220; border: 0; border-radius: 5px; min-height: 44px; min-width: 60px; padding: 8px 14px; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.copy-block pre { font: 14px/1.85 var(--mono); padding: 20px 22px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
.post-body .copy-block code { font: inherit; background: none; padding: 0; color: inherit; }
.post-body code { font: 14px/1.6 var(--mono); background: #edf1f7; padding: 2px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.post-body figure { margin: 30px 0; }
.screenshot { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.screenshot img { display: block; width: 100%; max-width: none; height: auto; }
figcaption { font-size: 13px; color: var(--muted); line-height: 1.65; margin-top: 10px; }
.post-body details { border: 1px solid var(--line); border-radius: 8px; padding: 10px 20px; margin: 28px 0; font-size: 15px; }
.post-body summary { cursor: pointer; font-weight: 600; min-height: 44px; padding-block: 8px; }
.post-body details > p:last-child { margin-bottom: 6px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; margin: 26px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.65; min-width: 480px; }
th, td { padding: 14px 17px; vertical-align: top; border-bottom: 1px solid var(--line); text-align: left; }
th { background: var(--soft); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.step-complete { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px 8px 0; margin-top: 20px; font-size: 14px; color: var(--muted); cursor: pointer; }
.step-complete input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); flex-shrink: 0; cursor: pointer; }
.checklist { list-style: '✓  '; }
.checklist li::marker { color: var(--blue); }
.os-picker { display: none; align-items: center; flex-wrap: wrap; gap: 8px; background: var(--soft); padding: 15px; border-radius: 8px; font-size: 13px; margin: 26px 0; }
.js .os-picker { display: flex; }
.os-picker span { flex-basis: 100%; color: var(--muted); }
.os-picker button { background: white; border: 1px solid var(--control-line); border-radius: 6px; min-height: 44px; padding: 8px 12px; font-size: 13px; }
.os-picker button[aria-pressed=true] { background: var(--blue); border-color: var(--blue); color: white; }
.os-label { font-size: 12px; font-weight: 650; color: var(--muted); margin: 20px 0 -15px; }
.budget-example { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 28px 0; }
.budget-example > div { background: var(--soft); border: 1px solid var(--line); border-radius: 9px; padding: 20px 16px; }
.budget-example span { font-size: 12px; color: var(--muted); display: block; margin-bottom: 12px; min-height: 36px; }
.budget-example strong { font-size: 25px; line-height: 1.2; display: block; letter-spacing: -1px; }
.related > div { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related a { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); border-radius: 10px; padding: 20px; color: var(--ink); gap: 12px; line-height: 1.5; }
.related a:hover { border-color: var(--blue); }
.related strong { font-size: 17px; text-decoration: underline; text-underline-offset: 4px; }
.related span { font-size: 13px; color: var(--link); margin-top: auto; }

/* Blog index. */
.index-page { width: min(1192px, calc(100% - 48px)); margin: 38px auto 80px; }
.index-intro { margin: 32px 0 36px; }
.index-intro h1 { font-size: 44px; margin: 0; letter-spacing: -.05em; }
.guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.guide-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.guide-card:hover { border-color: var(--blue); }
.guide-card > img { display: block; width: 100%; border-bottom: 1px solid var(--line); }
.guide-card > div { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-meta { font-size: 12px; color: var(--link); margin: 0; display: flex; flex-wrap: wrap; gap: 5px 10px; }
.card-meta span { color: var(--muted); }
.guide-card h2 { font-size: 24px; line-height: 1.3; letter-spacing: -.03em; margin: 20px 0 10px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.guide-card small { margin-top: auto; font-size: 12px; padding-top: 22px; }

@media (max-width: 1050px) {
  .article-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 30px; }
  .guide-cards { gap: 16px; }
  .guide-card > div { padding: 20px; }
  .guide-card h2 { font-size: 21px; }
  .article-intro { max-width: 760px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 90px; }
  .site-header { height: 66px; }
  .header-inner { width: calc(100% - 32px); }
  .brand { font-size: 20px; }
  .brand img { width: 24px; }
  .header-inner nav { gap: 14px; font-size: 13px; }
  .header-cta { padding: 8px 11px; font-size: 12px; gap: 8px; }
  .article-intro { width: calc(100% - 40px); margin: 26px auto 30px; }
  h1 { font-size: 37px; line-height: 1.15; letter-spacing: -1.5px; }
  .lede { font-size: 19px; }
  .byline { gap: 5px 13px; }
  .article-cover { margin-top: 24px; border-radius: 9px; }
  .article-layout { width: calc(100% - 40px); grid-template-columns: minmax(0, 1fr); gap: 35px; margin-bottom: 40px; }
  .toc { position: static; max-height: none; padding: 12px; scrollbar-gutter: auto; }
  .toc ol { display: grid; grid-template-columns: 1fr; }
  .toc-title { margin-bottom: 8px; }
  .js .toc-title { display: none; }
  .js .toc-toggle { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--control-line); border-radius: 6px; background: white; font-size: 15px; font-weight: 600; }
  .toc-chevron { flex-shrink: 0; }
  .toc-toggle[aria-expanded=true] .toc-chevron { transform: rotate(180deg); }
  .toc nav:not([hidden]) { margin-top: 12px; }
  h2 { font-size: 27px; letter-spacing: -.8px; }
  .post-body { font-size: 16px; line-height: 1.8; }
  .post-body > section { padding: 25px 0 35px; }
  .notice { font-size: 14px; padding: 17px; }
  .copy-block pre { padding: 17px; font-size: 13px; }
  .copy-head { padding: 10px 13px; }
  .related > div { grid-template-columns: 1fr; }
  .budget-example { gap: 6px; }
  .budget-example > div { padding: 15px 10px; }
  .budget-example strong { font-size: 20px; }
  .budget-example span { font-size: 11px; }
  .guide-cards { grid-template-columns: 1fr; }
  .index-page { width: calc(100% - 40px); margin-top: 26px; }
  .index-intro { margin: 26px 0; }
  .index-intro h1 { font-size: 36px; }
  .guide-card > div { padding: 24px; }
  .guide-card h2 { font-size: 26px; }
  .site-footer { padding: 30px 20px; }
}
@media (max-width: 380px) {
  .header-inner nav { gap: 10px; }
  .header-cta { font-size: 11px; }
  .header-cta span { display: none; }
  .brand { font-size: 18px; }
  .brand img { width: 22px; }
  h1 { font-size: 33px; }
  .budget-example { grid-template-columns: 1fr; }
  .budget-example > div { display: flex; justify-content: space-between; gap: 10px; }
  .budget-example span { min-height: 0; margin: 0; align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
@media (forced-colors: active) {
  .os-picker button[aria-pressed=true] { outline: 2px solid Highlight; }
  .screenshot { border-color: CanvasText; }
}
@media print {
  .site-header, .site-footer, .toc, .step-complete, .copy-head button, .os-picker, .related { display: none !important; }
  .article-layout { display: block; width: 100%; }
  .article-intro { width: 100%; margin: 0; }
  .article-cover { max-width: 500px; }
  .post-body figure, .copy-block { break-inside: avoid; }
  body { font-size: 11pt; }
  .copy-block { color: black; background: #f3f3f3; }
  .copy-head { background: #ddd; color: black; }
  h2 { font-size: 20pt; }
  a { color: inherit; }
}
