:root {
  color-scheme: light;
  --ink: #173b53;
  --muted: #506674;
  --blue: #0067a9;
  --line: #d8e3e9;
  --light: #f2f7fa;
  --teal: #116758;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 1rem/1.65 Inter, Arial, sans-serif; }
.wrap { width: min(1176px, calc(100% - 80px)); margin-inline: auto; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: .07em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid #bf5c15; outline-offset: 4px; }
.skip { position: fixed; top: -100px; left: 1rem; z-index: 2; background: #fff; padding: 10px 20px; }
.skip:focus { top: 8px; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; align-items: center; min-height: 72px; gap: 19px; }
.wordmark { display: inline-flex; gap: 9px; align-items: center; color: var(--ink); font-size: 1.32rem; font-weight: 800; letter-spacing: -.055em; text-decoration: none; }
.wordmark img { width: 41px; height: auto; }
.division { border-left: 1px solid #c7d5dd; padding-left: 20px; font-size: .91rem; color: var(--muted); }
.intro { background: var(--light); border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(34px, 6vw, 104px); padding-block: clamp(44px, 5.2vw, 78px); }
h1, h2, h3, p, figure, pre, ul, ol { margin: 0; }
h1 { font-size: clamp(2.9rem, 4.65vw, 4.5rem); line-height: 1.025; letter-spacing: -.064em; font-weight: 700; }
.lede { max-width: 52ch; font-size: clamp(1rem, 1.26vw, 1.15rem); line-height: 1.65; color: var(--muted); margin: 19px 0 23px; }
.actions { display: flex; align-items: center; gap: 21px; flex-wrap: wrap; }
.actions a { font-size: .9rem; font-weight: 600; }
.start { display: inline-flex; gap: 15px; align-items: center; border-radius: 6px; background: var(--ink); color: #fff; padding: 10px 17px; text-decoration: none; }
.start:hover { background: #235472; }
.file-map { background: #153b50; color: #fff; border-radius: 10px; overflow: hidden; }
.file-map figcaption { display: flex; gap: 12px; align-items: center; padding: 15px 25px; background: #20485e; border-bottom: 1px solid #406074; font-weight: 600; font-size: .96rem; }
.folder-icon { position: relative; width: 19px; height: 12px; border: 1.5px solid #9ed3e0; border-radius: 1px 3px 3px 3px; margin-top: 4px; }
.folder-icon::before { content: ''; position: absolute; left: -1.5px; bottom: 100%; width: 8px; height: 4px; border: 1.5px solid #9ed3e0; border-bottom: 0; border-radius: 2px 3px 0 0; }
.tag { margin-left: auto; color: #c1dfeb; font: .78rem var(--mono); }
.tree { list-style: none; padding: 20px 22px 23px 32px; }
.tree li { position: relative; padding: 0 0 16px 23px; }
.tree li:last-child { padding-bottom: 0; }
.tree li::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1px solid #668d9c; }
.tree li:last-child::before { height: 13px; }
.tree li::after { content: ''; position: absolute; left: 0; top: 12px; width: 14px; border-bottom: 1px solid #668d9c; }
.tree code { color: #fff; font: 600 clamp(.79rem, 1vw, .92rem)/1.6 var(--mono); overflow-wrap: anywhere; }
.tree span { display: block; color: #c2d9e3; font-size: .82rem; }
.reading-grid { display: grid; grid-template-columns: clamp(200px, 19vw, 254px) minmax(0, 1fr); gap: clamp(40px, 6.3vw, 94px); padding-block: 46px 64px; }
.rail nav { position: sticky; top: 25px; border-left: 2px solid var(--line); padding-left: 19px; }
.rail nav > strong { font-size: .99rem; display: block; }
.rail ol { counter-reset: nav-step; padding: 11px 0 13px; list-style: none; }
.rail li { counter-increment: nav-step; }
.rail a { display: flex; align-items: baseline; gap: 10px; position: relative; color: var(--muted); text-decoration: none; font-size: .855rem; padding: 6px 0; }
.rail li a::before { content: counter(nav-step); color: #5b7382; font: .76rem var(--mono); }
.rail a:hover, .rail a[aria-current] { color: var(--blue); }
.rail a[aria-current] { font-weight: 700; }
.rail a[aria-current]::after { content: ''; position: absolute; width: 3px; background: var(--blue); left: -21px; top: 6px; bottom: 6px; }
.rail a.rail-extra { border-top: 1px solid var(--line); padding-top: 12px; }
.instructions { max-width: 802px; min-width: 0; }
.instructions section { scroll-margin-top: 22px; }
.instructions section + section { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 35px; }
h2 { display: flex; gap: 12px; align-items: center; font-size: clamp(1.44rem, 2.05vw, 1.9rem); line-height: 1.25; letter-spacing: -.045em; }
.step { display: inline-grid; flex: 0 0 29px; height: 29px; place-items: center; background: #e4f0f5; color: #27536b; border-radius: 6px; font: 600 .92rem/1 var(--mono); letter-spacing: 0; }
.instructions p, .instructions ul, .instructions ol { color: #344f61; margin-top: 15px; }
.instructions ul, .instructions ol { padding-left: 1.45em; }
.instructions li { padding-left: 4px; margin-bottom: 8px; }
.instructions p { max-width: 78ch; }
.instructions strong, .instructions b { color: var(--ink); font-weight: 600; }
h3 { font-size: 1.08rem; line-height: 1.4; margin: 23px 0 -6px; letter-spacing: -.02em; }
p code, li code { font: .88em/1.4 var(--mono); background: #eaf0f3; padding: .12em .31em; border-radius: 3px; overflow-wrap: anywhere; }
.tree li code { background: transparent; padding: 0; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px 18px; margin-top: 15px; color: #173e55; background: #f3f7fa; border: 1px solid #cddce5; border-radius: 7px; font: .86rem/1.68 var(--mono); tab-size: 2; }
pre code { font: inherit; }
.command { margin-top: 15px; border: 1px solid #cddce5; border-radius: 7px; overflow: hidden; background: #f3f7fa; }
.command-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 3px 10px 3px 16px; color: #456272; background: #e9f0f4; border-bottom: 1px solid #d6e2e8; font-size: .74rem; font-weight: 600; }
.command button { cursor: pointer; min-height: 32px; padding: 2px 9px; border: 0; border-radius: 4px; background: transparent; color: #194b67; font: inherit; }
.command button:hover { background: #d9e7ee; }
.command button:focus-visible { outline-offset: -3px; }
.command pre { margin: 0; padding: 12px 16px 14px; border: 0; }
.instructions .checkpoint { background: #eff7f5; border-left: 3px solid #65a699; padding: 10px 14px; font-size: .92rem; }
.checkpoint > strong:first-child { color: var(--teal); margin-right: .4em; }
details { margin-top: 14px; border: 1px solid var(--line); border-radius: 6px; }
summary { cursor: pointer; padding: 11px 15px; color: var(--ink); font-size: .94rem; font-weight: 600; }
summary::marker { color: #457187; }
details[open] { padding-bottom: 14px; }
details[open] summary { background: var(--light); }
.instructions details > p, details > .command, details > pre { margin-inline: 15px; }
.instructions .refs { margin-top: 23px; color: var(--muted); font-size: .84rem; }
.refs a:first-child { margin-left: 5px; }
footer { border-top: 1px solid var(--line); background: var(--light); font-size: .88rem; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-block: 22px; }
footer span { font-weight: 700; }
@media (max-width: 890px) {
  .wrap { width: min(100% - 48px, 770px); }
  .intro-grid { gap: 26px; grid-template-columns: 1.05fr 1fr; }
  .tree { padding-left: 19px; }
  .reading-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 28px; }
  .rail nav { position: static; }
  .rail ol { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); padding-bottom: 6px; }
  .rail a.rail-extra { border: 0; padding-top: 3px; }
}
@media (max-width: 660px) {
  .wrap { width: calc(100% - 36px); }
  .masthead-inner { min-height: 60px; gap: 10px; }
  .division { display: none; }
  .intro-grid { grid-template-columns: minmax(0, 1fr); padding-block: 34px 28px; gap: 25px; }
  h1 { font-size: clamp(2.7rem, 9.6vw, 3.6rem); }
  .lede { margin-block: 14px 18px; }
  .file-map figcaption { padding: 10px 17px; }
  .tree { padding: 14px 15px 15px 21px; }
  .tree li { padding-bottom: 7px; }
  .tree span { font-size: .77rem; }
  .actions { gap: 15px; }
  .actions a { font-size: .84rem; }
  .rail nav { padding-left: 12px; }
  .rail a { gap: 6px; font-size: .8rem; }
  .rail a[aria-current]::after { left: -14px; }
  .reading-grid { padding-block: 25px 38px; }
  .instructions section + section { margin-top: 26px; padding-top: 26px; }
  pre { font-size: .8rem; }
}
@media print {
  .rail, .actions, .command-head, .skip, footer a { display: none; }
  .intro-grid, .reading-grid { display: block; padding-block: 18px; }
  .wrap { width: 100%; }
  .file-map { display: none; }
  h2, h3 { break-after: avoid; }
  pre, .command, .checkpoint { break-inside: avoid; }
}
