/* The app's colors (src/ui/theme.rs, fn tokens), plus the courier scene's (src/ui/courier.rs). */
@font-face {
  /* Pixelify Sans, SIL Open Font License (fonts/OFL.txt). Headings, page names and buttons only. */
  font-family: "Pixelify Sans"; src: url("fonts/pixelify-sans.woff2") format("woff2");
  font-weight: 500 700; font-display: swap;
}
:root {
  --bg: #F5F5F5; --surface: #FFFFFF; --line: #E2E2E2;
  --ink: #141414; --muted: #5C5C5C;
  --accent: #A5531E; --on-accent: #FFFFFF; --deep: #6E3412;
  --outline: #141414; --sky: #DFE8EF; --ground: #CFC6B8; --cloud: #FFFFFF;
  --jacket: #2F3440; --pants: #4A4D55; --skin: #E8B996;
  --pixel: "Pixelify Sans", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  /* A 4 px pixel frame with stepped corners. */
  --frame: 0 -4px 0 0 var(--outline), 0 4px 0 0 var(--outline), -4px 0 0 0 var(--outline), 4px 0 0 0 var(--outline);
}
/* Dark follows the device unless the header button (theme.js) picked a theme; the two dark blocks must match. */
:root[data-theme="light"] { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #101010; --line: #2C2C2C;
    --ink: #F4F4F4; --muted: #B0B0B0;
    --accent: #E39C66; --on-accent: #1A0E05; --deep: #8A4A20;
    --outline: #9A9A9A; --sky: #0C0D14; --ground: #1E1E25; --cloud: #1E2030;
    --jacket: #5B6272; --pants: #3E424C;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000; --surface: #101010; --line: #2C2C2C;
  --ink: #F4F4F4; --muted: #B0B0B0;
  --accent: #E39C66; --on-accent: #1A0E05; --deep: #8A4A20;
  --outline: #9A9A9A; --sky: #0C0D14; --ground: #1E1E25; --cloud: #1E2030;
  --jacket: #5B6272; --pants: #3E424C;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 4px solid var(--accent); outline-offset: 4px; }
/* Hidden until a keyboard user tabs to it. */
.skip { position: absolute; left: 16px; top: -64px; z-index: 3; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; background: var(--accent); color: var(--on-accent); font: 700 1rem var(--pixel); }
.skip:focus { top: 12px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }
.mono { font-family: "Cascadia Code", "Cascadia Mono", Consolas, monospace; }
/* Pixel art: CSS gives each picture its size; pixel.js draws it. */
[data-px] { display: inline-block; flex-shrink: 0; line-height: 0; color: var(--outline); }
.btn [data-px], .theme [data-px] { color: inherit; }
[data-px] svg { display: block; width: 100%; height: 100%; }

/* Header: the logo, then the pages. On phones the pages wrap onto their own row. */
header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.2rem var(--pixel); color: var(--ink); text-decoration: none; min-height: 44px; }
/* Logo spot: a fixed square so the logo can be swapped in without moving the header. */
.logo { display: inline-grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; }
.logo > * { max-width: 100%; max-height: 100%; }
nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.nav-link { color: var(--ink); min-height: 44px; min-width: 44px; justify-content: center; display: inline-flex; align-items: center; gap: 8px; padding: 0 4px; text-decoration: none; font: 500 1.05rem var(--pixel); }
.nav-link[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }
@media (hover: hover) and (pointer: fine) { .nav-link:hover { color: var(--accent); } }
.nav-link svg { flex-shrink: 0; }
.brand, .nav-link { white-space: nowrap; }
/* Theme button: shows the icon of the current choice. Beside the links on wide screens; beside the logo on phones, where the links wrap to their own row. */
.brand { margin-right: auto; }
@media (max-width: 639px) { .brand { order: -2; } .theme { order: -1; } }
.theme {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; margin-left: 4px;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
}
.theme:active { transform: translateY(2px); }
@media (hover: hover) and (pointer: fine) { .theme:hover { background: var(--surface); } }
.theme [data-px] { display: none; width: 24px; height: 24px; }
:root:not([data-theme]) .theme .auto, [data-theme="light"] .theme .sun, [data-theme="dark"] .theme .moon { display: block; }
/* Keeps all four pages on one row at 320 px. */
@media (max-width: 420px) { nav { gap: 0 12px; } .nav-link { padding: 0 2px; } .nav-link svg { display: none; } }

