/* antumbrahq.com
 *
 * Layout: an observer's notebook beside the instrument. Copy sits in a
 * narrow reading column; the live pieces (the eclipse, the session, the
 * recall bench) sit beside it or run full width on a raised panel.
 *
 * Color: the A1 Annulus palette. Night ground, Pearl ink, one Periwinkle
 * accent for the bead and for action; light theme on Mist with Ink. Dark is
 * the default look; the system setting picks, html[data-theme] overrides.
 * The three memory networks are told apart by shape (the phases of an
 * eclipse), never by extra hues. Semantic colors (live, stale, orphaned)
 * always travel with a label.
 *
 * Type: Cormorant for display (headlines only, 32px and up), Hanken Grotesk
 * for everything read, DM Mono for records, commands and terminals. One
 * 1.25 scale from 16px; 8-point spacing.
 */

@font-face {
  font-family: "Cormorant";
  src: url("/static/assets/fonts/cormorant-vf.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant";
  src: url("/static/assets/fonts/cormorant-italic-vf.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/static/assets/fonts/hanken-grotesk-vf.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("/static/assets/fonts/dm-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("/static/assets/fonts/dm-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Dark (default): Night, Pearl, Periwinkle */
  --ground: #12121b;
  --surface: #181824;
  --surface-2: #1f1f2d;
  --surface-3: #262636;
  --line: rgba(239, 231, 216, 0.09);
  --line-strong: rgba(239, 231, 216, 0.17);
  --text: #efe7d8;
  --text-2: rgba(239, 231, 216, 0.7);
  --text-3: rgba(239, 231, 216, 0.6);
  --accent: #8a84cc;
  --accent-hover: #9a95d6;
  --accent-text: #aba6e0;
  --accent-ink: #12121b;
  --accent-tint: rgba(138, 132, 204, 0.14);
  --accent-line: rgba(138, 132, 204, 0.45);
  --code-bg: #15151f;
  --ring: #efe7d8;
  --bead: #8a84cc;
  --live: #9cc3a6;
  --live-tint: rgba(156, 195, 166, 0.12);
  --stale: #d8b26e;
  --stale-tint: rgba(216, 178, 110, 0.12);
  --orphan: #e0a090;
  --orphan-tint: rgba(224, 160, 144, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.3);

  /* Type: 1.25 scale from 16px. Cormorant runs small on the body, so the
   * display steps sit one notch up the scale. */
  --fs-xs: 0.75rem;
  --fs-small: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: 1.1875rem;
  --fs-h3: 1.1875rem;
  --fs-h2: clamp(2.125rem, 1.6rem + 2.2vw, 3.0625rem);
  --fs-h1: clamp(2.875rem, 1.9rem + 4.4vw, 4.75rem);
  --font-display: "Cormorant", "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif;
  --font-ui: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;

  /* Space: 8-point */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;

  --radius-s: 6px;
  --radius-m: 12px;
  --wrap: 1160px;
  --gutter: 24px;
  --header-h: 68px;

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ground: #eeecf5;
    --surface: #f8f7fb;
    --surface-2: #ffffff;
    --surface-3: #f1eff7;
    --line: rgba(27, 26, 46, 0.1);
    --line-strong: rgba(27, 26, 46, 0.2);
    --text: #1b1a2e;
    --text-2: rgba(27, 26, 46, 0.74);
    --text-3: rgba(27, 26, 46, 0.64);
    --accent: #6a63b8;
    --accent-hover: #5c55a8;
    --accent-text: #554ea3;
    --accent-ink: #ffffff;
    --accent-tint: rgba(106, 99, 184, 0.1);
    --accent-line: rgba(106, 99, 184, 0.4);
    --code-bg: #e7e4f0;
    --ring: #1b1a2e;
    --bead: #6a63b8;
    --live: #2f6b45;
    --live-tint: rgba(47, 107, 69, 0.1);
    --stale: #85590c;
    --stale-tint: rgba(133, 89, 12, 0.1);
    --orphan: #9c4636;
    --orphan-tint: rgba(156, 70, 54, 0.1);
    --shadow: 0 1px 2px rgba(27, 26, 46, 0.06), 0 16px 40px rgba(27, 26, 46, 0.08);
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --ground: #eeecf5;
  --surface: #f8f7fb;
  --surface-2: #ffffff;
  --surface-3: #f1eff7;
  --line: rgba(27, 26, 46, 0.1);
  --line-strong: rgba(27, 26, 46, 0.2);
  --text: #1b1a2e;
  --text-2: rgba(27, 26, 46, 0.74);
  --text-3: rgba(27, 26, 46, 0.64);
  --accent: #6a63b8;
  --accent-hover: #5c55a8;
  --accent-text: #554ea3;
  --accent-ink: #ffffff;
  --accent-tint: rgba(106, 99, 184, 0.1);
  --accent-line: rgba(106, 99, 184, 0.4);
  --code-bg: #e7e4f0;
  --ring: #1b1a2e;
  --bead: #6a63b8;
  --live: #2f6b45;
  --live-tint: rgba(47, 107, 69, 0.1);
  --stale: #85590c;
  --stale-tint: rgba(133, 89, 12, 0.1);
  --orphan: #9c4636;
  --orphan-tint: rgba(156, 70, 54, 0.1);
  --shadow: 0 1px 2px rgba(27, 26, 46, 0.06), 0 16px 40px rgba(27, 26, 46, 0.08);
  color-scheme: light;
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
}

/* Base */

/* The hidden attribute wins over any display a component sets. */
[hidden] {
  display: none !important;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--s5);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.005em;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.02;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.08;
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--accent-text);
}

h3 {
  font-family: var(--font-ui);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

h4 {
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.4;
}

p,
ul,
ol,
dl,
figure,
pre {
  margin: 0;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

pre code {
  font-size: inherit;
}

:not(pre) > code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--accent-tint);
  color: var(--text);
  overflow-wrap: anywhere;
}

/* The gutter grows into the safe area where a phone held sideways has a
 * notch or rounded corners (the page is laid out under them, viewport-fit
 * cover). */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute;
  left: var(--s4);
  top: -48px;
  padding: var(--s2) var(--s4);
  background: var(--surface-2);
  color: var(--text);
  border-radius: var(--radius-s);
  z-index: 10;
}

