/* A quiet working surface: the task file carries the page, not decoration. */
:root {
  --canvas: #fafbfa;
  --ink: #202724;
  --muted: #526159;
  --subtle: #66716b;
  --line: #dce3de;
  --flow-line: var(--line);
  --flow-active: #268658;
  --accent: #456b57;
  --accent-wash: #eff4f0;
  --code: #f2f5f2;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
::selection { background: #d6e7dc; color: var(--ink); }
.page-shell { width: min(100% - 56px, 1160px); margin: 0 auto; }
.site-header { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 24px; }
.wordmark, .footer-brand { font-size: 25px; font-weight: 700; letter-spacing: -.08em; line-height: 1; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; }
.wordmark-dot, .footer-brand span { color: var(--accent); }
.wordmark-mark { width: 25px; height: 26px; margin-right: 13px; border: 1.4px solid var(--accent); border-radius: 3px; display: flex; flex-direction: column; gap: 4px; padding: 6px 5px; }
.wordmark-mark span { width: 11px; height: 1px; background: var(--accent); }
.wordmark-mark span:nth-child(2) { width: 8px; }
.wordmark-mark span:nth-child(3) { width: 10px; }
.footer-links a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 22px; }
.language-switch { display: none; align-items: center; gap: 5px; font: 600 11px/1.4 var(--mono); color: var(--subtle); }
.js .language-switch { display: flex; }
.language-switch button { border: 0; background: none; min-width: 44px; min-height: 44px; padding: 8px 4px; font: inherit; color: var(--subtle); cursor: pointer; }
.language-switch button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.language-switch button:hover { color: var(--accent); }

.hero { padding: clamp(76px, 9vw, 126px) 0 clamp(70px, 8vw, 110px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(28px, 5vw, 76px); border-bottom: 1px solid var(--line); }
.hero-copy { min-width: 0; }
.eyebrow, .section-label, .pane-top, .command-label, .aside-index, .step-number, .flow-labels { font: 600 11px/1.4 var(--mono); letter-spacing: .11em; }
.eyebrow { margin: 0 0 30px; color: var(--accent); display: flex; align-items: center; gap: 11px; }
.eyebrow-line { width: 18px; height: 1px; background: currentColor; }
h1, h2, h3, p, figure { margin-top: 0; }
h1 { margin-bottom: 25px; font-size: clamp(42px, 5.3vw, 70px); line-height: 1.09; font-weight: 620; letter-spacing: -.063em; text-wrap: balance; }
h1 span { color: var(--accent); }
.hero-lede { max-width: 490px; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.65; color: var(--muted); margin-bottom: 27px; }
.hero-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.hero-primary-link { min-height: 48px; display: inline-flex; align-items: center; gap: 19px; padding: 11px 18px; background: var(--accent); color: var(--canvas); text-decoration: none; font-size: 14px; font-weight: 650; }
.hero-primary-link:hover { background: #33543f; }
.hero-primary-link span:last-child { font-size: 18px; line-height: 1; }
.hero-command { display: flex; align-items: center; justify-content: space-between; min-width: 0; background: var(--code); border: 1px solid var(--line); }
.hero-command code { padding: 16px 18px; color: var(--ink); font-size: clamp(11px, 1.05vw, 13px); line-height: 1.4; white-space: nowrap; overflow-x: auto; min-width: 0; }
.copy-button { display: none; align-items: center; justify-content: center; align-self: stretch; flex: none; width: 46px; min-height: 48px; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--accent-wash); color: var(--ink); cursor: pointer; }
.js .copy-button { display: inline-flex; }
.copy-button:hover { background: #deebdf; }
.copy-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.copy-button .check-icon-svg { display: none; }
.copy-button.is-copied .copy-icon-svg { display: none; }
.copy-button.is-copied .check-icon-svg { display: block; }
.copy-feedback { display: block; min-height: 0; color: var(--accent); font-size: 12px; }
.copy-feedback.is-success { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.copy-feedback:not(:empty):not(.is-success) { margin-top: 7px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; border-bottom: 1px solid var(--subtle); padding: 5px 0; font-size: 13px; font-weight: 600; }
.text-link span:last-child { margin-left: 12px; color: var(--accent); }
.text-link:hover { border-color: var(--accent); }
.handoff-figure { min-width: 0; margin: 0; padding: 0; }
.flow-diagram { position: relative; width: min(100%, 430px); margin: 0 auto; padding: 8px 0; --flow-spine: 26px; }
.flow-row { display: flex; align-items: center; gap: 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 9px; }
.flow-marker { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; color: var(--accent); background: var(--accent-wash); font: 600 11px/1 var(--mono); }
.flow-row-text { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; }
.flow-row-text strong { color: var(--ink); font: 600 12px/1.4 var(--mono); letter-spacing: .04em; }
.flow-row-text > span { color: var(--muted); font-size: 14px; }
.flow-row-text .flow-quote { line-height: 1.45; }
.flow-path { width: 1px; height: 28px; margin-left: var(--flow-spine); background: var(--flow-line); position: relative; overflow: hidden; }
.flow-path::after { content: ''; position: absolute; top: 0; left: 0; width: 1px; height: 10px; background: var(--flow-active); transform: translateY(-100%); }
.flow-file { width: calc(100% - var(--flow-spine)); margin-left: var(--flow-spine); border: 1px solid var(--flow-line); background: #fff; box-shadow: 0 7px 28px -22px #456b5770; }
.flow-file-top { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink); font: 600 12px/1.4 var(--mono); }
.flow-file-top svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.flow-file-top > span { overflow-wrap: anywhere; }
.flow-file-suffix { color: var(--subtle); }
.flow-file-content { display: grid; gap: 4px; padding: 15px 20px 17px; color: var(--muted); font: 12px/1.5 var(--mono); }
.flow-file-content em { color: var(--accent); font-style: normal; }
.flow-file-rule { width: 75%; height: 1px; background: var(--line); margin: 5px 0; }
.flow-file-check { color: var(--ink); }
.handoff-figure figcaption { max-width: 350px; color: var(--subtle); font-size: 13px; line-height: 1.6; text-align: center; margin: 21px auto 0; }
@keyframes handoff-first-line { 0%, 8% { transform: translateY(-100%); } 20%, 100% { transform: translateY(28px); } }
@keyframes handoff-second-line { 0%, 34% { transform: translateY(-100%); } 46%, 100% { transform: translateY(28px); } }
@keyframes handoff-first { 0%, 3%, 12%, 100% { background: var(--accent-wash); } 7% { background: #d6e7dc; } }
@keyframes handoff-file-focus { 0%, 22%, 33%, 100% { border-color: var(--flow-line); } 28% { border-color: var(--flow-active); } }
@keyframes handoff-last { 0%, 49%, 61%, 100% { background: var(--accent-wash); } 55% { background: #d6e7dc; } }
.handoff-figure.is-visible .flow-row-first .flow-marker { animation: handoff-first 6s linear infinite; }
.handoff-figure.is-visible .flow-row-first + .flow-path::after { animation: handoff-first-line 6s var(--ease-out) infinite; }
.handoff-figure.is-visible .flow-file { animation: handoff-file-focus 6s linear infinite; }
.handoff-figure.is-visible .flow-file + .flow-path::after { animation: handoff-second-line 6s var(--ease-out) infinite; }
.handoff-figure.is-visible .flow-row-last .flow-marker { animation: handoff-last 6s linear infinite; }

.section { padding: clamp(93px, 11vw, 150px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 40px; }
.section-heading { display: grid; grid-template-columns: minmax(180px, 255px) minmax(0, 1fr); column-gap: 42px; align-items: start; }
.section-label { margin: 12px 0 0; color: var(--accent); }
.section-label span { color: var(--subtle); display: block; margin-top: 6px; }
h2 { grid-column: 2; font-size: clamp(36px, 4.5vw, 56px); line-height: 1.13; letter-spacing: -.055em; font-weight: 610; margin-bottom: 18px; text-wrap: balance; }
.section-heading > p:last-child { grid-column: 2; max-width: 460px; color: var(--muted); line-height: 1.7; font-size: 15px; margin: 0; }
.steps { list-style: none; padding: 0; margin: 65px 0 0 297px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 43px; }
.steps li { display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 13px; border-top: 1px solid var(--line); padding: 21px 0 33px; }
.step-icon { display: inline-flex; color: var(--accent); padding-top: 2px; }
.step-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.step-number { display: block; color: var(--accent); padding: 0 0 4px; font-size: 10px; }
.workflow .section-heading h2 { color: var(--ink); }
.workflow .section-heading h2 span { color: var(--accent); }
h3 { font-weight: 630; font-size: 17px; line-height: 1.4; letter-spacing: -.018em; margin: 0 0 8px; }
.steps p, .detail-grid p, .install-commands p, .question-list p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }
code { font-family: var(--mono); font-size: .88em; }
.section-heading.compact h2 { margin-bottom: 10px; }
.evidence { padding-top: 105px; }
.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.example-pane { border: 1px solid var(--line); min-width: 0; background: #fff; }
.pane-top { color: var(--muted); border-bottom: 1px solid var(--line); padding: 14px 20px; display: flex; gap: 15px; align-items: center; }
.pane-top > span:first-child { overflow-wrap: anywhere; }
.excerpt-label { color: var(--subtle); font-size: 10px; font-weight: 400; letter-spacing: .04em; margin-left: 8px; }
pre { margin: 0; font: 13px/1.65 var(--mono); tab-size: 2; overflow-x: auto; }
pre code { font: inherit; }
.example-pane pre { padding: 23px 21px 27px; color: var(--ink); }
.tok-prompt, .tok-punctuation, .tok-comment { color: var(--subtle); }
.tok-command, .tok-heading, .tok-value { color: var(--accent); font-weight: 600; }
.tok-option, .tok-key { color: var(--muted); }
.tok-string { color: #416480; }
.tok-output { color: var(--muted); }
.example-caption { color: var(--subtle); font-size: 12px; line-height: 1.6; margin: 14px 0 0; }
.install { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(55px, 8vw, 110px); align-items: start; }
.install h2 { margin-bottom: 19px; }
.install-lead > p:last-child { color: var(--muted); max-width: 360px; font-size: 15px; line-height: 1.75; margin: 0; }
.install-commands { padding-top: 13px; }
.install-command { border-top: 1px solid var(--line); padding: 17px 0 25px; }
.command-label { color: var(--accent); display: flex; gap: 14px; }
.command-label span { color: var(--subtle); }
.install-command pre { background: var(--code); padding: 17px 18px; margin-top: 17px; font-size: clamp(11px, 1.15vw, 14px); }
.install-command .hero-command { margin-top: 17px; }
.install-command .hero-command code { font-size: clamp(11px, 1.15vw, 14px); }
.install-alternative { padding: 13px 0 0; font-size: 13px !important; }
.install-alternative code { color: var(--ink); white-space: nowrap; }
.install-commands > p { margin-top: 2px; max-width: 500px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 62px); margin-top: 53px; }
.detail-rule { height: 2px; width: 20px; display: block; background: var(--accent); margin-bottom: 22px; }
.detail-grid h3 { margin-bottom: 9px; }
.question-list { margin: 48px 0 0 297px; border-top: 1px solid var(--line); }
.question-list details { border-bottom: 1px solid var(--line); }
.question-list summary { display: block; list-style: none; cursor: pointer; font-size: 16px; font-weight: 600; padding: 21px 37px 21px 0; position: relative; }
.question-list summary::-webkit-details-marker { display: none; }
.question-list summary:after { content: '+'; position: absolute; right: 8px; top: 19px; font: 19px/1 var(--sans); color: var(--accent); }
.question-list details[open] summary:after { content: '−'; }
.question-list p { max-width: 630px; padding: 0 35px 23px 0; }
.site-footer { padding: 46px 0 56px; display: flex; align-items: start; justify-content: space-between; gap: 30px; }
.footer-brand { font-size: 23px; }
.site-footer p { color: var(--subtle); font-size: 13px; margin: 10px 0 0; }
.footer-links { display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 600; }
.footer-links a { text-decoration: none; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; }
.social-icon svg { width: 15px; height: 15px; fill: currentColor; }
.header-github { display: inline-flex; align-items: center; min-height: 44px; gap: 7px; text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.header-github svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.header-github:hover { color: var(--accent); }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 20px; }
  .flow-diagram { width: min(100%, 380px); }
  .section-heading { grid-template-columns: minmax(155px, 23%) minmax(0, 1fr); column-gap: 24px; }
  .steps, .question-list { margin-left: calc(23% + 24px); }
  .steps { gap: 0 20px; }
  .example-grid { gap: 12px; }
  .example-pane pre { font-size: 11px; padding: 18px 15px; }
  .pane-top { padding: 13px 15px; font-size: 10px; }
}
@media (max-width: 650px) {
  .page-shell { width: calc(100% - 32px); }
  .site-header { min-height: 75px; height: auto; padding: 12px 0; align-items: flex-start; }
  .header-actions { flex-wrap: wrap; justify-content: flex-end; column-gap: 8px; row-gap: 3px; max-width: calc(100% - 105px); }
  .header-github { font-size: 11px; }
  .language-switch { font-size: 11px; gap: 0; }
  .wordmark { font-size: 22px; }
  .wordmark-mark { width: 22px; height: 23px; padding: 5px 4px; margin-right: 8px; }
  .hero { display: block; padding-top: 77px; }
  .handoff-figure { margin-top: 62px; }
  .flow-diagram { width: min(100%, 360px); }
  .flow-row { gap: 11px; }
  .flow-file-top { font-size: 11px; }
  .flow-file-content { padding: 15px 13px 17px; font-size: 11px; }
  .eyebrow { margin-bottom: 26px; font-size: 10px; }
  h1 { font-size: clamp(38px, 9.4vw, 57px); letter-spacing: -.055em; }
  h1 br { display: none; }
  .hero-lede { font-size: 16px; margin-bottom: 27px; }
  .hero-links { gap: 12px 20px; }
  .hero-command code { font-size: 11px; }
  .handoff-figure figcaption { font-size: 13px; margin-top: 19px; }
  .section { padding: 88px 0; }
  .section-heading { display: block; }
  .section-label { margin: 0 0 19px; font-size: 10px; }
  .section-label span { display: inline; margin-left: 9px; }
  h2 { font-size: 38px; margin-bottom: 17px; }
  .section-heading > p:last-child { font-size: 15px; }
  .steps, .question-list { margin-left: 0; }
  .steps { display: block; margin-top: 40px; }
  .steps li { padding: 19px 0 22px; }
  .example-grid { grid-template-columns: 1fr; margin-top: 34px; gap: 14px; }
  .example-pane pre { font-size: 12px; min-height: 0; }
  .install { display: block; }
  .install-commands { padding-top: 38px; }
  .install-command pre { font-size: 12px; }
  .detail-grid { grid-template-columns: 1fr; gap: 34px; margin-top: 38px; }
  .detail-rule { margin-bottom: 12px; }
  .question-list { margin-top: 28px; }
  .site-footer { gap: 12px; }
  .footer-links { gap: 8px; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .handoff-figure.is-visible .flow-marker, .handoff-figure.is-visible .flow-file, .handoff-figure.is-visible .flow-path::after { animation: none; }
}
