/* headless.software: the one stylesheet. Every page loads it: the home page (index.html, written by hand) and the pages build.js writes.
   The rules it follows are in DESIGN-BRIEF.md. */
:root{
  --sans:"Host Grotesk",system-ui,sans-serif; --mono:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
  /* Space sits on one scale: .25 .5 .75 1 1.5 2 3 4 6 8rem. There is one radius. */
  --pad:clamp(1.25rem,3vw,2.75rem); --sp:clamp(4.5rem,9vw,8rem); --seam:168px; --r:2px;
  /* one left edge for the whole page: the nav, the hero, every section and the footer start where .wrap starts */
  --gut:max(var(--pad),calc((100% - 78rem)/2));
  /* the pointer: a printer's manicule, larger than the system arrow. The hot spot is the fingertip. */
  --hand:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='-2 -2 36 36'%3E%3Cg transform='translate%288.84 4.66%29 scale%281.0%29 translate%28-8.84 -4.66%29 rotate%28-18 16 16%29'%3E%3Cg fill='%230c0c0e' stroke='%230c0c0e' stroke-width='1.9' stroke-linejoin='round'%3E%3Crect x='10' y='3' width='5.4' height='17' rx='2.7'/%3E%3Crect x='15' y='11' width='5' height='9' rx='2.5'/%3E%3Crect x='19.6' y='12.2' width='4.8' height='8' rx='2.4'/%3E%3Crect x='24' y='13.6' width='4.4' height='7' rx='2.2'/%3E%3Crect x='10' y='16' width='18.4' height='11' rx='4'/%3E%3Crect x='4.5' y='15' width='5.2' height='11' rx='2.6' transform='rotate%28-35 7 20%29'/%3E%3Crect x='11.5' y='27.5' width='15.5' height='3.6' rx='.6'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Crect x='10' y='3' width='5.4' height='17' rx='2.7'/%3E%3Crect x='15' y='11' width='5' height='9' rx='2.5'/%3E%3Crect x='19.6' y='12.2' width='4.8' height='8' rx='2.4'/%3E%3Crect x='24' y='13.6' width='4.4' height='7' rx='2.2'/%3E%3Crect x='10' y='16' width='18.4' height='11' rx='4'/%3E%3Crect x='4.5' y='15' width='5.2' height='11' rx='2.6' transform='rotate%28-35 7 20%29'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 14 9;--hand-down:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='-2 -2 36 36'%3E%3Cg transform='translate%288.84 4.66%29 scale%280.86%29 translate%28-8.84 -4.66%29 rotate%28-18 16 16%29'%3E%3Cg fill='%230c0c0e' stroke='%230c0c0e' stroke-width='1.9' stroke-linejoin='round'%3E%3Crect x='10' y='3' width='5.4' height='17' rx='2.7'/%3E%3Crect x='15' y='11' width='5' height='9' rx='2.5'/%3E%3Crect x='19.6' y='12.2' width='4.8' height='8' rx='2.4'/%3E%3Crect x='24' y='13.6' width='4.4' height='7' rx='2.2'/%3E%3Crect x='10' y='16' width='18.4' height='11' rx='4'/%3E%3Crect x='4.5' y='15' width='5.2' height='11' rx='2.6' transform='rotate%28-35 7 20%29'/%3E%3Crect x='11.5' y='27.5' width='15.5' height='3.6' rx='.6'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Crect x='10' y='3' width='5.4' height='17' rx='2.7'/%3E%3Crect x='15' y='11' width='5' height='9' rx='2.5'/%3E%3Crect x='19.6' y='12.2' width='4.8' height='8' rx='2.4'/%3E%3Crect x='24' y='13.6' width='4.4' height='7' rx='2.2'/%3E%3Crect x='10' y='16' width='18.4' height='11' rx='4'/%3E%3Crect x='4.5' y='15' width='5.2' height='11' rx='2.6' transform='rotate%28-35 7 20%29'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 14 9;
}
/* Colour. The site is black, and that is the default: night. A key in the nav turns it to paper: day (html[data-theme=light], remembered).
   Each theme names its ground and its text, two quieter tones of the text, a hairline, a key outline, the ground of a sheet (--raise) and its rim,
   the focus ring, the primary key and the ink of the reading line. Every grey is the text colour at an opacity.
   There are two tints and both are washed out: a teal, which is the working accent (cursor, Examined, the primary key at night),
   and a violet, which is the hero's headline and the Hot mark. As --wash-t and --wash-v they are a haze behind a field, nothing more. */
:root,.dark{color-scheme:dark;--bg:#09090b;--fg:#f4f3ef;--fg-2:rgb(244 243 239/.74);--fg-3:rgb(244 243 239/.55);--line:rgb(244 243 239/.14);--edge:rgb(244 243 239/.32);
  --teal:#8fc4bb;--violet:#b5a8d9;--wash-t:rgb(110 190 178/.13);--wash-v:rgb(150 130 205/.17);--raise:#141417;--rim:var(--edge);
  --ring:var(--teal);--go:var(--teal);--go-h:var(--fg);--band:rgb(244 243 239/.12);--grain-blend:screen;--grain-a:.05}