.skip:focus {
  top: var(--s4);
}

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

/* Text roles */

.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.lede {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 60ch;
}

.muted {
  color: var(--text-2);
}

.fine {
  font-size: var(--fs-small);
  color: var(--text-3);
}

.prose {
  display: grid;
  gap: var(--s4);
  max-width: 66ch;
  color: var(--text-2);
}

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

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}

.header-row {
  display: flex;
  align-items: center;
  gap: var(--s5);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.brand .mark {
  width: 28px;
  height: 28px;
}

/* The mark and wordmark are symbols in the page's sprite, drawn through
 * <use>; the clones match plain class selectors and inherit the tokens. */
.mark-ring {
  fill: var(--ring);
}

.mark-bead {
  fill: var(--bead);
}

/* Sized on both axes: an auto width collapses to nothing in a flex row.
 * The ratio is the wordmark's (500.9 x 73.1). */
.wordmark {
  flex: none;
  height: 15px;
  width: 103px;
  fill: currentColor;
}

.header-menu {
  display: flex;
  align-items: center;
  gap: var(--s5);
}

.theme-row {
  display: flex;
  align-items: center;
}

/* Without JavaScript there is no switch, and no gap is kept for it. */
.theme-row:has(> .theme-switch[hidden]) {
  display: none;
}

.theme-label {
  display: none;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.menu-toggle .menu-close,
.is-open .menu-toggle .menu-open {
  display: none;
}

.is-open .menu-toggle .menu-close {
  display: inline;
}

.nav {
  display: flex;
  gap: var(--s5);
}

.nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9375rem;
  padding-block: var(--s2);
  border-bottom: 1px solid transparent;
  transition: color 150ms ease-out, border-color 150ms ease-out;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

.theme-switch {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}

.theme-switch button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: color 150ms ease-out, background-color 150ms ease-out;
}

.theme-switch button:hover {
  color: var(--text);
}

.theme-switch button[aria-pressed="true"] {
  color: var(--text);
  background: var(--accent-tint);
}

.theme-switch svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.theme-switch svg .fill {
  fill: currentColor;
  stroke: none;
}

/* A touch screen: every control in the header is at least 44 px tall. */
@media (pointer: coarse) {
  .brand {
    min-height: 44px;
  }
  .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 0;
  }
  .theme-switch button {
    width: 44px;
    height: 44px;
  }
  .theme-switch svg {
    width: 18px;
    height: 18px;
  }
}