h1 {
  /* At 500 the pixel C keeps a clear gap; bolder, it reads as O. */
  font: 500 clamp(2.3rem, 6.5vw, 4.2rem)/1.05 var(--pixel);
  margin: 0 0 20px; text-wrap: balance;
}
h2 { font: 500 clamp(1.6rem, 3.5vw, 2.1rem)/1.2 var(--pixel); margin: 0 0 12px; }
/* A section title's icon sits on the title's first line. */
h2 > [data-px] { width: 32px; height: 32px; vertical-align: -4px; margin-right: 12px; }
h3 { font-size: 1.1rem; margin: 0 0 6px; }
.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 32px; max-width: 30em; }
.note { margin: 16px 0 0; font-size: .9rem; color: var(--muted); }

/* Buttons: square with stepped corners and a 4 px ledge underneath; pressing pushes the button down onto it. */
.actions { display: flex; flex-wrap: wrap; gap: 16px 20px; padding: 4px; }
.btn {
  --edge: var(--outline); --face: var(--bg);
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; margin-bottom: 4px;
  font: 700 1.1rem var(--pixel); text-decoration: none; color: var(--ink); background: var(--face);
  box-shadow: 0 -4px 0 0 var(--edge), 0 4px 0 0 var(--edge), -4px 0 0 0 var(--edge), 4px 0 0 0 var(--edge), 0 8px 0 0 var(--edge);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.btn.primary { --edge: var(--deep); --face: var(--accent); color: var(--on-accent); }
.btn [data-px] { width: 20px; height: 20px; }
.btn:active { transform: translateY(4px); box-shadow: 0 -4px 0 0 var(--edge), 0 4px 0 0 var(--edge), -4px 0 0 0 var(--edge), 4px 0 0 0 var(--edge); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --face: var(--surface); }
  /* Mixing toward ink darkens copper in light mode and lightens it in dark, so label contrast only improves. */
  .btn.primary:hover { --face: color-mix(in srgb, var(--accent) 85%, var(--ink)); }
}

/* Courier: pixel.js draws every pose; these rules pick one. Standing, empty-handed, side on, by default. */
.c-load, .c-up, .c-out, .c-wave, .c-front, .front .c-side { display: none; }
.front .c-front { display: inline; }
.c-legs > g { visibility: hidden; }
.c-legs > g:first-child { visibility: visible; }
.carry .c-load, .carry .c-up { display: inline; }
.carry .c-body { display: none; }
.wave .c-body { display: none; }
.wave .c-out, .wave .c-wave { display: inline; }
/* Walking: the four leg frames take turns, a tenth of a second each. */
@media (prefers-reduced-motion: no-preference) {
  .walk .c-legs > g { animation: step .4s steps(1) infinite; }
  .walk .c-legs > g:nth-child(2) { animation-delay: -.3s; }
  .walk .c-legs > g:nth-child(3) { animation-delay: -.2s; }
  .walk .c-legs > g:nth-child(4) { animation-delay: -.1s; }
  .wave .c-wave { animation: blink .4s steps(1) 4 both; }
}
@keyframes step { 0% { visibility: visible; } 25%, 100% { visibility: hidden; } }
@keyframes blink { 50% { visibility: hidden; } }

