@import "https://assets.elements.dev/assets/app/shared/styles/page.750fcd9c6a1d0f3c.css";
@import "https://assets.elements.dev/assets/app/shared/styles/post-body.65184beb510d5949.css";

/* The home page as of 2026-11-30: the build server, the app framework and
   Postgres, each named with one exhibit. One colour rule: orange marks the
   build server and nothing else. The page before this one is style.css, which
   the campaign page still imports. */

.bs-page {
  --bs-orange: var(--brand);
  --bs-shot-bg: #ffffff;
  --bs-bg: #ffffff;
  --bs-grid: rgba(11, 11, 12, 0.035);
  --bs-ink: #0B0B0C;
  --bs-ink-2: #2e2e30;
  --bs-mute: #55524b;
  --bs-rule: #dcd9d0;
  --bs-bone: #F2EFE6;
  --bs-block: #0B0B0C;
  --bs-block-ink: #F2EFE6;
  --bs-block-mute: #a8a59c;
  --bs-block-rule: #3a3a3c;
  --bs-block-edge: #0B0B0C;
  --bs-panel: #ffffff;
  /* The terminal's own colours, from elements/internal/tui/theme.go. */
  --bs-tui-label: #666666;
  --bs-tui-ok: #22863A;
  --bs-tui-quiet: #959DA5;
  --bs-tui-error: #D32F2F;
  --bs-tui-path: #0366D6;


  color: var(--bs-ink);
  background: var(--bg);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bs-page {
    --bs-bg: #0B0B0C;
    --bs-shot-bg: #1a1a19;
    --bs-grid: rgba(255, 255, 255, 0.03);
    --bs-ink: #F2EFE6;
    --bs-ink-2: #cfccc3;
    --bs-mute: #9a978e;
    --bs-rule: #2e2e30;
    --bs-bone: #19191b;
    --bs-block: #131314;
    --bs-block-edge: #3a3a3c;
    --bs-panel: transparent;
    --bs-tui-label: #565656;
    --bs-tui-ok: #39D353;
    --bs-tui-quiet: #6A737D;
    --bs-tui-error: #FF6B6B;
    --bs-tui-path: #79AAFF;
  }
}
:root[data-theme="dark"] .bs-page {
  --bs-bg: #0B0B0C;
  --bs-shot-bg: #1a1a19;
  --bs-grid: rgba(255, 255, 255, 0.03);
  --bs-ink: #F2EFE6;
  --bs-ink-2: #cfccc3;
  --bs-mute: #9a978e;
  --bs-rule: #2e2e30;
  --bs-bone: #19191b;
  --bs-block: #131314;
  --bs-block-edge: #3a3a3c;
  --bs-panel: transparent;
  --bs-tui-label: #565656;
  --bs-tui-ok: #39D353;
  --bs-tui-quiet: #6A737D;
    --bs-tui-error: #FF6B6B;
    --bs-tui-path: #79AAFF;
}

.bs-wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* The hero is one band: a slightly tinted background with a faint ruled grid,
   closed by a hairline. The detail sections under it sit on the plain page. */
.bs-main { flex: 1; }

.bs-hero {
  position: relative;
  isolation: isolate;
}

.bs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--bs-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bs-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center top;
  background-color: color-mix(in srgb, var(--bs-ink) 3%, var(--bg));
  border-bottom: 1px solid var(--bs-rule);
}

.bs-hero > .bs-col {
  padding-top: var(--space-20, 5rem);
  padding-bottom: var(--space-14, 3.5rem);
}

.bs-hero .bs-h1 { margin-top: 0; }

.bs-hero + .bs-col > .bs-dia-wrap { margin-top: var(--space-12); }

.bs-col {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 var(--space-8) var(--space-16);
  box-sizing: border-box;
}

