@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/plex-mono-500.woff2") format("woff2"); }

:root {
  --serif: "Instrument Serif", "Songti SC", "Noto Serif CJK SC", serif;
  --display: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "Songti TC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, "PingFang SC", monospace;
  --gutter: clamp(20px, 4vw, 60px);
}

:root,
[data-light="night"] {
  --bg: #07110f;
  --fg: #eef2e6;
  --muted: #a6b5ab;
  --line: rgb(238 242 230 / 0.16);
  --soft: rgb(238 242 230 / 0.07);
  --accent: #d8f27a;
  --accent-ink: #141f0c;
  --em: #d8f27a;
  color-scheme: dark;
}
[data-light="dusk"] {
  --bg: #160d1f;
  --fg: #f9eee6;
  --muted: #c2afbb;
  --line: rgb(249 238 230 / 0.17);
  --soft: rgb(249 238 230 / 0.07);
  --accent: #ffb07c;
  --accent-ink: #2b1306;
  --em: #ffb07c;
  color-scheme: dark;
}
[data-light="dawn"] {
  --bg: #f7eae6;
  --fg: #2b2136;
  --muted: #65566a;
  --line: rgb(43 33 54 / 0.18);
  --soft: rgb(43 33 54 / 0.06);
  --accent: #3b2a4c;
  --accent-ink: #fdeee8;
  --em: #a63a63;
  color-scheme: light;
}
[data-light="noon"] {
  --bg: #f2f3e4;
  --fg: #17271d;
  --muted: #4d5e54;
  --line: rgb(23 39 29 / 0.18);
  --soft: rgb(23 39 29 / 0.06);
  --accent: #1d4d35;
  --accent-ink: #f2f7dc;
  --em: #1c6a43;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.6s ease, color 0.6s ease;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, pre { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--em); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* 中文访客在文案换好之前不看到英文原稿；脚本没跑起来时两秒后照常显示。 */
html[data-lang="zh"]:not(.is-translated) body { visibility: hidden; animation: reveal 0s 2s forwards; }
@keyframes reveal { to { visibility: visible; } }

/* 首屏：一幅正在被画出来的池塘 */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: max(100svh, 640px);
}
.pond { position: absolute; inset: 0 0 -360px; z-index: -1; pointer-events: none; }
.pond-canvas { display: block; width: 100%; height: 100%; }
.pond-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--bg) 46%, transparent) 0,
    color-mix(in srgb, var(--bg) 6%, transparent) 16%,
    color-mix(in srgb, var(--bg) 10%, transparent) 30%,
    color-mix(in srgb, var(--bg) 62%, transparent) 54%,
    color-mix(in srgb, var(--bg) 72%, transparent) 80%,
    var(--bg) 100%
  );
  transition: opacity 0.6s ease;
}
.cursors { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cursor {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  will-change: transform;
}
.cursor svg { width: 17px; height: 17px; flex: none; fill: var(--c); stroke: rgb(0 0 0 / 0.35); stroke-width: 0.6; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.35)); }
.cursor span {
  margin: 13px 0 0 -3px;
  padding: 2px 9px;
  border-radius: 3px 11px 11px 11px;
  background: var(--c);
  color: #131b10;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 4px 12px -4px rgb(0 0 0 / 0.5);
}
.cursor-task span { font-family: var(--mono); font-weight: 500; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  padding: 20px var(--gutter);
}
.wordmark { font: italic 400 34px/1 var(--serif); letter-spacing: -0.01em; }
.nav-links { display: flex; gap: clamp(14px, 2vw, 28px); font-size: 14px; }
.nav-links a { padding: 8px 0; opacity: 0.86; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.light-switch {
  display: flex;
  margin-left: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.light-switch button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.light-switch button::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28);
  transition: transform 0.18s ease;
}
.light-switch button:hover::before { transform: scale(1.18); }
.light-switch button[aria-pressed="true"]::before { box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 4px var(--fg); }
.light-switch [data-set-light="dawn"] { --swatch: linear-gradient(140deg, #ffd9cf, #a595cf); }
.light-switch [data-set-light="noon"] { --swatch: linear-gradient(140deg, #f3f6c8, #58a889); }
.light-switch [data-set-light="dusk"] { --swatch: linear-gradient(140deg, #ffa468, #4b2a72); }
.light-switch [data-set-light="night"] { --swatch: linear-gradient(140deg, #2f6f6a, #050d0c); }
.lang-toggle {
  flex: none;
  height: 40px;
  white-space: nowrap;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 650;
}
.lang-toggle:hover { border-color: var(--em); }
.nav-get {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 650;
}
.nav-get:hover { filter: brightness(1.08); }
.nav-get span { display: none; }
.nav-get b { font-weight: inherit; }

.hero-body { margin-top: auto; padding: 130px var(--gutter) clamp(30px, 5vh, 64px); }
h1, h2 { font-family: var(--display); font-weight: 900; letter-spacing: -0.02em; }
h1 { font-size: clamp(44px, 8.6vw, 138px); line-height: 1.06; text-wrap: balance; }
.narrow-break { display: none; }
h1 em, h2 em { font: italic 400 1.04em/1 var(--serif); color: var(--em); letter-spacing: -0.01em; }
/* 英文标题用衬线展示体，字面比宋体窄，所以放大一档。 */
[data-lang="en"] :is(h1, h2) { font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; }
[data-lang="en"] :is(h1, h2) em { font-size: 1em; }
[data-lang="en"] h1 { font-size: clamp(46px, 8.8vw, 140px); line-height: 0.96; }
.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  gap: 28px clamp(24px, 5vw, 80px);
  align-items: end;
  margin-top: clamp(22px, 3.4vh, 40px);
}
.hero-sub { max-width: 25em; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.75; color: color-mix(in srgb, var(--fg) 88%, transparent); }
.ask-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 66%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.ask-bar:focus-within { border-color: var(--em); }
.ask-prompt { color: var(--em); font: 500 15px var(--mono); }
.ask-bar input { flex: 1; min-width: 0; padding: 9px 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.ask-bar input::placeholder { color: var(--muted); }
.ask-bar button {
  width: 40px;
  height: 40px;
  flex: none;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 700;
}
.ask-bar button:hover { filter: brightness(1.08); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ask-chips button {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 50%, transparent);
  font-size: 13px;
}
.ask-chips button:hover { border-color: var(--em); }
.ask-status { min-height: 3.2em; margin-top: 12px; color: var(--muted); font: 12.5px/1.6 var(--mono); }

/* 工作台 */
main { position: relative; z-index: 1; }
.bench-section { padding: clamp(40px, 7vh, 84px) var(--gutter) 0; scroll-margin-top: 10px; }
.bench-head, .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
h2 { font-size: clamp(32px, 4.6vw, 68px); line-height: 1.14; }
[data-lang="en"] h2 { font-size: clamp(40px, 5.8vw, 88px); line-height: 1; }
.bench-controls { display: flex; align-items: center; gap: 10px; }
.views { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.views button { padding: 6px 14px; border: 0; border-radius: 7px; background: transparent; font-size: 13px; }
.views button:hover { background: var(--soft); }
.views button[aria-pressed="true"] { background: var(--fg); color: var(--bg); font-weight: 650; }
.replay { padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--bg) 55%, transparent); font-size: 13px; }
.replay:hover { border-color: var(--em); }

.bench {
  --w-fg: #e7ece1;
  --w-muted: #93a299;
  --w-line: rgb(255 255 255 / 0.1);
  --w-accent: #d8f27a;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 14px;
  background: rgb(8 15 14 / var(--glass, 0.8));
  backdrop-filter: blur(26px) saturate(1.25);
  -webkit-backdrop-filter: blur(26px) saturate(1.25);
  box-shadow: 0 50px 90px -40px rgb(0 0 0 / 0.75), 0 0 0 1px rgb(0 0 0 / 0.3);
  color: var(--w-fg);
  font-size: 13px;
  line-height: 1.55;
  color-scheme: dark;
}
:is([data-light="dawn"], [data-light="noon"]) .bench { --glass: 0.94; }
.bench-bar { display: flex; align-items: center; gap: 16px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--w-line); }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #f26b5e; }
.lights i:nth-child(2) { background: #f5bd4f; }
.lights i:nth-child(3) { background: #5fc454; }
.bench-path { min-width: 0; overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.bench-path b { margin: 0 4px; color: var(--w-muted); font-weight: 400; }
.bench-host { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--w-muted); font: 11.5px var(--mono); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--w-accent); box-shadow: 0 0 0 0 rgb(216 242 122 / 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgb(216 242 122 / 0); } 100% { box-shadow: 0 0 0 0 rgb(216 242 122 / 0); } }

.bench-body {
  display: grid;
  grid-template-columns: 184px minmax(0, 1.08fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  height: clamp(480px, 64vh, 620px);
}
.rail { grid-row: 1 / 3; padding: 14px 10px; overflow: hidden; }
.rail-label { padding: 0 8px; color: var(--w-muted); font: 10.5px var(--mono); letter-spacing: 0.08em; }
.rail ul { margin: 6px 0 18px; }
.rail li { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 7px; color: #c9d2c8; }
.rail li.is-on { background: rgb(255 255 255 / 0.08); color: #fff; }
.rail li i, .dispatch i, .msg b::before { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--c); }
.rail li span { width: 8px; color: var(--w-muted); font-size: 11px; }
.rail li b { font-weight: inherit; }
.rail-state, .state { margin-left: auto; font: normal 11px var(--mono); }
.rail-state { color: var(--w-accent); }

.pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid var(--w-line); }
.pane-chat { grid-column: 2; grid-row: 1 / 3; }
.pane-web { grid-column: 3; grid-row: 1; }
.pane-term { grid-column: 3; grid-row: 2; border-top: 1px solid var(--w-line); background: rgb(0 0 0 / 0.22); }
.bench[data-view="chat"] :is(.pane-term, .pane-web),
.bench[data-view="term"] :is(.pane-chat, .pane-web),
.bench[data-view="web"] :is(.pane-chat, .pane-term) { display: none; }
.bench:not([data-view="split"]) .pane { grid-column: 2 / 4; grid-row: 1 / 3; border-top: 0; }
.pane-head { display: flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; font-weight: 650; }
.pane-head small { margin-left: auto; color: var(--w-muted); font: 400 11px var(--mono); }
.pane-tabs { padding-left: 8px; }
.pane-tabs button { padding: 4px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--w-muted); font-size: 12.5px; }
.pane-tabs button[aria-pressed="true"] { background: rgb(255 255 255 / 0.1); color: #fff; font-weight: 650; }

.chat { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; gap: 14px; min-height: 0; padding: 6px 16px 14px; overflow: hidden; }
.msg { max-width: 34em; }
.msg p { font-size: 13.5px; }
.msg b { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; font-size: 12px; }
.msg-you { align-self: flex-end; max-width: 88%; padding: 8px 13px; border-radius: 14px 14px 4px 14px; background: rgb(255 255 255 / 0.1); }
.dispatch { margin-top: 9px; border: 1px solid var(--w-line); border-radius: 10px; }
.dispatch li { display: flex; align-items: center; gap: 9px; padding: 8px 12px; }
.dispatch li + li { border-top: 1px solid var(--w-line); }
.dispatch span { font-weight: 650; }
.dispatch code { color: var(--w-muted); font: 11px var(--mono); }
.state.wait { color: var(--w-muted); }
.state.run { color: #f4c873; }
.state.run::before { content: "◌ "; }
.state.done { color: var(--w-accent); }
.state.done::before { content: "✓ "; }
.artifacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.artifacts span { padding: 3px 10px; border: 1px solid rgb(216 242 122 / 0.4); border-radius: 7px; color: var(--w-accent); font: 11.5px var(--mono); }
.composer { display: flex; align-items: center; gap: 4px; margin: 0 14px 14px; padding: 9px 13px; border: 1px solid var(--w-line); border-radius: 11px; color: var(--w-muted); }
.composer i, .term-caret { animation: blink 1.1s steps(1) infinite; }
.composer i { width: 1.5px; height: 15px; background: var(--w-accent); }
@keyframes blink { 50% { opacity: 0; } }

.term { flex: 1; min-height: 0; padding: 4px 14px 12px; overflow: hidden; font: 12px/1.75 var(--mono); white-space: pre-wrap; display: flex; flex-direction: column; justify-content: flex-end; }
.term span { display: block; }
.term i { color: var(--w-accent); font-style: normal; }
.term u { color: #7fd88f; text-decoration: none; }
.term .dim { color: #a9b6ad; }
.term-caret { color: var(--w-accent); }

.page { flex: 1; min-height: 0; margin: 0 10px 10px; padding: 12px 14px; overflow: hidden; border-radius: 9px; background: #f6f4ea; color: #1f2b23; }
.page-wait { display: grid; height: 100%; place-items: center; color: #6c776f; font: 12px var(--mono); }
.page table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.page th, .page td { padding: 6px 8px; border-bottom: 1px solid #dfddd0; text-align: left; white-space: nowrap; }
.page th { color: #5d6960; font-size: 11.5px; font-weight: 600; }
.page td:first-child { font-family: var(--mono); font-size: 11.5px; }
.page td:last-child, .page th:last-child { text-align: right; }
.page .new { background: #e4f3a4; }
.page th.new { color: #2d4012; }
.page-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.page-board h4 { margin-bottom: 6px; color: #5d6960; font-size: 11.5px; }
.page-board p { margin-bottom: 6px; padding: 7px 9px; border-radius: 6px; background: #fff; font-size: 12px; box-shadow: 0 1px 0 #dcd9cb; }
.page-board .hot { background: #e4f3a4; }

.is-scripted [data-step]:not(.on) { display: none; }
.bench-note { max-width: 38em; margin-top: 20px; color: var(--muted); font-size: 15px; }

/* 四种光 */
.lights-section { padding-top: clamp(96px, 16vh, 170px); scroll-margin-top: -40px; }
.section-head { padding: 0 var(--gutter); }
.section-head p { max-width: 27em; color: var(--muted); font-size: 15px; line-height: 1.8; }
.series { display: flex; gap: 3px; height: clamp(440px, 70vh, 660px); margin-top: 34px; }
.frame {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  transition: flex-grow 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.frame.is-current, .frame:hover, .frame:focus-within { flex-grow: 2.2; }
.series:hover .frame.is-current:not(:hover) { flex-grow: 1; }
.frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 88%, transparent) 0, color-mix(in srgb, var(--bg) 66%, transparent) 34%, transparent 68%);
}
.frame-body { position: absolute; z-index: 1; bottom: 0; left: 0; width: calc((100vw - 9px) / 5.2); padding: 0 clamp(14px, 1.6vw, 24px) 24px; }
.frame time { display: block; font: italic 400 clamp(44px, 5vw, 76px)/1 var(--serif); }
.frame h3 { margin-top: 10px; font-size: clamp(15px, 1.3vw, 19px); font-weight: 650; line-height: 1.45; }
.frame p { margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.frame button { margin-top: 14px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 13px; }
.frame button:hover { border-color: var(--fg); }
.frame button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.frame p, .frame button { opacity: 0; transition: opacity 0.3s ease; }
.frame.is-current :is(p, button), .frame:hover :is(p, button), .frame:focus-within :is(p, button) { opacity: 1; }
.series:hover .frame.is-current:not(:hover) :is(p, button) { opacity: 0; }

/* 画室成员 */
.studio { padding: clamp(100px, 18vh, 190px) var(--gutter) clamp(60px, 10vh, 110px); scroll-margin-top: -60px; }
.manifesto { max-width: 25em; font-size: clamp(23px, 3.5vw, 50px); font-weight: 650; line-height: 1.72; letter-spacing: -0.01em; }
[data-lang="en"] .manifesto { max-width: 21em; font: 400 clamp(28px, 4.4vw, 66px)/1.62 var(--serif); letter-spacing: -0.015em; }
.tag {
  position: relative;
  display: inline-block;
  margin: 0 0.12em 0 0.34em;
  padding: 0 0.5em;
  border-radius: 0.2em 0.7em 0.7em 0.7em;
  background: var(--c);
  color: #131b10;
  font: 650 0.74em/1.6 var(--sans);
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: 0.08em;
}
.tag::before {
  content: "";
  position: absolute;
  top: -0.62em;
  left: -0.5em;
  width: 0.72em;
  height: 0.72em;
  background: var(--c);
  clip-path: polygon(0 0, 100% 45%, 55% 58%, 40% 100%);
}
.tag-you { --c: var(--fg); color: var(--bg); }
[data-lang="en"] .tag { font-size: 0.6em; vertical-align: 0.16em; }

/* 下载 */
.get { padding: 20px 0 clamp(70px, 12vh, 130px); text-align: center; scroll-margin-top: 20px; }
.signature { display: block; width: 100%; height: clamp(150px, 31vw, 460px); }
.get-line { margin-top: 6px; color: var(--muted); font-size: clamp(16px, 1.5vw, 20px); }
.get-button {
  margin-top: 22px;
  padding: 15px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 700;
  transition: transform 0.18s ease;
}
.get-button span[aria-hidden] { margin-right: 6px; }
.get-button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.get-note { margin-top: 14px; color: var(--muted); font: 12.5px var(--mono); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 22px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.foot span { font-family: var(--mono); }
.foot a:hover { color: var(--fg); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .wordmark { font-size: 30px; }
  .hero-row { grid-template-columns: 1fr; }
  .cursor:nth-child(n + 4):not(.cursor-task) { display: none; }
  .bench-head { align-items: flex-start; flex-direction: column; }
  .views button[data-view="split"] { display: none; }
  .bench-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 480px; }
  .rail { display: none; }
  .bench .pane, .bench:not([data-view="split"]) .pane { grid-column: 1; grid-row: 1; border-left: 0; border-top: 0; }
  .bench-host { display: none; }
  .series { flex-direction: column; height: auto; }
  .frame, .frame.is-current, .frame:hover { flex: none; min-height: 250px; }
  .frame-body { position: relative; width: auto; padding: 96px var(--gutter) 22px; }
  .frame :is(p, button), .series:hover .frame.is-current:not(:hover) :is(p, button) { opacity: 1; }
  .frame time { font-size: 52px; }
  .frame h3 { font-size: 17px; }
  .manifesto { line-height: 1.8; }
}
@media (max-width: 560px) {
  h1 { font-size: clamp(40px, 13.6vw, 76px); line-height: 1.1; }
  [data-lang="en"] h1 { font-size: clamp(42px, 13vw, 76px); line-height: 0.98; }
  .narrow-break { display: inline; }
}
@media (max-width: 420px) {
  .light-switch button { width: 26px; height: 26px; }
  .nav { gap: 8px; }
  .lang-toggle { padding: 0 11px; }
  /* 窄屏的下载按钮只留箭头，文字留给读屏。 */
  .nav-get { display: grid; flex: none; place-items: center; width: 36px; height: 36px; padding: 0; font-size: 16px; }
  .nav-get span { display: inline; }
  .nav-get b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 360px) {
  /* 最窄的屏幕上水面太小，少留一个光标，名字才不会叠在一起。 */
  .cursor:nth-child(2):not(.cursor-task) { display: none; }
  .light-switch button { width: 22px; }
}

@media (prefers-reduced-motion: no-preference) {
  .is-scripted [data-step].on { animation: arrive 0.3s ease-out both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(5px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse, .composer i, .term-caret { animation: none; }
  .frame, .get-button, body { transition: none; }
}