/* Home: the headline, then the courier's world: the phone, the cable on the ground and the PC with a shelf per kind of file. */
.intro { padding-block: 56px 40px; }
@media (min-width: 900px) { .intro { padding-block: 88px 56px; } }
.intro h1 { max-width: 12em; }
.world {
  position: relative; height: 200px; background: var(--sky); overflow: hidden; container-type: inline-size;
  border-bottom: 20px solid var(--ground); box-shadow: inset 0 -4px 0 var(--outline);
}
.world .cloud { position: absolute; width: 64px; height: 24px; }
/* Clouds sway a few pixels at a time, one pixel step every half second. */
@media (prefers-reduced-motion: no-preference) { .world .cloud, .page-world .cloud { animation: drift 24s steps(48) infinite; } .world .cloud + .cloud, .page-world .cloud + .cloud { animation-delay: -12s; } }
@keyframes drift { 50% { transform: translateX(48px); } }
.world .phone { position: absolute; left: 16px; bottom: 4px; width: 48px; height: 64px; }
.world .cable { position: absolute; left: 64px; right: 136px; bottom: 4px; height: 4px; background: var(--accent); }
.world .pc { position: absolute; right: 16px; bottom: 4px; width: 120px; height: 110px; }
/* The courier is a button (click him and he waves), padded out to a 48 px target. */
.walker {
  position: absolute; left: 64px; bottom: 4px; width: 48px; height: 72px; padding: 0 4px 4px; border: 0; background: none; cursor: pointer;
  /* He starts at the PC, walks back for a box, and carries it over; pixel.js fills a shelf slot each time he arrives. */
  --run: calc(100cqw - 64px - 136px - 48px);
  transform: translateX(calc(var(--run) / 2));
}
.walker > span { display: block; width: 40px; height: 64px; }
.walker .c-load, .walker .c-up { display: inline; }
.walker .c-body { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .walker { animation: route 6s linear infinite; }
  .walker > span { animation: turn 6s steps(1) infinite; }
  .walker .c-load, .walker .c-up { animation: carry 6s steps(1) infinite; }
  .walker .c-body { display: inline; animation: empty 6s steps(1) infinite; }
  .walker.waving, .walker.waving * { animation-play-state: paused; }
}
/* Pause: top right of the scene; pressed, it shows the copper frame and the courier stops where he is. */
.world .pause { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; padding: 10px; border: 0; background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: var(--frame); }
.world .pause[aria-pressed="true"] { color: var(--accent); box-shadow: 0 -4px 0 0 var(--accent), 0 4px 0 0 var(--accent), -4px 0 0 0 var(--accent), 4px 0 0 0 var(--accent); }
.world .pause [data-px] { width: 24px; height: 24px; color: inherit; }
.world.paused .walker, .world.paused .walker *, .world.paused .cloud, .world.away .walker, .world.away .walker *, .world.away .cloud { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .world .pause { display: none; } }
@keyframes route { 0%, 100% { transform: translateX(var(--run)); } 50% { transform: translateX(0); } }
@keyframes turn { 0% { transform: scaleX(-1); } 50% { transform: none; } }
@keyframes carry { 0% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes empty { 0% { opacity: 1; } 50%, 100% { opacity: 0; } }
/* Waving: he faces you, puts the box down and waves. */
.walker.waving .c-load, .walker.waving .c-up, .walker.waving .c-body { display: none; }
.walker.waving .c-out, .walker.waving .c-wave { display: inline; }
.walker.waving .c-side { display: none; }
.walker.waving .c-front { display: inline; }
.walker.waving > span { transform: none; }
@media (max-width: 420px) {
  .world { height: 168px; }
  .world .pc { width: 96px; height: 88px; }
  .world .cable { right: 112px; }
  .walker { --run: calc(100cqw - 64px - 112px - 48px); }
}

/* Home and guide: the cable runs down the page and every section or step is a stop on it, with a sign.
   The sign's frame turns copper and the wire fills to the next stop as you scroll (below). */
.route { position: relative; padding-block: 64px 24px; }
.stop, .steps li { --sign: 48px; --rail: 80px; position: relative; padding: 0 0 72px var(--rail); border: 0; }
.steps li:last-child { padding-bottom: 0; }
.sign, .steps li::before {
  position: absolute; left: 4px; top: 0; width: var(--sign); height: var(--sign); z-index: 1;
  display: grid; place-items: center; background: var(--surface); box-shadow: var(--frame);
}
.sign [data-px] { width: 32px; height: 32px; }
/* The wire: a copper cable in whole pixels, with a darker band every 16 px. */
.stop::after, .steps li::after {
  content: ""; position: absolute; left: calc(4px + var(--sign) / 2 - 4px); top: calc(var(--sign) + 4px); bottom: -4px; width: 8px;
  background: repeating-linear-gradient(var(--accent) 0 12px, var(--deep) 12px 16px);
}
/* On home the last stop's wire runs on to the end of the page's route, where the rider stops. */
.steps li:last-child::after { display: none; }
.stop > h2 { padding-top: 4px; }
.stop > p { margin: 0; color: var(--muted); max-width: 36em; }
.stop .actions { margin-top: 24px; }
/* The courier rides the cable down the page, facing you with a box, and stays in view while you read. */
.rider { position: sticky; top: 50vh; height: 0; z-index: 2; pointer-events: none; }
.rider > span { display: block; width: 40px; height: 80px; margin-left: calc(4px + 24px - 20px); transform: translateY(-80px); }
@media (max-width: 420px) {
  .stop, .steps li { --sign: 40px; --rail: 60px; }
  .sign [data-px] { width: 24px; height: 24px; }
  .rider > span { margin-left: calc(4px + 20px - 20px); }
}

/* What it saves, beside the real folder the app writes. */
.saves { display: grid; gap: 40px; margin-top: 24px; }
@media (min-width: 1000px) { .saves { grid-template-columns: 1fr 1fr; gap: 56px; } }
.kinds { display: grid; gap: 20px; align-content: start; }
.kinds p { margin: 0; color: var(--muted); max-width: 32em; }
.tree {
  background: var(--surface); box-shadow: var(--frame); margin: 4px;
  padding: 24px 20px; font-size: .95rem; line-height: 2; overflow-x: auto;
}
.tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul ul { padding-left: 22px; border-left: 4px solid var(--line); margin-left: 8px; }
/* Long phone names and paths wrap instead of being cut off at large text sizes. */
.tree li { overflow-wrap: anywhere; }
/* Rows arrive top to bottom once on load, like files landing in the backup. --i is the row number. */
.tree li > span { display: inline-block; max-width: 100%; line-height: 1.5; animation: arrive 360ms var(--ease-out) both; animation-delay: calc(1.2s + var(--i) * 50ms); }
@keyframes arrive { from { opacity: 0; transform: translateX(-8px); } }
.tree .dir { font-weight: 700; }
/* A pixel folder before each folder name. */
.tree .dir::before { content: ""; display: inline-block; width: 16px; height: 12px; margin-right: 8px; vertical-align: -1px; background: var(--accent); clip-path: polygon(0 0, 8px 0, 8px 2px, 16px 2px, 16px 12px, 0 12px); }
.tree .root { color: var(--accent); }
.tree .hint { margin-left: 10px; color: var(--muted); font-family: "Segoe UI", system-ui, sans-serif; font-size: .85rem; }
@media (max-width: 420px) { .tree { padding: 20px 14px; font-size: .85rem; } .tree ul ul { padding-left: 14px; margin-left: 4px; } }

/* The real app mid-backup; the picture follows the visitor's light or dark setting. */
.shot { margin: 24px 4px 0; }
.shot img { display: block; width: 100%; height: auto; box-shadow: var(--frame); }

/* Guide, FAQ and download: the page opens in the courier's world, the name in the sky and his scene for that page on the ground. */
.page-world { position: relative; overflow: hidden; background: var(--sky); border-bottom: 20px solid var(--ground); box-shadow: inset 0 -4px 0 var(--outline); }
.page-world .cloud { position: absolute; width: 64px; height: 24px; }
.page-head { position: relative; display: grid; gap: 8px; align-items: end; padding-top: 48px; }
@media (min-width: 900px) { .page-head { grid-template-columns: 1fr auto; gap: 48px; padding-top: 80px; } .page-head > div:first-child { padding-bottom: 48px; } }
.page-head .lead { margin-bottom: 0; }
.scene { display: flex; align-items: flex-end; justify-content: center; gap: 20px; min-width: 240px; height: 112px; padding-bottom: 4px; }
.scene .courier { width: 40px; height: 80px; }
.scene .flag { width: 48px; height: 48px; }
.scene .ask { width: 40px; height: 40px; align-self: flex-start; margin: 12px 0 0 -16px; }
.scene .pc { width: 72px; height: 66px; }
/* Once on load the courier walks in side on, then turns to face you: on the guide he waves, on the FAQ a question pops up. */
@media (prefers-reduced-motion: no-preference) {
  .scene { overflow: hidden; }
  .scene .courier { animation: enter 1.2s steps(12) both; }
  .scene .courier .c-side, .scene .courier .c-front { display: inline; }
  .scene .courier .c-side { animation: shown 1.2s steps(1, end) forwards; }
  .scene .courier .c-front { animation: shown 1.2s steps(1, end) reverse backwards; }
  .scene .courier .c-legs > g { animation: step .4s steps(1) 3; }
  .scene .courier .c-legs > g:nth-child(2) { animation-delay: -.3s; }
  .scene .courier .c-legs > g:nth-child(3) { animation-delay: -.2s; }
  .scene .courier .c-legs > g:nth-child(4) { animation-delay: -.1s; }
  .scene .wave .c-wave { animation-delay: 1.2s; }
  .scene .ask { animation: pop 160ms steps(2) 1.3s both; }
}
@keyframes enter { from { transform: translateX(-120px); } }
@keyframes shown { from { visibility: visible; } to { visibility: hidden; } }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } }

section { padding: 72px 0; border-top: 4px solid var(--line); }
/* Guide and FAQ: a row of signs on a short cable, one per part of the page. */
.map { position: relative; display: flex; flex-wrap: wrap; gap: 16px 24px; padding-block: 40px; }
.map::before { content: ""; position: absolute; left: 24px; right: 24px; top: 50%; height: 4px; margin-top: -2px; background: var(--accent); }
.map a {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px; margin: 4px;
  background: var(--surface); box-shadow: var(--frame); color: var(--ink); text-decoration: none; font: 500 1rem var(--pixel);
}
.map [data-px] { width: 24px; height: 24px; }
.map a:active { transform: translateY(4px); }
@media (hover: hover) and (pointer: fine) { .map a:hover { color: var(--accent); } }
/* On a phone the signs stack in two columns; a cable through wrapped rows would read as a strike-through. */
@media (max-width: 600px) { .map { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .map::before { display: none; } .map a { font-size: .9rem; padding: 8px 10px; } }
.map + section { border-top: 0; padding-top: 32px; }
.section-lead { color: var(--muted); margin: 0 0 40px; max-width: 36em; }
.cols { display: grid; gap: 32px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.cols p { margin: 0; color: var(--muted); max-width: 32em; }
/* Guide: each way to connect, and each use of a backup, is a small framed card with its icon. */
.cols > div { background: var(--surface); box-shadow: var(--frame); margin: 4px; padding: 20px; }
.cols h3 > [data-px] { width: 24px; height: 24px; vertical-align: -5px; margin-right: 10px; }
code { font-family: "Cascadia Code", Consolas, monospace; font-size: .9em; overflow-wrap: anywhere; }
pre { background: var(--surface); box-shadow: var(--frame); padding: 16px; overflow-x: auto; margin: 20px 4px 0; max-width: 32em; }
/* Download: each command sits in a small window named after where you type it. */
pre[data-title] { padding-top: 52px; position: relative; }
pre[data-title]::before {
  content: attr(data-title); position: absolute; inset: 0 0 auto; padding: 6px 16px; background: var(--outline); color: var(--surface); font: 500 .85rem var(--pixel);
}
.split { display: grid; gap: 40px; }
/* Columns may shrink below a code line's width; the code box scrolls instead of the page. */
.split > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split p { color: var(--muted); margin: 0; max-width: 32em; }

/* Guide: the steps are numbered stops on the cable. */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; max-width: 40em; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); color: var(--accent); font: 700 1.3rem var(--pixel); }
.steps p { margin: 0; color: var(--muted); }
.steps h3 { padding-top: 10px; }

