/* Adapted from the supplied Git-and-Github visual reference, without modifying it.
   Keeps the prototype's accessible routing and drawer behavior. */
:root{--bg:#fff;--panel:#fafafa;--surface:#fff;--text:#111;--muted:#666;--line:#eaeaea;--accent:#0065d5;--soft:#e6f1fe;--code:#0a0a0a;--code-text:#eaeaea;--warn:#874709;--warn-bg:#fff7ed;--orange:#b84407;--orange-soft:#fff3e9}
:root[data-theme=dark]{--bg:#000;--panel:#0a0a0a;--surface:#050505;--text:#ededed;--muted:#a3a3a3;--line:#252525;--accent:#62aaff;--soft:#062449;--code:#0a0a0a;--warn:#ffbf7a;--warn-bg:#291a0c;--orange:#ff9b5a;--orange-soft:#28170d}
body{height:100dvh;overflow:hidden;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}.topbar{height:60px;padding:0 28px;background:var(--bg)}.brand{font-size:16px;letter-spacing:-.4px;gap:9px}.logo-badge{font-size:10px;font-weight:650;letter-spacing:.5px;color:var(--accent);background:var(--soft);padding:3px 7px;border-radius:99px}.edition{letter-spacing:1px;font-size:10px}#theme{font-size:12px;background:var(--panel);border-radius:8px}.workspace{height:calc(100dvh - 60px);grid-template-columns:280px minmax(0,1fr) 240px}#sidebar{padding:30px 20px 40px 24px;background:var(--bg)}.sidebar-top{margin-bottom:18px}.sidebar-top .eyebrow{font-size:11px;color:var(--text);letter-spacing:1px}.search-label{font-size:12px}#search{background:var(--panel);border-radius:8px}.nav-group{color:var(--text);font-weight:700;font-size:10px;letter-spacing:.7px}.lesson-link{font-size:13px;border-left:0;border-radius:6px;margin-bottom:5px;padding:9px 12px}.lesson-link:hover{background:var(--panel);color:var(--text)}.lesson-link[aria-current=page]{color:var(--accent);background:var(--soft)}.lesson-link small{margin-top:3px;color:var(--muted)}.roadmap .eyebrow{color:var(--text)}#reading{padding:48px 48px 100px}#reading:focus-visible{outline-offset:-3px}article{max-width:704px}article h1{font-size:38px;font-weight:800;letter-spacing:-1.4px;line-height:1.2;margin:20px 0}.breadcrumb{color:var(--muted);font-size:12px}.lede{font-size:17px;line-height:1.75}.lesson-meta span{border-radius:99px;background:var(--panel);font-size:11px}.contents{padding:48px 24px}.contents>.eyebrow{color:var(--text);font-size:11px;letter-spacing:.6px}#toc a{font-size:12px;line-height:1.5;padding:7px 0}.mentor .eyebrow{font-size:9px}.mentor p{line-height:1.7}.callout{border-radius:0 8px 8px 0}article h2{font-size:23px;font-weight:700;padding-top:24px}pre{border-radius:10px;font-size:12px;padding:20px 22px}article figure img{border-radius:10px}
.landing{height:calc(100dvh - 60px);padding:28px 24px;place-items:center}.landing-inner{display:grid;grid-template-columns:1fr 1.2fr;gap:36px;max-width:1100px;align-items:center}.landing-hero{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:360px}.hero-glow{position:absolute;width:340px;height:340px;background:radial-gradient(circle,#f9731628,transparent 70%);filter:blur(28px);pointer-events:none}.hero-stack{position:relative;width:100%;height:320px;display:flex;align-items:center;justify-content:center}.hero-stack img{object-fit:cover;border-radius:16px;box-shadow:0 4px 20px #0001;transition:transform .3s}.hero-main{width:220px;height:220px;z-index:3;transform:rotate(-3deg);border:4px solid var(--accent)}.hero-side-a,.hero-side-b{position:absolute;width:155px;height:155px;border:3px solid var(--line)}.hero-side-a{left:5%;top:9%;z-index:2;transform:rotate(-15deg)}.hero-side-b{right:4%;bottom:6%;z-index:2;transform:rotate(12deg)}.hero-stack:hover .hero-main{transform:rotate(0) scale(1.025)}.hero-caption{display:flex;gap:8px;align-items:center;margin-top:20px;border:1px solid var(--line);border-radius:99px;padding:7px 16px;background:var(--panel);color:var(--muted);font-size:12px}.hero-caption span{color:var(--orange)}.landing-content{min-width:0}.landing-badge{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:650;color:var(--orange);background:var(--orange-soft);border:1px solid #f9731630;border-radius:99px;padding:5px 13px;margin-bottom:12px}.landing h1{font-size:clamp(32px,3.4vw,44px);line-height:1.13;font-weight:800;letter-spacing:-1.7px;margin:0 0 12px}.landing h1 span{color:var(--orange)}.landing .intro{font-size:14px;line-height:1.7;margin:0 0 16px;max-width:520px}.landing-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.feature-card{border:1px solid var(--line);background:var(--panel);border-radius:12px;padding:12px;display:flex;flex-direction:column}.feature-icon{font-size:20px;line-height:1;align-self:start;color:var(--orange);background:var(--orange-soft);padding:7px;border-radius:8px;margin-bottom:7px}.feature-card strong{font-size:15px}.feature-card>span:last-child{font-size:12px;color:var(--muted)}.landing-chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}.landing-chips a{background:var(--panel);border:1px solid var(--line);color:var(--muted);font-size:11px;font-weight:550;border-radius:99px;padding:6px 11px;text-decoration:none;min-height:36px;display:flex;align-items:center}.landing-chips a:hover{color:var(--orange);border-color:var(--orange)}.landing-bottom{margin:0}.primary{border-radius:12px;background:linear-gradient(135deg,#f97316,#d44d00);color:#fff;font-size:14px;font-weight:700;padding:13px 22px;gap:12px;box-shadow:0 8px 24px #f9731633;align-items:center}.primary:hover{background:#b94300}.creator-profile{display:flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid var(--line);background:var(--panel);border-radius:12px;margin-top:18px;width:max-content;max-width:100%}.creator-avatar{display:grid;place-items:center;border-radius:50%;width:34px;height:34px;background:var(--soft);color:var(--accent);font-size:12px;font-weight:700}.creator-profile small,.creator-profile strong{display:block}.creator-profile small{font-size:10px;color:var(--muted)}.creator-profile strong{font-size:12px}.creator-profile a{border-left:1px solid var(--line);padding-left:12px;margin-left:12px;font-size:11px;color:var(--muted);text-decoration:none}.scope{font-size:10px;line-height:1.6;margin-top:12px}
/* Keep the top reachable when zoom or enlarged text makes onboarding taller. */
.landing{align-items:safe center}
/* Visibility must change immediately so opening focus can land inside the drawer. */
.creator-profile{width:100%;border-radius:99px}.creator-avatar{flex-shrink:0}.creator-info{flex:1;min-width:0}.creator-socials{display:flex;gap:4px;flex-shrink:0}.creator-profile .creator-socials a{display:grid;place-items:center;width:44px;height:44px;padding:0;margin:0;border:1px solid var(--line);border-radius:50%;background:var(--bg);color:var(--muted)}.creator-socials a:hover{border-color:var(--orange);color:var(--orange);background:var(--orange-soft)}.creator-socials svg{display:block;width:16px;height:16px;flex-shrink:0}
@media(max-width:600px){.landing-content .creator-profile{gap:6px;padding:6px 8px}.creator-socials{gap:2px}}
@media(max-height:650px) and (max-width:600px){.landing-content .creator-profile{padding:3px 8px;margin-top:6px}}
@media(min-width:601px) and (max-height:450px){body .landing-content .creator-profile{padding:0 10px;margin-top:4px}body .landing-content .scope{margin-top:2px}}
.instruction-table th,.instruction-table td{vertical-align:top;text-align:left}.instruction-table th:first-child,.instruction-table td:first-child{white-space:nowrap;overflow-wrap:normal;word-break:normal;width:1%}.instruction-table code,.instruction-table td:first-child code{white-space:nowrap;overflow-wrap:normal;word-break:normal}
#sidebar{transition:transform .15s}
.landing .primary{background:linear-gradient(135deg,#c45008,#aa3d00)}
@media(min-width:601px) and (max-height:450px){body .landing{padding-top:6px;padding-bottom:6px}.landing-content{line-height:1.35}.landing-content .landing-badge{padding:2px 8px;margin-bottom:4px}.landing-content h1{font-size:24px;margin-bottom:5px}.landing-content .intro{margin-bottom:6px}.landing-content .landing-features{margin-bottom:5px}.landing-content .landing-chips{margin-bottom:6px}.landing-content .creator-profile{line-height:1.3;margin-top:6px}.landing-content .scope{margin-top:4px}}
@media(max-width:1150px) and (min-width:901px){.workspace{grid-template-columns:250px minmax(0,1fr)}.contents{display:none}.landing-inner{gap:24px}.hero-main{width:195px;height:195px}.hero-side-a,.hero-side-b{width:135px;height:135px}}
@media(max-width:900px){.workspace{display:block}.topbar{padding:0 16px}.brand{font-size:14px}.brand img{width:24px;height:24px}.brand span{max-width:none;white-space:nowrap}.logo-badge{display:none}#reading{padding:32px 25px 70px}#sidebar{padding:22px 20px 40px}.landing-inner{max-width:520px;grid-template-columns:1fr;gap:14px}.landing-hero{min-height:0;flex-direction:row;gap:14px}.hero-stack{width:155px;height:85px;flex-shrink:0}.hero-main{width:73px;height:73px;border-width:2px;border-radius:10px!important}.hero-side-a,.hero-side-b{width:53px;height:53px;border-width:2px;border-radius:9px!important}.hero-side-a{left:4%;top:0}.hero-side-b{right:3%;bottom:0}.hero-caption{font-size:10px;margin:0;padding:6px 9px}.hero-glow{height:90px;width:170px}.landing h1{font-size:34px}.desktop-break{display:none}.landing .intro{font-size:13px;line-height:1.5}.landing-badge{font-size:10px;padding:3px 9px;margin-bottom:8px}.feature-icon{display:none}.feature-card{padding:10px}.landing-features{gap:8px}.landing{padding:18px 22px}.creator-profile{margin-top:14px}.scope{margin-top:10px}}
@media(max-width:600px){.landing{height:calc(100dvh - 60px);padding:14px 18px}.landing-inner{gap:12px}.landing h1{font-size:30px;letter-spacing:-1.1px;margin-bottom:10px}.landing .intro{font-size:12px;margin-bottom:12px}.landing-features{margin-bottom:12px}.feature-card{padding:8px}.feature-card strong{font-size:13px}.feature-card>span:last-child{font-size:10px}.landing-chips{gap:5px;margin-bottom:12px}.landing-chips a{font-size:10px;padding:5px 8px;min-height:32px}.primary{font-size:13px;padding:11px 17px}.creator-profile{padding:7px 11px;margin-top:12px}.creator-profile a{margin-left:5px;padding-left:8px}.scope{font-size:9px}article h1{font-size:30px}.hero-stack{height:72px}.hero-main{width:62px;height:62px}.hero-side-a,.hero-side-b{width:46px;height:46px}}
@media(max-height:650px) and (max-width:600px){.landing-inner{gap:8px}.landing{padding:9px 16px}.hero-stack{height:49px;width:118px}.hero-main{width:45px;height:45px}.hero-side-a,.hero-side-b{width:34px;height:34px}.hero-caption{font-size:9px}.landing h1{font-size:26px;line-height:1.1;margin-bottom:7px}.landing-badge{margin-bottom:6px}.landing .intro{margin-bottom:9px}.landing-features{margin-bottom:8px}.feature-card{padding:6px 8px}.landing-chips{margin-bottom:9px}.creator-profile{margin-top:9px;padding:6px 10px}.scope{margin-top:7px}}
@media(min-width:601px) and (max-height:600px){.landing{place-items:center;padding:10px 24px}.landing-inner{grid-template-columns:.55fr 1.45fr;max-width:1050px;gap:22px}.landing-hero{flex-direction:column}.hero-stack{height:190px;width:100%}.hero-main{width:130px;height:130px}.hero-side-a,.hero-side-b{width:90px;height:90px}.hero-caption{margin-top:10px}.landing h1{font-size:26px;margin-bottom:7px}.landing h1 br,.scope br{display:none}.landing .intro{font-size:12px;line-height:1.4;margin-bottom:8px}.landing-badge{font-size:10px;padding:3px 9px;margin-bottom:6px}.feature-icon{display:none}.feature-card{padding:5px 10px}.feature-card strong{font-size:13px}.feature-card>span:last-child{font-size:10px}.landing-features{gap:8px;margin-bottom:7px}.landing-chips{margin-bottom:8px}.landing-chips a{font-size:10px;padding:3px 8px;min-height:30px}.primary{padding:8px 16px;font-size:12px}.creator-profile{margin-top:8px;padding:4px 10px}.creator-avatar{width:28px;height:28px}.scope{margin-top:6px;font-size:9px}}
