/* blink docs — the Space's frosted paper: one cobalt for blink, one lime for the instant.
   Tokens, chips and the one-pass figure are the Space's own (space/style.css).
   One palette: a dark system setting draws the same page. */

:root {
  --color-canvas: #f5f5f5;
  --color-paper: #ffffff;
  --color-surface-alt: #fafafa;
  --color-ink: #0a0a0a;
  --color-ink-soft: #171717;
  --color-mid-gray: #737373;
  --color-mid-gray-canvas: #666666;
  --color-hairline: #e5e5e5;
  --color-blink: #2447f5;
  --color-blink-hover: #1c38d0;
  --color-blink-deep: #15237a;
  --color-blink-light: #6a82f8;
  --color-blink-tint: #eef1fe;
  --color-blink-ink: #1c38d0;
  --color-flash: #d4f55c;
  --color-flash-ink: #0a0a0a;
  --color-ref: #6b6b6b;
  --color-other: #8c8c8c;

  --canvas: var(--color-canvas);
  --paper: var(--color-paper);
  --alt: var(--color-surface-alt);
  --ink: var(--color-ink);
  --ink-soft: var(--color-ink-soft);
  --mid: var(--color-mid-gray);
  --mid-c: var(--color-mid-gray-canvas);
  --line: var(--color-hairline);
  --line-strong: #d4d4d4;
  --track: #f5f5f5;
  --grid: #ededed;
  --blink: var(--color-blink);
  --blink-light: var(--color-blink-light);
  --blink-tint: var(--color-blink-tint);
  --blink-ink: var(--color-blink-ink);
  --flash: var(--color-flash);

  --font-geist: Geist, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-geist-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --text-caption: 12px;
  --text-body: 14px;
  --text-body-lg: 16px;
  --text-heading-sm: 24px;
  --text-heading: 30px;
  --text-display: 48px;

  --radius-cards: 24px;
  --radius-pill: 18px;
  --radius-nested: 10px;
  --radius-small: 6px;
  --shadow-subtle: 0 0 0 1px rgba(23, 23, 23, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --ring: 0 0 0 2px var(--color-paper), 0 0 0 4px var(--color-blink);
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);

  --gutter: clamp(16px, 4vw, 32px);
  --top-h: 56px;
  color-scheme: only light;
}

/* --- shell --------------------------------------------------------------------------- */

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

html {
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--top-h) + 16px);
}

body {
  margin: 0;
  /* a column, so a short page still puts the footer at the bottom of the window */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-geist);
  font-size: var(--text-body);
  line-height: 1.5;
  font-feature-settings: "ss01" on, "cv11" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--blink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blink-ink);
}

:focus-visible {
  outline: 2px solid var(--blink);
  outline-offset: 2px;
}

::selection {
  background: var(--blink-tint);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.skip:focus {
  top: 10px;
}

/* --- top bar: frosted over the canvas ----------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 245, 245, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.top-in {
  max-width: 1280px;
  height: var(--top-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.05em;
  line-height: 1;
}

.brand:hover {
  color: var(--ink);
}

/* the name, and after it one cobalt dot */
.word {
  position: relative;
  display: inline-block;
  padding-right: 0.28em;
}

.word em.dot {
  position: absolute;
  right: 0.02em;
  bottom: 0.25em;
  width: 0.19em;
  height: 0.19em;
  border-radius: 50%;
  background: var(--blink);
}

.top-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.top-links a {
  height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  color: var(--mid-c);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.top-links a:hover {
  background: rgba(10, 10, 10, 0.05);
  color: var(--ink);
}

/* where you are: the page on paper, like the Space's selected tab */
.top-links a[aria-current="page"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* --- buttons and chips ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--text-body);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--alt);
  border-color: var(--line-strong);
  color: var(--ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  font-size: var(--text-caption);
  font-weight: 500;
  line-height: 1.33;
}

.chip {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  background: var(--paper);
  color: var(--ink-soft);
  text-decoration: none;
}

/* which blink: the model tag, as the Space's masthead wears it */
.chip.key {
  background: var(--blink-tint);
  border-color: transparent;
  color: var(--blink-ink);
  font-family: var(--font-geist-mono);
  font-weight: 500;
  animation: blk-pop 0.4s var(--ease) both;
}

a.chip.key:hover {
  border-color: var(--blink);
}

/* the claim that makes it a blink: one pass, nothing generated */
.chip.flash {
  background: var(--flash);
  border-color: transparent;
  color: var(--color-flash-ink);
}

/* --- home ------------------------------------------------------------------------------ */

.home {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter) 24px;
}

