/* The Nereli home page: one idea per section, told with the pixel bot. */
/* Layout: one idea per band. Words on the left in pixel type, the bot on the right, running off the edge of the page. */
:root {
  --bg: #ffffff;
  --fg: #242720;
  --signal: #ed4b27;
  --leaf: #d7e477;
  --muted: #65665e;
  --line: #e4e3dd;
  --ok: #d7e477;
  --glass: #242720;
  --glass-fg: #ffffff;
  --sky-day: #f4f1e9;
  --sky-dusk: #f9d3c3;
  --sky-night: #373b31;
  --ground: #242720;
  --ground-fg: #f4f1e9;
  --display: 'Jersey 10', 'IBM Plex Mono', ui-monospace, monospace;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #1b1d18; --fg: #f4f1e9; --signal: #f25a36; --leaf: #d7e477; --muted: #a9aa9f; --line: #33362f; --ok: #6f7d1f; --glass: #1b1d18; --glass-fg: #f4f1e9; color-scheme: dark }
}
:root[data-theme="dark"] { --bg: #1b1d18; --fg: #f4f1e9; --signal: #f25a36; --leaf: #d7e477; --muted: #a9aa9f; --line: #33362f; --ok: #6f7d1f; --glass: #1b1d18; --glass-fg: #f4f1e9; color-scheme: dark }

body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--mono); font-size: 16px; line-height: 1.5; overflow-x: clip }
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)) }
a { color: inherit }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px }

.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px }
.brand { display: flex; align-items: flex-end; gap: 10px; text-decoration: none }
.brand svg { display: block; width: 39px; height: 36px; fill: currentColor }
.brand span { font-family: var(--display); font-size: 40px; line-height: 0.7 }
.top nav { display: flex; align-items: center; gap: 32px; font-size: 13px }
.top nav a { text-decoration: none }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px }
.btn { display: inline-block; background: var(--fg); color: var(--bg); font-size: 13px; font-weight: 500; padding: 12px 18px; border-radius: 4px; text-decoration: none; white-space: nowrap }
.btn:hover { background: var(--signal); color: var(--bg) }
.top nav a.btn:hover { text-decoration: none }

/* The hero (the owner's Stillness direction, 2026-11-17): the words and the command over a landscape drawn in scan
   lines, where the bot stands beside its own computer. It is always the day scene, whatever the reader's theme. */