/* The width matches the compact menu's in site.js. */
@media (max-width: 720px) {
  /* Without JavaScript the links stay in the header row, minus the first. */
  .site-header:not(.has-menu) .nav {
    gap: var(--s4);
  }
  .site-header:not(.has-menu) .nav a:first-child {
    display: none;
  }

  /* With it, the Menu button opens the nav and the theme switch as a
   * panel under the row, pushing the page down rather than covering it. */
  .has-menu .header-row {
    flex-wrap: wrap;
    height: auto;
    column-gap: var(--s4);
    row-gap: 0;
  }
  .has-menu .brand {
    min-height: var(--header-h);
  }
  .has-menu .menu-toggle {
    display: inline-grid;
  }
  .has-menu .header-menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: var(--s2);
    border-top: 1px solid var(--line);
  }
  .has-menu.is-open .header-menu {
    display: flex;
  }
  .has-menu .nav {
    flex-direction: column;
    gap: 0;
  }
  .has-menu .nav a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding-block: 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 1rem;
  }
  .has-menu .nav a[aria-current="page"] {
    color: var(--accent-text);
    border-bottom-color: var(--line);
  }
  .has-menu .theme-row {
    justify-content: space-between;
    min-height: 64px;
  }
  .has-menu .theme-label {
    display: block;
    color: var(--text-2);
    font-size: 0.9375rem;
  }
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 44px;
  padding: 0 var(--s5);
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-quiet {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

.button-quiet:hover {
  border-color: var(--accent-line);
  background: var(--accent-tint);
}

.button-small {
  min-height: 36px;
  padding: 0 var(--s4);
  font-size: var(--fs-small);
}

.button[disabled],
.button[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.button svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

@media (pointer: coarse) {
  .button-small {
    min-height: 44px;
  }
}

/* Sections */

.section {
  padding-block: var(--s9);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.band {
  background: var(--surface);
}

.section-head {
  display: grid;
  gap: var(--s4);
  max-width: 68ch;
  margin-bottom: var(--s7);
}

.section-head .eyebrow + h2 {
  margin-top: calc(var(--s1) * -1);
}

@media (max-width: 640px) {
  .section {
    padding-block: var(--s8);
  }
  .section-head {
    margin-bottom: var(--s6);
  }
}

/* Two columns: the reading column and the instrument beside it. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s8);
  align-items: start;
}

.split-even {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.split > .prose,
.split > .split-copy {
  position: sticky;
  top: var(--s6);
}

.split-copy {
  display: grid;
  gap: var(--s4);
}

@media (max-width: 960px) {
  .split,
  .split-even {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s6);
  }
  .split > .prose,
  .split > .split-copy {
    position: static;
  }
}

/* Page heads on the inner pages */

.page-head {
  padding-block: var(--s9) var(--s8);
  border-bottom: 1px solid var(--line);
}

.page-head-inner {
  display: grid;
  gap: var(--s5);
  max-width: 64ch;
}

.page-head .status {
  margin-top: var(--s2);
}

@media (max-width: 640px) {
  .page-head {
    padding-block: var(--s8) var(--s7);
  }
}

/* Hero */

.hero {
  padding-block: var(--s9) var(--s8);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s7);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: var(--s5);
}

.hero-copy h1 {
  max-width: 12ch;
}

.hero-copy .actions {
  margin-top: var(--s3);
}

.hero-figure {
  display: grid;
  gap: var(--s3);
  justify-items: center;
}

.eclipse {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  touch-action: pan-y;
}

.eclipse canvas,
.eclipse svg {
  width: 100%;
  height: 100%;
}

.hero-figure figcaption {
  max-width: 34ch;
  text-align: center;
  font-size: var(--fs-small);
  color: var(--text-3);
}

.status {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  font-size: var(--fs-small);
  color: var(--text-3);
}

.status span {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
}

.status span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-3);
  margin-right: var(--s2);
}

/* A wrapped line would start with a separator; on a phone, space alone. */
@media (max-width: 520px) {
  .status span + span::before {
    display: none;
  }
}

@media (max-width: 860px) {
  .hero {
    padding-block: var(--s8) var(--s7);
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Above the copy but small, so the headline is in the first screen. */
  .hero-figure {
    order: -1;
    justify-items: start;
  }
  .hero .eclipse {
    max-width: 168px;
  }
  .hero-figure figcaption {
    display: none;
  }
}

/* Instrument panels: the raised surfaces that hold a live demo. */

.instrument {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  min-width: 0;
}

.band .instrument {
  background: var(--ground);
}

.instrument-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line);
  min-height: 52px;
}

.instrument-title {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-2);
}

.instrument-title .dots {
  display: inline-flex;
  gap: 6px;
}