@media (max-width: 700px) {
  .bs-col {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

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

.bs-h1 {
  margin: var(--space-12) 0 0;
  font-size: clamp(3.1rem, 9vw, 5.25rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--bs-ink);
}

.bs-h1 em {
  font-style: normal;
  color: var(--bs-orange);
}

.bs-h1 span { display: block; }

.bs-who {
  margin: var(--space-4) 0 0;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bs-ink);
}

.bs-p {
  margin: var(--space-4) 0 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--bs-ink-2);
}

.bs-p code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-weight: 800;
  color: var(--bs-ink);
  background: none;
  padding: 0;
}

.bs-install { margin-top: var(--space-6); }

/* ---- the three blocks ---- */

/* The parts, one under another, with a single rule between them. No frame
   and no inner rules. */
.bs-blocks {
  margin-top: var(--space-10);
  border-bottom: 1px solid var(--bs-rule);
}

.bs-cap.bs-blocks-cap { margin: var(--space-10) 0 var(--space-3); }

.bs-block {
  border-top: 1px solid var(--bs-rule);
  padding: 26px 0 28px;
  color: var(--bs-ink);
}

.bs-block .bs-list { margin-top: 18px; }
.bs-block .bs-cap { margin-top: 20px; }
.bs-block .bs-cap + .bs-list { margin-top: 12px; }

.bs-block-name {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.bs-block-say {
  margin: 8px 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--bs-ink-2);
}

.bs-block-say code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-weight: 800;
  color: var(--bs-ink);
  background: none;
  padding: 0;
}

.bs-block-rule {
  height: 1px;
  margin: 16px 0 0;
  background: var(--bs-rule);
}

.bs-cap {
  margin: 16px 0 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8b8880;
}

.bs-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-ligatures: none;
}

.bs-block-rule + .bs-list { margin-top: 18px; }

/* ---- the sections ---- */

.bs-h2 {
  margin: var(--space-16) 0 0;
  font-size: clamp(2.1rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--bs-ink);
}

.bs-term,
.bs-code {
  margin: var(--space-5) 0 0;
  border-radius: 6px;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
  white-space: pre;
}

/* A terminal, as the terminal draws it: two rows, bold labels, the values in
   one column, a bold green Ok and a quiet elapsed time. */
.bs-term {
  border: 1px solid var(--bs-rule);
  background: var(--bs-panel);
  color: var(--bs-ink);
  font-size: 0.875rem;
  line-height: 1.5;
}

.bs-term .t-p { color: var(--bs-tui-quiet); }
.bs-term .t-l { font-weight: 800; color: var(--bs-tui-label); }
.bs-term .t-ok { font-weight: 800; color: var(--bs-tui-ok); }
.bs-term .t-q { color: var(--bs-tui-quiet); }

