:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color-scheme:light;--bg:#f5f7fc;--surface:#ffffff;--text:#202c48;--muted:#64708a;--line:#dfe5f1;--accent:#087f91;--soft:#edf3fa;--code:#f1f4fb;--selected:#e0f4f5;--shadow:0 8px 28px #202b5508;--accent-alt:#516dde;--practice:#7553b2;--header-bg:#f5f7fcf0;--glow:#75bfe112;--art-bg:#edf2fa;--art-ink:#294970;--art-mid:#9cb8dc;--art-light:#d2e2f6;--art-paper:#fff;--art-bright:#67ace0;--art-shadow:#24466c0d}
:root[data-theme=dark]{color-scheme:dark;--bg:#0b1326;--surface:#131f37;--text:#edf2ff;--muted:#a1afc9;--line:#283650;--accent:#65dfd2;--soft:#1b2b46;--code:#0c172c;--selected:#183b46;--shadow:0 10px 30px #040a171c;--accent-alt:#8cb9ff;--practice:#c7a2ff;--header-bg:#0b1326ed;--glow:#4667b914;--art-bg:#1c2e48;--art-ink:#87a9d2;--art-mid:#45658c;--art-light:#304a6c;--art-paper:#d9e7f8;--art-bright:#71b6e9;--art-shadow:#080f1d35}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--bg:#0b1326;--surface:#131f37;--text:#edf2ff;--muted:#a1afc9;--line:#283650;--accent:#65dfd2;--soft:#1b2b46;--code:#0c172c;--selected:#183b46;--shadow:0 10px 30px #040a171c;--accent-alt:#8cb9ff;--practice:#c7a2ff;--header-bg:#0b1326ed;--glow:#4667b914;--art-bg:#1c2e48;--art-ink:#87a9d2;--art-mid:#45658c;--art-light:#304a6c;--art-paper:#d9e7f8;--art-bright:#71b6e9;--art-shadow:#080f1d35}}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:16px;line-height:1.6}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,select{cursor:pointer}a,button,input,select,textarea{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--accent);outline-offset:5px}::selection{background:#70b2ef55}
.icon{width:24px;height:24px;flex-shrink:0;vertical-align:middle}
.site-header{border-bottom:1px solid var(--line);background:var(--bg)}
.header-inner{max-width:1192px;padding:0 36px;margin:auto;min-height:80px;display:flex;align-items:center;gap:32px}
.brand{display:flex;align-items:center;gap:12px;font-size:21px;font-weight:750;letter-spacing:-.6px;white-space:nowrap}
.brand-light{font-weight:400;color:var(--muted)}
.brand-mark{display:grid;place-items:center;width:37px;height:37px;background:var(--accent);color:var(--bg);border-radius:10px}
.brand-mark .icon{width:23px}
.site-header nav{display:flex;align-self:stretch;gap:30px;margin-left:auto}
.site-header nav a{display:flex;align-items:center;color:var(--muted);position:relative;font-size:14px;font-weight:550}
.site-header nav a:hover,.site-header nav a[aria-current]{color:var(--text)}
.site-header nav a[aria-current]:after{content:'';position:absolute;bottom:-1px;height:3px;background:var(--accent);left:0;right:0;border-radius:4px}
.container{max-width:1192px;margin:0 auto;padding:36px 36px 80px}
.eyebrow{text-transform:uppercase;font-size:11px;letter-spacing:1.9px;font-weight:650;color:var(--muted);margin:0 0 18px}h1,h2,h3{font-weight:650;letter-spacing:-.04em;line-height:1.2}h1{font-size:clamp(34px,4.2vw,50px);margin:0}h2{font-size:23px}
.lead{color:var(--muted);font-size:18px;line-height:1.7}
.home-paths{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.path-card:hover,.project-card:hover,.module-card:hover{border-color:var(--accent);transform:translateY(-3px)}
.tile{display:inline-grid;width:54px;height:54px;place-items:center;border-radius:13px;color:var(--accent);background:var(--soft)}
.tile .icon{width:28px;height:28px}
.text-link{display:inline-flex;align-items:center;gap:9px;font-size:13px;font-weight:600;color:var(--accent)}
.text-link .icon{width:17px;height:17px}
.page-heading{margin:7px 0 40px}
.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.badge{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;white-space:nowrap}
.badge>span{width:5px;height:5px;border-radius:50%;background:#b49b62}
.back{font-size:13px;color:var(--muted);display:inline-block;margin-bottom:36px}
.back:hover{color:var(--accent)}
.detail-heading{display:flex;gap:24px;align-items:flex-start;border-bottom:1px solid var(--line);padding:0 0 35px;margin-bottom:38px}
.detail-heading>.tile{width:70px;height:70px;border-radius:17px;margin-top:5px;flex-shrink:0}
.detail-heading>.tile .icon{width:34px;height:34px}
.detail-heading h1{font-size:clamp(29px,3.8vw,43px);margin-top:10px}
.detail-heading p{font-size:14px;margin:13px 0 0}
.muted{color:var(--muted)}
.reading-layout{display:grid;grid-template-columns:235px minmax(0,1fr);gap:65px;align-items:start}
.contents{position:sticky;top:30px;max-height:calc(100vh - 60px);overflow:auto;scrollbar-width:thin}
.contents .eyebrow{margin:0 0 17px;font-size:10px}
.contents nav{display:flex;flex-direction:column;gap:3px}
.contents nav a{color:var(--muted);font-size:13px;line-height:1.5;padding:8px 11px;border-radius:6px}
.contents nav a:hover,.contents nav a[aria-current]{color:var(--accent);background:var(--selected)}
.related{border-top:1px solid var(--line);display:flex;gap:10px;padding-top:20px;margin-top:25px;font-size:12px;color:var(--accent);align-items:flex-start}
.related .icon{width:18px;height:18px}
.related small{display:block;color:var(--muted);font-size:10px;margin-top:5px}
.related>.icon:last-child{width:14px}
.prose{font-size:15px;line-height:1.85;min-width:0;max-width:780px}
.prose>h2:first-child,.prose>h3:first-child{margin-top:0}
.prose h2{font-size:25px;margin:43px 0 20px;padding-top:7px;scroll-margin-top:24px;letter-spacing:-.7px}
.prose h3{font-size:19px;margin:28px 0 15px;line-height:1.4;scroll-margin-top:24px;letter-spacing:-.4px}
.prose p{margin:15px 0}
.prose ul,.prose ol{padding-left:24px}
.prose li{padding-left:4px;margin:8px 0}
.prose li input{accent-color:var(--accent)}
.prose a{color:var(--accent);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.prose blockquote{margin:24px 0;padding:1px 20px;border-left:3px solid var(--accent);background:var(--soft);color:var(--muted);border-radius:0 6px 6px 0}
.prose code{background:var(--code);font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;padding:3px 5px;border-radius:4px;overflow-wrap:anywhere}
.prose pre{padding:21px 23px;background:var(--code);border:1px solid var(--line);border-radius:10px;overflow:auto;line-height:1.7}
.prose pre code{padding:0;white-space:pre;overflow-wrap:normal}
.prose hr{border:0;border-top:1px solid var(--line);margin:35px 0}
.table-scroll{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:8px;margin:22px 0}table{border-collapse:collapse;width:100%;font-size:14px;line-height:1.65}th{text-align:left;background:var(--soft);font-weight:600}td,th{padding:12px 15px;border-bottom:1px solid var(--line)}tr:last-child td{border-bottom:0}
.module-list{max-width:960px}
.module-card{display:grid;grid-template-columns:260px 1fr;border:1px solid var(--line);border-radius:13px;overflow:hidden;background:var(--surface);transition:transform .2s,border-color .2s}
.module-art{background:var(--soft);padding:35px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;color:var(--accent);gap:20px}
.module-art .icon{width:40px;height:40px}
.module-art>span{font:22px ui-monospace,monospace;letter-spacing:-.5px}
.module-art .code-line{font-size:12px;color:var(--muted)}
.module-info{padding:32px}
.meta{display:flex;gap:15px;align-items:center;font-size:12px;color:var(--muted)}
.module-info h2{font-size:26px;margin:20px 0 12px}
.module-info p{color:var(--muted);font-size:15px;margin-bottom:25px}
.module-heading{padding-bottom:30px;border-bottom:1px solid var(--line);margin-bottom:34px}
.module-heading h1{margin-top:16px;font-size:40px}
.module-heading .lead{font-size:16px}
.topic-list a{display:flex;gap:12px}
.topic-list a span{font:11px/1.9 ui-monospace,monospace;opacity:.7}
.topic-index{margin-top:30px}
.topic-index a{display:flex;align-items:center;gap:20px;padding:21px 0;border-bottom:1px solid var(--line)}
.topic-number{font:12px ui-monospace,monospace;color:var(--muted)}
.topic-index h2{font-size:17px;font-weight:500;letter-spacing:-.2px;flex:1;margin:0;line-height:1.5}
.topic-index .icon{width:18px;color:var(--accent)}
.skip{position:fixed;top:-100px;left:15px;z-index:10;background:var(--surface);padding:10px}
.skip:focus{top:10px}
/* The questionnaire content and behaviour are read from the original HTML. */
.survey{max-width:820px;margin:auto}
.survey>header{margin-bottom:35px}
.survey h1{font-size:45px;margin:17px 0}
.survey h2{font-size:22px;margin:0 0 18px;line-height:1.4}
.survey .tag{font-size:11px;color:var(--accent);letter-spacing:.8px}
.survey .lead{font-size:16px}
.survey .note,.survey .hint,.survey .foot{font-size:13px;color:var(--muted)}
.survey .hint{margin-bottom:20px}
.survey .card{padding:30px;border:1px solid var(--line);border-radius:12px;background:var(--surface);margin:22px 0}
.survey .group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.survey .choice,.survey .scale label{display:flex;align-items:flex-start;gap:10px;cursor:pointer;padding:12px;border:1px solid var(--line);border-radius:7px;font-size:14px;line-height:1.5}
.survey input{accent-color:var(--accent);flex-shrink:0;margin-top:4px}
.survey .choice:has(input:checked),.survey .scale label:has(input:checked){border-color:var(--accent);background:var(--selected)}
.survey .area{min-width:0;padding:20px 0;border:0;border-top:1px solid var(--line);margin-top:24px}
.survey .area legend{font-size:16px;font-weight:600;padding-right:14px}
.survey .area p{font-size:14px;color:var(--muted)}
.survey .scale{display:flex;flex-wrap:wrap;gap:7px}
.survey .scale label{font-size:12px;padding:8px;align-items:center;gap:5px}
.survey .scale input{margin:0}
.survey .field{margin-top:24px}
.survey .title{font-size:14px;display:block;margin-bottom:9px}
.survey textarea{width:100%;min-height:100px;resize:vertical;padding:13px;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--text);font-size:14px}
.survey .actions{display:flex;gap:10px;flex-wrap:wrap}
.survey .btn{background:var(--accent);color:var(--bg);border:1px solid var(--accent);padding:12px 18px;border-radius:7px;font-size:14px;cursor:pointer;font-weight:550}
.survey .btn.secondary{background:var(--surface);color:var(--accent)}#result{display:none}#result.visible{display:block}#output{min-height:400px}
.survey .foot{text-align:center;margin-top:30px}
@media(min-width:1500px){.container{padding-top:44px}}
@media(max-width:1000px){.header-inner{gap:25px}
.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.reading-layout{gap:35px;grid-template-columns:200px minmax(0,1fr)}
.site-header nav{gap:22px}
.brand{font-size:19px}}
@media(max-width:700px){.header-inner{padding:16px 22px 0;flex-wrap:wrap;gap:12px;min-height:auto}
.brand{margin-right:auto}
.site-header nav{order:3;width:100%;margin:0;gap:28px;height:48px}
.site-header nav a{font-size:13px}
.container{padding:35px 22px 65px}
.desktop-break{display:none}
.home-paths{grid-template-columns:1fr;gap:16px}
.project-grid{gap:15px;grid-template-columns:1fr}
.page-heading{margin:0 0 30px}
.page-heading h1{font-size:36px}
.reading-layout{display:flex;flex-direction:column;gap:28px}
.reading-layout>div,.reading-layout>article{width:100%}
.contents{position:static;max-height:none;width:100%;padding-bottom:20px;border-bottom:1px solid var(--line)}
.contents nav{gap:1px}
.contents nav a{padding:7px 10px}
.contents .eyebrow{margin-bottom:10px}
.detail-heading{gap:16px;padding-bottom:25px;margin-bottom:26px}
.detail-heading>.tile{width:50px;height:50px;border-radius:12px}
.detail-heading>.tile .icon{width:26px}
.detail-heading h1{font-size:29px;line-height:1.25}
.detail-heading p{font-size:12px}
.back{margin-bottom:26px}
.prose{font-size:15px}
.prose h2{font-size:23px}
.module-card{grid-template-columns:1fr}
.module-art{padding:25px;min-height:150px;position:relative;gap:12px}
.module-art>.icon{position:absolute;right:26px;top:45px}
.module-info{padding:25px}
.module-info h2{font-size:24px}
.module-heading h1{font-size:33px}
.survey h1{font-size:34px}
.survey .card{padding:20px}
.survey .group{grid-template-columns:1fr}
.survey h2{font-size:20px}
.survey .scale{display:grid;grid-template-columns:1fr 1fr}
.survey .area legend{font-size:15px}
.related{margin-top:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Blue visual system and local illustrations. */
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.theme-button{flex:none;display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);transition:background .15s,border-color .15s}
.theme-button:hover{background:var(--soft);border-color:var(--accent)}
.theme-button .icon{width:20px;height:20px;grid-area:1/1}
.theme-sun{display:none}
:root[data-theme=dark] .theme-sun{display:block}
:root[data-theme=dark] .theme-moon{display:none}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .theme-sun{display:block}:root:not([data-theme=light]) .theme-moon{display:none}}
.brand-mark{background:#285c99;color:#fff}
.tile{background:var(--soft);color:var(--accent)}
.project-illustration{display:block;width:100%;height:100%;max-height:230px}
.project-art,.path-art{overflow:hidden;background:var(--art-bg)}
.home-paths{gap:28px}
.path-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:var(--surface);transition:transform .2s,border-color .2s;box-shadow:var(--shadow)}
.path-art{height:220px;padding:8px 24px}
.path-body{padding:27px 30px 30px;display:flex;flex-direction:column;flex:1}
.path-card h2{font-size:28px;margin:0 0 12px;letter-spacing:-.8px}
.path-card p{font-size:15px;color:var(--muted);margin:0 0 25px;max-width:340px;line-height:1.7}
.path-card .text-link{margin-top:auto}
.text-link{font-size:14px;gap:10px}
.project-grid{gap:24px}
.project-card{overflow:hidden;display:flex;flex-direction:column;border:1px solid var(--line);background:var(--surface);border-radius:16px;transition:transform .2s,border-color .2s;box-shadow:var(--shadow)}
.project-art{height:174px;border-bottom:1px solid var(--line);padding:0 12px;flex:none}
.project-body{display:flex;flex-direction:column;flex:1;padding:23px 24px 24px}
.project-card h2{font-size:20px;line-height:1.3;letter-spacing:-.5px;margin:13px 0 11px}
.project-card p{font-size:14px;line-height:1.7;color:var(--muted);margin:0 0 23px}
.project-card .text-link{margin-top:auto;justify-content:space-between;width:100%}
.project-card .text-link .icon{background:var(--soft);box-sizing:content-box;padding:5px;border-radius:50%}
.project-card:hover .text-link .icon{background:var(--selected)}
.badge{align-self:flex-start;background:var(--soft);padding:3px 8px;border-radius:6px;line-height:1.6}
.badge>span{background:#88a7d1}
.page-heading h1{letter-spacing:-1.7px}
.detail-heading{padding-bottom:27px;margin-bottom:30px}
.detail-heading h1{line-height:1.2}
.contents nav a{border-left:2px solid transparent;border-radius:0 7px 7px 0}
.contents nav a:hover{border-left-color:var(--accent)}
.module-card{border-radius:16px}
.module-art{background:var(--art-bg)}
.module-art>.icon{color:var(--accent)}
.prose{font-size:16px;line-height:1.85;color:var(--text)}
.prose h2{font-size:26px;letter-spacing:-.65px;margin:44px 0 21px;padding-top:20px;border-top:1px solid var(--line);line-height:1.35}
.prose>h2:first-child{border-top:0;padding-top:0}
.prose h3{font-size:20px;line-height:1.4;margin:30px 0 14px}
.prose strong{font-weight:650}
.prose li{margin:10px 0;padding-left:5px}
.prose li::marker{color:var(--accent)}
.prose li>ul,.prose li>ol{margin-top:10px;margin-bottom:14px}
.prose pre{padding:22px 24px;border-radius:10px;border:1px solid var(--line);border-left:3px solid var(--art-mid);line-height:1.8}
.prose code{font-size:13px;padding:3px 6px}
.prose pre code{padding:0}
.prose blockquote{border-radius:0 9px 9px 0;font-size:15px}
.table-scroll{border-radius:10px;margin:24px 0}
.prose th{font-size:13px;color:var(--text);background:var(--soft);padding:13px 16px}
.prose td{padding:13px 16px;vertical-align:top}
.prose tbody tr:nth-child(even){background:var(--bg)}
.prose input[type=checkbox]{width:14px;height:14px;vertical-align:middle;margin-right:5px}

/* Lessons stay in a single reading column. The step strip scrolls on narrow screens. */
.lesson-page{max-width:800px;margin:0 auto}
.step-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}
.step-heading .back{margin:0;font-size:13px}
.step-counter{font-size:12px;color:var(--muted);white-space:nowrap}
.step-counter strong{font-weight:650;color:var(--text)}
.step-nav{display:flex;gap:8px;overflow-x:auto;position:relative;padding:4px 3px 10px;margin:0 -3px 18px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.step-nav a{flex:0 0 38px;height:38px;display:grid;place-items:center;font-size:13px;font-weight:550;border:1px solid var(--line);border-radius:9px;color:var(--muted);background:var(--surface);transition:background .15s,border-color .15s}
.step-nav a:hover{border-color:var(--accent);color:var(--accent)}
.step-nav a[aria-current]{background:var(--accent);color:var(--bg);border-color:var(--accent);box-shadow:0 3px 9px #27578c20}
.lesson-heading{margin:0 0 25px}
.lesson-meta{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;font-size:12px;color:var(--muted)}
.lesson-meta>a:hover{color:var(--accent)}
.lesson-heading h1{font-size:34px;line-height:1.25;letter-spacing:-1px}
.lesson-page .prose{max-width:none}
.lesson-page .prose>h3:first-child{margin-top:0}
.lesson-page .prose>hr:last-child{display:none}
.lesson-nav{display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--line);margin-top:35px;padding-top:22px}
.lesson-nav a{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:10px 20px;font-size:14px;font-weight:550;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text)}
.lesson-nav .lesson-next{background:var(--accent);border-color:var(--accent);color:var(--bg)}
.lesson-nav a:hover{filter:brightness(.95)}
.lesson-nav .icon{width:18px;height:18px}
@media(max-width:1000px){.header-inner{gap:25px}.project-art{height:180px}}
@media(max-width:700px){
 .header-inner{padding:13px 22px 0;gap:8px}
 .theme-button{width:38px;height:38px;border-radius:10px}
 .container{padding-top:24px}
 .home-paths{gap:20px}
 .path-art{height:175px;padding:0 10px}
 .path-body{padding:23px 24px 25px}
 .path-card h2{font-size:25px}
 .path-card p{font-size:14px;margin-bottom:23px}
 .project-grid{gap:20px}
 .project-art{height:177px;padding:0 16px}
 .project-body{padding:21px 23px 24px}
 .project-card h2{font-size:21px}
 .project-card p{margin-bottom:20px}
 .detail-heading{margin-bottom:25px}
 .prose{font-size:15px;line-height:1.85}
 .prose h2{font-size:23px;padding-top:23px;margin-top:34px}
 .prose h3{font-size:19px}
 .prose pre{padding:17px 16px}
 .prose th,.prose td{padding:11px 13px}
 .step-nav{gap:7px;margin-bottom:15px}
 .step-nav a{flex-basis:35px;height:35px;border-radius:8px;font-size:12px}
 .lesson-heading h1{font-size:27px;letter-spacing:-.7px}
 .lesson-meta{align-items:flex-start;margin-bottom:13px;font-size:11px}
 .lesson-meta>a{max-width:55%}
 .lesson-meta  .lesson-nav a{padding:10px 15px;font-size:13px}
}

/* Expressive accents stay in illustrations and small interactive details. */
:root{--header-height:81px}
/* Non-repeating canvas: short pages must not tile their body gradient below the content. */
html{min-height:100%;background-color:var(--bg)}
body{min-height:100vh;min-height:100svh;background:var(--bg) radial-gradient(ellipse 900px 650px at 15% 0,var(--glow),transparent 100%) no-repeat}
.site-header{position:sticky;top:0;z-index:30;background:var(--header-bg);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
[id]{scroll-margin-top:calc(var(--header-height) + 24px)}
.contents{top:calc(var(--header-height) + 24px);max-height:calc(100dvh - var(--header-height) - 48px)}
.brand-mark{background:linear-gradient(145deg,#38bcca,#5675ce);box-shadow:inset 0 1px 0 #ffffff30}
.brand{letter-spacing:-.7px}
.brand-light{color:var(--accent)}
.site-header nav a[aria-current]:after{background:linear-gradient(90deg,var(--accent),var(--accent-alt))}
.site-header nav a:hover{color:var(--accent)}
.theme-button:hover{color:var(--accent);transform:rotate(-8deg)}
.theme-button{transition:transform .2s,background .2s,border-color .2s}
.page-heading h1{font-weight:750;line-height:1.13;letter-spacing:-1.9px}
.page-heading h1 span{color:var(--accent)}
.page-heading .eyebrow{color:var(--accent);letter-spacing:2px}
.project-card,.path-card{border-radius:18px;transition:transform .22s,box-shadow .22s,border-color .22s}
.project-card:hover,.path-card:hover{transform:translateY(-5px);border-color:color-mix(in srgb,var(--accent) 55%,var(--line));box-shadow:0 14px 35px #101c3e16}
.project-body{padding-top:21px}
.project-card h2{font-weight:700;letter-spacing:-.45px}
.project-card:hover h2,.path-card:hover h2{color:var(--accent)}
.project-card .text-link .icon{background:var(--selected);transition:transform .2s,background .2s}
.project-card:hover .text-link .icon{transform:translateX(3px)}
.badge{font-size:11px;letter-spacing:.1px;padding:3px 8px;border:1px solid var(--line);background:transparent}
.project-art,.path-art{
 --scene-from:#379faa;--scene-to:#6367ce;--scene-glow:#4edbc2;
 --art-ink:#30456b;--art-mid:#6585c5;--art-light:#b0d9ed;--art-paper:#d7e9fc;--art-bright:#51c9c4;--art-extra:#8d83ed;--art-shadow:#0d1b4320;
 background:radial-gradient(ellipse at 20% 15%,color-mix(in srgb,var(--scene-glow) 25%,transparent),transparent 65%),linear-gradient(125deg,color-mix(in srgb,var(--scene-from) 27%,var(--surface)),color-mix(in srgb,var(--scene-to) 24%,var(--surface)));
 border-bottom:1px solid color-mix(in srgb,var(--scene-from) 20%,var(--line));
}
.project-art{height:190px;padding:0 4px}
.project-illustration{max-height:250px;filter:drop-shadow(0 6px 8px #1725460c);transition:transform .35s}
.project-card:hover .project-illustration,.path-card:hover .project-illustration{transform:translateY(-2px) scale(1.025)}
.art-game{--scene-from:#219e9e;--scene-to:#5853b6;--scene-glow:#58e3c6;--art-ink:#394c78;--art-mid:#655fbd;--art-light:#7edfcf;--art-bright:#3abfb0;--art-extra:#a99aee}
.art-sword{--scene-from:#6851af;--scene-to:#315d9d;--scene-glow:#9b76e2;--art-ink:#463e7c;--art-mid:#8272b7;--art-light:#aba8e6;--art-bright:#a29bea;--art-extra:#6ed1d0}
.art-cinema{--scene-from:#b7658f;--scene-to:#854c7a;--scene-glow:#f4a2ad;--art-ink:#603e6c;--art-mid:#c87f9b;--art-light:#efb4b7;--art-bright:#f3bc8b;--art-extra:#f4d7b4;--art-paper:#ffebdc}
.art-trophy{--scene-from:#b98a36;--scene-to:#9a5e9d;--scene-glow:#ffd18c;--art-ink:#655478;--art-mid:#c99b73;--art-light:#f7d799;--art-bright:#f1bd68;--art-extra:#e9b575;--art-paper:#fff0cf}
.art-vending{--scene-from:#368cc3;--scene-to:#4d5bc3;--scene-glow:#7abded;--art-ink:#34568a;--art-mid:#6c9acb;--art-light:#a5dce9;--art-bright:#63cece;--art-extra:#eda0ba}
.art-calendar{--scene-from:#9160ba;--scene-to:#c27497;--scene-glow:#e4b6ee;--art-ink:#625182;--art-mid:#ac8fc9;--art-light:#ddc6e9;--art-bright:#b49bdd;--art-extra:#efa7bd;--art-paper:#f7e7fc}
.art-grid{--scene-from:#6554bb;--scene-to:#437dae;--scene-glow:#a49bf0;--art-ink:#6153a4;--art-mid:#9d99d1;--art-light:#d5d5f1;--art-bright:#68cecb;--art-extra:#a18be1}
.art-weather{--scene-from:#3c9fc5;--scene-to:#5c83c4;--scene-glow:#88d6f4;--art-ink:#355b91;--art-mid:#86b6da;--art-light:#c1e2f3;--art-bright:#68b8e6;--art-extra:#f5c575;--art-paper:#e4f2fc}
.art-book{--scene-from:#429d99;--scene-to:#5a82b1;--scene-glow:#88dfca;--art-ink:#326575;--art-mid:#7abdb4;--art-light:#bce3d9;--art-bright:#69b9b1;--art-extra:#e6ae85;--art-paper:#e9f8ee}
.art-ball{--scene-from:#c66e7e;--scene-to:#795dad;--scene-glow:#efb0c0;--art-ink:#754b78;--art-mid:#bf84b5;--art-light:#e3bfda;--art-bright:#ed899a;--art-extra:#d79ddd;--art-paper:#fce8ef}
.path-art{height:235px;padding:2px 20px}
.path-card h2{font-weight:700;font-size:29px}
.path-art.art-code{--scene-from:#269eac;--scene-to:#4f66b8;--scene-glow:#6de6d2;--art-bright:#55c9c5;--art-extra:#8ca7ed}
.path-art.art-book{--scene-from:#7463b0;--scene-to:#548eae;--scene-glow:#bcadee;--art-ink:#5a5185;--art-mid:#9694c7;--art-light:#d2d1ee;--art-bright:#a1a0dc;--art-extra:#7acdc7;--art-paper:#f0efff}
.module-art{background:radial-gradient(ellipse at 15% 0,#8f7bce30,transparent 70%),linear-gradient(135deg,var(--soft),var(--selected));color:var(--accent)}

/* One list of topics, with no repeated document introduction or sidebar. */
.module-overview{max-width:820px;margin:0 auto}
.module-overview .module-heading{padding-bottom:24px;margin-bottom:0}
.module-overview h1{font-size:clamp(28px,4vw,42px);font-weight:700;margin-top:0}
.module-overview .lead{font-size:16px;margin:15px 0 0}
.module-overview .topic-index{margin-top:20px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface)}
.topic-index a{padding:20px 22px;transition:background .18s}
.topic-index a:last-child{border-bottom:0}
.topic-index a:hover{background:var(--soft)}
.topic-index h2{font-weight:550;font-size:16px}
.topic-number{display:grid;place-items:center;flex:none;width:33px;height:33px;border-radius:9px;background:var(--selected);color:var(--accent)}

/* Lesson sections use the existing Markdown headings as labels. */
.lesson-heading{margin-bottom:24px}
.lesson-heading h1{font-weight:700;line-height:1.25}
.step-nav a[aria-current]{background:linear-gradient(135deg,var(--accent),var(--accent-alt));border-color:transparent;color:var(--bg);box-shadow:none}
.step-nav a{transition:transform .18s,border-color .18s,background .18s}
.step-nav a:hover{transform:translateY(-2px)}
.lesson-block{margin:25px 0 30px}
.lesson-block>h3:first-child{display:flex;align-items:center;gap:11px;margin:0 0 18px;font-size:19px;letter-spacing:-.35px}
.lesson-block>h3:first-child:before{content:'';width:7px;height:22px;flex:none;border-radius:3px;background:linear-gradient(180deg,var(--accent),var(--accent-alt))}
.lesson-block.practice{padding:25px 28px;border:1px solid color-mix(in srgb,var(--practice) 32%,var(--line));border-radius:14px;background:linear-gradient(125deg,color-mix(in srgb,var(--practice) 7%,var(--surface)),var(--surface))}
.lesson-block.practice>h3:first-child{color:var(--practice)}
.lesson-block.practice>h3:first-child:before{background:var(--practice)}
.lesson-block.practice>ol:last-child,.lesson-block.practice>p:last-child{margin-bottom:0}
.code-example{margin:23px 0;border:1px solid var(--line);border-radius:11px;overflow:hidden;background:var(--code)}
.code-example figcaption{display:flex;align-items:center;gap:8px;font:11px/1.5 ui-monospace,monospace;color:var(--muted);padding:10px 18px;border-bottom:1px solid var(--line);background:var(--soft);text-transform:uppercase;letter-spacing:.8px}
.code-example figcaption:before{content:'›_';font-size:13px;color:var(--accent)}
.prose .code-example pre{margin:0;border:0;border-radius:0;padding:20px 22px}
.lesson-block .table-scroll{background:var(--surface)}
.prose th{color:var(--accent);background:var(--soft)}
.prose blockquote{border-left-color:var(--accent);background:var(--selected);color:var(--text)}
.lesson-nav .lesson-next{background:linear-gradient(120deg,var(--accent),var(--accent-alt));border:0;color:var(--bg)}
.lesson-nav a:hover{filter:none;box-shadow:0 4px 14px #142a4f15;transform:translateY(-1px)}
.lesson-nav a{transition:transform .18s,box-shadow .18s}
@media(max-width:700px){
 :root{--header-height:108px}
 .contents{top:auto;max-height:none}
 .project-art{height:190px}
 .path-art{height:190px;padding:0 8px}
 .path-card h2{font-size:25px}
 .page-heading h1{letter-spacing:-1.2px}
 .topic-index a{padding:17px 16px;gap:13px}
 .topic-index h2{font-size:14px;line-height:1.55}
 .topic-index .icon{width:16px;flex:none}
 .lesson-block.practice{padding:20px 18px}
 .lesson-block>h3:first-child{font-size:18px}
 .prose .code-example pre{padding:17px 16px}
 .lesson-page .prose{font-size:15px}
 .lesson-heading h1{font-size:27px}
 .step-nav{margin-bottom:18px}
}
@media(prefers-reduced-motion:reduce){.project-card:hover,.path-card:hover,.project-card:hover .project-illustration,.path-card:hover .project-illustration,.theme-button:hover,.step-nav a:hover,.lesson-nav a:hover{transform:none}}
.prose [id]{scroll-margin-top:calc(var(--header-height) + 24px)}
.lesson-block>hr:last-child{display:none}

/* Soft halo behind the mark; the wordmark remains sharp in both themes. */
.brand-mark{position:relative;isolation:isolate;box-shadow:inset 0 1px 0 #ffffff30,0 3px 15px #3abac228}
.brand-mark:before{content:'';position:absolute;z-index:-1;inset:-8px;border-radius:50%;background:radial-gradient(ellipse,#43d6d34d, #65bde321 48%,transparent 73%);filter:blur(7px);pointer-events:none}

/* Three textual difficulty levels, with contrast suited to each theme. */
:root{--difficulty-easy:#237947;--difficulty-medium:#91610b;--difficulty-hard:#b34b42}
:root[data-theme=dark]{--difficulty-easy:#81d9a6;--difficulty-medium:#f2cf73;--difficulty-hard:#f29d93}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--difficulty-easy:#81d9a6;--difficulty-medium:#f2cf73;--difficulty-hard:#f29d93}}
.badge.easy{--difficulty-color:var(--difficulty-easy)}
.badge.medium{--difficulty-color:var(--difficulty-medium)}
.badge.hard{--difficulty-color:var(--difficulty-hard)}
.badge{color:var(--difficulty-color);border-color:color-mix(in srgb,var(--difficulty-color) 30%,var(--line));background:color-mix(in srgb,var(--difficulty-color) 6%,transparent)}
.badge>span{background:var(--difficulty-color)}
.badge.medium>span{background:#d3a532}