.instrument-title .dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

.instrument-body {
  padding: var(--s5);
}

.instrument-foot {
  padding: var(--s3) var(--s5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--text-3);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.control {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 32px;
  padding: 0 var(--s3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 500;
  cursor: pointer;
  transition: color 150ms ease-out, border-color 150ms ease-out, background-color 150ms ease-out;
}

.control:hover {
  color: var(--text);
  border-color: var(--accent-line);
}

.control[aria-pressed="true"] {
  color: var(--text);
  background: var(--accent-tint);
  border-color: var(--accent-line);
}

.control[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.control svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

@media (pointer: coarse) {
  .control {
    min-height: 44px;
  }
}

/* Network glyphs: the phases of an eclipse. World (facts) is the full
 * disc, bank (experiences) the ring, opinion (judgments) the half. */

.net {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-2);
  white-space: nowrap;
}

.net::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-text);
}

.net-world::before {
  background: var(--accent-text);
}

.net-opinion::before {
  background: linear-gradient(90deg, var(--accent-text) 50%, transparent 50%);
}

/* Chips: anchors and verdicts. Semantic color always with a word. */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-2);
  white-space: nowrap;
}

.chip-live {
  color: var(--live);
  border-color: transparent;
  background: var(--live-tint);
}

.chip-stale {
  color: var(--stale);
  border-color: transparent;
  background: var(--stale-tint);
}

.chip-orphan {
  color: var(--orphan);
  border-color: transparent;
  background: var(--orphan-tint);
}

.chip-accent {
  color: var(--accent-text);
  border-color: transparent;
  background: var(--accent-tint);
}

.chip-live::before,
.chip-stale::before,
.chip-orphan::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Memory records */

.record {
  display: grid;
  gap: var(--s2);
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface-2);
}

.record-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
}

.record-text {
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s4);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* The three networks, side by side. */

.networks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
  list-style: none;
  padding: 0;
}

.network {
  display: grid;
  gap: var(--s3);
  align-content: start;
}

.network h3 {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
}

.network h3 .net {
  font-weight: 400;
}

.network p {
  color: var(--text-2);
}

.network .record {
  margin-top: var(--s2);
}

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

/* Terminal: the replayed session. */

.term {
  background: var(--code-bg);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-2);
  padding: var(--s5);
  min-height: 460px;
  overflow-x: auto;
}

.term-line {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 1.7em;
}

.term-line[data-hidden],
.term .ghost {
  visibility: hidden;
}

.term .t-prompt {
  color: var(--text);
}

.term .t-prompt::before {
  content: "> ";
  color: var(--accent-text);
}

.term .t-cmd::before {
  content: "$ ";
  color: var(--text-3);
}

.term .t-cmd {
  color: var(--text);
}

.term .t-hook {
  color: var(--text-3);
}

.term .t-hook b {
  font-weight: 500;
  color: var(--accent-text);
}

/* Memory lines hang: a wrapped line continues under the memory's text,
 * past the network (10ch) or the network and score (16ch). */
.term .t-mem {
  color: var(--text-2);
  padding-left: 12ch;
  text-indent: -10ch;
}

.term .t-mem.t-scored {
  padding-left: 18ch;
  text-indent: -16ch;
}

.term .t-mem.t-plain {
  padding-left: 2ch;
  text-indent: 0;
}

.term .t-agent {
  color: var(--text);
}

.term .t-agent::before {
  content: "● ";
  color: var(--accent-text);
}

.term .t-tool {
  color: var(--text-3);
  padding-left: 2ch;
}

.term .t-ok {
  color: var(--live);
  padding-left: 2ch;
}

.term .t-blank {
  min-height: 0.85em;
}

.term .tag-live {
  color: var(--live);
}

.term .tag-stale {
  color: var(--stale);
}

.term .tag-orphan {
  color: var(--orphan);
}