/* Guide and FAQ on wide screens: the section title stays in view on the left while its steps or answers scroll on the right. */
@media (min-width: 900px) {
  .aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; align-items: start; }
  .aside .side { position: sticky; top: 32px; }
  .aside .section-lead { margin-bottom: 0; }
  .aside .cols { grid-template-columns: 1fr; }
}

/* FAQ: every answer shown, grouped by topic. */
/* On phones a topic title with no lead line needs room before its first question. */
.side h2:last-child { margin-bottom: 28px; }
.qa { display: grid; gap: 24px; max-width: 40em; }
.qa p { margin: 0; color: var(--muted); }
/* Each question is a framed card with a copper bar down its left edge. */
.qa > div { background: var(--surface); box-shadow: var(--frame); margin: 4px; padding: 20px 20px 20px 32px; position: relative; }
.qa > div::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--accent); }

/* Download: the newest release, read live from GitHub, on a shipping label with copper tape across the top. */
.release { background: var(--surface); box-shadow: var(--frame); margin: 4px; padding: 36px 24px 28px; max-width: 40em; position: relative; }
.release::before { content: ""; position: absolute; inset: 0 0 auto; height: 12px; background: repeating-linear-gradient(90deg, var(--accent) 0 16px, var(--deep) 16px 20px); }
.release dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 24px 0 0; }
.release dt { color: var(--muted); }
/* Placeholders stay faint until GitHub answers, then the real values fade in. */
.release dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; transition: opacity 150ms var(--ease-out); }
.release[aria-busy="true"] dd { opacity: .55; }
@media (max-width: 420px) { .release { padding: 32px 16px 20px; } }
.release .note[role="status"]:empty { display: none; }
section.after { margin-top: 72px; }
.after .steps li { padding-bottom: 48px; }
.after .steps li:last-child { padding-bottom: 0; }

