:root {
  color-scheme:light;
  --ink:#1d1d1f; --muted:#56565d; --silver:#f5f5f7; --line:#d8d8de; --blue:#0066cc;
  --gutter:clamp(1.25rem,5vw,5rem); --measure:68rem;
  font:100%/1.56 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;
}
* {box-sizing:border-box}
body {margin:0;background:white;color:var(--ink);-webkit-font-smoothing:antialiased}
h1,h2,h3,p,figure {margin:0}
h1,h2,h3 {font-weight:670;line-height:1.06;letter-spacing:-.05em;text-wrap:balance}
:lang(zh-CN) :is(h1,h2,h3) {line-height:1.18;letter-spacing:-.035em}
h1 {font-size:clamp(2.6rem,6.8vw,6.9rem)}
h2 {font-size:clamp(2.1rem,4.4vw,4.3rem)}
h3 {font-size:clamp(1.55rem,2.8vw,2.3rem)}
a {color:var(--blue);text-underline-offset:.2em}
a:focus-visible {outline:3px solid #0071e3;outline-offset:4px}
a:hover {text-decoration:underline}
nav {display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:.65rem 1.2rem}
.eyebrow {color:var(--muted);font-size:.9rem;font-weight:630;letter-spacing:.014em;margin-bottom:.7rem}
.spread {width:min(calc(100% - var(--gutter)*2),var(--measure));margin:auto;padding-block:clamp(3.6rem,7.6vw,7.6rem)}
/* Light reveals the sky without placing a tinted scrim over the scenery. */
.overture {isolation:isolate}
.cover {min-height:100vh;min-height:100svh;position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:0 var(--gutter);background:#eff6ff}
.sky,.sky img,.cover::after {position:absolute;inset:0;width:100%;height:100%}
.sky {z-index:-2}.sky img {object-fit:cover;object-position:center 52%}
.cover::after {content:"";z-index:-1;background:linear-gradient(180deg,#fffffff5 0%,#ffffffe8 19%,#ffffffbc 50%,#ffffff10 77%,#ffffffa8 100%)}
.mast,.scroll {width:100%;max-width:var(--measure);display:flex;align-items:center;justify-content:space-between}
.mast {padding-top:max(1rem,env(safe-area-inset-top));font-size:.95rem}
.brand {display:inline-flex;align-items:center;gap:.5rem;font-weight:680;letter-spacing:-.025em}
.mark {display:grid;place-items:center;background:var(--ink);color:white;border-radius:.4rem;width:1.42rem;height:1.42rem}
.lang {color:var(--ink);background:#ffffffbf;border:1px solid #0002;border-radius:2rem;padding:.58rem 1rem;text-decoration:none}
.opening {padding:clamp(2.8rem,8vh,7rem) 0;text-align:center}
h1 span {display:block}.opening .eyebrow {color:#34343b}
.lead {max-width:48ch;font-size:clamp(1.03rem,1.6vw,1.35rem);margin:1.1rem auto 1.5rem;text-wrap:balance}
.pill,.ghost {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.6rem 1.28rem;border-radius:99px;text-decoration:none;font-weight:550}
.pill {background:var(--ink);color:white}.ghost {background:#ffffffd1;color:var(--ink);border:1px solid #0003}
.pill:hover,.ghost:hover,.lang:hover {text-decoration:none;box-shadow:0 0 0 2px #73737c66}
.scroll {color:var(--ink);padding:1rem 0 max(1rem,env(safe-area-inset-bottom));border-top:1px solid #0003;font-weight:600;text-decoration:none}
.overview {position:relative;z-index:1;background:white;border-radius:2rem 2rem 0 0;text-align:center}
.index-list {margin-top:1.8rem;gap:.6rem}
.index-list a {display:inline-flex;align-items:center;justify-content:center;gap:.6em;padding:.75em 1.1em;min-height:44px;border-radius:2rem;color:var(--ink);background:var(--silver);text-decoration:none;font-weight:560}
.index-list a:hover {background:#e9e9ee}.index-list svg {width:1.2em;height:1.2em;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}.index-list span {color:var(--blue)}
#invitation,#routes {background:var(--silver)}#programme {background:white}
.split {display:grid;grid-template-columns:1fr 1.15fr;align-items:center;gap:clamp(2.2rem,7vw,7rem)}
.feature-copy h2 {margin-bottom:.35em;white-space:pre-line}
.feature-copy>p:not(.eyebrow),.routes-heading>p:last-child {font-size:clamp(1.02rem,1.4vw,1.19rem);color:var(--muted)}
.feature-copy .note {margin-top:1rem}
.stage {display:grid;place-items:center;padding:clamp(1.5rem,4vw,4rem);border-radius:2rem;background:linear-gradient(150deg,#fff,#e9eaef)}
#programme .stage {background:linear-gradient(140deg,#f0f1f4,#fafafb);order:-1}
.stage a {display:block;width:min(100%,21rem)}#programme .stage a {width:min(100%,28rem)}
img {display:block}.stage img,.compare img {width:100%;height:auto;border-radius:.9rem;border:1px solid #0001;box-shadow:0 10px 24px #14141f0c}
.stage img {aspect-ratio:auto 578/642}#programme .stage img {aspect-ratio:auto 746/680}
.routes-heading {max-width:48rem;margin:0 auto;text-align:center}.routes-heading h2 {margin-bottom:.35em}
.compare {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;margin:2.4rem 0 1.6rem}
.compare article {display:flex;flex-direction:column;padding:clamp(1.25rem,3vw,2.5rem);background:white;border-radius:1.75rem}
.route-line {font-size:.94rem;font-weight:600;color:var(--blue);margin:.7rem 0}
.compare article>p:not(.route-line) {color:var(--muted);margin-bottom:1.6rem}.compare strong {color:var(--ink)}
.compare article>a {display:block;margin-top:auto}.compare img {aspect-ratio:auto 730/459}:lang(zh-CN) .compare img {aspect-ratio:auto 730/406}
.guide {display:block;width:fit-content;margin:auto}
footer {background:white;text-align:center}footer nav {margin:1.2rem 0 2rem}footer p,footer small {color:var(--muted)}footer small {display:block;margin-top:.6rem}footer small a {color:inherit}
@media(min-width:850px) and (min-height:620px) and (prefers-reduced-motion:no-preference){.cover {position:sticky;top:0}}
@media(max-width:740px){
  .split,.compare {grid-template-columns:minmax(0,1fr)}#programme .stage {order:0}
  .stage {border-radius:1.3rem}.overview .spread {text-align:left}
  .index-list {align-items:stretch;justify-content:flex-start}.index-list a {font-size:.95rem}
  .mast {font-size:.88rem}.opening {padding-block:3rem}
}
@media(prefers-reduced-motion:no-preference){html {scroll-behavior:smooth}}

/* Shared project navigation and long-form manuals. */
.site-head {width:100%;position:relative;z-index:2}
.head-inner {max-width:var(--measure);margin:auto;min-height:4rem;display:flex;align-items:center;gap:1rem;padding-block:.5rem}
.head-inner .brand {color:var(--ink);text-decoration:none;white-space:nowrap}
.head-inner nav {margin-left:auto;gap:.35rem}
.head-inner nav a,.head-inner .lang {color:var(--ink);text-decoration:none;font-size:.88rem;padding:.55rem .9rem;border-radius:99px}
.head-inner nav a:hover,.head-inner a[aria-current] {background:#e7e8ec}
.manual .site-head {padding-inline:var(--gutter);border-bottom:1px solid var(--line);background:white}
.doc-intro {background:linear-gradient(145deg,#fafbfc,#f4f5fa);color:var(--ink)}
.doc-intro>div,.reading {width:min(calc(100% - var(--gutter)*2),var(--measure));margin:auto}
.doc-intro>div {padding-block:clamp(2.5rem,6vw,5.5rem)}
.doc-intro h1 {font-size:clamp(2.5rem,5.4vw,5.2rem)}
.doc-intro h1+p {max-width:56ch;color:var(--muted);font-size:clamp(1rem,1.6vw,1.3rem);margin:1rem 0 1.35rem}
.reading {display:grid;grid-template-columns:minmax(11rem,15rem) minmax(0,1fr);gap:clamp(2rem,7vw,6.5rem);padding-block:clamp(2rem,5vw,5rem);align-items:start}
.reading aside {position:sticky;top:1rem;max-height:calc(100vh - 2rem);overflow:auto;padding:.9rem;background:var(--silver);border-radius:1.2rem}
.reading aside>.eyebrow {margin:.4rem .55rem}.reading aside nav {display:grid;justify-content:stretch;gap:.15rem}
.reading aside nav a {display:flex;gap:.65rem;align-items:baseline;padding:.6rem;border-radius:.65rem;text-decoration:none;color:var(--ink);font-size:.91rem}
.reading aside nav a:hover {background:white;color:var(--blue)}.reading nav small,.chapter-number {color:var(--blue);font-variant-numeric:tabular-nums}
.chapters {min-width:0;overflow-wrap:anywhere}
.chapters section {scroll-margin-top:1rem;border-bottom:1px solid var(--line);padding-bottom:2.6rem;margin-bottom:2.6rem}
.chapter-number {font-size:.8rem;font-weight:640}
.chapters h2 {font-size:clamp(1.7rem,3vw,2.7rem);margin:.45rem 0 1.2rem}
.chapters h3 {font-size:1.25rem;margin:1.4rem 0 .5rem}
.chapters section p,.chapters li {margin:.8rem 0}
.chapters :is(pre,.tip,.modes article,details) {background:var(--silver);border-radius:1rem;padding:1rem 1.25rem}
.chapters .tip {border-left:3px solid var(--blue)}
.chapters code {font-size:.92em}.chapters pre {overflow-x:auto;line-height:1.7}
.chapters ol {padding-left:1.5em}.chapters li::marker {color:var(--blue);font-weight:650}
.chapters .modes {display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.chapters .modes h3 {margin:.2rem 0}
.chapters details {margin:.5rem 0}.chapters summary {cursor:pointer;font-weight:620}
.chapters figure {margin:1rem auto;max-width:22rem}.chapters figure img {width:100%;height:auto;border:1px solid var(--line);border-radius:1rem}
.to-contents {font-size:.87rem}.manual footer {background:var(--silver)}
@media(max-width:740px){
  .head-inner {display:grid;grid-template-columns:1fr auto;gap:.3rem;padding-block:.65rem}
  .head-inner nav {grid-column:1/-1;grid-row:2;justify-content:flex-start;margin:0;gap:.12rem}
  .head-inner .lang {justify-self:end;grid-column:2;grid-row:1}.head-inner nav a {padding:.7rem .6rem}
  .reading {grid-template-columns:minmax(0,1fr);gap:2rem}.reading aside {position:static;max-height:none}
  .chapters .modes {grid-template-columns:1fr}
}
@media(min-height:540px){
  .manual .site-head {position:sticky;top:0;background:#fffffff5}
  .reading aside {top:5rem;max-height:calc(100vh - 6rem)}
  .chapters section,.reading aside {scroll-margin-top:5rem}
}
@media(max-width:740px) and (min-height:540px){
  .reading aside {max-height:none}
  .chapters section,.reading aside {scroll-margin-top:7rem}
}

/* Two real UI close-ups belong to the library chapter, not a separate step. */
.tool-shots {grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.tool-shots figure {min-width:0;display:flex;flex-direction:column;align-items:start;padding:clamp(1rem,2.8vw,2rem);gap:1rem;background:var(--silver);border-radius:1.5rem}
.tool-shots strong {font-size:1.15rem;color:var(--ink)}
.tool-shots p {margin-top:.35rem;color:var(--muted)}
.tool-shots a {display:block;width:100%;margin-top:auto}
.tool-shots img {width:100%;height:auto;border:1px solid var(--line);border-radius:.9rem}
@media(max-width:740px){.tool-shots {grid-template-columns:minmax(0,1fr)}}
