:root {
  color-scheme: light dark;
  --bg: #f6f5f1;
  --paper: #fff;
  --tint: #efede7;
  --ink: #1f1d1a;
  --muted: #6f6a61;
  --line: #d4d0c6;
  --accent: #c4562d;
  --accent-ink: #a8411d;
  --on-accent: white;
  --spot: #fae4d8;
  --wire: #958c7a;
  --grid: #d3cec2;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141311; --paper: #1d1c19; --tint: #252320; --ink: #ece9e2;
    --muted: #a39e94; --line: #3d3a35; --accent: #e8825b; --accent-ink: #f0956f;
    --on-accent: #1b120d; --spot: #482d23; --wire: #877e70; --grid: #3e3a33;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; color: inherit; font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.mast { border-bottom: 1px solid var(--line); }
.nav, nav, .brand, .actions, .section-title, .switches, .window-bar, .demo, figcaption, .step-no, .term-head, footer, footer div { display: flex; align-items: center; }
.nav { justify-content: space-between; min-height: 68px; }
.brand { gap: 9px; font: 720 24px/1 var(--mono); letter-spacing: -1.7px; }
nav { gap: 25px; font-size: 14px; font-weight: 600; }
nav a:hover, footer a:hover, .text-link:hover, figcaption a:hover { color: var(--accent-ink); }
nav button { border: 0; background: none; font-size: 13px; padding: 6px 0 6px 3px; }
.separator { height: 17px; width: 1px; background: var(--line); }
.hero { padding: clamp(48px,6vw,86px) 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px,5vw,80px); }
.eyebrow, .window-bar, .step-no, .term-head, .version { font: 600 11px/1.4 var(--mono); letter-spacing: .08em; }
.eyebrow { margin: 0 0 17px; display: flex; align-items: center; gap: 9px; text-transform: uppercase; color: var(--muted); }
.eyebrow b { color: var(--accent-ink); }
.slash { color: var(--wire); }
.live-dot { background: var(--accent); width: 8px; height: 8px; border-radius: 50%; }
h1, h2, h3, p, figure, pre { margin: 0; }
h1 { font-size: clamp(50px,6.45vw,88px); line-height: .99; font-weight: 650; letter-spacing: -.075em; }
h1 span, h1 em { display: block; }
h1 em { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.058em; }
html:lang(zh-CN) h1 { line-height: 1.14; letter-spacing: -.055em; }
html:lang(zh-CN) h1 em { font-family: "Songti SC", "Noto Serif CJK SC", serif; }
.lede { margin: 21px 0 25px; max-width: 49ch; font-size: clamp(16px,1.36vw,19px); color: var(--muted); line-height: 1.55; }
.actions { gap: 23px; font-size: 14px; font-weight: 640; }
.primary { display: inline-flex; align-items: center; gap: 16px; padding: 11px 16px; background: var(--accent-ink); color: var(--on-accent); border-radius: 7px; }
.primary:hover { background: var(--accent); }
.text-link span { color: var(--muted); }
.mini-board { min-width: 0; align-self: center; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--tint); }
.board-top, .board-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; gap: 8px; font: 500 12px/1.4 var(--mono); color: var(--muted); }
.board-top { border-bottom: 1px solid var(--line); background: var(--paper); }
.board-top b { color: var(--ink); }
.demo-badge { color: var(--accent-ink); background: var(--spot); font-size: 10px; border-radius: 4px; padding: 2px 6px; }
.mini-lanes { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 12px 9px; }
.mini-lane { --marker: var(--wire); min-width: 0; padding: 0 5px; }
.mini-lane + .mini-lane { border-inline-start: 1px solid var(--line); }
.mini-lane[data-stage="working"] { --marker: var(--accent); }
.mini-lane[data-stage="review"] { --marker: #bd8c34; }
.mini-lane[data-stage="done"] { --marker: #53906e; }
.lane-name { display: flex; align-items: center; gap: 5px; margin: 0 0 10px 2px; font-size: 12px; font-weight: 650; }
.lane-name i { width: 6px; height: 6px; border-radius: 50%; background: var(--marker); flex-shrink: 0; }
.mini-stack { position: relative; display: grid; align-content: start; grid-auto-rows: var(--ticket-height); gap: 7px; --ticket-height: 104px; min-height: calc(2 * var(--ticket-height) + 7px); }
.mini-ticket { min-width: 0; height: var(--ticket-height); display: flex; flex-direction: column; padding: 8px; border: 1px solid var(--line); background: var(--paper); border-radius: 6px; }
.mini-ticket strong { font-size: 13px; line-height: 1.2; letter-spacing: -.02em; font-weight: 650; margin: 6px 0 auto; }
.ticket-id, .mini-ticket small { font: 500 10px/1.24 var(--mono); color: var(--muted); }
.mini-ticket code { font: inherit; }
.ticket-model, .ticket-activity { overflow-wrap: anywhere; }
.ticket-activity, .testing, .is-testing .reading { display: none; }
[data-stage="working"] .mini-ticket { border-color: var(--accent); }
[data-stage="working"] .ticket-activity, .is-testing .testing { display: block; }
[data-stage="working"] .ticket-model { display: none; }
.ticket-ghost { position: absolute; inset: 0 0 auto; pointer-events: none; }
.board-foot { border-top: 1px solid var(--line); min-height: 40px; padding-block: 4px; font-size: 11px; }
#playback { border: 0; background: transparent; color: var(--ink); padding: 6px 0 6px 8px; font: inherit; }
#playback .play-label, #playback[data-paused] .pause-label { display: none; }
#playback[data-paused] .play-label { display: inline; }
.copy-icon { display: inline-grid; vertical-align: middle; width: 1.1em; line-height: 1; }
.copy-icon > span { grid-area: 1 / 1; }
.copy-icon > :last-child, #copy[data-copied] .copy-icon > :first-child { opacity: 0; }
#copy[data-copied] .copy-icon > :last-child { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .copy-icon > span { transition: opacity 120ms ease-out; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  button, .primary { transition: transform 140ms ease-out; }
  button:hover, .primary:hover { transform: translateY(-1px); }
  button:active, .primary:active { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  #playback { display: none; }
  .mini-stack { min-height: var(--ticket-height); }
}
.board-section, .mechanics { border-top: 1px solid var(--line); padding-block: 38px 56px; }
.section-title { justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-title .eyebrow, .mechanics .eyebrow, .install .eyebrow { margin-bottom: 8px; }
h2 { font-size: clamp(31px,3.3vw,46px); line-height: 1.13; font-weight: 620; letter-spacing: -.052em; }
.switches { background: var(--tint); padding: 3px; border-radius: 8px; border: 1px solid var(--line); }
.switches button { padding: 6px 12px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; }
.switches button[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--line); box-shadow: 0 1px 3px #0001; }
figure { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.window-bar { position: relative; justify-content: space-between; gap: 12px; padding: 11px 15px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.lights { display: inline-flex; gap: 4px; }
.lights i { border: 1px solid var(--wire); width: 7px; height: 7px; border-radius: 50%; }
#view-path { margin-right: auto; }
.demo { gap: 5px; }
.demo i { width: 6px; height: 6px; border-radius: 50%; background: #64926c; }
#large { display: block; background: var(--tint); }
#screen { width: 100%; height: auto; display: block; }
figcaption { justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 13px 17px; font-size: 13px; color: var(--muted); }
figcaption a { white-space: nowrap; font-weight: 600; color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(20px,4vw,64px); margin-top: 28px; }
.step-no { gap: 10px; color: var(--accent-ink); }
.step-no span { height: 1px; flex: 1; background: var(--line); }
h3 { margin: 11px 0 6px; font-size: 22px; letter-spacing: -.035em; }
article p, .install p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.install { border-block: 1px solid var(--line); background: var(--tint); }
.install-grid { padding-block: 50px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(20px,6vw,100px); }
.install h2 { margin-bottom: 15px; }
.terminal { background: #24221f; color: #f6f5f1; border: 1px solid #48443b; border-radius: 9px; overflow: hidden; }
.term-head { justify-content: space-between; color: #cec9bf; border-bottom: 1px solid #48443b; padding: 8px 14px; font-size: 10px; }
.term-head button { background: #34312c; border: 1px solid #696054; border-radius: 4px; padding: 4px 8px; font: 500 12px/1.45 var(--mono); color: #f6f5f1; }
.term-head button:hover { background: #4c4238; }
pre { padding: 16px; overflow-x: auto; }
code { font: 500 clamp(14px,1.3vw,17px)/1.8 var(--mono); }
.next { margin-top: 10px; font-size: 13px; }
footer { padding-block: 26px; gap: 13px; }
footer .brand { font-size: 18px; letter-spacing: -1px; }
.version { color: var(--muted); font-size: 10px; }
footer div { margin-left: auto; gap: 18px; font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media(max-width: 800px) {
  .wrap { width: calc(100% - 42px); }
  .hero { gap: 22px; }
  .mini-lanes { padding-inline: 3px; }
  .mini-lane { padding-inline: 3px; }
  .mini-ticket { padding: 6px; }
  .lane-name { font-size: 11px; }
  .steps { gap: 20px; }
}
@media(max-width: 740px) {
  .nav { min-height: 58px; }
  nav { gap: 15px; font-size: 13px; }
  .hero, .install-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 40px 32px; gap: 28px; }
  h1 { font-size: clamp(51px,12.5vw,76px); }
  .lede { max-width: 50ch; margin: 16px 0 20px; }
  .mini-board { width: 100%; }
  .board-section, .mechanics { padding-block: 28px 35px; }
  .section-title { flex-direction: column; align-items: flex-start; gap: 15px; margin-bottom: 15px; }
  .steps { grid-template-columns: 1fr; gap: 22px; margin-top: 22px; }
  .install-grid { padding-block: 32px; }
  figcaption { align-items: flex-start; font-size: 12px; padding: 11px 12px; }
  footer { gap: 8px; }
}

@media(max-width: 385px) {
  .mini-ticket { padding: 5px; }
  .mini-ticket strong { font-size: 12px; }
  .mini-stack { --ticket-height: 110px; }
  .lane-name { gap: 3px; font-size: 10px; }
}