/* The footer is the ground the whole page stands on. */
footer { border-top: 4px solid var(--outline); box-shadow: inset 0 12px 0 var(--ground); padding: 40px 0 40px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }

/* The cable lights as you scroll: each sign's frame turns copper as it crosses three quarters of the way down the screen,
   and its wire fills on to the next one; the unlit wire shows in the line color. Browsers without scroll-driven
   animations, and reduced motion, keep the cable fully lit. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .stop, .steps li { view-timeline: --cable block; view-timeline-inset: 0 25%; }
    .stop > h2::after, .steps h3::after {
      content: ""; position: absolute; left: calc(4px + var(--sign) / 2 - 4px); top: calc(var(--sign) + 4px); bottom: -4px; width: 8px; background: var(--line);
    }
    .steps li:last-child h3::after { display: none; }
    .stop::after, .steps li::after { z-index: 1; transform-origin: top; animation: charge linear both; animation-timeline: --cable; animation-range: entry 0% entry 100%; }
    .sign, .steps li::before { animation: socket linear both; animation-timeline: --cable; animation-range: entry 0% entry 24px; }
    @keyframes charge { from { transform: scaleY(0); } }
    @keyframes socket { from { box-shadow: var(--frame); } to { box-shadow: 0 -4px 0 0 var(--accent), 0 4px 0 0 var(--accent), -4px 0 0 0 var(--accent), 4px 0 0 0 var(--accent); } }
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme:active, .btn:active { transform: none; }
  .tree li > span { animation-name: fade; }
}
@keyframes fade { from { opacity: 0; } }

/* The pixel font's web copy has no "fi" ligature glyph. Last, because each font shorthand above resets this. */
h1, h2, .brand, .nav-link, .btn, .skip, .steps li::before { font-feature-settings: "liga" 0, "clig" 0; }
