:root{--bg:#0d1117;--bg-elevated:#161b22;--bg-muted:#21262d;--text:#e6edf3;--text-muted:#8b949e;--text-faint:#6e7681;--border:#30363d;--accent:#58a6ff;--font-sans:"Source Sans 3", system-ui, -apple-system, sans-serif;--font-mono:"JetBrains Mono", ui-monospace, monospace}*,:before,:after{box-sizing:border-box}html,body,#root{min-height:100%}body{font-family:var(--font-sans);background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;margin:0;font-size:1rem;overflow-x:hidden}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}.bg{background:var(--bg);z-index:0;position:fixed;inset:0}.app-shell{z-index:2;flex-direction:column;min-height:100vh;display:flex;position:relative}.site-header{border-bottom:1px solid var(--border);background:var(--bg-elevated);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;padding:.875rem clamp(1rem,4vw,2rem);display:flex}.brand{font-family:var(--font-sans);letter-spacing:-.02em;color:var(--text);font-size:1.0625rem;font-weight:600}.site-nav{flex-wrap:wrap;gap:.5rem 1.25rem;font-size:.875rem;font-weight:500;display:flex}.site-nav a{color:var(--text-muted)}.site-nav a:hover{color:var(--text);text-decoration:none}.layout-body{flex:1;align-items:flex-start;width:100%;max-width:min(100vw - 1.5rem,122rem);min-height:0;margin-inline:auto;display:flex}.side-nav{border-right:1px solid var(--border);background:var(--bg-elevated);flex:0 0 min(17rem,32vw);align-self:flex-start;max-height:100vh;padding:1rem .75rem 1.5rem clamp(.75rem,2vw,1rem);font-size:.875rem;position:sticky;top:0;overflow:hidden auto}.side-nav-inner{flex-direction:column;gap:.35rem;display:flex}.side-nav-chapter{flex-direction:column;gap:.2rem;display:flex}.side-nav-chapter-link{color:var(--text-muted);border-radius:4px;padding:.35rem .4rem;font-weight:600;text-decoration:none;display:block}.side-nav-chapter-link:hover{color:var(--text);background:#ffffff0a;text-decoration:none}.side-nav-chapter-link--active{color:var(--accent);background:#58a6ff14}.side-nav-sections{border-left:1px solid var(--border);margin:0 0 .5rem;padding:0 0 0 .65rem;list-style:none}.side-nav-sections li{margin:0}.side-nav-sections a{color:var(--text-faint);border-radius:3px;padding:.2rem .35rem;font-size:.8125rem;font-weight:400;line-height:1.35;text-decoration:none;display:block}.side-nav-sections a:hover{color:var(--text-muted);background:#ffffff08;text-decoration:none}.site-main{flex:1;min-width:0;max-width:none;margin:0;padding:clamp(1.5rem,4vw,2.5rem) clamp(1rem,2.5vw,2rem) 2.75rem}@media (width<=900px){.layout-body{flex-direction:column;align-items:stretch}.side-nav{border-right:none;border-bottom:1px solid var(--border);flex:none;max-height:none;position:static}}.site-footer{border-top:1px solid var(--border);color:var(--text-faint);text-align:center;padding:1.25rem clamp(1rem,4vw,2rem);font-size:.8125rem}.home-page .home-section h2{scroll-margin-top:1rem}.home-page .home-section{margin-top:2rem}.home-page .home-section:first-of-type{margin-top:0}.home-page .home-section p{color:var(--text-muted);margin:0 0 .85rem;font-size:1rem;line-height:1.65}.home-page .home-section p:last-child{margin-bottom:0}.hero{margin-bottom:2rem}.eyebrow{letter-spacing:.04em;text-transform:uppercase;color:var(--text-faint);margin-bottom:.5rem;font-size:.8125rem;font-weight:600}h1{font-family:var(--font-sans);color:var(--text);letter-spacing:-.02em;margin:0 0 1rem;font-size:clamp(1.5rem,4vw,1.875rem);font-weight:600;line-height:1.25}.page-title{font-family:var(--font-sans);color:var(--text);letter-spacing:-.02em;margin:0 0 .75rem;font-size:clamp(1.35rem,3.5vw,1.5rem);font-weight:600}.section-heading{color:var(--text);margin:0 0 .75rem;font-size:1rem;font-weight:600}.lead{color:var(--text-muted);margin:0;font-size:1rem;font-weight:400;line-height:1.65}.hero-follow{margin-top:1rem}.prose{color:var(--text-muted);font-size:1rem;line-height:1.65}.prose p{margin:0 0 1rem}.prose ul{margin:0 0 1rem;padding-left:1.25rem}.prose h2{font-family:var(--font-sans);color:var(--text);letter-spacing:-.02em;margin:2.25rem 0 .75rem;scroll-margin-top:1.25rem;font-size:1.2rem;font-weight:600}.prose h2:first-of-type{margin-top:1.25rem}.prose h3{font-family:var(--font-sans);color:var(--text);margin:1.5rem 0 .5rem;scroll-margin-top:1.25rem;font-size:1.05rem;font-weight:600}.prose .lesson-lead{font-size:1.02rem;line-height:1.7}.lesson-goals{margin:0 0 1.5rem;padding:0 0 0 1.15rem}.lesson-goals li{margin-bottom:.35rem}.callout{border:1px solid var(--border);color:var(--text-muted);border-radius:6px;margin:1.25rem 0;padding:.9rem 1rem;font-size:.95rem;line-height:1.55}.callout-key{border-left:3px solid var(--accent);background:#58a6ff0f}.callout-caution{background:#d2992214;border-left:3px solid #d29922}.callout-title{letter-spacing:.04em;text-transform:uppercase;color:var(--text);margin:0 0 .4rem;font-size:.8125rem;font-weight:700}.callout-body p{margin:0 0 .5rem}.callout-body p:last-child{margin-bottom:0}.try-this{border:1px dashed var(--border);background:#ffffff05;border-radius:6px;margin-top:2rem;padding:1rem 1.15rem}.try-this h2{margin-top:0!important;font-size:1rem!important}.try-this ol{color:var(--text-muted);margin:.5rem 0 0;padding-left:1.25rem;font-size:.95rem}.try-this li{margin-bottom:.5rem}.prose code{font-family:var(--font-mono);color:#a5d6ff;background:0 0;border-bottom:1px solid #58a6ff59;border-radius:0;padding:0;font-size:.92em;font-weight:500}.prose pre code,.prose figure pre code{font-weight:inherit;font-size:inherit;line-height:inherit;color:inherit;border-bottom:none;border-radius:0;padding:0;display:block;background:0 0!important}.rule{background:var(--border);border:none;height:1px;margin:1.25rem 0 1.5rem}.topic-grid{grid-template-columns:repeat(auto-fill,minmax(15.5rem,1fr));gap:.875rem;margin-top:1rem;display:grid}.topic-card{background:var(--bg-elevated);border:1px solid var(--border);color:inherit;border-radius:6px;padding:1rem 1.1rem;text-decoration:none;transition:border-color .15s;display:block}.topic-card:hover{border-color:var(--text-faint);text-decoration:none}.topic-card h2{color:var(--text);margin:0 0 .4rem;font-size:.9375rem;font-weight:600}.topic-card p{color:var(--text-muted);margin:0;font-size:.8125rem;line-height:1.45}.future-list{border:1px solid var(--border);background:var(--bg-elevated);border-radius:6px;margin-top:1.75rem;padding:1rem 1.15rem}.future-list h2{color:var(--text);margin:0 0 .65rem;font-size:.875rem;font-weight:600}.future-list ul{color:var(--text-muted);margin:0;padding-left:1.2rem;font-size:.875rem}.intro-video-section .video-embed{margin-top:.75rem}.video-embed{border:1px solid var(--border);aspect-ratio:16/9;background:#0a0a0a;border-radius:6px;max-width:100%;overflow:hidden}.video-embed video{object-fit:contain;width:100%;height:100%;display:block}.code-compare{margin:2rem 0}.code-compare-caption{color:var(--text-faint);margin:.5rem 0 0;font-size:.8125rem}.code-grid{grid-template-columns:1fr 1fr;gap:1rem;display:grid}@media (width<=720px){.code-grid{grid-template-columns:1fr}}.code-panel{border:1px solid var(--border);background:var(--bg);border-radius:6px;overflow:hidden}.code-panel header{letter-spacing:.06em;text-transform:uppercase;border-bottom:1px solid var(--border);color:var(--text-muted);background:var(--bg-elevated);padding:.4rem .65rem;font-size:.6875rem;font-weight:600}.code-panel header.cpp,.code-panel header.rust{color:var(--text-muted)}.shiki-wrap{overflow:auto hidden}.shiki-html pre.shiki{font-family:var(--font-mono);border:none;border-radius:0;margin:0;padding:1rem 1.1rem;font-size:.8125rem;line-height:1.55;background-color:var(--bg)!important}.shiki-html pre.shiki code,.shiki-html pre.shiki code *{background:0 0!important;border-bottom:none!important}.shiki-html pre.shiki code{font-family:inherit;font-size:inherit;line-height:inherit}.code-fallback{font-family:var(--font-mono);color:var(--text);margin:0;padding:1rem 1.1rem;font-size:.8125rem;line-height:1.55;overflow-x:auto}@media (prefers-reduced-motion:reduce){.topic-card{transition:none}}
