/* Geist, Unbounded and IBM Plex Mono (SIL Open Font License, fonts/OFL.txt), served from this site so no visit reaches another. */
@font-face { font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/geist-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/geist-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900; src: url(/fonts/unbounded-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/ibm-plex-mono-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* nock's look is the studio's (src/nock/pages/studio.html and studio.css), and so is its measure: one
   centred column as wide as the studio's, its type scale, a holographic field with grain behind, nock's
   pixel creatures floating in it; everything readable sits on frosted, near-opaque white. Headings in
   Unbounded, labels and code in IBM Plex Mono. */
:root {
  --foreground: #111116;
  --muted: #474756;
  --border: rgb(17 17 22 / .12);
  --input: rgb(17 17 22 / .28);
  --link: #4b2fd0;
  --ring: #111116;
  --ok: #136b3a;
  --ok-tint: #e1f3e8;
  --error: #ab1320;
  --info: #145a96;
  --selection-tint: rgb(17 17 22 / .06);
  --wash: linear-gradient(100deg, rgb(196 200 212 / .16), rgb(255 226 122 / .10) 35%, rgb(255 168 110 / .08) 65%, rgb(185 166 255 / .13));
  --code: #f1eefa;
  --terminal: #15131d;
  --terminal-foreground: #f1eefa;
  --terminal-muted: #a49fbb;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display: "Unbounded", var(--sans);
  --column: 60rem;
  --radius: 20px;

  --pink: #ff9ad5;
  --cyan: #8fe9ff;
  --yellow: #ffe27a;
  --lavender: #b9a6ff;
  --mint: #b8f5d0;
  --peach: #ffc4a3;
  --holo: linear-gradient(115deg, #ff9ad5 0%, #c3b2ff 22%, #8fe9ff 45%, #d9ffd0 62%, #fff2a0 78%, #ffb0d6 100%);
  --holo-conic: conic-gradient(from 210deg at 50% 50%, #ff9ad5, #c3b2ff, #8fe9ff, #d9ffd0, #fff2a0, #ffb0d6, #ff9ad5);
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  /* Grain for the field: dark specks and light ones, the rest transparent. */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='d'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .1  0 0 0 0 .05  0 0 0 0 .2  3 0 0 0 -1.75'/></filter><filter id='l'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='8' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  3 0 0 0 -1.7'/></filter><rect width='100%' height='100%' filter='url(%23d)'/><rect width='100%' height='100%' filter='url(%23l)'/></svg>");
  --glass: rgb(255 255 255 / .9);
  --paper: rgb(255 255 255 / .95);
  --lift: 0 6px 24px rgb(60 20 120 / .1);
  /* The offset shadow in two foil colours: what is chosen, and what to do. */
  --one: var(--cyan);
  --two: var(--pink);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { background: #e9e2ff; color: var(--foreground); }
body { margin: 0; font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--pink); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--foreground); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--foreground); color: #fff; }
button { font: inherit; }
button:not(:disabled), label[for] { cursor: pointer; }
code { font: 500 .86em var(--mono); background: var(--code); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.frame {
  max-width: calc(var(--column) + 32px); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.label { font: 500 12px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.stage { position: relative; z-index: 1; }

/* --- the field: foil gradients drifting slowly, grain over them, creatures and bubbles --------- */

.sprites { position: absolute; width: 0; height: 0; overflow: hidden; }
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.backdrop::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(36% 30% at 20% 25%, #ff9ad5 0%, transparent 70%),
    radial-gradient(30% 34% at 75% 20%, #8fe9ff 0%, transparent 70%),
    radial-gradient(34% 30% at 60% 70%, #fff2a0 0%, transparent 70%),
    radial-gradient(30% 30% at 25% 80%, #c3b2ff 0%, transparent 70%),
    radial-gradient(26% 26% at 90% 85%, #ffb0d6 0%, transparent 70%),
    var(--holo-conic);
  filter: saturate(1.15);
  animation: field 40s ease-in-out infinite alternate;
}
.backdrop::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: var(--grain) 0 0 / 200px 200px; opacity: .5;
}
.creature {
  position: absolute; z-index: 1; filter: drop-shadow(0 12px 18px var(--shadow));
  animation: float var(--period) ease-in-out var(--delay) infinite;
}
.creature.one   { --shadow: rgb(255 120 200 / .75); --period: 26s; --delay: -3s;  --turn: -12deg; --x: 18px;  --y: -22px; width: 220px; height: 160px; left: -40px; bottom: 6%; }
.creature.two   { --shadow: rgb(90 220 255 / .8);   --period: 21s; --delay: -9s;  --turn: 10deg;  --x: -16px; --y: 18px;  width: 120px; height: 88px; right: 4%; top: 16%; }
.creature.three { --shadow: rgb(255 214 60 / .85);  --period: 17s; --delay: -5s;  --turn: -6deg;  --x: 12px;  --y: 14px;  width: 54px; height: 40px; left: 6%; top: 22%; }
.creature.four  { --shadow: rgb(160 130 255 / .8);  --period: 23s; --delay: -14s; --turn: 8deg;   --x: -14px; --y: -16px; width: 70px; height: 52px; right: 14%; bottom: 10%; }
.creature.five  { --shadow: rgb(120 240 190 / .8);  --period: 19s; --delay: -7s;  --turn: 14deg;  --x: 10px;  --y: -12px; width: 40px; height: 30px; left: 22%; bottom: 30%; }
.creature.six   { --shadow: rgb(255 160 120 / .8);  --period: 29s; --delay: -18s; --turn: -16deg; --x: -10px; --y: 10px;  width: 46px; height: 34px; right: 26%; top: 4%; }
.bubble {
  position: absolute; border-radius: 50%; width: 22px; height: 22px; --turn: 0deg; --x: 8px; --y: -18px;
  background: radial-gradient(circle at 32% 28%, #fff 0 12%, rgb(255 255 255 / .2) 30%, transparent 60%), radial-gradient(circle, rgb(195 178 255 / .35), rgb(143 233 255 / .55) 70%, rgb(255 255 255 / .8) 72%, transparent 76%);
  animation: float 24s ease-in-out infinite;
}
.bubble.one { left: 14%; top: 12%; animation-delay: -4s; }
.bubble.two { right: 22%; top: 44%; width: 34px; height: 34px; animation-duration: 31s; }
.bubble.three { left: 9%; top: 46%; width: 14px; height: 14px; animation-delay: -11s; }
.bubble.four { right: 8%; bottom: 30%; width: 18px; height: 18px; animation-duration: 19s; }
.bubble.five { left: 30%; bottom: 6%; width: 28px; height: 28px; animation-delay: -16s; }

/* --- surfaces: the band's glass, the cards' near-opaque grainy white ---------------------------- */

.heading, .controls, .card, footer .foot {
  border-radius: var(--radius); border: 1px solid rgb(255 255 255 / .9);
  background: var(--noise), var(--paper); background-blend-mode: soft-light, normal;
  box-shadow: var(--lift);
}
.heading, .controls { background: var(--noise), var(--glass); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }

/* --- the band: the wordmark, and the menu beside it as the studio's --------------------------- */

.band .frame { padding-top: 24px; }
.heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 12px 12px 12px 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--foreground); text-decoration: none; font: 800 24px/1.1 var(--display); letter-spacing: -.03em; }
.wordmark:hover { text-decoration: none; }
.wordmark svg { width: 32px; height: 23px; flex: none; }
.menu { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgb(17 17 22 / .05); }
.menu a {
  display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid transparent;
  color: inherit; text-decoration: none; font: 600 14px/20px var(--sans);
  transition: box-shadow .18s ease, background-color .18s;
}
.menu a:not([aria-current]):hover { background: rgb(255 255 255 / .85); box-shadow: 0 8px 18px -6px rgb(130 225 190 / .55), 0 2px 6px -2px rgb(130 225 190 / .55); }

/* What is chosen or to be done: black, with the two-colour offset shadow. */
.menu a[aria-current="page"], .button.primary, .copy, .switch[aria-checked="true"] {
  background: #111116; color: #fff; border-color: #111116;
  box-shadow: 2px 2px 0 0 var(--one), -2px -2px 0 0 var(--two);
}
.menu a[aria-current="page"]:hover, .button.primary:hover {
  background: #23232b;
  box-shadow: 2px 2px 0 0 var(--one), -2px -2px 0 0 var(--two), 0 8px 20px -6px var(--one), 0 -6px 18px -8px var(--two);
}

main { display: block; padding-top: 16px; }

/* --- buttons and links onward ----------------------------------------------------------------- */

.button {
  display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--input);
  background: rgb(255 255 255 / .9); color: var(--foreground); text-decoration: none; font: 600 14px/20px var(--sans);
  transition: box-shadow .18s ease, border-color .18s, background-color .18s;
}
.button:not(.primary):hover { background: #fff; border-color: rgb(17 17 22 / .3); box-shadow: 0 8px 18px -6px rgb(255 184 150 / .6), 0 2px 6px -2px rgb(255 184 150 / .6); text-decoration: none; }
.more { width: fit-content; font: 600 14px/20px var(--sans); color: var(--foreground); text-decoration: underline; text-decoration-color: var(--lavender); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.more::after { content: " →"; }
.more:hover { text-decoration-color: var(--pink); }
.chip {
  display: inline-block; padding: 1px 8px; border-radius: 999px; border: 1px solid rgb(17 17 22 / .18);
  font: 500 11px/16px var(--mono); letter-spacing: .04em; color: var(--foreground); background: rgb(255 226 122 / .35); vertical-align: 1px;
}

/* --- the home page: a card for what nock is, one for each part, one for the community --------- */

.home { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.card { padding: 28px 32px; }
.home .card { display: grid; gap: 14px; justify-items: start; }
.home h1 { font: 800 32px/1.15 var(--display); letter-spacing: -.03em; }
.home h2 { font: 700 22px/1.25 var(--display); letter-spacing: -.025em; }
.home .card p { color: var(--muted); }
.home .hero p:first-of-type { color: var(--foreground); font-size: 16px; }
.home .hero strong { color: var(--foreground); font-weight: 650; }
#reflection { --one: var(--yellow); --two: var(--cyan); }
#review { --one: var(--lavender); --two: var(--pink); }
#evaluation { --one: var(--mint); --two: var(--lavender); }
.home .part { box-shadow: 3px 3px 0 0 var(--one), -3px -3px 0 0 var(--two), var(--lift); border: 1px solid rgb(17 17 22 / .14); }
.install {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 4px; padding: 8px 8px 8px 16px; border-radius: 14px;
  background: var(--terminal); color: var(--terminal-foreground);
}
.install code { background: none; padding: 0; font: 500 14px/1.5 var(--mono); color: inherit; min-width: 0; flex: 1; }
.install code::before { content: "$ "; color: var(--terminal-muted); }
.copy {
  padding: 6px 10px; border-radius: 8px; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  background: #fff; color: #111116; border: 1px solid #fff; --one: var(--yellow); --two: var(--lavender);
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- docs: the tabs and the tab's pages on one glass card, as the studio's controls ----------- */

.docs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.controls { padding: 0 18px 14px; display: grid; gap: 12px; }
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs a {
  padding: 14px 2px 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
  font: 500 12px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.tabs a:hover { color: var(--foreground); border-bottom-color: var(--lavender); }
.tabs a[aria-current="page"] { color: var(--foreground); border-bottom-color: #111116; }
.pages { display: flex; flex-wrap: wrap; gap: 6px; }
.pages a {
  padding: 3px 11px; border-radius: 999px; border: 1px solid rgb(17 17 22 / .18); background: rgb(255 255 255 / .9);
  font: 500 13px/20px var(--sans); color: var(--foreground); text-decoration: none; transition: background-color .15s, border-color .15s;
}
.pages a:hover { background: rgb(185 166 255 / .12); border-color: rgb(17 17 22 / .3); }
.pages a[aria-current="page"] { background: rgb(185 166 255 / .26); border-color: rgb(75 47 208 / .55); color: #2a1d78; }

.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.entries li { display: flex; gap: 14px; }
.entries .number { font: 600 14px/24px var(--mono); color: var(--muted); }
.entries a { font: 600 16px/24px var(--sans); color: var(--foreground); text-decoration-color: var(--lavender); text-decoration-thickness: 2px; }
.entries p { color: var(--muted); }

/* --- an article: a README section, Getting started, a legal page ----------------------------- */

.article { overflow-wrap: break-word; }
.article h1 { font: 800 32px/1.15 var(--display); letter-spacing: -.03em; margin: 0 0 20px; scroll-margin-top: 16px; }
.article h2 { margin: 40px 0 12px; scroll-margin-top: 16px; font: 700 22px/1.25 var(--display); letter-spacing: -.025em; padding-top: 18px; position: relative; }
.article h2::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 4px; border-radius: 2px; background: var(--holo); }
.article h3 { margin: 28px 0 8px; scroll-margin-top: 16px; font: 600 16px/24px var(--sans); }
.article h4 { margin: 22px 0 6px; font: 600 12px/18px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.article p, .article ul, .article ol, .article pre, .article blockquote, .article .table, .article .code { margin: 0 0 14px; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin: 4px 0; }
.article li::marker { color: #7a64e8; }
.article li > p { margin: 0; }
.article li > ul, .article li > ol { margin: 4px 0 0; }
.article strong { font-weight: 650; }
.article pre {
  background: #111116; color: #ecebf3; border-radius: 14px; padding: 14px 18px; overflow-x: auto;
  font: 12.5px/1.7 var(--mono); tab-size: 4;
}
.article pre code { background: none; padding: 0; font: inherit; color: inherit; overflow-wrap: normal; }
.article .code { position: relative; }
.article .code pre { margin: 0; padding-right: 64px; }
.code .copy-code {
  position: absolute; top: 8px; right: 8px; padding: 6px 9px; border-radius: 8px;
  font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background-color: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .22);
}
.code .copy-code:hover { color: #111116; background-color: #fff; }
.code .copy-code:focus-visible { outline-color: #fff; }
.article blockquote {
  padding: 14px 18px; border-radius: 14px; background: linear-gradient(115deg, rgb(255 154 213 / .16), rgb(143 233 255 / .18) 50%, rgb(255 242 160 / .2));
  border: 1px solid rgb(17 17 22 / .08);
}
.article blockquote > :last-child { margin-bottom: 0; }
.article .table { overflow-x: auto; border-radius: 14px; border: 1px solid var(--border); background: #fff; max-width: 100%; }
.article table { border-collapse: collapse; width: 100%; font-size: 13.5px; line-height: 1.55; }
.article th, .article td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.article th { background: var(--code); font: 600 11.5px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.article tr:last-child td { border-bottom: 0; }

/* Its own table of contents, under its title. */
.contents { display: grid; gap: 2px; margin: 0 0 24px; padding: 12px 16px; border-radius: 14px; background: var(--code); }
.contents .label { margin-bottom: 4px; }
.contents a { color: var(--foreground); text-decoration: none; font-size: 14px; line-height: 22px; width: fit-content; }
.contents a:hover { text-decoration: underline; text-decoration-color: var(--lavender); text-decoration-thickness: 2px; }
.contents .level-3 { padding-left: 16px; color: var(--muted); font-size: 13.5px; }

.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border); }
.pager a { display: grid; gap: 2px; color: var(--foreground); text-decoration: none; font: 600 15px/22px var(--sans); }
.pager a:hover { text-decoration: underline; text-decoration-color: var(--lavender); text-decoration-thickness: 2px; }
.pager .next { margin-left: auto; text-align: right; }
.pager .previous .label::before { content: "← "; }
.pager .next .label::after { content: " →"; }

/* --- legal pages: the tl;dr switch, the summary while it is on, the full text always ---------- */

/* The title, and the switch at the right end of its line, centred on the title's height. */
.legal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.legal-head h1 { margin: 0; }
.tldr-control { display: flex; flex: none; align-items: center; gap: 10px; font: 500 13px/20px var(--mono); color: var(--muted); }
.switch {
  position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; padding: 0;
  border: 1px solid var(--input); background: rgb(17 17 22 / .06); transition: background-color .15s;
}
.switch span {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .15s;
}
.switch[aria-checked="true"] span { transform: translateX(16px); }
.plain { margin: 0 0 8px; padding: 20px 22px 6px; border-radius: 16px; border: 2px solid #111116; background: #fff; box-shadow: 4px 4px 0 0 var(--cyan), -4px -4px 0 0 var(--pink); }
.plain .note { font-size: 13px; color: var(--muted); }
/* While the switch is on (the default), the summary alone; off, the full text alone; without script, both. */
[data-tldr="on"] .full, [data-tldr="off"] .plain { display: none; }
.plain p { font-size: 15.5px; margin-bottom: 14px; }

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

footer { padding-block: 32px; color: var(--muted); font: 500 12.5px/1.6 var(--mono); }
footer .foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 14px 20px; }
footer a { color: var(--foreground); }

@keyframes field { from { transform: translate(-4%, -3%) rotate(0deg); } to { transform: translate(4%, 3%) rotate(8deg); } }
/* Drifting in space: out along (x, y) and a little turned, back by another way. */
@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(var(--turn)); }
  30% { transform: translate(var(--x), var(--y)) rotate(calc(var(--turn) + 5deg)); }
  65% { transform: translate(calc(var(--x) * -.6), calc(var(--y) * .4)) rotate(calc(var(--turn) - 4deg)); }
}
@media (max-width: 560px) {
  :root { --radius: 18px; }
  .heading { padding: 10px 10px 10px 16px; }
  .wordmark { font-size: 20px; }
  .menu a { padding: 7px 11px; font-size: 13.5px; }
  .card { padding: 22px 18px; }
  .controls { padding: 0 14px 12px; }
  .home h1, .article h1, [data-docs-index] h1 { font-size: 24px; }
  .home h2 { font-size: 19px; }
  .article h2 { font-size: 19px; }
  .install code { font-size: 12.5px; }
  .creature.one { width: 140px; height: 100px; }
  .creature.two { width: 70px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* === the redesign: the menu's icons, the story pages, the docs in four groups ===== */

/* The menu: Work's pill toggles; the page you are on black on the pink-over-cyan pair. */
.menu { flex-wrap: wrap; }
.menu .icons { display: inline-flex; gap: 2px; margin-left: 4px; padding-left: 6px; border-left: 1px solid var(--border); }
.menu a.icon { padding: 8px; color: var(--muted); }
.menu a.icon:hover { color: var(--foreground); }
.menu a.icon svg { width: 18px; height: 18px; display: block; }
.menu a[aria-current="page"], .button.primary, .copy, .switch[aria-checked="true"] {
  box-shadow: 2px 2px 0 0 var(--cyan), -2px -2px 0 0 var(--pink);
}
.menu a[aria-current="page"]:hover, .button.primary:hover {
  box-shadow: 2px 2px 0 0 var(--cyan), -2px -2px 0 0 var(--pink), 0 8px 20px -6px var(--cyan), 0 -6px 18px -8px var(--pink);
}
.copy { --one: var(--cyan); --two: var(--pink); }

/* The footer: what it is, and the legal pages. */
footer .links { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; }

/* Engraved steel: a time, a count, a step's number, as the studio's. */
.steel, .step > .text > .label, .caption .count {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(180deg, #b0b2bb 0%, #8a8c96 38%, #6a6c76 52%, #9597a1 70%, #c2c4cc 100%);
  filter: drop-shadow(0 1px 0 rgb(255 255 255 / .95)) drop-shadow(0 -.5px 0 rgb(17 17 22 / .28));
  font: 600 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums;
}

/* --- the story pages: shared parts ------------------------------------------------------------- */

.story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.story > * { min-width: 0; }
.story .card { display: grid; gap: 14px; align-content: start; justify-items: start; }
.story .card > * { max-width: 100%; }
.story h1 { font: 800 clamp(28px, 4.4vw, 44px)/1.08 var(--display); letter-spacing: -.035em; }
.story h2 { font: 700 22px/1.25 var(--display); letter-spacing: -.025em; }
.story .lead { font-size: 17px; line-height: 1.55; color: var(--foreground); max-width: 62ch; }
.story .card p { color: var(--muted); max-width: 66ch; }
.story .card p.lead { color: var(--foreground); }
.story .note { font-size: 13px; color: var(--muted); }
.story .install { max-width: 34rem; }
.story .community { box-shadow: 3px 3px 0 0 var(--cyan), -3px -3px 0 0 var(--pink), var(--lift); border: 1px solid rgb(17 17 22 / .14); }
.story .community p code, .story .prose code { white-space: nowrap; }
.prose { display: grid; gap: 12px; }
.prose h2 { margin-top: 6px; }
.prose blockquote { margin: 4px 0; padding: 14px 18px; border-radius: 14px; background: var(--wash), #fff; border: 1px solid var(--border); }
.prose blockquote p { color: var(--foreground) !important; }
.principles { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; color: var(--muted); max-width: 66ch; }
.principles strong { color: var(--foreground); }
.principles li::marker { color: #7a64e8; font-weight: 700; }

/* A step of Getting started: its words, its picture. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; padding: 26px 28px; border-radius: var(--radius); border: 1px solid #fff; background: var(--noise), var(--paper); background-blend-mode: soft-light, normal; box-shadow: var(--lift); }
.step > * { min-width: 0; }
.step .text { display: grid; gap: 10px; }
.step h2 { font: 700 20px/1.25 var(--display); letter-spacing: -.02em; }
.step p { color: var(--muted); }
.shot { margin: 0; display: grid; gap: 8px; min-width: 0; }
.shot figcaption { font: 500 12px/1.5 var(--mono); color: var(--muted); }
.terminal {
  display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: #111116; color: #ecebf3;
  font: 12.5px/1.6 var(--mono); overflow-x: auto; box-shadow: 0 14px 30px -16px rgb(17 17 22 / .5);
}
.terminal span { white-space: pre; }
.terminal .prompt::before { content: "$ "; color: #8d8ba0; }
.terminal .prompt { color: #fff; }
.terminal .out { color: #b8b5c9; }
.terminal .out.quiet { color: #8d8ba0; font-style: italic; }
.terminal .out.ask { color: #fff; white-space: pre-wrap; }
.terminal .who { font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--pink); margin-top: 4px; }
.terminal .who:first-child { margin-top: 0; }
pre.code { margin: 0; padding: 14px 16px; border-radius: 14px; background: #111116; color: #ecebf3; font: 12.5px/1.65 var(--mono); overflow-x: auto; }
pre.code code { background: none; padding: 0; color: inherit; font: inherit; overflow-wrap: normal; }

/* nock's colours in code, as the studio's: comments grey, strings mint, numbers yellow, keywords pink, keys cyan. */
.t-comment { color: #8d8ba0; }
.t-string { color: #b8f3cf; }
.t-number, .t-attr { color: var(--yellow); }
.t-keyword { color: var(--pink); }
.t-key, .t-type { color: var(--cyan); }
.t-meta { color: #ffb0d6; }
.t-call { color: var(--lavender); }

/* --- the tabbed stage, the stepper ------------------------------------------------------------------ */

.hero-b { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
.hero-b .intro { padding: 36px; }
.hero-b .begin { padding: 28px; align-content: center; box-shadow: 3px 3px 0 0 var(--cyan), -3px -3px 0 0 var(--pink), var(--lift); border: 1px solid rgb(17 17 22 / .14); }
.hero-b .begin .install, .story-b .begin .install { width: 100%; }
.theatre { padding: 0 !important; gap: 0 !important; overflow: hidden; }
.tablist { display: flex; gap: 6px; padding: 14px 16px; width: 100%; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tablist [role="tab"] {
  flex: none; padding: 9px 18px; border-radius: 999px; border: 1px solid transparent; background: rgb(17 17 22 / .05);
  color: var(--foreground); font: 600 14px/20px var(--sans); transition: box-shadow .18s, background-color .18s;
}
.tablist [role="tab"][aria-selected="false"]:hover { background: rgb(255 255 255 / .9); box-shadow: 0 8px 18px -6px rgb(130 225 190 / .55), 0 2px 6px -2px rgb(130 225 190 / .55); }
.tablist [role="tab"][aria-selected="true"] { background: #111116; color: #fff; box-shadow: 2px 2px 0 0 var(--cyan), -2px -2px 0 0 var(--pink); }
.theatre-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); width: 100%; }
.theatre-body > * { min-width: 0; }
.theatre .panels { padding: 26px 24px; border-right: 1px solid var(--border); display: grid; align-content: start; }
.theatre .panel { display: grid; gap: 12px; justify-items: start; }
.theatre .panel p { color: var(--muted); }
.theatre .demo { padding: 18px; background: var(--wash); }
.story-b .community.wide { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; justify-items: stretch; align-items: start; }
.story-b .community.wide > div { display: grid; gap: 12px; justify-items: start; }
.story-b .logika.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; justify-items: stretch; align-items: center; }
.story-b .logika.wide > div { display: grid; gap: 12px; justify-items: start; }
.story-b .logika .art { display: block; border-radius: 14px; overflow: hidden; border: 1px solid rgb(17 17 22 / .14); box-shadow: 3px 3px 0 0 var(--peach), -3px -3px 0 0 var(--cyan); }
.story-b .logika .art img { display: block; width: 100%; height: auto; }
.story-b .wide-intro { padding: 32px 36px; }
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 16px; align-items: start; }
.with-aside > * { min-width: 0; }
.with-aside .prose { padding: 32px 36px; }
.story-b .begin.sticky { position: sticky; top: 16px; padding: 22px; box-shadow: 3px 3px 0 0 var(--cyan), -3px -3px 0 0 var(--pink), var(--lift); border: 1px solid rgb(17 17 22 / .14); }
.story-b .begin.sticky .actions { flex-direction: column; align-items: stretch; width: 100%; }
.story-b .begin.sticky .button { justify-content: center; }
.stepper-card { padding: 0 !important; gap: 0 !important; overflow: hidden; }
.stepper-card .rail { display: flex; gap: 6px; padding: 14px 16px; width: 100%; border-bottom: 1px solid var(--border); overflow-x: auto; }
.stepper-card .rail:empty { display: none; }
.stepper-card .rail button {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid transparent;
  background: rgb(17 17 22 / .05); color: var(--foreground); font: 600 13px/18px var(--sans);
}
.stepper-card .rail button span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; font: 700 12px/1 var(--mono); }
.stepper-card .rail button em { font-style: normal; max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper-card .rail button.done span { background: conic-gradient(from 0deg, var(--cyan), var(--pink), var(--lavender), var(--cyan)); }
.stepper-card .rail button[aria-selected="true"] { background: #111116; color: #fff; box-shadow: 2px 2px 0 0 var(--cyan), -2px -2px 0 0 var(--pink); }
.stepper-card .rail button[aria-selected="true"] span { color: #111116; }
.stepper-card .rail button[aria-selected="false"]:hover { background: rgb(255 255 255 / .9); box-shadow: 0 8px 18px -6px rgb(130 225 190 / .55); }
.stepper-card .steps { width: 100%; padding: 8px; }
.stepper-card .step { box-shadow: none; border: 0; background: none; }
.stepper-pager { display: none; }
.stepping ~ .stepper-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 14px 18px; border-top: 1px solid var(--border); }
.stepper-pager .button:disabled { opacity: .4; cursor: default; }

/* --- the docs: four groups, a page each, what the agent reads folded under ------------------- */

.docs-head { display: grid; gap: 10px; }
.docs-head h1 { font: 800 32px/1.15 var(--display); letter-spacing: -.03em; }
.docs-head p { color: var(--muted); }
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.group { display: grid; gap: 14px; align-content: start; scroll-margin-top: 16px; }
.group h2 { font: 700 20px/1.25 var(--display); letter-spacing: -.02em; padding-top: 14px; position: relative; }
.group h2::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 4px; border-radius: 2px; background: var(--holo); }
.entries { counter-reset: entry; }
.entries li { display: grid; gap: 2px; padding: 8px 12px; margin: 0 -12px; border-radius: 12px; transition: background-color .15s; }
.entries li:hover { background: var(--wash); }
.reads { margin: 32px 0 0; border-radius: 16px; border: 1px solid var(--border); background: #fff; }
.reads summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 18px; cursor: pointer; list-style: none; border-radius: 16px; }
.reads summary::-webkit-details-marker { display: none; }
.reads summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; }
.reads[open] summary::before { transform: rotate(45deg); }
.reads summary:hover { background: var(--wash); }
.reads summary .label { color: var(--foreground); }
.reads summary .names { display: flex; flex-wrap: wrap; gap: 4px; }
.reads summary .names code { font-size: 11.5px; }
.reads .body { padding: 4px 18px 8px; border-top: 1px solid var(--border); }
.reads .note { font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
.term { padding: 14px 0; border-bottom: 1px solid var(--border); }
.term:last-child { border-bottom: 0; }
.article .term h3, .article .term h4 { margin: 0 0 4px; padding: 0; font: 600 13px/20px var(--mono); text-transform: none; letter-spacing: 0; }
.article .term h3::before { display: none; }
.term h3 code, .term h4 code { background: #111116; color: #fff; font-size: 12px; }
.term .description { color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.term p, .term ul { font-size: 14px; }

/* --- phone width ------------------------------------------------------------------------------ */

@media (max-width: 860px) {
  .hero-b, .theatre-body, .with-aside, .story-b .community.wide, .story-b .logika.wide { grid-template-columns: minmax(0, 1fr); }
  .story-b .logika .art { order: -1; }
  .theatre .panels { border-right: 0; border-bottom: 1px solid var(--border); }
  .story-b .begin.sticky { position: static; }
  .groups { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .hero-b .intro, .hero-b .begin, .story-b .wide-intro, .with-aside .prose { padding: 22px 18px; }
  .story .lead { font-size: 16px; }
  .step { padding: 20px 18px; }
  .menu { width: 100%; justify-content: space-between; }
  .menu .icons { margin-left: auto; }
  .menu a { padding: 7px 10px; }
  .theatre .panels { padding: 20px 18px; }
  .theatre .demo { padding: 10px; }
}
@media (max-width: 560px) {
  .menu { flex-wrap: nowrap; gap: 0; padding: 3px; }
  .menu a { padding: 6px 9px; font-size: 13px; }
  .menu .icons { margin-left: 2px; padding-left: 2px; }
  .menu a.icon { padding: 6px 5px; }
  .menu a.icon svg { width: 16px; height: 16px; }
}
@media (max-width: 380px) { .menu a { padding: 6px 7px; font-size: 12.5px; } }