.term .caret {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  vertical-align: -0.2em;
  background: var(--accent-text);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* The steps beside the session, lit as the replay reaches them. */

.steps {
  display: grid;
  gap: var(--s2);
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  display: grid;
  gap: var(--s1);
  padding: var(--s3) var(--s4) var(--s3) var(--s7);
  border-radius: var(--radius-s);
  counter-increment: step;
  transition: background-color 200ms ease-out;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: var(--s4);
  top: var(--s3);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  transition: color 200ms ease-out, border-color 200ms ease-out, background-color 200ms ease-out;
}

.steps h3 {
  font-size: var(--fs-body);
}

.steps p {
  font-size: var(--fs-small);
  color: var(--text-2);
}

.steps li[data-active] {
  background: var(--accent-tint);
}

.steps li[data-active]::before {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

/* Pillars: the landing page's way into the inner pages. */

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.pillar {
  display: grid;
  gap: var(--s3);
  align-content: start;
  padding: var(--s6);
  background: var(--ground);
}

.band .pillar {
  background: var(--surface);
}

.pillar .eyebrow {
  color: var(--text-3);
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1.12;
}

.pillar p {
  color: var(--text-2);
}

.pillar .more {
  margin-top: var(--s2);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.pillar .more:hover {
  text-decoration: underline;
}

.pillar .record {
  margin-top: var(--s2);
}

@media (max-width: 760px) {
  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }
  .pillar {
    padding: var(--s5);
  }
}

/* Measured: numbers with their source, never without. */

.measures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s5);
  list-style: none;
  padding: 0;
}

.measure {
  display: grid;
  gap: var(--s2);
  align-content: start;
  padding-top: var(--s4);
  border-top: 1px solid var(--line-strong);
}

.measure .value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}

.measure .value small {
  font-size: 1.25rem;
  color: var(--text-2);
}

.measure p {
  font-size: var(--fs-small);
  color: var(--text-2);
}

.measure .source {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

/* Facts: short claims in a grid. */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s6) var(--s5);
  list-style: none;
  padding: 0;
}

.facts li {
  display: grid;
  gap: var(--s2);
  align-content: start;
}

.facts h3 {
  font-size: var(--fs-body);
}

.facts p {
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* Integrations: what Antumbra plugs into. */

.integrations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s4);
  list-style: none;
  padding: 0;
}

.integration {
  display: grid;
  gap: var(--s2);
  align-content: start;
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.integration h3 {
  font-size: var(--fs-body);
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
  align-items: baseline;
}

.integration p {
  color: var(--text-2);
  font-size: var(--fs-small);
}

/* Tool list */

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  list-style: none;
  padding: 0;
}

.tools li {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 4px 10px;
  border-radius: var(--radius-s);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
}

.tools li.in-profile {
  color: var(--text);
  border-color: var(--accent-line);
}

.integrations + .tools {
  margin-top: var(--s6);
}

/* Call to action */

.cta {
  padding-block: var(--s9);
  border-top: 1px solid var(--line);
}

.cta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s6);
  align-items: end;
}

.cta-row > div:first-child {
  display: grid;
  gap: var(--s4);
}

@media (max-width: 760px) {
  .cta {
    padding-block: var(--s8);
  }
  .cta-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

/* Recall bench */

.bench {
  display: grid;
  gap: 0;
}

.bench-query {
  display: grid;
  gap: var(--s3);
  padding: var(--s5);
  border-bottom: 1px solid var(--line);
}

.bench-query label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-2);
}

.query-row {
  display: flex;
  gap: var(--s2);
}

.query-row input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 var(--s4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.query-row input::placeholder {
  color: var(--text-3);
}

.query-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.presets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.preset {
  min-height: 30px;
  padding: 0 var(--s3);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: color 150ms ease-out, border-color 150ms ease-out, background-color 150ms ease-out;
}

.preset:hover,
.preset[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--accent-line);
  background: var(--accent-tint);
}

@media (pointer: coarse) {
  .preset {
    min-height: 40px;
  }
}

.context {
  font-size: var(--fs-small);
  color: var(--text-3);
}

.context .mono {
  color: var(--text-2);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  list-style: none;
  padding: 0;
}

.pipeline li {
  display: grid;
  gap: 2px;
  padding: var(--s4) var(--s5);
  border-right: 1px solid var(--line);
}

.pipeline li:last-child {
  border-right: 0;
}

.pipeline .stage {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.pipeline .count {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
}

.pipeline .note {
  font-size: 0.8125rem;
  color: var(--text-2);
}

@media (max-width: 760px) {
  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pipeline li:nth-child(2) {
    border-right: 0;
  }
  .pipeline li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

.parts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: center;
  padding: var(--s3) var(--s5);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--text-3);
}

.floor-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s5);
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--line);
}

.floor-row label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-2);
}

.floor-row input[type="range"] {
  flex: 1;
  min-width: 160px;
  accent-color: var(--accent);
}

.floor-row output {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text);
  min-width: 4ch;
}

.results {
  display: grid;
  list-style: none;
  padding: 0;
}

.result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: var(--s3) var(--s5);
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--line);
  transition: opacity 200ms ease-out;
}