[data-theme=light]{color-scheme:light;--bg:#fbfaf6;--fg:#0c0c0e;--fg-2:rgb(12 12 14/.76);--fg-3:rgb(12 12 14/.6);--line:rgb(12 12 14/.13);--edge:rgb(12 12 14/.3);
  --teal:#2f766c;--violet:#6a57a6;--wash-t:rgb(60 160 145/.13);--wash-v:rgb(120 100 190/.12);--raise:#fff;--rim:var(--fg);
  --ring:var(--fg);--go:var(--fg);--go-h:var(--teal);--band:rgb(12 12 14/.1);--grain-blend:multiply;--grain-a:.24}
[data-theme=light] .lsg{opacity:.6}   /* by day the glow is thinned, so it stays a wash on the paper */
/* an ink surface stays ink in both themes: an open row's panel, the agent view. At night it is a step up from the ground. */
.dark{--bg:var(--raise);--raise:#141417;background:var(--bg);color:var(--fg)}
dialog,.sheet{--bg:var(--raise)}
/* the third field. By day it is the paper itself. */
.paper{background:radial-gradient(60% 70% at 88% 12%,var(--wash-v),transparent 65%),var(--bg);color:var(--fg)}

*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth;cursor:var(--hand),auto;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
body{margin:0;font-family:var(--sans);background:var(--bg);color:var(--fg);line-height:1.5;-webkit-font-smoothing:antialiased}
h1,h2,h3,p,ul,ol,dl,dt,dd{margin:0;padding:0;font-weight:400}
ul,ol{list-style:none}
h1,h2,h3{text-wrap:balance}
p{text-wrap:pretty}
i{font-style:normal}
a{color:inherit;text-decoration:none;cursor:var(--hand),pointer}
button{font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;background:none;border:0;padding:0;cursor:var(--hand),pointer}
:is(a,button,summary,label):active{cursor:var(--hand-down),pointer}
input:not([type=checkbox]),textarea{cursor:text}
:focus-visible{outline:2px solid var(--ring);outline-offset:3px}
::selection{background:var(--teal);color:var(--bg)}

/* Type. Host Grotesk is everything a person reads: a LABEL is a word or two, a NOTE is a sentence.
   IBM Plex Mono is only what gets typed or run: commands, interface names (TOK), the search and form fields.
   Nothing is set in capitals. */
.label{font-size:.875rem;font-weight:500;line-height:1.2}
.note{font-size:.875rem;line-height:1.5;color:var(--fg-2)}
.tok{font-family:var(--mono);font-size:.8125rem;font-weight:500;line-height:1.2}
.lead{font-size:clamp(1.06rem,1.4vw,1.19rem);line-height:1.45;max-width:34rem;color:var(--fg-2)}
h1{font-size:clamp(3rem,6.6vw,6.5rem);line-height:.92;letter-spacing:-.045em}
h2{font-size:clamp(2.25rem,4.8vw,4.25rem);line-height:.98;letter-spacing:-.04em;max-width:17ch}
h3{font-size:1.5rem;font-weight:500;line-height:1.1;letter-spacing:-.025em}
code{font-family:var(--mono);font-size:.94rem;line-height:1.5;overflow-wrap:anywhere}
/* a command breaks between its words, never inside one: "--api-key" stays whole on a narrow screen (the script wraps each word) */
code i{display:inline-block;max-width:100%}
kbd{font-family:var(--mono);font-size:.75rem;line-height:1;border:1px solid var(--edge);border-radius:var(--r);padding:.25rem .4rem}

/* grain: a grey noise over every field. At night it is film grain, screened over the black and barely there; by day it is multiplied, and is the tooth of the paper. */
.grain,.paper{position:relative;isolation:isolate}
.grain::after,.paper::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;opacity:var(--grain-a);mix-blend-mode:var(--grain-blend);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.grain>*,.paper>*{position:relative;z-index:2}

/* Keys. The one rule of the page: a box means a key. If it has an outline or a fill, it can be pressed;
   everything that is only read is plain type on a rule. Keys are flat: they drop when struck, ink in when held, and tick. */
.tac{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;white-space:nowrap;
  font-size:.875rem;font-weight:500;line-height:1;
  padding:.72rem 1rem;border:1px solid var(--edge);border-radius:var(--r);
  transition:transform .14s,background .12s,color .12s,border-color .12s}
.tac.sm{padding:.48rem .7rem}
.tac.lg{padding:1rem 1.5rem;font-size:1rem}
.tac[aria-pressed=true],.tac:has(:checked){background:var(--fg);color:var(--bg);border-color:var(--fg)}
.tac:active{transform:translateY(3px);transition-duration:.03s}
.tac.go{background:var(--go);color:var(--bg);border-color:var(--go)}
/* a utility switch stays out of the way: no fill, a lamp that is lit or not */
.tac.quiet,.tac.quiet[aria-pressed=true]{background:none;color:inherit;border-color:transparent;padding-inline:.6rem}
.lamp{flex:none;width:.44rem;height:.44rem;border:1px solid currentColor}
[aria-pressed=true]>.lamp{background:var(--teal);border-color:var(--teal)}
/* the theme key's glyph: a square, half inked */
.half{flex:none;width:.7rem;height:.7rem;border:1px solid currentColor;background:linear-gradient(135deg,currentColor 50%,transparent 50%)}
@media (hover:hover){
  .tac:hover{background:var(--fg);color:var(--bg);border-color:var(--fg)}
  .tac.go:hover{background:var(--go-h);color:var(--bg);border-color:var(--go-h)}
  .tac.quiet:hover{background:none;color:inherit;border-color:var(--edge)}
}
.logo{display:grid;place-items:center;flex:none;width:2.5rem;height:2.5rem;background:#fff;border-radius:var(--r);box-shadow:inset 0 0 0 1px rgb(0 0 0/.12);font-weight:600;color:#0c0c0e}   /* a logo keeps its white tile in both themes */
.logo img{width:1.5rem;height:1.5rem;display:block}
.logo.s{width:1.5rem;height:1.5rem;box-shadow:none}
.logo.s img{width:1rem;height:1rem}

section{padding:var(--sp) var(--pad)}
/* Fields meet in a line screen: the next field arrives as lines that thicken until they close.
   The lines are one mask (--screen, written once by the script), laid over the top 168px of the field that arrives. */
.screened{margin-top:calc(-1*var(--seam));padding-top:calc(var(--sp) + var(--seam));scroll-margin-top:calc(2rem - var(--seam));-webkit-mask-image:var(--screen);mask-image:var(--screen)}
.lap{padding-bottom:calc(var(--sp) + var(--seam))}   /* the last section of a field: the next field laps over its foot */
#guides{padding-top:0}   /* it follows the list in the same field: one section gap between them, not two */
.wrap{max-width:78rem;margin-inline:auto}
/* every section opens the same way: a headline, a lead under it, on one left edge */
.head{display:grid;justify-items:start;gap:1.5rem;margin-bottom:3rem}

/* nav */
.nav{position:absolute;inset:0 0 auto;z-index:3;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem;padding:1.25rem var(--gut)}
.brand{justify-self:start;display:flex;align-items:center;gap:.5rem;font-size:1.19rem;font-weight:500;letter-spacing:-.02em}
.brand svg{width:1.4rem;height:1.4rem;margin-left:-.175rem;fill:currentColor}
.brand svg rect{fill:var(--teal)}   /* its own side bearing, taken back: the mark's edge sits on the page's left edge */
.nav nav{display:flex;align-items:center;gap:clamp(1.5rem,3vw,2.5rem)}
.nav nav>a,.nav .drop summary{padding:.5rem 0;color:var(--fg-2);background:none;transition:color .15s}
.nav nav>a:hover,.nav .drop summary:hover,.nav .drop[open] summary,.nav nav [aria-current]{color:var(--fg)}
/* Tools and Guides each drop a white sheet under the nav, as the menu and the search do: every category, every guide, one press from any page */
.drop summary{display:flex;align-items:center;gap:.45rem}
.drop summary::after{content:"";border:.28em solid transparent;border-bottom:0;border-top:.38em solid currentColor}
.drop[open] summary::after{transform:scaleY(-1)}
.sheet{position:absolute;top:calc(100% - .5rem);left:50%;transform:translateX(-50%);width:17rem;background:var(--bg);color:var(--fg);border:1px solid var(--rim);border-radius:var(--r)}
.sheet a{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;padding:.62rem 1.25rem;font-size:1.06rem}
.sheet a+a{border-top:1px solid var(--line)}
.sheet .note{font-weight:400}
.sheet a:hover,.sheet a:focus-visible{background:var(--fg);color:var(--bg);outline:0}
.sheet a:hover .note,.sheet a:focus-visible .note{color:inherit;opacity:.62}
/* the guides, under the three questions they answer */
.sheet.wide{display:grid;grid-template-columns:repeat(3,1fr);width:min(54rem,calc(100vw - 2*var(--gut)))}
.sheet.wide>div{padding:1.25rem 0 .75rem}
.sheet.wide>div+div{border-left:1px solid var(--line)}
.sheet .label{display:block;padding:0 1.25rem .6rem;color:var(--fg-3)}
.sheet.wide div a{padding-block:.5rem;border:0;font-size:1rem}
.sheet.wide p{grid-column:1/-1;display:grid;grid-template-columns:inherit;border-top:1px solid var(--edge)}   /* its two links keep to the columns above them */
.sheet.wide p a{border:0}
.sheet.wide p a+a{grid-column:2/-1;border-left:1px solid var(--line)}
.nav nav [aria-current]{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:.45em}   /* where you are, underscored the way the live row is */
.menu-k{display:none}
.nav-r{justify-self:end;display:flex;align-items:center;gap:.5rem}

/* hero: the copy keeps to its own column, clear of the statue at every width */
/* dusk: the hero and the list are one field, black with a violet haze behind the copy and a teal one at the fold. One ground and one grain run under both, and nothing is cut where they meet:
   the statue thins out across the fold, and the glow (violet into teal) sits on the fold itself, drawn as a line screen (.lsg, see the script). */
.dusk{background:radial-gradient(60vw 55svh at 22% 38svh,var(--wash-v),transparent 75%),radial-gradient(46vw 44svh at 96% 104svh,var(--wash-t),transparent 72%) no-repeat,var(--bg)}
.hero h1{color:var(--violet)}   /* the one line of colour on the page */
.hero{min-height:100svh;padding:0 var(--gut);display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden}
/* The statue takes what is left of the row once the copy has its 39rem.
   116svh: it runs 16% past the fold. size() in the script divides the same 1.16 back out. */
#bust{position:absolute!important;right:0;top:0;width:calc(100% - var(--gut) - 39rem);height:116svh;pointer-events:none;z-index:0!important}
/* the glow keeps to the statue's column, so its lines never run behind the copy */
.lsg{position:absolute;z-index:0;right:0;width:min(48rem,calc(100% - var(--gut) - 39rem));height:88svh;pointer-events:none}
.hero-copy{max-width:46rem;padding-top:7rem}
.eyebrow{font-size:1.06rem;font-weight:500;color:var(--fg-2);margin-bottom:1.5rem;text-wrap:balance}
.caret{position:relative;display:inline-block;width:0}
.caret::after{content:"";position:absolute;left:.06em;bottom:0;width:.09em;height:.7em;background:var(--teal);animation:blink 1.1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}
.sub{font-size:clamp(1.06rem,1.45vw,1.25rem);line-height:1.4;max-width:31rem;margin-top:1.5rem;opacity:.86}
/* the search field is the page inverted: white on black at night, black on paper by day */
.search{justify-content:space-between;width:min(100%,30rem);margin-top:2rem;padding:1rem 1rem 1rem 1.25rem;
  font-size:1.06rem;font-weight:400;background:var(--fg);color:var(--bg);border-color:var(--fg)}
.search span{opacity:.62}
.search kbd{border-color:currentColor;opacity:.6}
@media (hover:hover){.search:hover{background:var(--teal);color:var(--bg);border-color:var(--teal)}.search:hover span{opacity:1}}
.quick{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem}
.quick .tac{padding:.375rem .75rem .375rem .375rem;font-size:.94rem}
.stats{display:flex;flex-wrap:wrap;align-items:baseline;gap:.25rem 1.75rem;max-width:34vw;margin-top:clamp(2rem,6vh,4rem);padding-bottom:1.75rem}
.stats b{color:var(--fg)}

/* index: a typed ledger. Rules, not boxes. */
/* Two questions narrow the list: what the work is, and how the tool is reached. Each is a line of keys with its name in front.
   Under them, one line says what is left, with the key that clears it and the switch between the two views. */
.pick{display:grid;grid-template-columns:5.75rem minmax(0,1fr);align-items:baseline;gap:.75rem 0}
.pick>.label{color:var(--fg-3)}
.chips{display:flex;flex-wrap:wrap;gap:.375rem}
.found{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem;min-height:2.75rem;margin-top:1.5rem}
.found .view{margin-left:auto}
.found+.cols{margin-top:.75rem}
.chips i{color:var(--fg-3)}
.chips [aria-pressed=true] i{color:inherit;opacity:.6}
@media (hover:hover){.chips .tac:hover i{color:inherit;opacity:.6}}
/* two views of one index: a joined switch, not two more filters */
.view{display:flex}
.view .tac:first-child{border-radius:var(--r) 0 0 var(--r)}
.view .tac+.tac{margin-left:-1px;border-radius:0 var(--r) var(--r) 0}
/* the columns are named once, then every row keeps to them. The ranked list's own are the default; the other ledgers name theirs (--cols, below). */
.cols,.sum{display:grid;grid-template-columns:var(--cols,1.75rem 2.5rem minmax(0,1fr) 12.5rem 10rem 4.25rem);column-gap:1.25rem;align-items:center;padding-inline:.75rem}
.cols{margin-top:2rem;padding-bottom:.6rem;border-bottom:1px solid var(--edge);color:var(--fg-3)}
.cols span:first-child{grid-column:1/var(--lead,4)}
#cols span:last-child{text-align:right}
/* a row prints in after the one above it, the way a page comes off a teletype */
.row{position:relative;border-bottom:1px solid var(--line);animation:print .01s backwards;animation-delay:calc(var(--i)*22ms)}
@keyframes print{from{opacity:0}}
summary{display:block;list-style:none;cursor:var(--hand),pointer}
summary::-webkit-details-marker{display:none}
.sum{min-height:5.5rem;padding-block:1.25rem}
/* The reading line. One row is live at a time: the one under the hand, or the one the keyboard is on.
   Its number becomes the cursor, its interfaces light up, and the line screen swells behind it where the hand is (#band, drawn by the script). */
.num{justify-self:start;margin-left:-.35em;padding:.3em .35em;color:var(--fg-3)}
.on .num{background:var(--teal);color:var(--bg);animation:cur 1.1s steps(1) infinite}
@keyframes cur{50%{background:none;color:var(--teal)}}
.on .ifaces,.on .conn{color:var(--teal)}
.on .cat{color:var(--fg-2)}
#band{position:absolute;left:0;top:0;z-index:-1;pointer-events:none}
details[open] summary{background:color-mix(in srgb,var(--fg) 6%,transparent)}
summary:active{background:color-mix(in srgb,var(--fg) 10%,transparent)}
a.sum:active{background:var(--line)}
/* the name is underscored one character at a time, the way a typewriter underlines */
.who strong{display:inline-block;margin-right:.6rem;font-weight:500;font-size:1.5rem;line-height:1.2;letter-spacing:-.025em;
  background:linear-gradient(currentColor,currentColor) 0 100%/0 1.5px no-repeat;transition:background-size .28s steps(9)}
.on strong,details[open] strong{background-size:100% 1.5px}
.blurb{display:block;color:var(--fg-2);font-size:.94rem;line-height:1.45}
/* marks: set beside a name, never boxed. Three are states and carry ink (Hot is earned, Premium is paid, Examined is checked by us); two are plain facts. */
.mk{margin-right:.6rem;font-size:.75rem;font-weight:500;line-height:1;white-space:nowrap;vertical-align:.1em;color:var(--fg-3)}
.mk.hot,.mk.premium,.mk.ex{display:inline-block;font-weight:600;padding:.22em .45em;border-radius:var(--r)}
.mk.hot,.mk.ex{background:var(--teal);color:var(--bg)}
.mk.hot{background:var(--violet)}
.mk.premium{background:var(--fg);color:var(--bg)}
.who .mk{vertical-align:.32em}
/* interfaces sit in fixed slots, so an eye can run down one column */
.ifaces{display:grid;grid-template-columns:repeat(3,3ch) 6ch;column-gap:2ch}
.i-mcp{grid-column:1}.i-cli{grid-column:2}.i-api{grid-column:3}.i-skills{grid-column:4}
.no{color:var(--fg-3);opacity:.5}
.cat{color:var(--fg-3)}
.vote{position:absolute;right:.75rem;top:1.75rem;min-width:3.4rem;font-variant-numeric:tabular-nums}
.up{width:0;height:0;border:.3em solid transparent;border-top:0;border-bottom:.48em solid currentColor;margin-top:-.16em}
.panel{padding:.25rem .75rem 1.25rem 3.75rem}   /* past the number, so a command's label sits under the logo and the command under the name */
.cmd{display:grid;grid-template-columns:2.5rem minmax(0,1fr) auto;column-gap:1.25rem;align-items:center;padding:.85rem 0;border-top:1px solid var(--line)}
.cmd:first-child{border-top:0}
.cmd>.tok{color:var(--teal);font-size:.75rem}
.cmd code{justify-self:start}
/* a reference that did not answer its last test says so, under its address */
.cmd>.warn{grid-column:2/-1;color:var(--fg-3)}
/* a copied command is struck in teal for a moment, like a selection */
.hit code{background:var(--teal);color:var(--bg)}
/* a vote lands: a few of the statue's pixels come off the key */
.px{position:fixed;z-index:9;width:4px;height:4px;margin:-2px;background:var(--teal);pointer-events:none}
.meta{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1.25rem;padding:1rem 0 0 3.75rem;border-top:1px solid var(--line)}
.agent{margin:2rem 0 0;border-radius:var(--r);padding:1.5rem;font-family:var(--mono);font-size:.875rem;line-height:1.55;
  white-space:pre-wrap;overflow-wrap:anywhere;max-height:70svh;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--edge) transparent}
.agent em{color:var(--teal);font-style:normal}
.fine{margin-top:1.5rem;max-width:50rem}
.fine .mk{margin:0 .1em 0 0}
/* the list answers to the keyboard, and says so once, under the last line */
.hint.keys{flex-wrap:wrap;gap:.5rem 1.5rem;padding:1rem .75rem 0;border:0}

/* the second field: the same ground, with a teal haze from the top left and a little violet at the far corner */
.teal-field{background:radial-gradient(70% 90% at 8% 0,var(--wash-t),transparent 62%),radial-gradient(60% 80% at 100% 100%,var(--wash-v),transparent 65%),var(--bg);color:var(--fg)}
.qs,.tiers{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:0 2.5rem}
.qs{margin-top:clamp(3rem,6vw,5rem)}
.qs>li,.tiers>li{border-top:1px solid var(--edge);padding:1rem 0 2.5rem}
.qs h3{margin:2.5rem 0 .75rem}
.qs p,.tiers p{color:var(--fg-2);max-width:22rem}

/* launch */
.head .tac{margin-top:.5rem}
.qs .label,.tiers .label{display:block;color:var(--fg-3)}
.tiers b{display:block;font-size:3rem;font-weight:400;line-height:1;letter-spacing:-.04em;margin:2.5rem 0 .75rem}
.rule{max-width:40rem;font-size:1.19rem;line-height:1.4;color:var(--fg-2)}
.rule strong{font-weight:600;color:var(--fg)}

/* footer */
.end{--bg:#09090b;background:radial-gradient(50% 60% at 30% 0,var(--wash-v),transparent 70%),var(--bg);padding:calc(clamp(3rem,7vw,6rem) + var(--seam)) var(--gut) 2rem}
.word{font-size:clamp(4.5rem,19vw,19rem);line-height:.8;letter-spacing:-.06em;margin:0 0 2.5rem -.05em}
.word span{color:var(--teal)}
.foot{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.75rem 2rem;border-top:1px solid var(--line);padding-top:1.25rem}

/* dialogs: sheets, a step up from black at night and white by day. Inner scrolling is thin and inked, never the system's grey bars. */
dialog{width:min(92vw,38rem);margin-top:14svh;padding:0;border:1px solid var(--rim);border-radius:var(--r);background:var(--bg);color:var(--fg);scrollbar-width:thin;scrollbar-color:var(--edge) transparent}
dialog::backdrop{background:rgb(0 0 0/.72)}
#q{width:100%;font-family:var(--mono);font-size:1.19rem;padding:1.05rem 1.25rem;border:0;border-bottom:1px solid var(--edge);border-radius:0;background:none;color:inherit;outline:0;caret-color:var(--teal);-webkit-appearance:none;appearance:none}
#q::-webkit-search-cancel-button{display:none}
#q+.tac{display:none;position:absolute;right:.5rem;top:.5rem}   /* Close: shown where there is no Esc key (see the touch rules) */
#q::placeholder,.form ::placeholder{color:var(--fg-3);opacity:1}
#hits{max-height:46svh;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--edge) transparent}
#hits li{display:flex;align-items:center;gap:.75rem;padding:.6rem 1.25rem;cursor:var(--hand),pointer}
#hits li .tok,#hits li .note{margin-left:auto;color:var(--fg-3);white-space:nowrap}
#hits li[aria-selected=true]{background:var(--fg);color:var(--bg)}
#hits li[aria-selected=true] :is(.tok,.note){color:inherit;opacity:.62}
#hits .empty{padding-block:1.25rem;cursor:inherit}
.hint{display:flex;gap:1.5rem;padding:.65rem 1.25rem;border-top:1px solid var(--line);font-size:.8125rem}
.hint kbd{margin-right:.35rem}
.form{display:grid;gap:1.25rem;padding:2rem}
.form h2{font-size:2rem;line-height:1;max-width:none}
.form h2+p{margin-top:.5rem;color:var(--fg-2)}
.form>label,.form legend{display:grid;gap:.25rem;font-size:.875rem;color:var(--fg-2)}
.form>label>input,.form textarea{width:100%;font-family:var(--mono);font-size:1rem;color:var(--fg);padding:.35rem 0;border:0;border-bottom:1px solid var(--fg);border-radius:0;background:none;outline:0;resize:none}
.form>label>input:focus,.form textarea:focus{box-shadow:0 1px 0 var(--fg)}
.form fieldset{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:.375rem}
.form legend{padding:0;margin-bottom:.5rem}
.form fieldset .tac{position:relative}
.form fieldset input{position:absolute;opacity:0;pointer-events:none}
.form fieldset .tac:has(:focus-visible){outline:2px solid var(--ring);outline-offset:3px}
.form .say{min-height:1.5em;color:var(--fg)}
/* the legal pages: one reading column. A heading is a label's size up, never a headline: nothing here is selling. */
.prose>*{max-width:40rem}
.prose h2{font-size:1.5rem;font-weight:400;line-height:1.2;letter-spacing:-.02em;margin-top:3rem;padding-top:1.25rem;border-top:1px solid var(--line)}
.prose p,.prose ul{margin-top:.9rem;color:var(--fg-2);line-height:1.55}
.prose ul{padding-left:1.1rem;list-style:square}
.prose li+li{margin-top:.5rem}
.prose li::marker{color:var(--fg-3)}
.prose strong{font-weight:600;color:var(--fg)}
.prose code{font-size:.875em}
/* the account page: a form is a column of fields on the page's own ground, and a listing is a short ledger of its two steps */
.acct .form{max-width:34rem;padding:0}
.acct .form .view{justify-self:start}
.acct [role=status]:empty{display:none}
.acct>#acct-msg{font-size:1.19rem;color:var(--fg);margin-bottom:2rem}
.me{display:flex;align-items:center;gap:1rem;margin-bottom:2rem}
.mine{margin-bottom:4rem}
.mine>li{border-top:1px solid var(--edge);padding:1.5rem 0 2rem}
.mine>li.note{padding:1.5rem 0}
.mine h3{font-size:1.75rem;font-weight:400;line-height:1.1;letter-spacing:-.02em;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .9rem}
.mine h3+.note{margin-top:.35rem;overflow-wrap:anywhere}
.step{display:grid;grid-template-columns:10rem minmax(0,1fr);border-top:1px solid var(--line);margin-top:1.25rem;padding-top:1.25rem}
.step>.label{color:var(--fg-3)}
.step p{max-width:38rem;color:var(--fg-2)}
.step .cmd{border-top:0;padding-bottom:0}
.step .more{align-items:center;margin-top:1rem}
.step .more img{border-radius:var(--r)}
.step .more+.note{margin-top:.75rem}
.mine .say{margin-top:1rem;color:var(--fg)}
.tac:disabled{opacity:.4;cursor:default;pointer-events:none}
.actions{display:flex;justify-content:flex-end;gap:.5rem}
/* a slip for the rare thing that has to be said out loud */
#say{position:fixed;left:50%;bottom:1.5rem;z-index:9;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 2rem);padding:.7rem 1rem;background:var(--fg);color:var(--bg);border-radius:var(--r)}

/* ---- Beyond the first page: guides and research. The same fields, keys and ledger; nothing new is invented here. ---- */

/* a link in running text is underlined; a link that stands alone lights up under the hand */
.u{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.22em}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* An inner page opens like the hero without the statue: the same field, a headline and a lead in their own column,
   and the glow in the other. The glow starts under the nav and ends where the head ends (placed by site.js), so no line runs behind a key or a row. */
.top{padding:clamp(7.5rem,13vw,10.5rem) var(--gut) 0}
.top>*{max-width:39rem}
.top h1{font-size:clamp(2.25rem,4.8vw,4.25rem);line-height:.98;letter-spacing:-.04em}
.top .lead{margin-top:1.5rem}
/* the page's title has the headline size here, so every headline under it steps down one: title, headline, row */
.page h2{font-size:clamp(1.75rem,3.2vw,2.75rem);line-height:1.02;letter-spacing:-.035em;max-width:22ch}
.top+section{padding-top:clamp(3rem,6vw,5rem)}
.dusk>.lsg[data-glow]{top:5.25rem;width:min(48rem,calc(100% - var(--gut) - 41rem))}
/* what a guide is for, set as a short spec: a label, then the statement */
.facts{display:grid;grid-template-columns:10rem minmax(0,1fr);margin-top:clamp(2.5rem,5vw,3.5rem)}
.facts>*{border-top:1px solid var(--line);padding-block:1.25rem}
.facts dt{padding-right:1.25rem;color:var(--fg-3)}
.facts dd{font-size:1.19rem;line-height:1.4}

/* Each ledger says what its columns are. Guides: number, guide, what it is for, who is on its shortlist. A shortlist: number, logo, product, kind.
   Query clusters: number, cluster, how many, where they point. */
.l-guides{--cols:1.75rem minmax(0,1fr) 11rem 9.5rem;--lead:3}
.l-short{--cols:1.75rem 2.5rem minmax(0,1fr) 11rem}
.l-query{--cols:1.75rem minmax(0,1fr) 6rem 13rem;--lead:3}
.head+[class^="l-"]>.cols{margin-top:0}
.fam+.fam{margin-top:clamp(4rem,8vw,6rem)}
.stack{display:flex;align-items:center;gap:.25rem}
.stack .note{margin-left:.25rem;color:var(--fg-3)}
/* who publishes a connector: the vendor is the quiet case, anyone else is said in full ink */
.cat.hi{color:var(--fg)}

/* An open row: where the product is documented, typed out, with a key that goes there. It sits under the product's name. */
.refs{padding-left:7.5rem}
.l-query .refs{padding-left:3.75rem}
.ref{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"k c" "code c" "w w";row-gap:.25rem}
.ref>.tok{grid-area:k}
.ref code{grid-area:code}
.ref .tac{grid-area:c}
.ref>.warn{grid-area:w;grid-column:auto}
.refs .meta{padding-left:0}
/* a query and what it found: the query is typed, the finds are plain links */
.qrow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,19rem);gap:.25rem 2rem;align-items:baseline;padding:.85rem 0;border-top:1px solid var(--line)}
.qrow:first-child{border-top:0}
.qrow .tok{display:block;margin-bottom:.25rem;color:var(--teal);font-size:.75rem}

