/* Apache Wicket homepage sketch: Reveal (after vercel.com/eve).
   Monochrome on near-black, Wicket orange (#ff9925, from the registered mark) as the only accent:
   the mark, the component-tree line and the active step. */

@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/red-hat-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/red-hat-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #0c0c0c;
  --bg-2: #141414;
  --bg-3: #1b1b1b;
  --line: #262626;
  --line-2: #3a3a38;
  --ink: #f3f3f0;
  --ink-2: #c3c3be;
  --ink-3: #8c8c87;
  --orange: #ff9925;
  --orange-dim: rgba(255, 153, 37, .5);
  --orange-wash: rgba(255, 153, 37, .12);

  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --pad: clamp(20px, 4.5vw, 64px);
  --max: 1320px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sec: clamp(96px, 14vh, 168px);

  color-scheme: dark;
  scrollbar-color: var(--line-2) var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 1.0625rem/1.6 var(--sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--orange);
}

::selection { background: var(--orange); color: #0c0c0c; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid var(--bg); }

h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 800; text-wrap: balance; }
p, dl, dd, ul, ol, figure { margin: 0; }
p { text-wrap: pretty; }

/* Links carry the accent: an orange underline, orange text on hover. */
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: .28em;
  transition: color .2s, text-decoration-color .2s;
}
a:hover { color: var(--orange); }

code { font-family: var(--mono); font-size: .9em; color: var(--ink); }

abbr[title] { text-decoration: none; }

.vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 16px; }

/* ---------------------------------------------------------------- masthead */

.masthead { padding: 22px var(--pad) 0; }