.result:last-child {
  border-bottom: 0;
}

.result[data-below] {
  background: var(--surface-3);
}

.result[data-below] .record-text {
  color: var(--text-2);
}

.result[data-below] .score-p .bar i {
  background: var(--text-3);
}

.result .record-text {
  font-size: 0.9375rem;
}

.result-main {
  display: grid;
  gap: var(--s2);
  min-width: 0;
}

.scores {
  display: grid;
  gap: 6px;
  align-content: start;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

.score {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 36px;
  gap: var(--s2);
  align-items: center;
}

.score .bar {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.score .bar i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 2px;
  background: var(--text-3);
}

.score-p .bar i {
  background: var(--accent);
}

.score .num {
  text-align: right;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.floor-line {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s2) var(--s5);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-text);
  border-bottom: 1px solid var(--line);
}

.floor-line::before,
.floor-line::after {
  content: "";
  flex: 1;
  height: 0;
  border-top: 1px dashed var(--accent-line);
}

.empty {
  display: grid;
  gap: var(--s2);
  padding: var(--s6) var(--s5);
  text-align: center;
  justify-items: center;
  color: var(--text-2);
}

.empty .mono {
  color: var(--accent-text);
}

@media (max-width: 640px) {
  .result {
    grid-template-columns: minmax(0, 1fr);
  }
  .scores {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s3);
  }
  .score {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .score .num {
    text-align: left;
  }
}

/* Lifecycle */

.lifecycle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.lifecycle > div {
  padding: var(--s5);
  display: grid;
  gap: var(--s4);
  align-content: start;
}

.lifecycle > div + div {
  border-left: 1px solid var(--line);
}

.gauge {
  display: grid;
  gap: var(--s2);
}

.gauge-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s3);
  font-size: var(--fs-small);
  color: var(--text-2);
}

.gauge-row .mono {
  color: var(--text);
  font-size: 0.9375rem;
}

.gauge-track {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: var(--line);
}

.gauge-track i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 4px;
  background: var(--accent);
  transition: width 300ms ease-out;
}

.gauge-track b {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 0;
  border-left: 1px dashed var(--text-3);
}

.verdict {
  display: grid;
  gap: var(--s1);
  padding: var(--s3) var(--s4);
  border-radius: var(--radius-s);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: var(--fs-small);
}

.verdict strong {
  font-weight: 600;
}

.verdict[data-state="graduates"] strong {
  color: var(--live);
}

.verdict[data-state="held"] strong {
  color: var(--stale);
}

.verdict[data-state="forgotten"] strong {
  color: var(--orphan);
}

.log {
  display: grid;
  gap: 2px;
  list-style: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  max-height: 180px;
  overflow-y: auto;
}

.log li {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
}

.log li span:last-child {
  color: var(--text-2);
}

.chart {
  width: 100%;
  height: auto;
}

.chart .grid-line {
  stroke: var(--line);
  stroke-width: 1;
}

.chart .floor {
  stroke: var(--text-3);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.chart .series {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
}

.chart .area {
  fill: var(--accent-tint);
}

.chart .dot {
  fill: var(--accent);
}

.chart .dot-end {
  fill: var(--ground);
  stroke: var(--accent);
  stroke-width: 2;
}

.chart text {
  fill: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
}

@media (max-width: 760px) {
  .lifecycle {
    grid-template-columns: minmax(0, 1fr);
  }
  .lifecycle > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* Provenance graph */

.graph {
  width: 100%;
  height: auto;
  overflow: visible;
}

.graph .edge {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 2;
}

.graph .edge-branch {
  stroke: var(--accent-line);
}

.graph .commit {
  fill: var(--ground);
  stroke: var(--text-3);
  stroke-width: 2;
}

.band .graph .commit {
  fill: var(--surface);
}

.graph .commit-branch {
  stroke: var(--accent);
}

.graph .commit-head {
  fill: var(--text);
  stroke: var(--text);
}

.graph .anchor-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 2 3;
}

.graph .label {
  fill: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11px;
}

.graph .label-dim {
  fill: var(--text-3);
}

.graph .ref {
  fill: var(--accent-tint);
  stroke: var(--accent-line);
}

.graph .ref-text {
  fill: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 11px;
}

.graph .gone {
  opacity: 0.25;
}

.graph [data-fade] {
  transition: opacity 300ms ease-out;
}

.graph-wrap {
  overflow-x: auto;
  padding: var(--s5);
}

.graph-wrap .graph {
  min-width: 520px;
}

.prov-state {
  display: grid;
  gap: var(--s3);
  padding: var(--s5);
  border-top: 1px solid var(--line);
}

/* Compartments */

.people {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.person {
  display: grid;
  gap: var(--s3);
  align-content: start;
  padding: var(--s5);
}

.person + .person {
  border-left: 1px solid var(--line);
}

.person h3 {
  font-size: var(--fs-body);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
}

.compartment {
  display: grid;
  gap: var(--s2);
  padding: var(--s3) var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}

.compartment-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text);
}