.top, .hero, .give { --bg: #f4f1e9; --fg: #242720; --muted: #65665e; --signal: #ed4b27; --glass: #1b1d18; --glass-fg: #f4f1e9; background: var(--bg); color: var(--fg) }
.hero { overflow: clip }
.lede { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(12px, 2.4vw, 32px) }
/* Getting it (2026-11-24): the desktop app first, for the visitor's system; the one-line command for a spare computer. */
.get { margin-top: clamp(24px, 2.4vw, 32px); display: flex; flex-direction: column; align-items: center; gap: 10px }
.dl { display: inline-block; line-height: 52px; padding: 0 28px; border-radius: 4px; background: var(--fg); color: var(--bg);
  font-size: clamp(15px, 1.2vw, 17px); font-weight: 500; text-decoration: none }
.dl:hover { background: var(--signal); color: var(--bg) }
.dl.soon { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line, #d6d5cd); cursor: default }
.get .ver { margin: 0; font-size: 12.5px; color: var(--muted) }
.spare { margin: clamp(22px, 2.2vw, 30px) 0 0; font-size: 14px; color: var(--muted, #65665e) }
.spare + .cmd.lead { margin-top: 10px }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(60px, 7.8vw, 120px); line-height: 0.86; letter-spacing: 0.01em; text-wrap: balance }
.hero h1 em { font-style: normal; color: var(--signal) }
@media (max-width: 640px) { .hero h1 br { display: none } }
.hero p { margin: clamp(16px, 1.6vw, 22px) 0 0; max-width: 46ch; font-size: clamp(15px, 1.25vw, 18px); color: var(--muted) }
/* The command leads, the way the big packages open. */
.cmd.lead { margin-top: clamp(24px, 2.4vw, 32px); width: auto; max-width: 100%; padding: 8px 8px 8px 20px; gap: 12px; border-radius: 4px }
.cmd.lead .ps { flex: none; color: var(--signal); font-size: clamp(14px, 1.15vw, 17px) }
.cmd.lead code { flex: 0 1 auto; font-size: clamp(14px, 1.15vw, 17px); padding-block: 10px }
.cmd.lead .cur { flex: none; width: 0.55em; margin-left: -6px; background: var(--leaf); font-size: clamp(14px, 1.15vw, 17px) }
.cmd.lead button { margin-left: 8px; border-radius: 4px }
.hero .fine { margin-top: 14px; max-width: none; font-size: 12px; text-wrap: balance }
.hero .fine a { color: var(--fg); text-decoration: none; white-space: nowrap }
.hero .fine a:hover { text-decoration: underline; text-underline-offset: 4px }
.land { display: block; margin-top: clamp(-36px, -2vw, 0px) }
.land img { display: block; width: 100%; height: auto }

/* Section 2: give it a computer. One machine in scan lines against a low sun; a print head reprints it as the next
   spare computer every six seconds, and it opens its eyes in each (home.js draws it; one 24-second cycle). */
.band { border-top: 1px solid var(--line); padding-block: clamp(56px, 9vw, 136px) }
.band h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(52px, 7.4vw, 124px); line-height: 0.78; text-wrap: balance }
.band h2 em { display: block; font-style: normal; color: var(--signal) }
.band p { margin: clamp(24px, 3vw, 40px) 0 0; max-width: 32ch; font-size: clamp(15px, 1.25vw, 18px) }
.give { padding-block: clamp(64px, 9vw, 132px) clamp(48px, 6vw, 88px); text-align: center; overflow: clip }
.give h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(56px, 7.2vw, 104px); line-height: 0.84; text-wrap: balance }
.give h2 em { font-style: normal; color: var(--signal) }
.give p { margin: clamp(16px, 1.6vw, 22px) auto 0; max-width: 46ch; font-size: clamp(15px, 1.25vw, 18px); color: var(--muted) }
.statue { margin-top: clamp(32px, 5vw, 72px); min-height: 1px }
.statue svg { display: block; margin-inline: auto }
.statue .ln { transform-origin: 0 0; transform: translateX(var(--x0)) scaleX(var(--w0)); fill: var(--c0) }
.statue .eyes, .statue .head { opacity: 0 }
.statue .eyes.n0 { opacity: 1 }
.which { margin-top: 18px; font-size: 13px; font-weight: 500; color: var(--muted) }
.which .names { position: relative; height: 20px }
.which .names span { position: absolute; inset: 0; opacity: 0 }
.which .names .n0 { opacity: 1 }
.which .dots { margin-top: 12px; display: flex; justify-content: center; gap: 8px }
.which .dots i { width: 6px; height: 6px; background: #d9d4c6 }
.which .dots .n0 { background: var(--fg) }
@keyframes morph {
  0%, 23.75% { transform: translateX(var(--x0)) scaleX(var(--w0)); fill: var(--c0) }
  25%, 48.75% { transform: translateX(var(--x1)) scaleX(var(--w1)); fill: var(--c1) }
  50%, 73.75% { transform: translateX(var(--x2)) scaleX(var(--w2)); fill: var(--c2) }
  75%, 98.75% { transform: translateX(var(--x3)) scaleX(var(--w3)); fill: var(--c3) }
  100% { transform: translateX(var(--x0)) scaleX(var(--w0)); fill: var(--c0) } }
@keyframes head { 0% { transform: translateY(0); opacity: 0 } 2.5% { transform: translateY(0); opacity: 1 } 50.8% { transform: translateY(var(--sh)); opacity: 1 } 52.3%, 100% { transform: translateY(var(--sh)); opacity: 0 } }
@keyframes sweep { to { transform: translateX(var(--sw)) } }
@keyframes open { 0%, 13.75% { opacity: 0 } 14.05%, 23.4% { opacity: 1 } 23.7%, 100% { opacity: 0 } }
@keyframes named { 0%, 12.75% { opacity: 0 } 14.75%, 23.4% { opacity: 1 } 24.5%, 100% { opacity: 0 } }
@keyframes dotted { 0%, 24.9% { background: var(--fg) } 25%, 100% { background: #d9d4c6 } }
@keyframes shut { 0%, 90%, 100% { opacity: 1 } 92%, 95% { opacity: 0 } }
@media (prefers-reduced-motion: no-preference) {
  .give.live .ln { animation: morph 24s ease-in-out infinite }
  .give.live .head { animation: head 6s linear -0.3s infinite }
  .give.live .nozzle { animation: sweep 0.42s linear infinite alternate }
  .give.live .eyes { animation: open 24s linear infinite }
  .give.live .blink { animation: shut 3.4s steps(1) infinite }
  .give.live .names span { animation: named 24s linear infinite }
  .give.live .dots i { animation: dotted 24s steps(1) infinite }
  .give.live .eyes.n1, .give.live .names .n1, .give.live .dots .n1 { animation-delay: 6s }
  .give.live .eyes.n2, .give.live .names .n2, .give.live .dots .n2 { animation-delay: 12s }
  .give.live .eyes.n3, .give.live .names .n3, .give.live .dots .n3 { animation-delay: 18s }
  .give.live .eyes.n0, .give.live .names .n0 { opacity: 0 } .give.live .dots .n0 { background: #d9d4c6 }
  .give.still * { animation-play-state: paused !important } }

.cur { display: inline-block; width: 0.6em; height: 1.15em; background: currentColor; vertical-align: text-bottom; animation: blink 1.06s steps(1) infinite }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
@keyframes blink { 50% { opacity: 0 } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth } }
@media (prefers-reduced-motion: reduce) { .cur { animation: none } }

/* Sections 3 to 6 and the ending: scenes drawn by tools/scenes (one fragment each, a wide and a narrow drawing,
   their styles scoped to them). Each is a stage of its own size, scaled to the page by home.js. They pause off screen. */
.scene { --bg: #f4f1e9; --fg: #242720; background: var(--bg); color: var(--fg); display: block; overflow: clip }
.stage-box { position: relative; width: 100%; max-width: 1680px; margin-inline: auto; aspect-ratio: calc(var(--w) / var(--h)); overflow: hidden }
.stage-box .stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--k, 1)) }
.stage-box.n { display: none }
@media (max-width: 700px) { .stage-box.w { display: none } .stage-box.n { display: block } }
.scene.still .stage * { animation-play-state: paused !important }

/* The command box (the hero), and the band the 404 page uses */
.final { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 0 }
.final p { margin-inline: auto }
.cmd { margin-top: clamp(28px, 3.6vw, 44px); width: min(100%, 560px); box-sizing: border-box; display: flex; align-items: center; gap: 10px; background: var(--glass); color: var(--glass-fg); padding: 6px 6px 6px 18px; text-align: left }
.cmd code { flex: 1; min-width: 0; font-family: var(--mono); font-size: clamp(12px, 1.1vw, 15px); white-space: nowrap; overflow-x: auto; scrollbar-width: none; padding-block: 12px }
.cmd code::-webkit-scrollbar { display: none }
.cmd button { flex: none; min-width: 84px; min-height: 44px; border: 0; background: color-mix(in srgb, var(--glass-fg) 14%, var(--glass)); color: var(--glass-fg); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer }
.cmd button:hover { background: var(--signal) }
.links { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: 13px }
.links a { text-decoration: none } .links a:hover { text-decoration: underline; text-underline-offset: 4px }

@media (max-width: 760px) {
  .cmd.lead { width: 100%; flex-wrap: wrap; padding: 6px 6px 6px 14px; gap: 8px }
  .cmd.lead .ps, .cmd.lead code { font-size: min(3.4vw, 15px) }
  .cmd.lead code { flex: 1 1 0; padding-block: 12px }
  .cmd.lead .cur { display: none }
  .cmd.lead button { flex: 1 1 100%; margin: 0 8px 2px -8px }
  .top nav a:not(.btn) { display: none }
}

/* A Nelly (nellies.js): one small pixel Nereli on the hero's command, hopping when it is copied. Decoration only. */
.nelly { display: inline-block; line-height: 0; cursor: pointer; -webkit-tap-highlight-color: transparent }
.nelly svg { display: block; overflow: visible }
.cmd.lead { position: relative }
.nelly.perch { position: absolute; right: 22px; bottom: 100% }
@media (max-width: 760px) { .nelly.perch { display: none } }

/* Delivery: skip link and footer links */
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 20 }
.skip:focus { left: 8px }

/* The privacy page: plain reading, in the site's type. */
.doc { max-width: 720px; margin-inline: auto; box-sizing: content-box; padding-block: clamp(32px, 5vw, 72px) 96px }
.doc h1 { margin: 0 0 24px; font-family: var(--display); font-weight: 400; font-size: clamp(56px, 8vw, 104px); line-height: .84 }
.doc h1 em { font-style: normal; color: var(--signal) }
.doc h2 { margin: 40px 0 10px; font-size: 17px; font-weight: 500 }
.doc p, .doc li { font-size: 15px; line-height: 1.65 }
.doc .lead { font-size: 17px }
.doc ul { padding-left: 20px }
.doc li { margin-bottom: 10px }
.doc a { color: inherit }
