:root {
  color-scheme: light;
  --ink: #222;
  --muted: #606060;
  --accent: #333;
  --border: #ddd;
  --page: #fafafa;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button, input, summary { touch-action: manipulation; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #333; outline-offset: 4px; }
.shell { width: min(960px, calc(100% - 48px)); margin-inline: auto; }
.page-header { padding: 48px 0 32px; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.12; letter-spacing: -.035em; font-weight: 650; }
h2 { font-size: 18px; line-height: 1.4; font-weight: 650; }
h3 { font-size: 17px; line-height: 1.4; font-weight: 650; }
h4 { font-size: 14px; margin: 24px 0 6px; font-weight: 700; }
.before { border-bottom: 1px solid var(--border); padding-bottom: 28px; }
.before ul { padding-left: 22px; margin: 12px 0; }
.before li + li { margin-top: 4px; }
.progress { padding: 24px 0 28px; }
.progress-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.progress-heading p { font-size: 14px; color: var(--muted); }
progress { display: block; width: 100%; height: 6px; border: 0; border-radius: 0; margin: 12px 0; background: #e5e5e5; color: var(--accent); appearance: none; }
progress::-webkit-progress-bar { background: #e5e5e5; }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.section-title { margin: 8px 0 16px; }
.check { border: 1px solid var(--border); border-radius: 5px; background: #fff; margin-bottom: 12px; }
.check-header { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 20px; }
.number { padding-top: 2px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.check-title p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.status { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 32px; padding: 4px; cursor: pointer; color: var(--muted); font-size: 14px; }
.status input { position: absolute; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.checkbox-mark { display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid #888; border-radius: 5px; background: #fff; flex-shrink: 0; }
.status input:checked + .checkbox-mark { border-color: #222; background: #222; }
.status input:checked + .checkbox-mark::after { content: ""; width: 9px; height: 5px; border-left: 2px solid white; border-bottom: 2px solid white; transform: translateY(-1px) rotate(-45deg); }
.status input:focus-visible + .checkbox-mark { outline: 3px solid #333; outline-offset: 4px; }
summary { display: inline-flex; align-items: center; gap: 12px; min-height: 38px; margin: 0 20px 18px 60px; padding: 7px 12px; border: 1px solid #d4d4d4; border-radius: 5px; background: #fafafa; color: var(--accent); font-size: 14px; font-weight: 600; line-height: 1.3; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; background: #e9e9e9; color: #333; font-size: 18px; font-weight: 400; line-height: 1; transition: transform 150ms ease; }
summary:hover { border-color: #999; background: #f2f2f2; }
details[open] summary::after { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { summary::after { transition: none; } }
.instructions { padding: 24px 32px 32px 60px; border-top: 1px solid var(--border); font-size: 16px; line-height: 1.7; }
.instructions > * { max-width: 72ch; }
.instructions h4 { font-size: 15px; margin: 30px 0 8px; }
.why { color: var(--muted); }
.instructions ol { padding-left: 24px; margin: 8px 0; }
.instructions li { padding-left: 5px; }
.instructions li + li { margin-top: 12px; }
.terminal { margin-top: 30px; padding: 18px 20px; background: #f7f7f7; border: 1px solid var(--border); border-radius: 5px; }
.terminal h4 { margin: 0 0 10px; }
.command { display: flex; align-items: stretch; gap: 8px; margin: 8px 0; min-width: 0; }
code { display: block; min-width: 0; flex: 1; padding: 10px 12px; background: #f3f3f3; border: 1px solid var(--border); border-radius: 4px; overflow-x: auto; white-space: nowrap; font-size: 13px; }
button { border: 1px solid #aaa; border-radius: 4px; padding: 8px 14px; background: #fff; color: var(--accent); cursor: pointer; font-size: 14px; min-height: 42px; }
button:hover { background: #eee; }
.terminal > p, .sources { font-size: 14px; color: var(--muted); }
.sources { margin-top: 24px; }
.completion { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; margin-top: 20px; border-top: 1px solid var(--border); }
.completion p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.notice { margin-top: 12px; font-size: 14px; color: var(--ink); }
.skip-link { position: absolute; left: 16px; top: -80px; padding: 8px 12px; background: #fff; z-index: 10; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .page-header { padding-top: 32px; }
  .check-header { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; padding: 16px; }
  summary { margin-left: 48px; }
  .instructions { padding: 20px 16px 24px; }
  .terminal { padding: 14px; }
  .completion { align-items: start; flex-direction: column; gap: 16px; }
}