/* downloads: a key each, and under it what is in the file */
.dl{display:flex;flex-wrap:wrap;gap:1.5rem 2.5rem;margin-top:2.5rem}
.dl li{display:grid;justify-items:start;gap:.5rem}
.tac>i{color:var(--fg-3)}
.tac.go>i{color:inherit;opacity:.62}   /* on a filled key the note takes the key's own ink */
@media (hover:hover){.tac:hover>i{color:inherit;opacity:.6}}

/* the three families as three columns of plain links, and the two keys that lead further */
.dusk .qs>li{border-top-color:var(--edge)}
.qs p+.label{margin-top:1.25rem}
.qs .label+p{margin-top:.25rem}
.qs .tac{margin-top:1.5rem}
.links{margin-top:1.25rem}
.links li+li{border-top:1px solid var(--line)}
.links a{display:block;padding:.65rem 0;color:var(--fg-2);transition:color .15s}
.more{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:2rem}
.qs+.more{margin-top:.5rem}   /* the columns above already end in their own space */
.foot-links{display:flex;flex-wrap:wrap;gap:.25rem 2rem;margin-bottom:1.25rem}
.foot-links a{padding:.25rem 0;color:var(--fg-2);transition:color .15s}
@media (hover:hover){.links a:hover,.foot-links a:hover{color:var(--fg)}}

