/* Values come from the design handoff (design/README.md). Colours are named
   once here; everything below uses the names. */
:root {
  --well: #0c0d10;
  --page: #111318;
  --bar: #14161b;
  --card: #181b21;
  --key: #1e2128;
  --line: #22262e;
  --card-line: #2a2e36;
  --chip-line: #2e323b;
  --key-line: #343944;
  --hover-line: #4a505c;
  --heading: #f2f4f6;
  --strong: #eef0f3;
  --body-strong: #d4d8df;
  --body: #b4bac4;
  --muted: #9aa1ad;
  --faint: #6f7682;
  --lime: #a8e05f;
  --lime-hover: #b4e86e;
  --lime-key-line: #8cc443;
  --lime-edge: #6c9431;
  --on-lime: #15170e;
  --dark-edge: #0a0b0e;
  --rec: #ff5a52;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

html { scroll-behavior: smooth; background: var(--page); }
body {
  margin: 0;
  background: var(--page);
  color: var(--body-strong);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: var(--lime); text-decoration: none; }
a:hover { color: #c4ef8a; text-decoration: underline; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
summary::-webkit-details-marker { display: none; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 30;
  background: var(--lime); color: var(--on-lime);
  padding: 8px 12px; border-radius: 6px;
}
.skip:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.mono { font-family: var(--mono); }

/* ---------- keys and buttons ---------- */
kbd, .kbd {
  font-family: var(--mono); font-size: 13px; color: var(--strong);
  background: var(--key); border: 1px solid var(--key-line); border-bottom-width: 3px;
  border-radius: 6px; padding: 3px 8px; display: inline-block; line-height: 1.4;
}
kbd.hot { color: var(--on-lime); background: var(--lime); border-color: var(--lime-key-line); }
.plus { color: var(--faint); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-size: 17px; border-radius: 10px; cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-lime {
  background: var(--lime); color: var(--on-lime); font-weight: 600; padding: 14px 22px; border: 0;
  box-shadow: 0 4px 0 var(--lime-edge), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn-lime:hover { background: var(--lime-hover); color: var(--on-lime); transform: translateY(2px); box-shadow: 0 2px 0 var(--lime-edge), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-lime:active { transform: translateY(4px); box-shadow: 0 0 0 var(--lime-edge), inset 0 2px 5px rgba(21,23,14,.3); }
.btn-dark {
  background: var(--key); color: var(--strong); font-weight: 500; padding: 13px 20px; border: 1px solid var(--key-line);
  box-shadow: 0 4px 0 var(--dark-edge), inset 0 1px 0 rgba(255,255,255,.07);
}
.btn-dark:hover { border-color: var(--hover-line); color: #fff; transform: translateY(2px); box-shadow: 0 2px 0 var(--dark-edge), inset 0 1px 0 rgba(255,255,255,.07); }
.btn-dark:active { transform: translateY(4px); box-shadow: 0 0 0 var(--dark-edge), inset 0 2px 5px rgba(0,0,0,.4); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(17,19,24,.88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header nav { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--strong); }
.brand:hover { color: var(--strong); text-decoration: none; }
.brand img { display: block; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--body); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--heading); text-decoration: none; }
.btn-install {
  background: var(--lime); color: var(--on-lime); font-weight: 600; font-size: 15px;
  padding: 7px 14px 8px; border-radius: 8px;
  box-shadow: 0 3px 0 var(--lime-edge), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn-install:hover { background: var(--lime-hover); color: var(--on-lime); transform: translateY(1px); box-shadow: 0 2px 0 var(--lime-edge), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-install:active { transform: translateY(3px); box-shadow: 0 0 0 var(--lime-edge), inset 0 2px 5px rgba(21,23,14,.3); }
@media (max-width: 480px) {
  .nav-links { gap: 14px; font-size: 14px; }
  .nav-links .hide-sm { display: none; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px,8vw,96px); padding-bottom: 40px; }
.hero-copy { max-width: 820px; }
.eyebrow-row { margin: 0 0 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.eyebrow-row .lime { color: var(--lime); }
h1 {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(40px,7.2vw,84px); line-height: .98; letter-spacing: -0.035em;
  color: var(--heading); text-wrap: balance;
}
.lead { margin: 24px 0 0; font-size: clamp(17px,2vw,20px); line-height: 1.55; color: var(--body); max-width: 640px; text-wrap: pretty; }
.press { margin: 20px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 16px; color: var(--body); }
.press .keys { display: inline-flex; align-items: center; gap: 5px; }
.ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hint { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.hint code { font-family: var(--mono); font-size: 13px; color: var(--body-strong); overflow-wrap: anywhere; }
.also { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.also a { color: var(--body-strong); text-decoration: underline; text-decoration-color: var(--key-line); text-underline-offset: 3px; }
.also a:hover { color: var(--lime); text-decoration-color: var(--lime); }
.cmd.cmd-sm { margin-top: 12px; padding: 8px 8px 8px 14px; max-width: 640px; }
.cmd.cmd-sm code { font-size: 13px; }
.cmd.cmd-sm .copy-btn { padding: 5px 10px; min-width: 72px; }

.hero-stage { margin-top: clamp(40px,6vw,72px); position: relative; perspective: 1600px; }
.hero-glow {
  position: absolute; left: 10%; right: 10%; top: 20%; bottom: -6%;
  background: radial-gradient(ellipse at center, rgba(168,224,95,.10), rgba(168,224,95,0) 70%);
  filter: blur(30px); pointer-events: none;
}
.hero-frame {
  position: relative; transform-origin: 50% 0; will-change: transform;
  border-radius: 14px; border: 1px solid var(--card-line); background: var(--card);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.8); overflow: hidden;
}
.titlebar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bar); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--chip-line); flex: none; }
.titlebar .label { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.replay {
  margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted);
  background: var(--key); border: 1px solid var(--chip-line); border-radius: 6px; padding: 3px 9px; cursor: pointer;
  box-shadow: 0 2px 0 var(--dark-edge);
  transition: color .15s, border-color .15s, transform .12s, box-shadow .12s;
}
.replay:hover { color: var(--lime); border-color: var(--lime); transform: translateY(1px); box-shadow: 0 1px 0 var(--dark-edge); }
.replay:active { transform: translateY(2px); box-shadow: 0 0 0 var(--dark-edge); }
.platforms { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---------- divider ---------- */
.divider { max-width: 1160px; margin: 40px auto; position: relative; height: 9px; }
.divider::before { content: ""; position: absolute; left: 20px; right: 20px; top: 4px; border-top: 1.5px dashed rgba(255,255,255,.35); }
.divider i { position: absolute; top: 0; width: 9px; height: 9px; background: var(--strong); border-radius: 2px; }
.divider i:nth-child(1) { left: 16px; }
.divider i:nth-child(2) { left: calc(50% - 12px); top: 1px; width: 24px; height: 7px; border-radius: 4px; }
.divider i:nth-child(3) { right: 16px; }

/* ---------- sections ---------- */
.section { padding-top: 72px; padding-bottom: 72px; }
.section.first { padding-top: 48px; padding-bottom: 48px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,380px), 1fr)); gap: clamp(32px,5vw,64px); align-items: center; }
.split > * { min-width: 0; }
.kicker { margin: 0 0 12px; font-family: var(--mono); font-size: 13px; color: var(--lime); }
h2 {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(30px,4.4vw,48px); line-height: 1.04; letter-spacing: -0.025em;
  color: var(--heading); text-wrap: balance;
}
.copy { margin: 18px 0 0; font-size: 17px; line-height: 1.6; color: var(--body); text-wrap: pretty; }
.chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; padding: 6px 12px; border: 1px solid var(--chip-line); border-radius: 999px; color: var(--body-strong); }
.card { padding: 20px; border-radius: 12px; background: var(--card); border: 1px solid var(--card-line); }
.toggle { width: 34px; height: 20px; border-radius: 999px; background: var(--lime); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--on-lime); }
.tag { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); }
.sensitive { margin-top: 28px; }
.sensitive h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--heading); font-size: 17px; }
.sensitive p { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--body); text-wrap: pretty; }