.bs-code {
  border: 2px solid var(--bs-block-edge);
  background: #0B0B0C;
  color: #F2EFE6;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.bs-code .c-k { color: #D9A8FF; }
.bs-code .c-y { color: #7CC4E8; }
.bs-code .c-g { color: #A8D48B; }
.bs-code .c-n { color: #F29CB7; }
.bs-code .c-p { color: #8f8c84; }
.bs-code .c-f { font-weight: 800; }
/* The build tag is a comment, and is coloured as one. */
.bs-code .c-bt { color: #8b949e; }

.bs-file {
  margin: var(--space-5) 0 calc(var(--space-5) * -1 + 6px);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--bs-mute);
  overflow-wrap: anywhere;
}

.bs-guide {
  margin: var(--space-4) 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--bs-ink);
}

.bs-guide a {
  color: var(--link);
  text-decoration: none;
}

.bs-guide a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- the architecture picture ---- */

.bs-dia-wrap { margin-top: var(--space-12); }

.bs-dia {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Lines: one weight for boxes and connectors, a lighter one for the rules and
   sketched details inside a box. */
.bs-dia .d-box,
.bs-dia .d-hub {
  fill: var(--bg);
  stroke: var(--bs-ink);
  stroke-width: 1.2;
}

.bs-dia .d-hub { stroke-width: 1.8; }

.bs-dia .d-wire {
  fill: none;
  stroke: var(--bs-ink);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.bs-dia .d-rule,
.bs-dia .d-track,
.bs-dia .d-chip {
  fill: none;
  stroke: var(--bs-rule);
  stroke-width: 1;
}

.bs-dia .d-chip { fill: var(--bg); }

.bs-dia .d-sketch {
  fill: none;
  stroke: var(--bs-rule);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.bs-dia .d-icon {
  fill: none;
  stroke: var(--bs-ink);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bs-dia .d-chev {
  fill: none;
  stroke: var(--bs-mute);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bs-dia .d-ink { fill: var(--bs-ink); }

.bs-dia .d-gear {
  fill: var(--bg);
  stroke: var(--bs-ink);
  stroke-width: 3.4;
}

/* Type: one sans face. A box's name, a label, a caption. Monospace is for
   the terminal's commands only. */
.bs-dia text {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  fill: var(--bs-ink);
}

.bs-dia .d-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.bs-dia .d-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bs-dia .d-step { font-size: 11.5px; font-weight: 600; }
.bs-dia .d-small { font-size: 11px; font-weight: 500; }
.bs-dia .d-label { font-size: 12px; font-weight: 600; }

.bs-dia .d-mute {
  font-size: 11px;
  font-weight: 400;
  fill: var(--bs-mute);
}

.bs-dia .d-cmd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  font-variant-ligatures: none;
}

.bs-dia .d-dim { fill: var(--bs-mute); }

/* ---- facts under an exhibit: a name, then one sentence ---- */

.bs-facts {
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--bs-rule);
}

.bs-facts li {
  padding: 12px 0;
  border-top: 1px solid var(--bs-rule);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--bs-ink-2);
}

.bs-facts b {
  font-weight: 800;
  color: var(--bs-ink);
}

.bs-facts code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-weight: 800;
  color: var(--bs-ink);
  background: none;
  padding: 0;
}

.bs-list.is-numbered { counter-reset: phase; }

.bs-list.is-numbered li { counter-increment: phase; }

.bs-list.is-numbered li::before {
  content: counter(phase);
  display: inline-block;
  width: 1.4em;
  font-weight: 500;
  color: var(--bs-mute);
}

.bs-block-note {
  margin: 14px 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--bs-mute);
}

/* A real capture, in the shared screenshot frame. */


/* A code box from the site's fence renderer, with its file name bar. */
.bs-fence { margin-top: var(--space-5); }
.bs-fence pre {
  margin: 0;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
}

/* The picture is quiet: grey lines and soft text, so it sits under the hero
   as a reference for the reader who wants it, and does not compete. */
.bs-page {
  --bs-dia-line: #b9b6ad;
  --bs-dia-text: #3a3a3c;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bs-page {
    --bs-dia-line: #4a4a4d;
    --bs-dia-text: #c9c6bd;
  }
}
:root[data-theme="dark"] .bs-page {
  --bs-dia-line: #4a4a4d;
  --bs-dia-text: #c9c6bd;
}

.bs-dia .d-box,
.bs-dia .d-hub,
.bs-dia .d-wire,
.bs-dia .d-icon { stroke: var(--bs-dia-line); stroke-width: 1; }

.bs-dia .d-hub { stroke-width: 1.3; }
.bs-dia .d-gear { stroke: var(--bs-dia-line); }
.bs-dia .d-ink { fill: var(--bs-dia-line); }

.bs-dia text { fill: var(--bs-dia-text); font-weight: 400; }
.bs-dia .d-name { font-weight: 600; }
.bs-dia .d-title { font-weight: 700; }
.bs-dia .d-step,
.bs-dia .d-label { font-weight: 500; }
.bs-dia .d-mute,
.bs-dia .d-dim { fill: var(--bs-mute); }

.bs-dia-wrap {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}
