/* Editorial course design: quiet reading surfaces, deep-water accents, clear next actions. */
:root{--font-section:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--bg:#f4f7f8;--surface:#fff;--ink:#1a3543;--muted:#526977;--line:#d7e2e7;--accent:#155d72;--tint:#e9f2f5;--code:#112d3c;--gold:#84581e;--shadow:0 6px 24px #15374a06}
:root[data-theme=dark]{--bg:#0e222e;--surface:#142d3b;--ink:#e6f1f5;--muted:#b3c9d4;--line:#345362;--accent:#9ad7e3;--tint:#1b3b4b;--code:#0a1c27;--gold:#ebc484}
body{font-size:16px;line-height:1.8;-webkit-font-smoothing:antialiased}
.topbar{height:76px;box-shadow:0 2px 20px #15374a03}
.top-caption{font-size:12px;letter-spacing:.03em}
.brand{font-weight:550;letter-spacing:-.8px}.brand strong{font-weight:350}
.sidebar{background:var(--bg)}
.nav-part h2{font-size:11px;letter-spacing:.09em;margin-bottom:8px}
.nav-part a{font-size:13px;line-height:1.55;padding:8px}
.nav-part a[aria-current=page]{box-shadow:inset 3px 0 var(--accent);border-radius:0 5px 5px 0}
#search{font-size:13px;padding:10px 11px;background:var(--surface)}
.overview-link{font-size:14px}.sidebar-note,.back-site{font-size:12px}
main{padding-top:118px}.eyebrow{font-size:11px;letter-spacing:.15em}
h1{font-size:clamp(40px,4.4vw,62px);line-height:1.1;letter-spacing:-1.7px}
h2{font-size:25px;line-height:1.3;font-weight:550}
.hero{position:relative;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(220px,1fr);column-gap:28px;align-items:center;border:0;padding-bottom:12px}
.hero-copy{padding:12px 0}.hero h1{font-size:clamp(39px,4.2vw,60px)}
.hero .lead{font-size:18px;line-height:1.8;max-width:620px}
.hero .actions{gap:10px}.button{font-size:13px;padding:11px 17px;min-height:43px;border-radius:6px;transition:background .15s,box-shadow .15s}
.button.primary{background:var(--accent);box-shadow:0 3px 10px #143a4d12}.button:hover{box-shadow:0 3px 12px #15374a12}.button.primary:hover{filter:brightness(1.08)}
.facts{font-size:11px;gap:10px 19px;line-height:1.8;margin-top:24px}
.hero-art{position:relative;background:linear-gradient(155deg,#1c4b62,#102f43 72%);border-radius:120px 120px 10px 10px;padding:34px 16px 27px;overflow:hidden;box-shadow:0 20px 45px #173f5010;text-align:center;align-self:stretch;display:flex;flex-direction:column;justify-content:center}
.hero-art:before{content:'';position:absolute;width:140px;height:140px;border-radius:50%;border:1px solid #acd9e420;top:56px;left:50%;transform:translateX(-50%)}
.hero-art svg{display:block;width:100%;max-height:320px;position:relative;margin:12px auto}
.art-overline{color:#c0dce4;font-size:8px;letter-spacing:.15em;line-height:1.7;position:relative}
.art-caption{color:#c0dce4;font-size:10px}
.metadata-map{grid-column:1/-1;margin-top:36px;padding:21px 23px;border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}
.map-label{font-size:10px;margin-bottom:12px}.map-node{background:transparent;border:0;padding:9px 12px;font-size:13px;position:relative}.map-node small{font-size:11px}.map-node:before{content:'';display:block;width:18px;height:3px;border-radius:5px;background:#78aebd;margin:0 auto 9px}.map-arrow{color:#7e9dac}
.path-section{margin:44px 0 52px}.path-section .section-intro{margin-top:0}
.path-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.path-card{display:block;text-decoration:none;border-top:2px solid var(--accent);padding:19px 18px;background:var(--surface);border-radius:0 0 7px 7px;box-shadow:var(--shadow);transition:transform .15s}
.path-card:hover{transform:translateY(-3px)}.path-index{font-size:10px;color:var(--muted);letter-spacing:.07em;text-transform:uppercase}
.path-card h3{font-family:var(--font-section);font-weight:600;font-size:23px;line-height:1.3;margin:12px 0;color:var(--ink)}.path-card h3 span{font-family:system-ui;font-size:16px;color:var(--accent)}
.path-card p{font-size:13px;line-height:1.8;color:var(--muted);margin-bottom:15px}.path-card small,.path-note{font-size:11px;color:var(--muted)}.path-note{margin:15px 0 0;max-width:760px}
.section-intro p{font-size:12px}.course-grid{gap:18px}.part-card{position:relative;border-radius:8px;padding:27px 28px;box-shadow:var(--shadow)}.part-card h3{font-family:var(--font-section);font-size:26px;font-weight:600}.part-card p{font-size:14px}.part-card a{font-size:13px;padding:7px 0;border-bottom:1px solid var(--line)}.part-card a:last-child{border-bottom:0}.part-card a:hover{text-decoration:underline}.part-card .part-number{font-size:10px}.part-card .section-progress{font-size:11px;color:var(--muted);margin-top:17px;display:block}.reading-note{font-size:14px;line-height:1.9}
.lesson{max-width:900px}.lesson h1{font-size:clamp(36px,4.2vw,53px)}.lesson-meta{font-size:11px;gap:16px;margin-bottom:25px}.badge{font-size:11px;border-radius:4px}
.lesson-steps{display:flex;flex-wrap:wrap;gap:9px 22px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0;margin-bottom:27px}.lesson-steps a{font-size:11px;color:var(--muted);text-decoration:none}.lesson-steps a:hover{color:var(--accent);text-decoration:underline}
.goal{font-size:20px;line-height:1.6;max-width:760px}.story{font-size:16px;line-height:1.85;max-width:740px}
.concept{padding:0 0 0 20px;border-left:2px solid #89b4c4;margin:28px 0}.concept p{font-size:15px;line-height:1.9;margin:6px 0 0;max-width:720px}
.predict{border:0;background:var(--tint);padding:23px 25px;gap:23px;border-radius:8px;margin:30px 0}.predict>div{flex:1;min-width:0}.predict p{font-size:15px}.prediction-label{display:block;font-size:12px;margin:16px 0 7px;color:var(--ink)}.prediction-label span{font-weight:400;font-size:11px;color:var(--muted)}
.learning-note{min-height:76px;width:100%;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:5px;padding:11px 13px;font-family:inherit;font-size:14px;line-height:1.7;white-space:pre-wrap;resize:vertical}.learning-note::placeholder{color:var(--muted);opacity:.85}
.experiment{margin:36px 0}.experiment-head{margin-bottom:15px}.experiment-head h2{font-size:25px}.scaffold-row{display:flex;justify-content:space-between;gap:15px;align-items:start;margin:8px 0 18px}.learning-hint{font-size:13px;color:var(--accent);max-width:650px}.learning-hint p{color:var(--muted);margin:10px 0 14px;line-height:1.8}.learning-hint details{padding-left:16px;border-left:1px solid var(--line)}.fixture-reminder{font-size:11px;color:var(--muted);white-space:nowrap;padding-top:2px}.runtime-status{font-size:12px;margin-bottom:12px}.editor-shell{border:1px solid #2d5266;border-radius:8px;box-shadow:0 8px 28px #173f5008}.editor-bar{padding:11px 17px;font-size:11px}.editor-bar button{font-size:11px;min-height:25px}textarea#code{font-size:13px;line-height:1.9;padding:20px 22px}.run-bar{gap:10px;margin-top:15px}.run-bar .hint{font-size:11px}.setup{font-size:12px;line-height:1.8}.output{border-radius:7px}.output pre{font-size:12px;line-height:1.8}.output-title{font-size:10px}.feedback{font-size:13px}.evidence-cue{font-size:13px;color:var(--muted);margin:14px 0;line-height:1.85}.metric{background:var(--surface);border-radius:6px;padding:15px}.metric strong{font-size:28px;color:var(--accent)}.metric span{font-size:11px}.evidence-details{font-size:13px}.file-list button{font-size:11px;min-height:32px}
.worked{padding:22px 0}.worked summary{font-size:15px}.worked p{font-size:15px;line-height:1.9;max-width:760px}.change-box p{font-size:15px}.change-box h2{font-size:22px}
.quiz{padding:27px;border-radius:8px;box-shadow:var(--shadow)}.quiz h2{font-size:22px;font-family:var(--font-section);font-weight:600}.quiz .question{font-size:16px}.quiz label{padding:13px 15px;line-height:1.7;font-size:14px;min-height:48px}.quiz label:has(input:checked){background:var(--tint);border-color:var(--accent)}.quiz input{margin-top:6px}.quiz-feedback{font-size:13px;line-height:1.8}.reflection{margin:29px 0}.reflection label{font-size:15px;font-weight:600}.reflection p{font-size:13px;color:var(--muted);margin:5px 0 12px}.transfer{background:var(--tint);border:1px solid var(--line);border-radius:8px;padding:25px;margin:30px 0}.transfer h2{font-family:var(--font-section);font-weight:600;font-size:26px;margin:12px 0}.transfer p,.transfer li{font-size:14px;line-height:1.85}.transfer p{margin-bottom:16px}.transfer summary{font-size:13px;color:var(--accent)}.transfer ul{padding-left:20px}
#prediction,#experiment,#worked,#quiz{scroll-margin-top:100px}.review-bar{font-size:12px}.pagination a{font-size:14px;min-height:85px}.guide p,.guide li{font-size:16px;line-height:1.9}.guide section{margin:40px 0}.guide table{font-size:13px}
@media(max-width:1200px){.hero{grid-template-columns:minmax(0,1.3fr) minmax(190px,1fr);gap:20px}.hero .actions{flex-direction:column;align-items:start}.hero h1{font-size:43px}.hero .lead{font-size:16px}.art-overline{font-size:7px}.path-grid{grid-template-columns:1fr}.path-card{display:grid;grid-template-columns:1fr 1.1fr;column-gap:25px}.path-card h3{grid-column:1;grid-row:2/4;margin:7px 0}.path-card p{grid-column:2;grid-row:1/3;margin:0}.path-card small{grid-column:2}.path-index{font-size:9px}.map-node{font-size:12px;padding:7px}.map-node small{font-size:10px}}
@media(max-width:760px){.topbar{height:64px}.sidebar{top:64px}.hero{display:flex;flex-direction:column;align-items:stretch;gap:0}.hero h1{font-size:44px;letter-spacing:-1.4px}.hero .lead{font-size:17px}.hero-copy{padding:0}.hero-art{border-radius:8px;margin:27px 0 0;padding:18px 16px;min-height:230px}.hero-art svg{height:200px;margin:5px auto}.hero-art:before{top:32px}.art-overline{font-size:8px}.hero .actions{flex-direction:row}.facts{font-size:11px}.metadata-map{margin-top:19px;padding:19px 16px}.map-flow{gap:8px}.map-node{border:1px solid var(--line);background:var(--bg);padding:11px 6px}.map-node:before{display:none}.path-section{margin:36px 0}.path-card{display:block;padding:19px 21px}.path-card h3{font-size:24px;margin:9px 0}.path-card p{margin-bottom:10px}.section-intro h2{font-size:24px}.part-card{padding:23px}.part-card h3{font-size:25px}.part-card p{font-size:14px}.part-card a{font-size:13px}.part-card:last-child .card-lessons{columns:1}.lesson h1{font-size:38px}.lesson-steps{gap:10px 17px}.lesson-steps a{font-size:10px}.goal{font-size:18px}.story{font-size:15px}.concept{padding-left:16px}.concept p{font-size:14px}.predict{padding:20px;gap:8px}.predict p{font-size:14px}.learning-note{font-size:16px}.scaffold-row{flex-direction:column;gap:7px}.fixture-reminder{display:none}.experiment-head h2{font-size:23px}textarea#code{font-size:12px;padding:17px}.run-bar .hint{font-size:10px}.output pre{font-size:11px}.quiz{padding:22px 19px}.quiz label{font-size:14px}.metric strong{font-size:26px}.transfer{padding:22px 19px}.pagination a{font-size:12px}.guide p,.guide li{font-size:15px}.guide table{font-size:12px}}
@media(prefers-reduced-motion:reduce){.path-card,.button{transition:none}.path-card:hover{transform:none}}
.code-orientation{font-size:12px;color:var(--muted);margin:12px 0 16px}.code-orientation summary{color:var(--accent)}.code-orientation p{font-size:14px;line-height:1.85;max-width:740px;margin:12px 0}.code-orientation code{background:var(--tint);padding:1px 4px;border-radius:3px}
/* The skip target is a reading landmark, not a framed control. */
main:focus{outline:none}
.section-opener{margin:28px 0 30px;max-width:740px}.section-opener h2{font-family:var(--font-section);font-weight:600;font-size:25px;margin-bottom:15px}.section-opener p{font-size:16px;line-height:1.85;margin:0 0 15px;color:var(--ink)}.section-opener p:last-child{margin-bottom:0}@media(max-width:760px){.section-opener p{font-size:15px}}

/* One hierarchy: serif page titles, sans-serif section titles, uppercase stage labels. */
h2,h3{font-family:var(--font-section);font-weight:600}
.lesson h2,.lesson .worked-heading{font-family:var(--font-section);font-size:24px;font-weight:600;line-height:1.35;letter-spacing:-.4px}
.lesson .step-label{display:block;font-family:var(--font-section);font-size:11px;font-weight:700;line-height:1.6;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);padding:0}
.stage-heading{display:block;margin-bottom:17px}
.stage-heading .step-label,.change-box>.step-label{margin-bottom:8px}
.stage-heading h2{margin:0}
.predict{display:block}
.experiment-head{display:block}
.worked summary{font-weight:400}
.worked summary .step-label{display:inline}
.worked-heading{display:block;margin-top:8px}
.change-box h2{margin-top:0}
@media(max-width:760px){.lesson h2,.lesson .worked-heading{font-size:22px}.lesson .step-label{font-size:11px}}
