/* Soyuz site. Palette follows the app's Orbit theme. */
@font-face {
  font-family: "Inter";
  src: url("fonts/InterVariable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0f1115;
  --bg-deep: #0b0d11;
  --surface: #161920;
  --surface-2: #1c2027;
  --line: #262b35;
  --line-strong: #343a47;
  --ink: #e6e8ec;
  --ink-2: #a3a9b7;
  --ink-3: #8b92a0;
  --accent: #7ba3ff;
  --accent-solid: #5b8cff;
  --on-accent: #0b0d11;
  --accent-glow: rgba(91, 140, 255, .22);
  --limb: rgba(91, 140, 255, .55);
  --beacon: #f2b84b;
  --ok: #3dd68c;
  --key-bg: #1c2027;
  --key-edge: #0b0d11;
  --header-bg: rgba(15, 17, 21, .78);
  --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 30px 80px -20px rgba(0, 0, 0, .7), 0 12px 30px -12px rgba(0, 0, 0, .55);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --w: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f6f7f9;
    --bg-deep: #eceef2;
    --surface: #ffffff;
    --surface-2: #f0f2f5;
    --line: #e1e4ea;
    --line-strong: #cbd0d8;
    --ink: #171a20;
    --ink-2: #4b5260;
    --ink-3: #5f6675;
    --accent: #2459d6;
    --accent-solid: #2459d6;
    --on-accent: #ffffff;
    --accent-glow: rgba(47, 107, 255, .14);
    --limb: rgba(47, 107, 255, .5);
    --beacon: #9a6200;
    --ok: #1a7f4e;
    --key-bg: #ffffff;
    --key-edge: #cbd0d8;
    --header-bg: rgba(246, 247, 249, .8);
    --shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 30px 70px -24px rgba(23, 26, 32, .28), 0 10px 24px -12px rgba(23, 26, 32, .18);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7f9;
  --bg-deep: #eceef2;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --line: #e1e4ea;
  --line-strong: #cbd0d8;
  --ink: #171a20;
  --ink-2: #4b5260;
  --ink-3: #5f6675;
  --accent: #2459d6;
  --accent-solid: #2459d6;
  --on-accent: #ffffff;
  --accent-glow: rgba(47, 107, 255, .14);
  --limb: rgba(47, 107, 255, .5);
  --beacon: #9a6200;
  --ok: #1a7f4e;
  --key-bg: #ffffff;
  --key-edge: #cbd0d8;
  --header-bg: rgba(246, 247, 249, .8);
  --shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 30px 70px -24px rgba(23, 26, 32, .28), 0 10px 24px -12px rgba(23, 26, 32, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.fill { fill: currentColor; stroke: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code, kbd { font-family: var(--mono); font-size: .86em; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: .08em .35em; }
kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: .12em .45em .18em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-bottom-color: var(--key-edge);
  border-radius: 6px;
  background: var(--key-bg);
  color: var(--ink);
  font-size: .78em;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent-solid); color: var(--on-accent);
  padding: .6rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-in {
  max-width: var(--w); margin: 0 auto; padding: .7rem var(--gutter);
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 1.12rem; letter-spacing: -.01em; }
.brand img { border-radius: 7px; }
.nav ul { display: flex; gap: .25rem; }
.nav a { display: block; padding: .4rem .7rem; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.tool {
  display: inline-flex; align-items: center; gap: .45rem;
  height: 2.4rem; min-width: 2.4rem; padding: 0 .65rem; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: transparent; color: var(--ink-2); font: inherit; font-size: .92rem;
  text-decoration: none; cursor: pointer;
}
.tool:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }
.tool kbd { font-size: .72rem; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .i-moon { display: none; }
}

/* Hero */
.hero { position: relative; padding-top: clamp(2.5rem, 7vw, 5.5rem); overflow: hidden; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.75rem);
  font-weight: 670;
  letter-spacing: -.036em;
  line-height: 1;
  max-width: 13ch;
}
@media (min-width: 1000px) {
  .hero-copy:has(.try) {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 4rem;
    grid-template-areas: "eye eye" "h h" "lede act" "lede fine" "try try";
  }
  .hero-copy .eyebrow { grid-area: eye; }
  .hero h1 { grid-area: h; max-width: 15ch; }
  .hero-copy .lede { grid-area: lede; }
  .hero-copy .cta { grid-area: act; align-self: end; flex-wrap: nowrap; }
  .hero-copy .fine { grid-area: fine; align-self: start; }
  .hero-copy .try { grid-area: try; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.2rem;
  color: var(--accent); font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; opacity: .7; }
.lede { margin-top: 1.6rem; max-width: 36rem; font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); line-height: 1.55; }
.cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 3rem; padding: .7rem 1.25rem;
  border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s, border-color .15s;
}
.btn.primary { background: var(--accent-solid); color: var(--on-accent); box-shadow: 0 8px 28px -8px var(--accent-glow), 0 1px 0 rgba(255,255,255,.25) inset; }
.btn.primary:hover { background: var(--accent); }
.btn.ghost { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }
.btn.ghost:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn.small { min-height: 2.4rem; padding: .4rem 1rem; font-size: .95rem; }
.btn svg { stroke-width: 2; }
.fine { margin-top: 1rem; color: var(--ink-3); font-size: .93rem; }

.try { margin-top: 2.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; color: var(--ink-3); font-size: .9rem; }
.try-label { margin-right: .2rem; }
.key-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .55rem .3rem .35rem; border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: var(--ink-2); font: inherit; font-size: .9rem; cursor: pointer;
}
.key-btn:hover { border-color: var(--line); background: var(--surface); color: var(--ink); }
.key-btn span { margin-left: .2rem; }
.key-btn kbd { transition: transform .08s, border-bottom-width .08s, background-color .2s, color .2s; }
.key-btn.pressed kbd { transform: translateY(1px); border-bottom-width: 1px; background: var(--accent-solid); color: var(--on-accent); border-color: var(--accent-solid); }