/* The app's selection outline: dashed edge, corner brackets, size chip. */
.marquee { margin: 0; position: relative; padding: 12px; border: 1.5px dashed rgba(255,255,255,.5); }
.marquee .c { position: absolute; width: 18px; height: 18px; border: 0 solid var(--strong); }
.marquee .c.tl { left: -3px; top: -3px; border-left-width: 3px; border-top-width: 3px; }
.marquee .c.tr { right: -3px; top: -3px; border-right-width: 3px; border-top-width: 3px; }
.marquee .c.bl { left: -3px; bottom: -3px; border-left-width: 3px; border-bottom-width: 3px; }
.marquee .c.br { right: -3px; bottom: -3px; border-right-width: 3px; border-bottom-width: 3px; }
.size-chip { position: absolute; left: 0; top: -34px; font-family: var(--mono); font-size: 12px; color: var(--on-lime); background: var(--strong); padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.marquee-wrap { padding-top: 34px; }
.pos { position: relative; }
.pos img { display: block; width: 100%; height: auto; }
.review-ring { position: absolute; left: 44.6%; top: 66.4%; width: 10%; height: 3.4%; border: 2px solid var(--lime); border-radius: 6px; pointer-events: none; }
.review-label { position: absolute; left: 44.6%; top: 71.5%; font-family: var(--mono); font-size: 12px; color: var(--on-lime); background: var(--lime); padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
@media (max-width: 480px) { .review-label { left: auto; right: 0; } }
.boxed { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--card-line); }
.boxed img { display: block; width: 100%; height: auto; }

.modes { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.modes li {
  display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 12px;
  padding: 12px 10px; margin: 0 -10px; border-bottom: 1px solid var(--line); border-radius: 8px;
  transition: background .25s; color: var(--body-strong);
}
.modes li .k { display: flex; gap: 4px; }
.modes li kbd { padding: 2px 8px; transition: background .25s, color .25s, border-color .25s; }
.modes li strong { color: var(--heading); font-weight: 600; }
.modes li.on { background: var(--card); }
.modes li.on kbd { background: var(--lime); color: var(--on-lime); border-color: var(--lime-key-line); }

.rec-head { max-width: 720px; }
.rec-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,420px), 1fr)); gap: 40px 32px; align-items: start; }
.rec-grid figure { margin: 0; min-width: 0; }
.rec-grid .pos img { border-radius: 6px; }
.rec-pill {
  position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; color: var(--strong);
  background: rgba(12,13,16,.85); border: 1px solid var(--key-line); padding: 5px 10px; border-radius: 999px;
}
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); }
figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }
figcaption b { color: var(--body-strong); font-weight: 500; }
.formats { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.formats li { font-family: var(--mono); font-size: 13px; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--key-line); color: var(--strong); }
.formats li.lead-in { font-family: var(--sans); font-size: 15px; color: var(--muted); border: 0; padding: 6px 4px 6px 0; }
.formats li.on { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }

.options { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.options li { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--card-line); }
.options li.on { border-color: var(--lime); background: var(--card); }
.options strong { display: flex; align-items: center; gap: 8px; color: var(--heading); font-weight: 600; }
.options strong .tag { font-size: 11px; color: var(--lime); }
.options span { font-size: 15px; color: var(--body); }
.after-note { margin: 20px 0 0; font-size: 16px; line-height: 1.6; color: var(--body); text-wrap: pretty; }

.small-h { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(26px,3.4vw,36px); letter-spacing: -0.02em; color: var(--heading); }
.smalls { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,210px), 1fr)); gap: 14px; }
.small {
  display: flex; flex-direction: column; border-radius: 12px; background: var(--card); border: 1px solid var(--card-line);
  overflow: hidden; transition: border-color .2s, transform .2s;
}
.small:hover { border-color: #3a3f4a; transform: translateY(-2px); }
.preview {
  position: relative; height: 132px; margin: 10px 10px 0; border-radius: 8px;
  background: var(--page); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.small .body { padding: 16px 18px 20px; }
.small .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.small h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--heading); }
.small .pill { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--chip-line); border-radius: 4px; padding: 1px 6px; }
.small p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--body); text-wrap: pretty; }
.mbar { border-radius: 3px; background: var(--chip-line); height: 6px; position: absolute; left: 12px; }
.mini-doc { position: relative; width: 150px; height: 92px; border-radius: 5px; background: var(--key); border: 1px solid var(--chip-line); }
.stamp { position: absolute; right: 6px; bottom: 6px; font-family: var(--mono); font-size: 10px; color: var(--on-lime); background: var(--lime); padding: 2px 6px; border-radius: 3px; }
.tray { width: 170px; display: grid; gap: 2px; }
.tray div { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 5px; }
.tray div:first-child { background: var(--key); }
.tray .thumb { width: 34px; height: 22px; border-radius: 3px; background: var(--card-line); border: 1px solid var(--key-line); }
.tray .ln { height: 5px; border-radius: 3px; background: var(--chip-line); }
.tray .cp { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--on-lime); background: var(--lime); padding: 1px 6px; border-radius: 3px; }
.mini-marquee { position: relative; width: 120px; height: 70px; border: 1.5px dashed rgba(255,255,255,.6); }
.mini-marquee .c { position: absolute; width: 10px; height: 10px; border: 0 solid var(--strong); }
.mini-marquee .c.tl { left: -2px; top: -2px; border-left-width: 2px; border-top-width: 2px; }
.mini-marquee .c.tr { right: -2px; top: -2px; border-right-width: 2px; border-top-width: 2px; }
.mini-marquee .c.bl { left: -2px; bottom: -2px; border-left-width: 2px; border-bottom-width: 2px; }
.mini-marquee .c.br { right: -2px; bottom: -2px; border-right-width: 2px; border-bottom-width: 2px; }
.mini-marquee .ks { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: flex; gap: 4px; }
.mini-marquee kbd { font-size: 11px; padding: 1px 6px; border-radius: 5px; }
.count { display: flex; align-items: center; gap: 14px; }
.ring3 {
  width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--chip-line);
  border-top-color: var(--lime); border-right-color: var(--lime);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--heading);
}
.count .then { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.pointer-toggle { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 7px; background: var(--key); border: 1px solid var(--chip-line); font-size: 13px; color: var(--body-strong); }
.pointer-toggle .toggle { width: 30px; height: 18px; }
.pointer-toggle .toggle::after { width: 12px; height: 12px; }

/* ---------- install ---------- */
.install-panel { position: relative; padding: clamp(24px,5vw,56px); border: 1.5px dashed rgba(255,255,255,.4); background: var(--bar); }
.install-panel .c { position: absolute; width: 22px; height: 22px; border: 0 solid var(--lime); }
.install-panel .c.tl { left: -3px; top: -3px; border-left-width: 3px; border-top-width: 3px; }
.install-panel .c.tr { right: -3px; top: -3px; border-right-width: 3px; border-top-width: 3px; }
.install-panel .c.bl { left: -3px; bottom: -3px; border-left-width: 3px; border-bottom-width: 3px; }
.install-panel .c.br { right: -3px; bottom: -3px; border-right-width: 3px; border-bottom-width: 3px; }
.install-panel h2 { font-weight: 800; font-size: clamp(32px,5vw,56px); line-height: 1; letter-spacing: -0.03em; }
.install-panel > p.sub { margin: 14px 0 0; font-size: 17px; color: var(--body); }
.install-panel > p.sub kbd { padding: 2px 7px; }
.tabs { margin-top: 32px; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 10px; background: var(--page); border: 1px solid var(--card-line); }
.tabs button {
  font: inherit; font-size: 15px; font-weight: 500; border: 0; cursor: pointer; padding: 8px 16px; border-radius: 7px;
  background: transparent; color: var(--body-strong); transition: background .25s, color .25s;
}
.tabs button[aria-selected="true"] { background: var(--lime); color: var(--on-lime); }
.panel { margin-top: 20px; display: grid; gap: 14px; }
.panel[hidden] { display: none; }
/* Grid items default to min-width:auto, so a long command would widen the
   whole page instead of scrolling inside its own row. */
.panel > * { min-width: 0; }
.cmd-label { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.cmd { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-radius: 10px; background: var(--well); border: 1px solid var(--card-line); max-width: 680px; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-family: var(--mono); font-size: 15px; color: var(--strong); }
/* Long commands still scroll sideways, but with no scrollbar; the fade at
   the right edge is what says there is more. Copy takes the whole line. */
.cmd code { scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.cmd code::-webkit-scrollbar { display: none; }
.cmd code .ps { color: var(--faint); user-select: none; }
.copy-btn {
  flex: none; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 7px 12px; border-radius: 7px;
  border: 1px solid var(--key-line); background: var(--key); color: var(--strong); min-width: 84px;
  box-shadow: 0 3px 0 var(--dark-edge);
  transition: background .25s, color .25s, border-color .25s, transform .12s, box-shadow .12s;
}
.copy-btn:hover { border-color: var(--lime); transform: translateY(1px); box-shadow: 0 2px 0 var(--dark-edge); }
.copy-btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--dark-edge); }
.copy-btn.done { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.panel-note { margin: 4px 0 0; font-size: 15px; line-height: 1.6; color: var(--body); max-width: 680px; text-wrap: pretty; }

/* ---------- faq ---------- */
.faq { max-width: 820px; }
.faq h2 { margin: 0 0 24px; font-size: clamp(28px,4vw,40px); letter-spacing: -0.02em; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-size: 18px; font-weight: 500; color: var(--heading); transition: color .2s, padding-left .25s;
}
.faq summary:hover { color: var(--lime); padding-left: 6px; }
.faq-plus { font-family: var(--mono); color: var(--lime); font-size: 20px; transition: transform .2s; }
details[open] .faq-plus { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--body); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.site-footer .who { display: flex; align-items: center; gap: 10px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer nav a { color: var(--body); transition: color .2s; }
.site-footer nav a:hover { color: var(--heading); text-decoration: none; }

.to-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--strong);
  background: var(--key); border: 1px solid var(--key-line); border-radius: 10px; padding: 10px 14px; cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  box-shadow: 0 4px 0 var(--dark-edge), 0 12px 30px -12px rgba(0,0,0,.8);
  transition: opacity .25s ease, transform .25s ease, border-color .15s, color .15s, box-shadow .12s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--lime); color: var(--lime); box-shadow: 0 2px 0 var(--dark-edge), 0 12px 30px -12px rgba(0,0,0,.8); }
.to-top:active { box-shadow: 0 0 0 var(--dark-edge), 0 12px 30px -12px rgba(0,0,0,.8); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Keep each phrase of the headline whole when it wraps. */
.nw { white-space: nowrap; }