.compartment ul {
  display: grid;
  gap: var(--s1);
  list-style: none;
  padding: 0;
  font-size: var(--fs-small);
  color: var(--text-2);
}

.recall-box {
  display: grid;
  gap: var(--s2);
  padding: var(--s3) var(--s4);
  border-radius: var(--radius-s);
  background: var(--code-bg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  min-height: 120px;
}

.recall-box .hit {
  color: var(--text-2);
}

.recall-box .refused {
  color: var(--orphan);
}

@media (max-width: 760px) {
  .people {
    grid-template-columns: minmax(0, 1fr);
  }
  .person + .person {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* Blast radius */

.blast {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.blast > div {
  min-width: 0;
}

.blast > div + div {
  border-left: 1px solid var(--line);
  padding: var(--s5);
  display: grid;
  gap: var(--s3);
  align-content: start;
}

.deps .node rect {
  fill: var(--surface-2);
  stroke: var(--line-strong);
  stroke-width: 1;
  transition: fill 200ms ease-out, stroke 200ms ease-out;
}

.band .deps .node rect {
  fill: var(--surface);
}

.deps .node text {
  fill: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11px;
  pointer-events: none;
}

.deps .node {
  cursor: pointer;
}

.deps .node:focus {
  outline: none;
}

.deps .node:focus-visible rect {
  stroke: var(--accent);
  stroke-width: 2;
}

.deps .node[data-origin] rect {
  fill: var(--accent);
  stroke: var(--accent);
}

.deps .node[data-origin] text {
  fill: var(--accent-ink);
}

.deps .node[data-hit] rect {
  stroke: var(--accent);
  fill: var(--accent-tint);
}

.deps .node[data-hit] text {
  fill: var(--text);
}

.deps .dep {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
  transition: stroke 200ms ease-out, opacity 200ms ease-out;
}

.deps .dep[data-src="observed"] {
  stroke-dasharray: 5 4;
}

.deps .dep[data-src="learned"] {
  stroke-dasharray: 1 4;
  stroke-linecap: round;
}

.deps .dep[data-hit] {
  stroke: var(--accent);
}

.deps .arrow {
  fill: var(--line-strong);
}

.reach {
  display: grid;
  gap: var(--s2);
  list-style: none;
  padding: 0;
}

.reach li {
  display: grid;
  gap: 2px;
  font-size: var(--fs-small);
}

.reach li .mono {
  color: var(--text);
}

.reach li span:last-child {
  color: var(--text-3);
  font-size: 0.75rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  font-size: 0.75rem;
  color: var(--text-3);
  padding: var(--s3) var(--s5);
  border-top: 1px solid var(--line);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
}

.legend svg {
  width: 28px;
  height: 6px;
}

.legend line {
  stroke: var(--text-3);
  stroke-width: 1.5;
}

@media (max-width: 860px) {
  .blast {
    grid-template-columns: minmax(0, 1fr);
  }
  .blast > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* Experts */

.population {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s2);
  list-style: none;
  padding: 0;
}

.expert {
  display: grid;
  gap: var(--s1);
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface-2);
  transition: border-color 200ms ease-out, background-color 200ms ease-out, opacity 200ms ease-out;
}

.expert .name {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text);
}

.expert .about {
  font-size: 0.75rem;
  color: var(--text-3);
  line-height: 1.45;
}

.expert .sim {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: var(--s2);
  align-items: center;
  margin-top: var(--s1);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
}

.expert .sim .bar {
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.expert .sim .bar i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--text-3);
  transition: width 300ms ease-out;
}

/* Unpicked experts step back by color, not opacity, so their text keeps
 * its contrast. */
.population[data-routed] .expert:not([data-picked]) {
  background: transparent;
}

.population[data-routed] .expert:not([data-picked]) .name {
  color: var(--text-2);
}

.expert[data-picked] {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.expert[data-picked] .sim .bar i {
  background: var(--accent);
}

.route-out {
  display: grid;
  gap: var(--s3);
  padding: var(--s5);
  border-top: 1px solid var(--line);
}

.route-out .decision {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
}

.route-out .decision strong {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1.1;
}

.route-out pre {
  padding: var(--s3) var(--s4);
  border-radius: var(--radius-s);
  background: var(--code-bg);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

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

/* The loop: a real sequence, so it is numbered. */

.loop {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s4);
  list-style: none;
  padding: 0;
  counter-reset: loop;
}

.loop li {
  display: grid;
  gap: var(--s2);
  align-content: start;
  padding-top: var(--s4);
  border-top: 2px solid var(--line-strong);
  counter-increment: loop;
}

.loop li::before {
  content: counter(loop, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-text);
}

.loop h3 {
  font-size: var(--fs-body);
}

.loop p {
  font-size: var(--fs-small);
  color: var(--text-2);
}

@media (max-width: 960px) {
  .loop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s5);
  }
}

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

