:root{font:100%/1.65 system-ui,sans-serif;color:#132b37;background:#f9faf6;--line:#d3e2d9;--green:#096750}
*{box-sizing:border-box}body,p,h1,h2{margin:0}a{color:var(--green);text-underline-offset:.19em}a:focus-visible{outline:3px solid var(--green);outline-offset:4px}header,footer{background:#fff}header{border-bottom:1px solid var(--line)}footer{border-top:1px solid var(--line)}.wrap{width:min(67rem,calc(100% - 2rem));margin-inline:auto}.masthead{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.6rem 1.3rem;min-height:4.4rem;padding-block:.75rem}.masthead img{display:block}.masthead nav{display:flex;flex-wrap:wrap;gap:.45rem 1rem}.masthead a{font-weight:700}.skip{position:absolute;top:0;left:1rem;transform:translateY(-130%);padding:.55rem .8rem;background:white;z-index:2}.skip:focus{transform:translateY(0)}
.hero{background:#e5f2e8;border-bottom:1px solid var(--line);padding:clamp(2.3rem,6vw,5rem) 0}.hero p{max-width:65ch}.label{font-size:.8rem;color:var(--green);font-weight:800;letter-spacing:.08em;text-transform:uppercase}.hero h1{max-width:22ch;font-size:clamp(2.25rem,5.9vw,4.6rem);line-height:1.05;letter-spacing:-.054em;margin:.5rem 0 1rem}.lead{font-size:clamp(1.03rem,2vw,1.25rem)}.crumb{display:inline-block;margin-bottom:1.1rem}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr));gap:1.25rem;padding-block:2.25rem 3.7rem}.card{background:#fff;border:1px solid var(--line);border-radius:1rem;padding:1.45rem}.card h2{font-size:1.55rem;line-height:1.2;margin:.45rem 0 .75rem}.card p{margin-bottom:.75rem}.card a{font-weight:750}
.reading{max-width:47rem;padding-block:2rem 3.6rem}.reading section{margin-bottom:1.8rem}.reading h2{font-size:clamp(1.35rem,3vw,1.85rem);line-height:1.2;margin-bottom:.55rem}.reading p{max-width:66ch}.next{padding-top:1rem;border-top:1px solid var(--line)}.next a{display:inline-block;margin:.25rem 1.3rem .25rem 0;font-weight:720}@media(max-width:35rem){.masthead nav{font-size:.9rem}.hero{padding-block:2.4rem}.grid{padding-block:1.4rem 2.3rem}.card{padding:1.15rem}}

.lesson{width:min(53rem,calc(100% - 2rem));font-size:1.0625rem;line-height:1.68}
.lesson section{margin-bottom:clamp(2.2rem,6vw,3.35rem)}
.lesson h2{letter-spacing:-.025em;margin-bottom:.75rem}
.lesson h3{font-size:1.08rem;line-height:1.35;margin:.85rem 0 .45rem}
.lesson p + p{margin-top:.75rem}
.lesson code{font-family:ui-monospace,Consolas,monospace;font-size:.89em;overflow-wrap:anywhere}
.lesson figure{margin:1.1rem 0}
.diagram{padding:clamp(.55rem,2vw,1.25rem);border:1px solid #e2e8f0;border-radius:.6rem;background:#f8fafc}
.diagram svg{display:block;width:min(100%,26rem);height:auto;margin-inline:auto;font-family:system-ui,sans-serif}
.diagram figcaption{max-width:65ch;margin:.6rem auto 0;color:#334155;font-size:.94rem}
.node{fill:#fff;stroke:#334155}.node-inspect{fill:#eff6ff;stroke:#2563eb}.node-gate{fill:#fef3c7;stroke:#d97706}.node-block{fill:#fee2e2;stroke:#dc2626}
.node,.node-inspect,.node-gate,.node-block{stroke-width:1.5}
.diagram text{fill:#0f172a;font-size:21px;font-weight:700;text-anchor:middle}.diagram .blue{fill:#1e3a8a}.diagram .amber{fill:#92400e}.diagram .red{fill:#991b1b}
.diagram .edge{stroke:#475569;stroke-width:2;fill:none}
.artifact,.example,.scoring{background:#fff;border:1px solid #d5e2dc;border-radius:.65rem;overflow:hidden}
.artifact figcaption{padding:.6rem .9rem;background:#e7f3ed;font-weight:750}
.artifact pre{margin:0;padding:1rem;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;font-size:.94rem}
.artifact .python{white-space:pre;overflow-x:auto}
.artifact .python code{font-size:inherit;overflow-wrap:normal}
.example{padding:.8rem 1rem;margin:.8rem 0}
.example dt{font-weight:750}.example dd{margin:0 0 .55rem}.example dd:last-child{margin:0}
.compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:.85rem 0}
.compare > div{padding:.85rem 1rem;border:1px solid;border-radius:.55rem}
.compare .naive{background:#fff5f4;border-color:#e5ada9}.compare .verified{background:#edf8f2;border-color:#91c8ae}
.compare h3{margin:0 0 .45rem}.naive h3{color:#8b2725}.verified h3{color:#075d47}
.cite{display:inline-block;padding:0 .35rem;border-radius:.25rem;background:#d8eee2;color:#075d47;font-weight:750}
.table-scroll{overflow-x:auto;border:1px solid #d5e2dc;border-radius:.65rem;margin:1rem 0;background:#fff}
.table-scroll:focus-visible{outline:3px solid var(--green);outline-offset:4px}
.lesson table{border-collapse:collapse;width:100%;font-size:.94rem;line-height:1.5}
.lesson table caption{padding:.65rem .8rem;text-align:left;font-weight:750;background:#e7f3ed}
.lesson th,.lesson td{text-align:left;vertical-align:top;padding:.65rem .8rem;border-top:1px solid #d5e2dc}
.lesson thead th{background:#f4f8f6}.lesson .wide{min-width:42rem}
.scoring{padding:1rem}.score-row{display:grid;grid-template-columns:6.5rem 1fr 2.8rem;align-items:center;gap:.65rem;margin:.5rem 0}
.score-row meter{width:100%;accent-color:var(--green)}.scoring figcaption{margin-top:.8rem;font-size:.95rem}
.lesson .source{font-size:.95rem;color:#334155}
@media(max-width:38rem){.compare{grid-template-columns:1fr}.lesson th,.lesson td{padding:.55rem .65rem}.lesson{font-size:1rem}.score-row{gap:.35rem}}