.hero-stage { position: relative; margin-top: clamp(3rem, 7vw, 5rem); padding: 0 var(--gutter); }
/* The planet's limb: a lit horizon arc behind the window, as seen from orbit. */
.limb {
  position: absolute; z-index: 0; left: 50%; top: 18%;
  width: 240vw; max-width: 3200px; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--bg-deep) 97.6%, var(--limb) 99.4%, transparent 100%);
  box-shadow: 0 -40px 140px -40px var(--accent-glow);
  pointer-events: none;
}
.shot.hero-shot { position: relative; z-index: 1; max-width: 68rem; margin: 0 auto; }
.hero-shot .frame { transform-origin: 50% 100%; }
.js .hero-shot.tilt .frame {
  transform: perspective(1800px) rotateX(calc((1 - var(--p, 1)) * 9deg)) scale(calc(.95 + var(--p, 1) * .05));
  will-change: transform;
}
.hero-shot figcaption { padding-bottom: clamp(3rem, 7vw, 5rem); }

/* At a glance */
.stats { background: var(--bg-deep); }
.stats-in {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem;
  padding-top: clamp(1rem, 3vw, 2rem); padding-bottom: clamp(1rem, 3vw, 2rem);
}
.stats li { display: grid; align-content: start; gap: .35rem; padding-left: 1.1rem; border-left: 2px solid var(--line-strong); }
.stats li:first-child { border-left-color: var(--accent-solid); }
.stats strong { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 680; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.stats span { color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
@media (max-width: 860px) { .stats-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .stats-in { grid-template-columns: minmax(0, 1fr); } }

/* Screenshots */
.shot { margin: 0; }
.frame {
  position: relative; overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.frame::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset;
}
.frame img { width: 100%; }
figcaption { margin-top: .9rem; color: var(--ink-3); font-size: .9rem; line-height: 1.45; }

/* Sections */
section { position: relative; }
.principles, .features, .more, .ai, .download, .made { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.principles { background: var(--bg-deep); padding-top: clamp(2rem, 5vw, 3rem); }
.sec-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.03em; line-height: 1.08; }
.sec-head p { margin-top: 1rem; color: var(--ink-2); font-size: 1.1rem; }

.rules, .more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.6rem 2.2rem; }
@media (max-width: 1080px) { .rules, .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .rules, .more-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }
.rules li { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.rules svg { width: 1.6rem; height: 1.6rem; color: var(--accent); stroke-width: 1.5; }
.rules h3 { margin-top: .9rem; font-size: 1.12rem; }
.rules p { margin-top: .5rem; color: var(--ink-2); font-size: 1rem; }

.feat {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.feat + .feat { margin-top: clamp(4.5rem, 10vw, 8rem); }
.feat:nth-of-type(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
.feat:nth-of-type(even) .feat-text { order: 2; }
.feat h3 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); letter-spacing: -.025em; }
.feat-text p { margin-top: 1rem; color: var(--ink-2); max-width: 32rem; }
.feat-text .keys { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin-top: 1.4rem; color: var(--ink-3); font-size: .9rem; }
.keys span, .pal-hint span { display: inline-flex; align-items: center; gap: .25rem; }

.more { background: var(--bg-deep); }
/* The terminal section continues the feature tour on the same background. */
.features.terminal { padding-top: 0; }
.more-item { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.more-item h3 { font-size: 1.08rem; }
.more-item p { margin-top: .5rem; color: var(--ink-2); font-size: .98rem; }
.more-item .query { margin-top: .8rem; }
.more-item .query-note { margin-top: .4rem; color: var(--ink-3); font-size: .9rem; }
.more-item .query code { display: inline-block; max-width: 100%; white-space: normal; word-break: break-word; color: var(--ink); }

/* Assistant */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.steps li { position: relative; padding: 1.8rem 1.6rem 1.9rem; counter-increment: step; }
.steps li + li { border-left: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: 1.1rem;
  border-radius: 50%; border: 1px solid var(--line-strong); color: var(--accent);
  font-weight: 650; font-size: .95rem; font-variant-numeric: tabular-nums;
}
.steps li:last-child::before { background: var(--accent-solid); border-color: var(--accent-solid); color: var(--on-accent); }
.steps h3 { font-size: 1.1rem; }
.steps p { margin-top: .5rem; color: var(--ink-2); font-size: .98rem; }
.ai-notes { margin-top: 2.2rem; display: grid; gap: .8rem; max-width: 46rem; }
.ai-notes li { position: relative; padding-left: 1.5rem; color: var(--ink-2); }
.ai-notes li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--ok); }

/* Download */
.download { background: var(--bg-deep); }
.dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
.platforms, .packages { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 1.6rem; }
.plat { display: grid; gap: .2rem; padding: 1rem 0; }
.plat + .plat { border-top: 1px solid var(--line); }
.plat:first-child { padding-top: 0; }
.plat:last-child { padding-bottom: 0; }
.plat dt { font-weight: 600; font-size: 1.05rem; }
.arch { color: var(--ink-3); font-weight: 500; font-size: .9rem; margin-left: .3rem; }
.plat dd { color: var(--ink-2); font-size: .97rem; }
.state { display: inline-flex; align-items: center; gap: .4rem; margin-right: .5rem; font-weight: 600; }
.state::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; }
.ok .state { color: var(--ok); }
.ok .state::before { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.exp .state { color: var(--beacon); }
.exp .state::before { background: transparent; border: 1.5px solid var(--beacon); }
.packages h3 { font-size: 1.05rem; }
.packages ul { margin: 1rem 0 1.6rem; display: grid; gap: .75rem; }
.packages li { color: var(--ink-2); font-size: .97rem; }
.packages strong { display: block; color: var(--ink); font-weight: 600; }
.packages .note { margin: -.4rem 0 1.4rem; color: var(--ink-3); font-size: .9rem; line-height: 1.55; }

/* Built with AI */
.made-in > * { max-width: 46rem; }
.made h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -.025em; }
.made p { margin-top: 1.1rem; color: var(--ink-2); font-size: 1.12rem; line-height: 1.65; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; font-size: .95rem; color: var(--ink-2); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; }
.foot-brand { display: flex; align-items: center; gap: .5rem; font-weight: 650; color: var(--ink); }
.foot-brand img { border-radius: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.foot-note { flex-basis: 100%; color: var(--ink-3); }

/* Dialogs */
dialog {
  border: 1px solid var(--line-strong); border-radius: 16px; padding: 0;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.6);
  width: min(34rem, calc(100vw - 2rem));
}
dialog::backdrop { background: rgba(5, 7, 10, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.pal { margin-top: 14vh; }
.pal-form { border-bottom: 1px solid var(--line); }
.pal input {
  width: 100%; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 1.1rem; padding: 1.05rem 1.2rem; outline: none;
}
.pal input::placeholder { color: var(--ink-3); }
#pal-list { max-height: 50vh; overflow-y: auto; padding: .4rem; }
#pal-list li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: .6rem .8rem; border-radius: 10px; cursor: pointer; color: var(--ink-2);
}
#pal-list li[aria-selected="true"] { background: var(--accent-glow); color: var(--ink); }
#pal-list li small { color: var(--ink-3); font-size: .82rem; }
#pal-list .empty { cursor: default; }
.pal-hint { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; padding: .7rem 1.2rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .82rem; }
.help { padding: 1.6rem; }
.help h2 { font-size: 1.2rem; }
.help dl { margin: 1.2rem 0 1.4rem; display: grid; gap: .1rem; }
.help dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.help dt { display: flex; gap: .25rem; align-items: center; color: var(--ink-3); font-size: .9rem; }
.help dd { color: var(--ink-2); text-align: right; }

/* Reveal: only with JS and only when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
  .js [data-reveal].pending { opacity: 0; transform: translateY(28px); }
  .js .shot[data-reveal].pending { transform: translateY(40px) scale(.97); }
  .js .rules li[data-reveal]:nth-child(4n+2), .js .more-item[data-reveal]:nth-child(4n+2) { transition-delay: .07s; }
  .js .rules li[data-reveal]:nth-child(4n+3), .js .more-item[data-reveal]:nth-child(4n+3) { transition-delay: .14s; }
  .js .rules li[data-reveal]:nth-child(4n), .js .more-item[data-reveal]:nth-child(4n) { transition-delay: .21s; }
  .js .hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .js .hero-copy > :nth-child(n+4) { animation-delay: .24s; }
  .js .hero-stage { animation: rise 1.2s .2s cubic-bezier(.2, .7, .2, 1) both; }
  dialog[open] { animation: pop .18s ease-out; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.985); } }

/* Responsive */
@media (max-width: 860px) {
  .feat, .feat:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); }
  .feat:nth-of-type(even) .feat-text { order: 0; }
  .dl { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .top-in { gap: .4rem 1rem; }
  .nav { order: 3; width: 100%; margin: 0 -.7rem; }
  .nav ul { gap: 0; flex-wrap: wrap; }
  .nav a { padding: .35rem .7rem; font-size: .92rem; }
  .palette-open kbd { display: none; }
  .gh span { display: none; }
  .frame { border-radius: 10px; }
}
@media (max-width: 400px) {
  .nav a { padding: .35rem .5rem; }
  .btn { width: 100%; justify-content: center; }
}

@media (forced-colors: active) {
  .btn, .tool, kbd, .frame { border: 1px solid CanvasText; }
  .limb { display: none; }
}

@media print {
  .top, .limb, .try, dialog { display: none !important; }
  body { background: #fff; color: #000; }
}

/* 404 */
.lost .hero { min-height: calc(100vh - 9rem); }
.lost .hero-stage { height: 38vh; margin-top: 2rem; }
.lost .limb { top: 30%; }
@media (pointer: coarse) { .try { display: none !important; } }