.nav {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px clamp(16px, 2.4vw, 34px);
  font-size: .9375rem; font-weight: 500;
}
.nav a { color: var(--ink-2); text-decoration: none; padding: 6px 0; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav-gh { display: inline-flex; align-items: center; gap: 7px; }

/* ---------------------------------------------------------------- hero */

.hero {
  padding: clamp(80px, 15vh, 168px) var(--pad) clamp(72px, 12vh, 136px);
  text-align: center;
}

.lockup {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0 .26em;
  font-size: clamp(2.5rem, 7.2vw, 6rem);
  font-weight: 800; line-height: 1; letter-spacing: -.04em;
}
.lockup-mark { width: .9em; height: .9em; margin-right: .06em; }
.lockup-v { color: var(--ink-3); font-weight: 400; letter-spacing: -.02em; }

.definition {
  max-width: 38ch; margin: clamp(24px, 3.4vh, 36px) auto 0;
  font-size: clamp(1.2rem, 1.9vw, 1.6rem); line-height: 1.38; color: var(--ink-2);
  text-wrap: balance;
}

.cmd {
  position: relative;
  display: inline-grid; gap: 10px; justify-items: stretch;
  margin-top: clamp(36px, 5vh, 52px);
  padding: 10px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 13px;
  text-align: left;
}
.cmd-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.cmd-controls[hidden] { display: none; }

/* The release line: two radio buttons, the chosen one outlined in orange. */
.cmd-lines { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.cmd-lines button {
  border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--ink-2);
  font: 500 .875rem/1 var(--mono); padding: 7px 12px; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.cmd-lines button abbr { font-family: var(--sans); font-size: .8em; }
.cmd-lines button:hover { color: var(--ink); }
.cmd-lines button[aria-checked="true"] { border-color: var(--orange); color: var(--ink); }

/* The build tool: a native select, so keyboard and screen readers work as usual. */
.cmd-tool select {
  appearance: none; -webkit-appearance: none;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ff9925' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink);
  font: 500 .875rem/1 var(--sans); padding: 9px 32px 9px 14px; cursor: pointer;
}
.cmd-tool select:hover { border-color: var(--orange); }

.cmd-row { display: flex; align-items: center; gap: 14px; padding-left: 10px; }
.cmd-line {
  font-family: var(--mono); font-size: .9375rem; color: var(--ink);
  min-width: 0; width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cmd-line code { font-size: 1em; }

.cmd-copy {
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  padding: 10px 15px; border: 0; border-radius: 9px;
  background: var(--ink); color: #0c0c0c;
  font: 600 .875rem/1 var(--sans); cursor: pointer;
  transition: background-color .2s, transform .15s var(--ease);
}
.cmd-copy[hidden] { display: none; }
.cmd-copy:hover { background: #fff; }
.cmd-copy:active { transform: translateY(1px); }

.cmd-status {
  position: absolute; left: 0; right: 0; top: calc(100% + 12px);
  font-size: .875rem; color: var(--ink-2);
}

/* ---------------------------------------------------------------- what's new strip */

.strip { border-block: 1px solid var(--line); }
.strip-in { max-width: var(--max); margin: 0 auto; padding: 24px var(--pad) 26px; font-size: 1rem; }
/* Each headline is a link with one short fact under it, in equal columns across the page. */
.strip-news {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 18px 40px;
  list-style: none; margin: 0; padding: 0;
}
.strip-news li { display: grid; gap: 6px; align-content: start; }
.strip-news a { font-weight: 700; font-size: 1.0625rem; justify-self: start; }
.strip-note { color: var(--ink-3); font-size: .9375rem; line-height: 1.45; text-wrap: balance; }

/* ---------------------------------------------------------------- shared section rhythm */

main > section:not(.hero):not(.strip) {
  max-width: var(--max); margin: 0 auto; padding: var(--sec) var(--pad) 0;
}

.sec-head {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px 56px; align-items: end;
  margin-bottom: clamp(48px, 7vh, 88px);
}
.sec-head h2 { font-size: clamp(2.25rem, 4.6vw, 4.25rem); line-height: 1.02; letter-spacing: -.038em; }
.sec-head p { max-width: 46ch; font-size: 1.125rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- component tree (shared) */

.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree { --rh: 30px; --ind: 20px; font-size: .875rem; }
.tree li.n { position: relative; }
.tree ul > li.n { padding-left: var(--ind); }

.tree ul > li.n::before,
.tree ul > li.n::after { content: ""; position: absolute; left: 6px; pointer-events: none; }
.tree ul > li.n::before {
  top: 0; height: calc(var(--rh) / 2); width: calc(var(--ind) - 10px);
  border-left: 1px solid var(--orange-dim); border-bottom: 1px solid var(--orange-dim);
  border-bottom-left-radius: 6px;
}
.tree ul > li.n::after { top: calc(var(--rh) / 2); bottom: 0; border-left: 1px solid var(--orange-dim); }
.tree ul > li.n.last::after { display: none; }
.tree ul > li.n.on::before { border-color: var(--orange); }

.tree .row {
  display: flex; align-items: center; gap: 9px;
  height: var(--rh); padding: 0 8px 0 6px; margin-left: -6px;
  white-space: nowrap; border-radius: 6px;
  transition: background-color .5s var(--ease);
}
.tree .nid { color: var(--ink); font-size: 1em; }
.tree .ntype { color: var(--ink-3); font-size: .93em; }
.tree .ntag { color: var(--ink-3); font-size: .93em; margin-left: auto; padding-left: 12px; }
.tree .root > .row .nid,
.tree .root > .n-in > .row .nid { font-family: var(--sans); font-weight: 700; font-size: 1.05em; }

.tree li.on > .row,
.tree li.on > .n-in > .row { background: linear-gradient(90deg, var(--orange-wash), rgba(255, 153, 37, .02) 85%); }
.tree li.on > .row .nid,
.tree li.on > .n-in > .row .nid { color: var(--orange); }

/* ---------------------------------------------------------------- code */

pre.code {
  margin: 0; overflow-x: auto;
  font: 400 clamp(12px, .9vw, 13px)/1.7 var(--mono);
  color: #d6d6d1; tab-size: 4;
  scrollbar-width: thin;
}
pre.code code { display: block; min-width: max-content; color: inherit; font-size: 1em; }
.ln { display: block; position: relative; padding: 0 14px 0 16px; min-height: 1.7em; }
.ln.new { background: linear-gradient(90deg, var(--orange-wash), rgba(255, 153, 37, .03)) no-repeat 0 0 / 100% 100%; }
.ln.new::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 2px; background: var(--orange); border-radius: 2px; }
.code .k, .code .t { color: #9d9d98; }
.code .a, .code .c { color: #8f8f8a; }
.code .at { color: #b9b9b4; }
.code .s { color: #ecece8; }
.code .w { color: #fff; font-weight: 500; }

.fname { font-family: var(--mono); font-size: .8125rem; color: var(--ink-2); margin: 0 0 8px; }
.fnote { font-family: var(--sans); color: var(--ink-3); margin-left: .5em; }
.fnote::before { content: "/ "; }
.file + .file { margin-top: 22px; }

/* ---------------------------------------------------------------- the reveal: static layout
   (default: no JavaScript, reduced motion, narrow screens). Every step shows its tree and code. */

.steps { list-style: none; padding: 0; margin: 0; }

.step {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: 32px 56px; align-items: start;
  padding-block: clamp(40px, 6vh, 64px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 12vh;
}
.step:first-child { border-top: 0; padding-top: 0; }

.step-text h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.step-n { display: block; margin-bottom: 14px; font-family: var(--mono); font-size: .875rem; font-weight: 500; color: var(--orange); letter-spacing: 0; }
.step-text p { margin-top: 14px; max-width: 40ch; }

.step-fig {
  display: grid; grid-template-columns: minmax(220px, 4fr) minmax(0, 9fr);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.mini-wrap { padding: 22px 20px; border-right: 1px solid var(--line); container-type: inline-size; }
.mini-title { font-family: var(--mono); font-size: .75rem; color: var(--ink-3); margin-bottom: 10px; }
.tree.mini { --rh: 25px; --ind: 17px; font-size: .78rem; }
.files { padding: 22px 0; min-width: 0; }
.files .fname { padding: 0 16px; }

@container (max-width: 280px) { .mini .ntag { display: none; } }

.stage { display: none; }

.reveal-end {
  margin-top: clamp(56px, 9vh, 104px); padding-top: clamp(40px, 6vh, 64px);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem); color: var(--ink); font-weight: 500; letter-spacing: -.01em;
}
.go {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 10px; background: var(--ink); color: #0c0c0c;
  font-size: 1rem; font-weight: 700; letter-spacing: 0; text-decoration: none;
  transition: background-color .2s, transform .15s var(--ease);
}
.go::after { content: ""; width: 14px; height: 10px; background: currentColor;
  clip-path: polygon(0 4px, 9px 4px, 9px 0, 14px 5px, 9px 10px, 9px 6px, 0 6px); }
.go:hover { background: #fff; }
.go:active { transform: translateY(1px); }

/* ---------------------------------------------------------------- the reveal: sticky stage
   (JavaScript on, wide screen, motion allowed). reveal.js sets .is-reveal on <html>. */

.is-reveal .reveal-body {
  --sh: min(720px, calc(100vh - 120px));
  display: grid; grid-template-columns: minmax(260px, 3.6fr) minmax(0, 8.4fr); gap: clamp(36px, 4.4vw, 80px);
  align-items: start;
}
.is-reveal .step {
  display: block; min-height: 74vh; padding: 0; border: 0;
}
.is-reveal .step:last-child { min-height: calc(var(--sh) * .6 + 8vh); }
.is-reveal .step-fig { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.is-reveal .step-text { padding-top: 8px; }
.is-reveal .step-text h3,
.is-reveal .step-text p,
.is-reveal .step-text code { color: var(--ink-3); transition: color .45s var(--ease); }
.is-reveal .step-n { color: var(--ink-3); transition: color .45s var(--ease); }
.is-reveal .step.is-active h3 { color: var(--ink); }
.is-reveal .step.is-active p { color: var(--ink-2); }
.is-reveal .step.is-active code { color: var(--ink); }
.is-reveal .step.is-active .step-n { color: var(--orange); }

.is-reveal .stage {
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  position: sticky; top: max(24px, calc((100vh - var(--sh)) / 2)); height: var(--sh);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
}
.stage-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: .8125rem; color: var(--ink-3);
}
.stage-title { color: var(--ink); font-family: var(--sans); font-weight: 700; font-size: .9375rem; }
.stage-n { color: var(--ink); }
.stage-grid { display: grid; grid-template-columns: minmax(214px, 38%) minmax(0, 1fr); min-height: 0; }
.stage-tree {
  display: flex; flex-direction: column; min-height: 0; overflow: auto;
  padding: 20px 16px 18px; border-right: 1px solid var(--line); container-type: inline-size;
}
.stage-caption { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .875rem; line-height: 1.5; color: var(--ink-2); }
.stage-caption code { font-size: .92em; }
@container (max-width: 250px) { .big .ntag { display: none; } }
.tree.big { --ind: 16px; font-size: .8125rem; }
.big .ntype { font-size: .86em; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.big .root > .n-in > .row .ntag { display: none; }

/* Nodes grow in and out of the tree. */
.big li.n { display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .6s var(--ease), opacity .35s ease-out; }
.big li.n.is-shown { grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .6s var(--ease), opacity .5s ease-out .12s; }
.big .n-in { min-height: 0; overflow: hidden; }

.stage-code { position: relative; min-height: 0; }
.pane {
  position: absolute; inset: 0; overflow: auto; padding: 20px 0;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease-out, transform .6s var(--ease), visibility 0s linear .3s;
}
.pane.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease-out .08s, transform .7s var(--ease) .08s, visibility 0s; }
.pane .files { padding: 0; }
.pane .ln.new { background-size: 0% 100%; transition: background-size .8s var(--ease); }
.pane .ln.new::before { transform: scaleY(0); transition: transform .5s var(--ease); }
.pane.is-active .ln.new { background-size: 100% 100%; transition-delay: calc(.18s + var(--i, 0) * 45ms); }
.pane.is-active .ln.new::before { transform: none; transition-delay: calc(.12s + var(--i, 0) * 45ms); }

/* ---------------------------------------------------------------- stable */

.stable { display: grid; grid-template-columns: minmax(0, 6fr) minmax(460px, 5fr); gap: 48px clamp(48px, 6vw, 104px); align-items: start; }
.stable .sec-head { grid-template-columns: 1fr; margin-bottom: clamp(40px, 6vh, 64px); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
.facts dt { color: var(--ink); font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; }
.facts dd { margin-top: 8px; font-size: 1rem; }

.board {
  align-self: end;
  padding: 22px 24px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2);
  font-size: .9063rem;
}
.board h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.005em; }
.board table { width: 100%; border-collapse: collapse; margin-top: 4px; font-variant-numeric: tabular-nums; }
.board th, .board td { padding: 6px 0; text-align: left; vertical-align: baseline; font-weight: 400; }
.board td { color: var(--ink-2); padding-left: 14px; white-space: nowrap; }
.board .grp th { padding: 16px 0 6px; font-size: .8125rem; font-weight: 500; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.board tbody:first-child .grp th { padding-top: 10px; }
.board tr:not(.grp) th { white-space: nowrap; color: var(--ink); }
.board .v { font-family: var(--mono); font-size: .95em; }
.board abbr { font-size: .72rem; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; margin-left: 4px; vertical-align: 1px; }
.board td.d { text-align: right; white-space: nowrap; }
.board td.d span { font-family: var(--mono); font-size: .95em; color: var(--ink); margin-left: .4em; }
.board .ended th, .board .ended .v { color: var(--ink-2); }
.board-all { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .875rem; }

/* ---------------------------------------------------------------- new in 11 */

.new11 .sec-head { margin-bottom: clamp(36px, 5vh, 56px); }
.hls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hl { padding: 4px 28px 0; border-left: 1px solid var(--line); }
.hl:first-child { padding-left: 0; border-left: 0; }
.hl h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.hl p { margin-top: 10px; font-size: .96875rem; }
.hl code { white-space: nowrap; }
.baseline { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .875rem !important; color: var(--ink-2); }
.baseline b { font-family: var(--mono); font-weight: 500; color: var(--ink); }

/* ---------------------------------------------------------------- built with wicket */

.names { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
.names li {
  padding: 22px 0 20px; border-top: 1px solid var(--line);
  color: var(--ink); font-size: clamp(1.3rem, 2.1vw, 1.85rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.15;
}
.names span { display: block; margin-top: 6px; font-size: .9375rem; font-weight: 400; letter-spacing: 0; color: var(--ink-3); }
.built-links { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- footer */

.footer { margin-top: var(--sec); border-top: 1px solid var(--line); }
.footer-in {
  max-width: var(--max); margin: 0 auto; padding: 48px var(--pad) 56px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px 48px; align-items: start;
}
.asf-tile { display: block; padding: 12px 16px; background: #f6f6f3; border-radius: 10px; line-height: 0; }
.asf-tile img { display: block; width: 114px; height: auto; }
.footer nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: .9375rem; }
.footer nav a { color: var(--ink-2); }
.legal { margin-top: 18px; max-width: 92ch; font-size: .8125rem; line-height: 1.6; color: var(--ink-3); }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1279px) {
  .is-reveal .reveal-body { grid-template-columns: minmax(0, 3.1fr) minmax(0, 8.9fr); }
  .step-fig { grid-template-columns: 1fr; }
  .mini-wrap { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 1099px) {
  .stable { grid-template-columns: minmax(0, 1fr); }
  .board { align-self: start; max-width: 520px; }
  .hls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 0; }
  .hl:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 860px) {
  .sec-head { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; }
  .names { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .nav { gap: 0 13px; font-size: .875rem; }
  .hero { padding-top: 64px; padding-bottom: 72px; }
  .lockup-mark { width: 100%; height: 64px; object-fit: contain; margin: 0 0 22px; }
  .cmd { display: flex; padding: 14px; }
  .cmd { display: grid; width: 100%; }
  .cmd-row { flex-direction: column; align-items: stretch; padding-left: 0; }
  .cmd-line { width: auto; font-size: .875rem; white-space: normal; overflow-wrap: anywhere; padding: 4px 6px; }
  .cmd-copy { width: 100%; justify-content: center; }
  .strip-news { grid-template-columns: 1fr; gap: 16px; }
  .facts { grid-template-columns: 1fr; gap: 28px; }
  .hls { grid-template-columns: 1fr; gap: 0; }
  .hl, .hl:first-child, .hl:nth-child(3) { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .board { padding: 18px 16px; }
  .board table, .board tbody { display: block; }
  .board tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
  .board .grp th { grid-column: 1 / -1; }
  .board tr:not(.grp) th { grid-row: 1; padding-bottom: 0; }
  .board td.d { grid-row: 1; grid-column: 2; padding-bottom: 0; }
  .board td:not(.d) { grid-column: 1 / -1; padding: 0 0 6px; font-size: .8125rem; color: var(--ink-3); }
  .board td:empty { display: none; }
  .board tr:has(td:empty) > *, .board tr.ended td.d { padding-bottom: 6px; }
  .names { grid-template-columns: 1fr; }
  .names li { padding: 16px 0 14px; }
  .footer-in { grid-template-columns: 1fr; }
  .reveal-end .go { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* The strip links here; keep the heading clear of the top edge when it lands. */
#new { scroll-margin-top: 32px; }

/* Install box, "New project": the mode switch and a command shown one option per line. */
.cmd-modes button { font-family: var(--sans); }
.cmd.is-project .cmd-line { white-space: pre; overflow-x: auto; text-overflow: clip; line-height: 1.55; }
/* The box never grows past its column: long command lines scroll inside the field. */
.cmd { max-width: 100%; grid-template-columns: minmax(0, 1fr); }
.cmd-row > .cmd-line { min-width: 0; }
.cmd.is-project .cmd-line { width: 58ch; max-width: 100%; }