/* Tables */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line);
}

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

th {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface);
  white-space: nowrap;
}

td {
  color: var(--text-2);
}

td:first-child {
  font-family: var(--font-mono);
  color: var(--text);
  white-space: nowrap;
}

td .mono {
  color: var(--text);
}

/* Getting started */

.status-note {
  display: grid;
  gap: var(--s2);
  padding: var(--s4) var(--s5);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-m);
  background: var(--accent-tint);
  color: var(--text-2);
  max-width: 72ch;
}

.status-note strong {
  color: var(--text);
}

.guide {
  display: grid;
  gap: var(--s8);
  list-style: none;
  padding: 0;
  counter-reset: guide;
}

.guide > li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: var(--s2) var(--s5);
  counter-increment: guide;
}

.guide > li::before {
  content: counter(guide);
  grid-row: span 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--accent-text);
}

.guide-body {
  display: grid;
  gap: var(--s4);
  min-width: 0;
}

.guide-body h2 {
  font-size: 2rem;
}

.guide-body > p {
  color: var(--text-2);
  max-width: 66ch;
}

@media (max-width: 520px) {
  .guide > li {
    grid-template-columns: minmax(0, 1fr);
  }
  .guide > li::before {
    grid-row: auto;
  }
}

.command {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--code-bg);
  min-width: 0;
}

.command-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s2);
  padding: var(--s1) var(--s1) var(--s1) var(--s4);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--text-3);
  min-height: 40px;
}

.command pre {
  padding: var(--s4);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text);
}

.command pre .c {
  color: var(--text-3);
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 var(--s3);
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
}

.copy:hover {
  color: var(--text);
  background: var(--accent-tint);
}

.copy[data-copied] {
  color: var(--live);
}

.copy svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

@media (pointer: coarse) {
  .copy {
    min-height: 44px;
  }
}

.os-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s3);
}

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

/* Questions */

.faq {
  display: grid;
  border-top: 1px solid var(--line);
  max-width: 80ch;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  padding: var(--s5) 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.0625rem;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--text-3);
  border-bottom: 1.5px solid var(--text-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 200ms ease-out;
}

.faq details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq details > div {
  display: grid;
  gap: var(--s3);
  padding-bottom: var(--s5);
  color: var(--text-2);
  max-width: 68ch;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--s8) calc(var(--s6) + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
}

.footer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s6);
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: var(--s4);
  max-width: 44ch;
}

.footer-brand .brand {
  margin: 0;
}

.footer-brand p {
  color: var(--text-2);
  font-size: var(--fs-small);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: var(--s2) var(--s7);
}

.footer-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: var(--fs-small);
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-legal {
  margin-top: var(--s7);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--text-3);
}

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

/* The 404 */

.lost {
  padding-block: var(--s9) var(--s10);
}

.lost-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s7);
  align-items: center;
}

.lost-copy {
  display: grid;
  gap: var(--s5);
}

.lost .recall-box {
  min-height: 0;
  max-width: 56ch;
}

.lost .eclipse {
  max-width: 360px;
  justify-self: center;
}

/* A partial eclipse that never quite lines up. */
.lost .eclipse .sun {
  fill: var(--ring);
}

.lost .eclipse .moon {
  fill: var(--ground);
  transform: translate(-40px, -18px);
  animation: drift 9s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate(-40px, -18px);
  }
  to {
    transform: translate(26px, 30px);
  }
}

@media (max-width: 760px) {
  .lost-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .lost .eclipse {
    order: -1;
    max-width: 220px;
  }
}

/* Motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
