Files

333 lines
26 KiB
CSS

/* Node, round 5 (Node.jsx): one machine from the hero to chapter six. The deck's neutral ramp only; flat fills or 1px
hairlines, never both; no shadows; radii 24 the machine, 16 inside it, 12 rows, full pills; press .97 in 90ms; hover
changes fill or ink. The machine's states differ by fill and shape: a hollow LED when off, grey while it joins, solid
ink when it serves; the lit level is the one ink block in the hero. Type rests at the kit's sizes. */
/* ---------- the run: the machine pins on the left, the words scroll on the right ---------- */
.nd-run { padding: clamp(24px, 3vw, 40px) 0 clamp(72px, 8vw, 116px); }
.nd-run-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(40px, 5vw, 80px); align-items: start; }
.nd-run-obj { position: relative; align-self: stretch; }
.nd-run-stick { position: sticky; top: max(84px, calc(50svh - 290px)); }
.nd-lean { transition: transform .3s var(--e-io); }
.nd-grow { transform-origin: 50% 40%; }
.nd-run-copy { min-width: 0; }
/* the hero words hold the first screen beside the machine */
.nd-hero-copy { min-height: calc(100svh - 120px); display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px; }
/* the h1 cuts in by line mask from the server HTML (no hydration wait); it starts 44% into its mask, so the words read
on the very first frame */
html.js .nd-h1 .lx-line > span { animation: nd-cut .7s var(--lx-ease) both; }
html.js .nd-h1 .lx-line + .lx-line > span { animation-delay: .06s; }
@keyframes nd-cut { from { transform: translateY(44%); } }
.nd-sub { margin: 16px 0 0; color: #0a0a0a; }
.nd-lede { margin: 20px 0 32px; }
.nd-acts { display: flex; gap: 8px 24px; align-items: center; flex-wrap: wrap; }
/* the hero ask answers with more than a fill: its arrow nudges */
.nd .lx-cta svg, .nd .lx-ghost svg { transition: transform .3s var(--e-io); }
/* why: the heading, then "A tenth" as the one big statement (it opens the levels sheet) */
.nd-why { padding: clamp(40px, 6vw, 96px) 0 clamp(40px, 5vw, 72px); }
.nd-why-h { margin-bottom: 28px; }
.nd-tenth { display: grid; grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: 'v p' 'l l'; align-items: center; column-gap: 16px; width: 100%; margin: 0; padding: 20px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none; color: #0a0a0a; text-align: left; font: inherit; cursor: pointer; touch-action: manipulation; transition: transform .15s var(--e-out); }
.nd-tenth-v { grid-area: v; font-weight: 220; font-size: 64px; line-height: 1; letter-spacing: -.045em; }
.nd-tenth-l { grid-area: l; margin-top: 12px; font-size: 20px; line-height: 1.4; letter-spacing: -.01em; color: #525252; }
.nd-tenth-p { grid-area: p; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); transition: transform .3s var(--e-io), background-color .15s var(--e-out), color .15s var(--e-out); }
.nd-tenth:active { transform: scale(.98); transition-duration: .09s; }
.nd-tenth:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 4px; border-radius: 12px; }
.nd-why-m { margin: 20px 0 0; font-size: 16px; line-height: 1.5; color: #525252; }
/* the six chapters: each holds the screen while the machine stages it; the one on the stage is in ink */
.nd-ch { list-style: none; margin: 0; padding: 0; }
.nd-ch > li { min-height: 64svh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.nd-ch-t { margin: 0; font-weight: 497; font-size: 32px; line-height: 1.12; letter-spacing: -.025em; color: #0a0a0a; text-wrap: balance; }
.nd-ch-k { margin-top: 12px; }
.nd-ch-d { margin: 16px 0 0; font-size: 17px; line-height: 1.55; color: #525252; max-width: 44ch; }
.nd-ch-mac { display: none; }
@media (min-width: 900px) {
.nd-ch > li > :not(.nd-ch-mac) { transition: opacity .4s var(--e-io); }
html.js .nd-ch > li:not([data-on]) > :not(.nd-ch-mac) { opacity: .32; }
}
/* the rail under the machine: six dashes, one per chapter, the current one in ink (44px hit areas) */
.nd-rail { display: flex; gap: 0; margin-top: 12px; padding-left: 4px; }
.nd-rail button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; transition: background-color .15s var(--e-out), transform .15s var(--e-out); }
.nd-rail i { display: block; width: 24px; height: 3px; border-radius: 2px; background: #d4d4d4; transition: background-color .3s var(--e-out), width .3s var(--lx-ease); }
.nd-rail button[aria-current] i { background: #0a0a0a; }
.nd-rail button:active { transform: scale(.97); transition-duration: .09s; }
.nd-rail button:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 0; }
/* ---------- the machine ---------- */
.nd-mac { border-radius: 24px; background: #f5f5f5; padding: 8px; }
.nd-mac-top { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 16px 0 8px; }
.nd .nd-pause { flex: none; }
.nd-led { flex: none; width: 12px; height: 12px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2px #a3a3a3; transition: background-color .3s var(--e-out), box-shadow .3s var(--e-out); }
.nd-mac[data-status='join'] .nd-led { background: #a3a3a3; box-shadow: none; }
.nd-mac[data-status='on'] .nd-led { background: #0a0a0a; box-shadow: none; }
.nd-mac-n { font: 500 15px/1 var(--mono); color: #0a0a0a; }
.nd-mac-r { margin-left: auto; min-width: 0; font: 500 13px/1.2 var(--mono); color: #525252; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-cmd { margin: 0; padding: 18px 20px; border-radius: 16px; background: #171717; color: #fafafa; font: 500 17px/1 var(--mono); display: flex; align-items: center; gap: 8px; }
.nd-cmd > span:first-child { color: #a3a3a3; }
.nd-caret { display: inline-block; width: 9px; height: 1.1em; background: #fafafa; opacity: 0; }
.nd-caret.on { animation: nd-blink 1s steps(2) infinite; }
@keyframes nd-blink { 50% { opacity: 1; } }
/* the readout: one key thing at size, the rest quiet; the same height for the hero and every chapter, so nothing jumps */
.nd-read { display: flex; flex-direction: column; min-height: 380px; margin-top: 8px; padding: 28px 24px 24px; border-radius: 16px; background: #fff; }
.nd-cap { margin: 0; font: 500 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #737373; }
.nd-quiet { margin: 0; font-size: 14px; line-height: 1.4; color: #737373; }
.nd-quiet em { font-style: normal; color: #0a0a0a; }
.nd-b { opacity: 0; transform: translateY(8px); transition: opacity .3s var(--e-out), transform .4s var(--lx-ease), background-color .3s var(--e-out), color .3s var(--e-out); }
.nd-b.in { opacity: 1; transform: none; }
.nd-ghost { visibility: hidden; }
/* hero: the level being served, big; the ladder you can point at; hardware and Lux as one quiet line each */
.nd-big { margin: 14px 0 0; font-weight: 497; font-size: clamp(30px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -.03em; color: #0a0a0a; min-height: 2.2em; }
.nd-big-m { display: block; overflow: hidden; padding-bottom: .08em; }
.nd-big-in { display: block; }
.nd-big-in.cut { animation: nd-big .55s var(--lx-ease) both; }
@keyframes nd-big { from { transform: translateY(105%); } }
.nd-ladder { list-style: none; margin: auto 0 0; padding: 20px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: end; }
.nd-ladder button { display: flex; align-items: flex-end; width: 100%; height: 96px; padding: 6px; border: 0; border-radius: 12px; background: #f5f5f5; cursor: pointer; touch-action: manipulation; transition: background-color .15s var(--e-out), transform .15s var(--e-out); }
.nd-ladder i { display: flex; align-items: flex-end; width: 100%; height: 100%; }
.nd-ladder b { display: block; width: 100%; height: 100%; border-radius: 8px; background: #d4d4d4; transform: scaleY(var(--s)); transform-origin: 50% 100%; transition: background-color .3s var(--e-out); }
.nd-ladder button.on b { background: #0a0a0a; }
.nd-ladder button:active { transform: scale(.97); transition-duration: .09s; }
.nd-ladder button:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 2px; }
.nd-foot { display: grid; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.nd-hw { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.nd-hw span { transition: color .3s var(--e-out); }
.nd-hw span.on { color: #0a0a0a; }
.nd-lux { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nd-chain { list-style: none; margin: 0; padding: 0; display: flex; gap: 5px; }
.nd-chain li { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px #d4d4d4; }
.nd-chain li.set { background: #a3a3a3; box-shadow: none; }
.nd-chain li.new { background: #0a0a0a; box-shadow: none; animation: nd-in .35s var(--lx-ease) both; }
@keyframes nd-in { from { opacity: 0; transform: translateY(-8px) scale(.6); } }
/* chapter 1: the hardware, at size */
.nd-r0 { list-style: none; margin: 18px 0 auto; padding: 0; display: grid; gap: 4px; }
.nd-r0 li { font-weight: 497; font-size: clamp(30px, 2.8vw, 44px); line-height: 1.12; letter-spacing: -.03em; color: #0a0a0a; }
/* chapter 2: the five levels, each bar filling to its share */
.nd-r1 { list-style: none; margin: 22px 0 auto; padding: 0; display: grid; gap: 14px; }
.nd-r1 li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 18px; font-size: 16px; line-height: 1.25; color: #a3a3a3; transition: color .3s var(--e-out); }
.nd-r1 li.on { color: #0a0a0a; }
.nd-r1 i { height: 12px; border-radius: 999px; background: #f2f2f2; overflow: hidden; }
.nd-r1 b { display: block; height: 100%; background: #0a0a0a; transform-origin: 0 50%; }
/* chapter 3: three questions, the one being answered lit */
.nd-r2 { list-style: none; margin: auto 0; padding: 0; display: grid; gap: 8px; }
.nd-r2 li { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 16px; min-height: 64px; padding: 10px 18px; border-radius: 12px; background: #f5f5f5; }
.nd-r2 code { font: 600 15px/1 var(--mono); color: #0a0a0a; transition: color .3s var(--e-out); }
.nd-r2 span { font-size: 16px; line-height: 1.35; color: #525252; transition: color .3s var(--e-out); }
.nd-r2 li.lit { background: #0a0a0a; }
.nd-r2 li.lit code, .nd-r2 li.lit span { color: #fafafa; }
/* chapter 4: declared struck, attested ringed, at 64px */
.nd-r3 { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 6px; justify-items: start; }
.nd-r3 li { position: relative; font-weight: 220; font-size: 64px; line-height: 1.05; letter-spacing: -.045em; }
.nd-r3 .no { color: #a3a3a3; }
.nd-r3 .no::after { content: ''; position: absolute; left: -4px; right: -4px; top: 54%; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--e-io); }
.nd-r3 .no.struck::after { transform: scaleX(1); }
.nd-r3 .yes { padding: 2px 18px 8px; margin-left: -18px; color: #0a0a0a; }
.nd-r3 .yes::before { content: ''; position: absolute; inset: 0; border-radius: 999px; box-shadow: inset 0 0 0 2px #0a0a0a; clip-path: inset(0 100% 0 0); transition: clip-path .6s var(--e-io); }
.nd-r3 .yes.ring::before { clip-path: inset(0); }
.nd-r3 + .nd-quiet { margin: 20px 0 auto; }
/* chapter 5: what the verb does, and the two processes that share the name */
.nd-r4 { margin: 18px 0 auto; font-weight: 497; font-size: clamp(26px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -.025em; color: #0a0a0a; animation: nd-r4 .45s var(--lx-ease) both; text-wrap: balance; }
@keyframes nd-r4 { from { opacity: 0; transform: translateY(12px); } }
.nd-r4-ps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px; }
.nd-r4-ps li { display: grid; grid-template-columns: 12px auto minmax(0, 1fr); align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; border-radius: 12px; background: #f5f5f5; transition: background-color .3s var(--e-out); }
.nd-r4-ps i { width: 10px; height: 10px; border-radius: 50%; background: #0a0a0a; transition: background-color .3s var(--e-out), box-shadow .3s var(--e-out); }
.nd-r4-ps code { font: 500 15px/1 var(--mono); color: #0a0a0a; transition: color .3s var(--e-out); }
.nd-r4-ps span { font-size: 14px; line-height: 1.35; color: #737373; }
.nd-r4-ps li.off { background: none; box-shadow: inset 0 0 0 1px #d4d4d4; }
.nd-r4-ps li.off i { background: transparent; box-shadow: inset 0 0 0 2px #a3a3a3; }
.nd-r4-ps li.off code { color: #a3a3a3; text-decoration: line-through; }
/* chapter 6: the work ordered, then committed as one root */
.nd-r5 { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.nd-r5 li { height: 72px; border-radius: 12px; background: #e5e5e5; }
.nd-r5 li:last-child.in { background: #0a0a0a; }
.nd-r5-t { margin: auto 0 0; padding-top: 20px; font-weight: 497; font-size: clamp(24px, 2vw, 30px); line-height: 1.15; letter-spacing: -.025em; color: #0a0a0a; }
/* the chapter count rolls like an odometer (Odo) */
.nd-odo-v { display: inline-flex; font-variant-numeric: tabular-nums; }
.nd-col { display: inline-block; width: 1ch; height: 1.2em; line-height: 1.2em; overflow: hidden; vertical-align: top; }
.nd-col > span { display: block; transition: transform .6s var(--lx-ease); }
.nd-col > span > span { display: block; height: 1.2em; }
/* the levels sheet */
.nd-sheet { list-style: none; margin: 0; padding: 0; display: grid; }
.nd-sheet li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.nd-sheet b { font-weight: 497; font-size: 21px; letter-spacing: -.015em; }
.nd-sheet i { height: 10px; border-radius: 999px; background: #ededed; overflow: hidden; }
.nd-sheet em { display: block; height: 100%; background: #0a0a0a; transform-origin: 0 50%; }
/* drive it (chapter five): one command bar; the chosen verb fills with ink */
.nd-drive { align-self: flex-start; margin-top: 24px; display: inline-flex; align-items: center; gap: 2px; padding: 3px 3px 3px 16px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .14); font: 500 15px/1 var(--mono); }
.nd-drive-p { margin-right: 10px; color: #737373; }
.nd-drive button { min-width: 64px; height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font: inherit; color: #0a0a0a; cursor: pointer; touch-action: manipulation; transition: background-color .15s var(--e-out), color .15s var(--e-out), transform .15s var(--e-out); }
.nd-drive button[aria-pressed='true'] { background: #0a0a0a; color: #fff; }
.nd-drive button:active { transform: scale(.97); transition-duration: .09s; }
/* every text link presses; the page's own text links part their drawn underline (3px) and go to ink on hover */
.nd .lx-text { transition: text-decoration-color .15s var(--e-out), transform .15s var(--e-out); }
.nd .lx-text:active { transform: translateY(1px); transition-duration: .09s; }
.nd-hero-copy .lx-text, .nd-put .lx-text { position: relative; text-decoration: none; }
.nd-hero-copy .lx-text::after, .nd-put .lx-text::after { content: ''; position: absolute; left: 0; right: 0; bottom: 11px; height: 1px; background: currentColor; opacity: .3; transition: transform .3s var(--e-io), opacity .15s var(--e-out); }
.nd-docs-arr { display: inline-block; transition: transform .3s var(--e-io); }
/* the quiet room: put a machine on the fabric (5 words | 8 prompt) */
.nd-put { padding: clamp(72px, 11vw, 188px) 0; }
.nd-put-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); column-gap: clamp(32px, 5vw, 72px); align-items: end; }
.nd-put-l .lx-lede { margin: 20px 0 32px; }
.nd-put-r { min-width: 0; }
.nd .cf-paste-t { color: #0a0a0a; }
.nd .cf-paste-d { color: #525252; }
.nd .cf-paste-box { border-radius: 16px; background: #171717; color: #fafafa; }
.nd .cf-paste-bar { border-bottom-color: rgba(255, 255, 255, .1); }
.nd .cf-paste-bar .x-copy { background: #262626; border-color: rgba(255, 255, 255, .1); color: #fafafa; }
.nd .cf-caret { background: #fafafa; }
.nd .x-copy-t { font-size: 13px; }
.nd-docs { display: flex; align-items: center; gap: 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.nd-docs .lx-kick { color: #525252; }
.nd-docs-a { font: 500 17px/1.3 var(--sans); color: #0a0a0a; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(0, 0, 0, .3); transition: text-decoration-color .15s var(--e-out), transform .15s var(--e-out); }
.nd-docs-a:active { transform: scale(.97); transition-duration: .09s; }
/* the Copy confirm swaps together: on Copied only the tick shows, and back */
.nd .x-copy[aria-label='Copied'] svg:has(rect), .nd .x-copy:not([aria-label='Copied']) svg:not(:has(rect)) { display: none; }
@media (hover: hover) {
.nd .lx-cta:hover svg, .nd .lx-ghost:hover svg { transform: translateX(4px); }
.nd-tenth:hover .nd-tenth-p { transform: rotate(90deg); background: #0a0a0a; color: #fff; }
.nd-rail button:hover { background: #ededed; }
.nd-rail button:hover i { background: #737373; }
.nd-rail button[aria-current]:hover i { background: #0a0a0a; }
.nd-ladder button:hover { background: #ededed; }
.nd-ladder button:hover b { background: #737373; }
.nd-ladder button.on:hover b { background: #0a0a0a; }
.nd-drive button:not([aria-pressed='true']):hover { background: #ededed; }
.nd-docs-a:hover { text-decoration-color: currentColor; }
.nd-hero-copy .lx-text:hover::after, .nd-put .lx-text:hover::after { transform: translateY(3px); opacity: 1; }
.nd-docs-a:hover .nd-docs-arr { transform: translateX(6px); }
}
@media (hover: hover) and (pointer: fine) { .nd-lean { will-change: transform; } }
/* ---------- phones: no pin; the hero words, then the machine, then each chapter with its own small machine ---------- */
@media (max-width: 899px) {
.nd .cf-paste-k, .nd .cf-api, .nd .cf-api i, .nd .lx-close-facts { font-size: 14px; }
.nd-run { padding: 20px 0 72px; }
.nd-run-grid { display: flex; flex-direction: column; }
.nd-run-copy { display: contents; }
.nd-hero-copy { order: 0; min-height: 0; padding: 0; }
.nd-run-obj { order: 1; height: auto; margin-top: 28px; }
.nd-run-stick { position: static; }
.nd-rail { display: none; }
.nd-why { order: 2; padding: 64px 0 24px; }
.nd-ch { order: 3; display: grid; gap: 56px; }
.nd-ch > li { min-height: 0; padding: 0; }
.nd-ch-t { font-size: 26px; }
.nd-ch-d { font-size: 16px; }
.nd-ch-mac { display: block; margin-top: 20px; }
.nd-sub { margin-top: 12px; }
.nd-lede { margin: 12px 0 20px; }
.nd-mac { padding: 6px; border-radius: 20px; }
.nd-mac-top { height: 56px; gap: 10px; padding: 0 8px 0 4px; }
.nd-mac-r { font-size: 14px; }
.nd-cmd { padding: 14px 16px; font-size: 15px; border-radius: 14px; }
.nd-read { min-height: 0; margin-top: 6px; padding: 20px 16px 18px; border-radius: 14px; }
.nd-big { font-size: 28px; min-height: 2.2em; }
.nd-ladder { padding-top: 16px; gap: 6px; }
.nd-ladder button { height: 72px; }
.nd-quiet { font-size: 14px; }
.nd-lux { flex-wrap: wrap; gap: 8px; }
.nd-chain li { width: 12px; height: 12px; }
.nd-tenth-v { font-size: 52px; }
.nd-tenth-l { font-size: 17px; }
.nd-r0 li { font-size: 28px; }
.nd-r1 { margin-top: 16px; gap: 10px; }
.nd-r1 li { grid-template-columns: minmax(0, 1fr) 72px; gap: 12px; font-size: 14px; }
.nd-r2 li { grid-template-columns: minmax(0, 1fr); gap: 6px; min-height: 0; padding: 12px 14px; }
.nd-r2 span { font-size: 14px; }
.nd-r3 li { font-size: 44px; }
.nd-r4 { font-size: 21px; margin-bottom: 0; }
.nd-r4-ps li { grid-template-columns: 12px auto; padding: 10px 14px; }
.nd-r4-ps span { grid-column: 2; font-size: 14px; }
.nd-r5 { gap: 6px; }
.nd-r5 li { height: 44px; border-radius: 8px; }
.nd-r5-t { font-size: 21px; }
.nd-sheet li { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 0; }
.nd-sheet b { font-size: 17px; }
.nd-drive { margin-top: 16px; font-size: 14px; padding-left: 12px; }
.nd-drive-p { margin-right: 4px; }
.nd-drive button { min-width: 52px; padding: 0 10px; }
.nd-put-grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
.nd .x-copy-t { font-size: 14px; }
.nd-docs { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (max-width: 360px) {
.nd-mac { padding: 4px; }
.nd-read { padding: 16px 12px; }
.nd-drive-p { display: none; }
.nd-r3 li { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
html.js .nd-h1 .lx-line > span, .nd-big-in.cut, .nd-chain li.new, .nd-r4 { animation: none; }
.nd-b, .nd-r3 .yes::before, .nd-r3 .no::after, .nd-col > span, .nd-docs-arr, .nd-ch > li > * { transition: none !important; }
.nd-caret.on { animation: none; opacity: 1; }
.nd-lean { transition: none; }
}
/* ---------- dark (Hanzo's :not(.light), docs/DARK-MODE.md): every value a token from @hanzo/design, by role ----------
The shared .lx root (components/v2/LaunchType.css) pins its light ink, greys, tile and hairline in both modes, so the
page points them at Hanzo's tokens here. .lx renames --muted and --card, so fills below use the foundation's --x-*
tokens (computed on <html>): the machine and its tiles on Hanzo's #171717, the readout on its #0f0f0f card, tracks
and idle bars on #262626; ink fills turn light with dark type (Hanzo's primary). Black wells stay black. */
html:not(.light) .nd {
--ink: var(--foreground); --acc: var(--foreground); --acc-soft: var(--x-fill); --muted: var(--muted-foreground); --soft: var(--muted-foreground);
--faint: var(--text-tertiary); --silver: var(--x-knob); --card: var(--x-fill); --line: var(--border); --bg: var(--background);
}
html:not(.light) .nd .lx-cta { background: var(--primary); color: var(--primary-foreground); }
html:not(.light) .nd .lx-ghost { border-color: var(--border-control); }
html:not(.light) .nd :is(.lx-text, .lx-close-repo) { text-decoration-color: var(--text-disabled); }
html:not(.light) .nd .cf-api i { background: var(--x-knob) !important; color: var(--foreground) !important; }
html:not(.light) .nd :focus-visible { outline-color: var(--foreground); box-shadow: 0 0 0 4px var(--background); }
html:not(.light) .nd :is(.lx-close-art, .lx-rel-card) { background: var(--x-fill); }
html:not(.light) .nd .lx-close-sigil { color: var(--foreground); }
html:not(.light) .nd .lx-sheet-panel { color: var(--foreground); --ink: var(--foreground); --soft: var(--muted-foreground); --muted: var(--muted-foreground); --faint: var(--text-tertiary); --line: var(--border); }
html:not(.light) .nd .lx-sheet-bar { background: var(--surface-overlay); }
html:not(.light) .nd .lx-sheet-x { color: var(--foreground); }
@media (hover: hover) {
html:not(.light) .nd .lx-cta:hover { background: var(--foreground); }
html:not(.light) .nd .lx-ghost:hover { border-color: var(--foreground); background: var(--x-fill); }
html:not(.light) .nd .lx-sheet-x:hover { background: var(--x-fill); }
}
html:not(.light) .nd .nd-docs-a { text-decoration-color: var(--text-disabled); }
html:not(.light) .nd :is(.nd-sub, .nd-tenth, .nd-ch-t, .nd-mac-n, .nd-quiet em, .nd-big, .nd-hw span.on, .nd-r0 li, .nd-r1 li.on, .nd-r2 code, .nd-r3 .yes, .nd-r4, .nd-r4-ps code, .nd-r5-t, .nd-drive button, .cf-paste-t, .nd-docs-a) { color: var(--foreground); }
html:not(.light) .nd :is(.nd-tenth-l, .nd-why-m, .nd-ch-d, .nd-mac-r, .nd-r2 span, .cf-paste-d, .nd-docs .lx-kick) { color: var(--muted-foreground); }
html:not(.light) .nd :is(.nd-cap, .nd-quiet, .nd-r4-ps span, .nd-drive-p) { color: var(--text-tertiary); }
html:not(.light) .nd :is(.nd-r1 li, .nd-r3 .no, .nd-r4-ps li.off code) { color: var(--text-disabled); }
html:not(.light) .nd .nd-r1 li.on { color: var(--foreground); }
html:not(.light) .nd :is(.nd-mac, .nd-ladder button, .nd-r1 i, .nd-r2 li, .nd-r4-ps li) { background: var(--x-fill); }
html:not(.light) .nd .nd-read { background: var(--x-raised); }
html:not(.light) .nd .nd-cmd { background: var(--background); }
html:not(.light) .nd :is(.nd-ladder b, .nd-rail i, .nd-r5 li, .nd-sheet i) { background: var(--x-knob); }
html:not(.light) .nd :is(.nd-ladder button.on b, .nd-rail button[aria-current] i, .nd-mac[data-status='on'] .nd-led, .nd-chain li.new, .nd-r1 b, .nd-r2 li.lit, .nd-r4-ps i, .nd-r5 li:last-child.in, .nd-sheet em, .nd-drive button[aria-pressed='true']) { background: var(--foreground); }
html:not(.light) .nd :is(.nd-r2 li.lit code, .nd-r2 li.lit span, .nd-drive button[aria-pressed='true']) { color: var(--primary-foreground); }
html:not(.light) .nd .nd-r4-ps li.off { background: none; box-shadow: inset 0 0 0 1px var(--border-control); }
html:not(.light) .nd .nd-r4-ps li.off i { background: transparent; }
html:not(.light) .nd .nd-tenth-p { box-shadow: inset 0 0 0 1px var(--border-control); }
html:not(.light) .nd .nd-chain li { box-shadow: inset 0 0 0 1px var(--x-knob); }
html:not(.light) .nd :is(.nd-chain li.set, .nd-chain li.new) { box-shadow: none; }
html:not(.light) .nd .nd-r3 .yes::before { box-shadow: inset 0 0 0 2px var(--foreground); }
html:not(.light) .nd .nd-drive { border-color: var(--border-control); }
html:not(.light) .nd .nd-cmd { box-shadow: inset 0 0 0 1px var(--border); }
@media (hover: hover) {
html:not(.light) .nd .nd-tenth:hover .nd-tenth-p { background: var(--foreground); color: var(--primary-foreground); }
html:not(.light) .nd :is(.nd-rail button:hover, .nd-drive button:not([aria-pressed='true']):hover) { background: var(--x-fill); }
html:not(.light) .nd .nd-ladder button:hover { background: var(--x-knob); }
html:not(.light) .nd :is(.nd-rail button:hover i, .nd-ladder button:hover b) { background: var(--muted-foreground); }
html:not(.light) .nd :is(.nd-rail button[aria-current]:hover i, .nd-ladder button.on:hover b) { background: var(--foreground); }
}
html:not(.light) .nd .nd-mac { box-shadow: inset 0 0 0 1px var(--border); }
html:not(.light) .nd .cf-paste-box { box-shadow: inset 0 0 0 1px var(--border); }
/* live's hero halftone (components/pages/HeroDither, dark only): the run section is the hero and the chapters together,
so the field covers its first screen, under the machine and the words */
html:not(.light) .nd .nd-run { position: relative; }
html:not(.light) .nd .nd-run > .hz-dither { bottom: auto; height: calc(100svh - 40px); }