/* the menu: the section links as a sheet, where the nav has no room for them */
#menu{width:min(92vw,24rem);margin-top:4.75rem}
#menu nav a{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;padding:.9rem 1.25rem;border-bottom:1px solid var(--line);font-size:1.5rem;font-weight:500;line-height:1.2;letter-spacing:-.025em}
#menu nav .note{font-weight:400;letter-spacing:0}
#menu nav a:active,#menu nav a:focus-visible{background:var(--fg);color:var(--bg);outline:0}
#menu nav a:active .note,#menu nav a:focus-visible .note{color:inherit;opacity:.62}
#menu p{display:flex;align-items:center;justify-content:space-between;padding:.6rem .65rem .6rem .65rem}

/* small laptops and tablets in landscape: give the headline its own column */
@media (min-width:820.01px) and (max-width:1200px){
  .hero-copy{max-width:54%}
  #bust,.lsg{width:50%}
  .stats{max-width:44vw}
  #index{--cols:1.75rem 2.5rem minmax(0,1fr) 11rem 4.25rem}
  #index .cat,#cols span:nth-child(3){display:none}
  .top>*{max-width:min(39rem,58%)}
  .dusk>.lsg[data-glow]{width:38%}
}
/* phones and tablets in portrait: the bust becomes its own block above the copy, at full strength */
@media (max-width:820px){
  .nav{grid-template-columns:1fr auto}
  /* the section links and the sound switch move into the menu */
  .nav nav,.nav [data-sound],.theme-k span{display:none}
  .menu-k{display:inline-flex}
  .hero{min-height:0;justify-content:flex-start}
  /* never under 23rem: a short or sideways screen would otherwise fade the statue out through its face */
  #bust{position:relative!important;display:block;width:100%;height:clamp(23rem,56svh,38rem)}
  .lsg{width:44vw;height:30svh}
  .hero-copy{padding-top:1.25rem}
  .search{width:100%}
  .stats{max-width:none}
  .head{margin-bottom:2rem}
  /* each line of filters is one line here too: it runs off the right edge and is pulled sideways, edge to edge like the rows */
  .pick{display:block}
  .pick>.label{display:none}
  .chips{position:relative;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:-.375rem calc(-1*var(--pad));padding:.375rem var(--pad)}   /* the padding leaves room for a key's focus ring, which a scrolling line would cut */
  .chips::-webkit-scrollbar{display:none}
  .chips .tac{flex:none}
  .found{margin-top:.75rem}
  .cols,.num{display:none}
  /* the ranked list keeps its numbers: each sits under its logo, in the margin */
  #list .num{display:block;position:absolute;left:var(--pad);top:3.9rem;width:2.5rem;margin:0;padding:.2em 0;text-align:center}
  .who strong{font-size:1.25rem}
  /* the rows run to both edges of the screen, as a list does on a phone; what is in them keeps to the page's one left edge */
  .list{margin:1.5rem calc(-1*var(--pad)) 0;border-top:1px solid var(--edge)}
  .hint.keys{padding-inline:0}
  /* the row: logo in the margin, name and blurb beside the vote key, then interfaces and category on one full-width line under it.
     The category drops to its own line when there is no room. */
  .sum{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem 1rem;min-height:0;padding:1rem var(--pad) 1rem calc(var(--pad) + 3.5rem)}
  .sum>.logo{position:absolute;left:var(--pad);top:1rem}
  .who{flex:1 1 100%}
  #list .who{padding-right:4.25rem}   /* room for the vote key */
  .ifaces{display:flex;gap:2ch}
  .no{display:none}
  .cat{font-size:.8125rem;white-space:nowrap}
  .vote{right:var(--pad);top:1rem}
  .panel{padding:.25rem var(--pad) 1rem}
  .cmd{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"k c" "code code";gap:.4rem .75rem}
  .cmd>.tok{grid-area:k}
  .cmd code{grid-area:code}
  .cmd .tac{grid-area:c}
  .cmd>.warn{grid-column:1/-1}
  .ifaces:empty{display:none}   /* nothing known about its interfaces: the category starts on the row's edge */
  .meta{padding-left:0}
  .actions .tac{flex:none}
  .actions .go{flex:1}
  /* inner pages: the head takes the full width and the glow stands down; a row with no logo starts on the page's edge */
  .top{padding-top:6.5rem}
  .top>*{max-width:none}
  .dusk>.lsg[data-glow]{display:none}
  .facts,.step{grid-template-columns:1fr}
  .step>.label{margin-bottom:.5rem}
  .facts dt{padding:1.25rem 0 0}
  .facts dd{border-top:0;padding-top:.5rem}
  .l-guides .sum,.l-query .sum{padding-left:var(--pad)}
  .refs,.l-query .refs{padding-left:var(--pad)}
  .ref{grid-template-areas:"k c" "code code" "w w"}
  .qrow{grid-template-columns:1fr}
}
@media (max-width:480px){
  .wide{display:none}
  .quick{display:grid;grid-template-columns:1fr 1fr}
  .quick .tac{justify-content:flex-start}
  .foot{flex-direction:column}
  .form{padding:1.5rem 1.25rem}
  #palette{margin-top:2vh;width:96vw}
}
/* the narrowest phones and fold covers: the mark stands in for the wordmark, so the nav never runs off the edge */
@media (max-width:340px){.brand{font-size:0}}
/* touch: targets big enough for a thumb, no keyboard hints */
@media (pointer:coarse){
  .tac,.brand,.form>label>input{min-height:2.75rem}
  .theme-k{min-width:2.75rem}
  .brand{min-width:2.75rem}
  .nav nav>a,.nav .drop summary{padding:.85rem .5rem}
  .sheet a{min-height:2.75rem;align-items:center}
  .vote{top:1.125rem}
  kbd,.hint{display:none}
  #q{padding-right:5.5rem}
  #q+.tac{display:inline-flex}
  #hits li{padding-block:.85rem}
  .links a,.foot-links a,.stats a,.eyebrow a{display:flex;align-items:center;min-height:2.75rem}
  .stats a,.eyebrow a{display:inline-flex;gap:.3em}
  .qrow .note a,.qs .label+p>a{padding-block:.75rem}   /* a link that is a destination, not prose: the finger gets the room without the line growing */
  .foot-links a{min-width:2.75rem}
  /* The grain is laid on here, not blended: a blended layer as tall as the list makes a phone stutter when it scrolls.
     --grain is a small noise tile the script draws once. */
  .grain::after,.paper::after{mix-blend-mode:normal;opacity:1;background:var(--grain) 0 0/64px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