.hero {
  padding: 56px 0 0;
}

.mast {
  margin: 0;
  font-weight: 600;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--ink);
}

/* the dot blinks once when the page opens */
.mast .word em.dot {
  transform-origin: 50% 50%;
  animation: blk-lid 0.42s ease-in-out 0.55s 1 both;
}

.lede {
  font-size: 18px;
  line-height: 1.56;
  color: var(--ink);
  max-width: 46ch;
  margin: 12px 0 0;
}

.lede code,
.card code {
  font-family: var(--font-geist-mono);
  font-size: 0.86em;
  padding: 1px 6px;
  border-radius: var(--radius-small);
  background: var(--canvas);
}

/* three ways in, each a card on paper */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  align-content: start;
  gap: 6px 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-cards);
  background: var(--paper);
  box-shadow: var(--shadow-subtle);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease;
  animation: blk-rise 0.42s var(--ease) both;
}

.card:nth-child(2) {
  animation-delay: 60ms;
}

.card:nth-child(3) {
  animation-delay: 120ms;
}

.card:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.card b {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card span {
  grid-column: 1 / -1;
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--mid-c);
}

.card em {
  grid-row: 1;
  grid-column: 2;
  font-style: normal;
  font-size: var(--text-caption);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-soft);
  background: var(--canvas);
  border-radius: var(--radius-pill);
  padding: 0 8px;
}

/* the Space's one-pass figure, kept small */
.pipe {
  margin-top: 36px;
}

.pipe-wide {
  max-width: 900px;
}

.pipe-narrow {
  display: none;
}

/* --- the Space's pipeline figure (results.pipeline_figure) ---------------------------- */

.blk-figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-subtle);
  padding: 20px;
  animation: blk-rise 0.45s var(--ease) both;
}

.blk-figure.blk-bare {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.blk-fig {
  display: block;
  overflow: visible;
  font-family: var(--font-geist);
}

.blk-ax {
  font-family: var(--font-geist);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  fill: var(--mid);
}

.blk-card {
  fill: var(--paper);
  stroke: var(--line);
  stroke-width: 1;
}

.blk-stage {
  animation: blk-rise 0.5s var(--ease) both;
}

.blk-stage-n {
  font-family: var(--font-geist);
  font-size: 12px;
  font-weight: 600;
  fill: var(--blink);
}

.blk-stage-t {
  font-family: var(--font-geist);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  fill: var(--ink);
}

.blk-stage-s {
  font-family: var(--font-geist);
  font-size: 12.5px;
  fill: var(--mid-c);
}

.blk-bare .blk-ax {
  fill: var(--mid-c);
}

.blk-flow {
  fill: none;
  stroke: var(--color-other);
  stroke-width: 1.5;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: blk-draw 0.5s ease-out both;
}

.blk-flow-head {
  fill: none;
  stroke: var(--color-other);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: blk-fade 0.35s ease-out both;
}

/* the same four stages as a list, where the figure would be too small to read */
.pipe-narrow ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pipe-narrow li {
  display: grid;
  align-content: start;
  gap: 2px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 12px 14px;
}

.pipe-narrow li .n {
  font-size: 12px;
  font-weight: 600;
  color: var(--blink);
  line-height: 18px;
}

.pipe-narrow li b {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pipe-narrow li span:not(.n) {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--mid-c);
}

.pipe-narrow p {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--mid-c);
}

/* the rest of the home page sits on the canvas, its headings set like the Space's eyebrows */
.home-prose.prose {
  max-width: none;
  margin-top: 40px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.home-prose.prose h2 {
  margin: 0 0 16px;
  font-size: var(--text-caption);
  font-weight: 500;
  line-height: 1.33;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mid-c);
}

.home-prose.prose h2 .anchor {
  display: none;
}

/* --- docs pages: one column on paper, the contents beside it -------------------------- */

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px var(--gutter) 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 208px;
  gap: 40px;
  align-items: start;
}

.page.solo {
  max-width: 884px;
  grid-template-columns: minmax(0, 1fr);
}

.doc {
  min-width: 0;
}

.prose {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-subtle);
  padding: 40px 48px 44px;
  min-width: 0;
}

.doc-source {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 12px 4px 0;
  font-size: 13px;
}

.doc-source a {
  color: var(--mid-c);
}

.doc-source a:hover {
  color: var(--ink);
}

.toc {
  position: sticky;
  top: calc(var(--top-h) + 32px);
  max-height: calc(100vh - var(--top-h) - 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.toc-title {
  margin: 4px 0 8px;
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mid-c);
}

.toc ul,
.tocm ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.toc li a,
.tocm li a {
  display: block;
  margin-left: -1px;
  padding: 4px 0 4px 12px;
  border-left: 2px solid transparent;
  color: var(--mid-c);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

.toc li.l3 a,
.tocm li.l3 a {
  padding-left: 24px;
  font-size: 12.5px;
}

.toc li a:hover,
.tocm li a:hover {
  color: var(--ink);
}

.toc li a[aria-current="location"] {
  color: var(--ink);
  border-left-color: var(--blink);
}

.tocm {
  display: none;
}

.tocm > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.tocm > summary::-webkit-details-marker {
  display: none;
}

.tocm nav {
  padding: 4px 0 12px;
}

/* --- prose ----------------------------------------------------------------------------- */

.prose > :first-child {
  margin-top: 0;
}

.prose h1 {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.prose h2 {
  margin: 44px 0 12px;
  font-size: var(--text-heading-sm);
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.prose h3 {
  margin: 32px 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.prose h4 {
  margin: 24px 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.prose :is(h2, h3, h4) .anchor {
  margin-left: 8px;
  color: var(--line-strong);
  font-weight: 500;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.prose :is(h2, h3, h4):hover .anchor {
  opacity: 1;
}

.prose :is(h2, h3, h4) .anchor:hover {
  color: var(--blink);
}

.prose p,
.prose li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.prose p {
  margin: 0 0 14px;
}

.prose :is(ul, ol) {
  margin: 0 0 14px;
  padding-left: 22px;
}

.prose li {
  margin: 4px 0;
}

.prose li > :is(ul, ol) {
  margin: 4px 0 0;
}

.prose li > p {
  margin: 0 0 6px;
}

.prose li::marker {
  color: var(--mid);
}

.prose strong {
  font-weight: 600;
  color: var(--ink);
}

.prose hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 32px 0;
}

.prose blockquote {
  margin: 0 0 14px;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--line-strong);
}

.prose blockquote p {
  color: var(--mid-c);
}

.prose :not(pre) > code {
  font-family: var(--font-geist-mono);
  font-size: 0.86em;
  padding: 1px 6px;
  border-radius: var(--radius-small);
  background: var(--canvas);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 8px 0 20px;
  border-radius: var(--radius-cards);
  border: 1px solid var(--line);
}

/* badges sit in a row, as on GitHub */
.prose p > a > img[src^="https://img.shields.io"] {
  display: inline-block;
  margin: 0 4px 0 0;
  border: 0;
  border-radius: 0;
  vertical-align: middle;
}

/* code: a hairline card with its language named and, with scripts on, a copy pill */
.code {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--alt);
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: 4px 6px 4px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.code-lang {
  font-family: var(--font-geist-mono);
  font-size: 11.5px;
  color: var(--mid);
}

.copy {
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-geist);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.copy:hover {
  background: var(--alt);
  border-color: var(--line-strong);
}

.copy.done {
  background: var(--flash);
  border-color: transparent;
  color: var(--color-flash-ink);
}

.code pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--font-geist-mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  tab-size: 4;
}

.code code {
  font-family: inherit;
}

/* one example in several languages: a tab each, set like the language name */
.code-tabs .tabs {
  display: flex;
  gap: 2px;
  margin-left: -10px;
}

.tab {
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--mid);
  font-family: var(--font-geist-mono);
  font-size: 11.5px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tab:hover {
  color: var(--ink-soft);
}

.tab[aria-selected="true"] {
  background: var(--canvas);
  color: var(--ink);
}

.tab:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.js .code-panel:not(.on) {
  display: none;
}

/* without scripts every panel shows, each under its language */
html:not(.js) .code-tabs > .code-head {
  display: none;
}

html:not(.js) .code-panel::before {
  content: attr(data-lang);
  display: block;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-geist-mono);
  font-size: 11.5px;
  color: var(--mid);
}

html:not(.js) .code-panel + .code-panel {
  border-top: 1px solid var(--line);
}

/* tables: the Space's hairline table */
.table-wrap {
  margin: 0 0 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.prose th,
.prose td {
  padding: 8px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.prose th {
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--mid);
  background: var(--alt);
  white-space: nowrap;
}

.prose td {
  color: var(--ink-soft);
}

/* code in a cell wraps only at a space or before a '/' (build.py marks those); a token never splits, and the table
   scrolls sideways instead */
.prose code.cell {
  overflow-wrap: normal;
  word-break: normal;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.prose code.cell > span {
  white-space: nowrap;
}

.prose tbody tr:last-child td {
  border-bottom: 0;
}

/* progressive disclosure: the Space's fold, a thin chevron that turns */
.prose details {
  margin: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.prose details > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.prose details > summary::-webkit-details-marker {
  display: none;
}

.prose details > summary::before,
.tocm > summary::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s var(--ease);
}

.prose details[open] > summary::before,
.tocm[open] > summary::before {
  transform: rotate(45deg);
}

.prose details > summary:hover {
  color: var(--ink);
}

.prose details[open] > summary {
  margin-bottom: 4px;
}


/* --- plain pages ------------------------------------------------------------------------ */

.plain {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px var(--gutter);
}

.plain h1 {
  margin: 0 0 20px;
  font-size: var(--text-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

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

body > .top + * {
  width: 100%;
  margin-bottom: 48px;
}

.foot {
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.foot-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px var(--gutter) 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
}

.foot-note {
  margin: 0;
  max-width: 72ch;
  font-size: var(--text-caption);
  line-height: 1.6;
  color: var(--mid-c);
}

.foot-links {
  margin: 0;
  display: flex;
  gap: 16px;
  font-size: var(--text-caption);
  line-height: 1.6;
}

.foot-links a {
  color: var(--mid-c);
}

.foot-links a:hover {
  color: var(--ink);
}

/* --- narrower screens ---------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
    max-width: 884px;
  }

  .toc {
    display: none;
  }

  .tocm {
    display: block;
    margin: 0 0 24px;
    padding: 4px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--alt);
  }
}

@media (max-width: 860px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .prose {
    padding: 28px 24px 32px;
  }
}

@media (max-width: 720px) {
  :root {
    --top-h: 52px;
  }

  .top-links a {
    padding: 0 9px;
  }

  .top-links a.wide {
    display: none;
  }

  .hero {
    padding-top: 36px;
  }

  .mast {
    font-size: 48px;
  }

  .lede {
    font-size: 17px;
  }

  .cards {
    margin-top: 28px;
  }

  .card {
    padding: 16px 18px;
  }

  .pipe-wide {
    display: none;
  }

  .pipe-narrow {
    display: block;
  }

  .page {
    padding-top: 16px;
  }

  .prose {
    padding: 22px 18px 26px;
    border-radius: 20px;
  }

  .prose h1 {
    font-size: 30px;
  }

  .prose h2 {
    font-size: 21px;
    margin-top: 36px;
  }

  .prose h3 {
    font-size: 17px;
  }

  .prose p,
  .prose li {
    font-size: 15px;
    line-height: 1.65;
  }

  .prose th,
  .prose td {
    padding: 7px 10px;
  }

  .foot-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 360px) {
  .top-links a {
    padding: 0 7px;
  }
}

/* --- keyframes (the Space's) ---------------------------------------------------------------- */

@keyframes blk-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* the blink: a lid closes over the dot and opens again, once */
@keyframes blk-lid {
  0%,
  100% {
    transform: scaleY(1);
  }
  45%,
  55% {
    transform: scaleY(0.1);
  }
}

@keyframes blk-pop {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes blk-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes blk-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* everything lands in its final state at once; nothing repeats */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
