/* Palette is the logo's: white ground, #141414 wordmark, and the mark's 135° ramp #0f766e → #5eead4. */
:root {
  color-scheme: light;
  --bg: #fff;
  --panel: #fff;
  --ink: #141414;
  --ink-soft: #2f3433;
  --muted: #59605e;
  --frame: #141414;
  --rule: #c6cbc9;
  --on-frame-muted: #b4bab8;
  --ghost: rgba(20, 20, 20, 0.05);
  --accent: #0f766e;
  --accent-2: #5eead4;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 78rem;
  --bar-h: 3.25rem;
  --font: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "DejaVu Sans Mono", monospace;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 20rem;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

p {
  margin: 0;
}

::selection {
  background: var(--ink);
  color: var(--panel);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.6rem 0.9rem;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--panel);
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---------- shared vocabulary ---------- */

.label {
  color: var(--muted);
  font-size: 0.6875rem;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* TIS-style segment title: - LIKE THIS - */
.eyebrow {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "- ";
}

.eyebrow::after {
  content: " -";
}

/* A node: black screen, bright frame, dim inner frame. */
.node {
  position: relative;
  min-width: 0;
  padding: 0.95rem 1rem 1rem;
  border: 1px solid var(--frame);
  background: var(--panel);
  box-shadow:
    inset 0 0 0 3px var(--panel),
    inset 0 0 0 4px var(--rule);
}

.node > .label {
  margin-bottom: 0.6rem;
}

.btn {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--frame);
  border-radius: 0;
  background: var(--panel);
  box-shadow:
    inset 0 0 0 3px var(--panel),
    inset 0 0 0 4px var(--rule);
  color: var(--ink);
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:hover,
.btn[aria-pressed="true"] {
  background: var(--ink);
  box-shadow: none;
  color: var(--panel);
}

.btn--primary {
  background: var(--ink);
  box-shadow: none;
  color: var(--panel);
}

.btn--primary:hover {
  background: var(--panel);
  color: var(--ink);
}

/* ---------- top bar ---------- */

.bar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.bar-inner {
  display: flex;
  min-height: var(--bar-h);
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
}

/* Lockup proportions follow the logo: cap height ≈ 0.58 × mark, gap ≈ half the mark. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625em;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  display: block;
  width: 1.25em;
  height: auto;
}

.bar-nav {
  display: flex;
  align-items: stretch;
}

.bar-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.bar-nav a:hover {
  color: var(--ink);
}

/* The current page is the executing instruction. */
.bar-nav a[aria-current="page"] {
  background: var(--frame);
  color: var(--panel);
}

.bar-nav a:focus-visible {
  outline-offset: -3px;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.hero-kicker {
  max-width: 34rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--muted);
}

.hero-title {
  margin: 0;
  font-size: clamp(2rem, 6.2vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero-title canvas {
  display: none;
}

/* With JS the headline is written to a cell matrix; the text stays for readers and crawlers. */
.js .hero-title__text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.js .hero-title {
  aspect-ratio: var(--matrix-ratio, 59 / 37);
  font-size: 0;
  line-height: 0;
}

.js .hero-title canvas {
  display: block;
  image-rendering: pixelated;
}

.hero-foot {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
}

.hero-foot p {
  max-width: 33rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sequence {
  border-block: 1px solid var(--rule);
}

.sequence ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-block: 0;
  padding: 0.85rem 0;
  list-style: none;
}

.sequence li + li::before {
  margin-right: 1rem;
  color: var(--rule);
  content: "→";
}

/* ---------- the machine ---------- */

.machine {
  min-width: 0;
}

.machine-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  column-gap: 0.75rem;
}

.node--scan,
.node--out,
.port--out {
  grid-column: 1 / -1;
}

.big {
  display: block;
  font-size: 1.75rem;
  line-height: 1.1;
}

.queue {
  display: flex;
  height: 1.75rem;
  align-items: flex-end;
  gap: 2px;
  margin-top: 0.7rem;
  border-bottom: 1px solid var(--rule);
}

.queue i {
  min-height: 1px;
  flex: 1;
  background: var(--rule);
}

.queue i:first-child {
  background: var(--ink);
}

.hrows {
  display: grid;
  gap: 0.3rem;
  margin: 0;
}

.hrows div {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) 2.2rem;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.75rem;
  line-height: 1.3;
}

.hrows dt {
  color: var(--muted);
}

.hrows dd {
  display: contents;
}

.hrows i {
  display: block;
  height: 0.55rem;
  /* the ramp spans the whole track; a panel-coloured cover hides the part the word hasn't reached */
  background:
    linear-gradient(var(--panel), var(--panel)) no-repeat right / calc(100% - var(--v, 0) * 1%) 100%,
    linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: inset 0 0 0 1px var(--rule);
}

.hrows b {
  font-weight: 400;
  text-align: right;
}

.node--state.is-write {
  border-color: var(--accent);
  box-shadow:
    inset 0 0 0 3px var(--panel),
    inset 0 0 0 4px var(--accent);
}

.port {
  display: flex;
  height: 1.85rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  line-height: 1;
}

.port b {
  min-width: 2ch;
  font-weight: 400;
  visibility: hidden;
}

.port.is-live b {
  visibility: visible;
}

.arrow {
  width: 0.7rem;
  height: 1rem;
  background: var(--rule);
  clip-path: polygon(32% 0, 68% 0, 68% 52%, 100% 52%, 50% 100%, 0 52%, 32% 52%);
}

.arrow--up {
  transform: scaleY(-1);
}

.port.is-live .arrow:not([data-m]),
.arrow.is-live {
  background: var(--ink);
}

.node--scan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0;
}

.listing {
  margin: 0;
  padding: 0.95rem 0.6rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  list-style: none;
}

.listing li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.4rem 0 1.4rem;
  white-space: pre;
}

.listing li.listing-tag {
  padding-left: 0.4rem;
}

.listing .cmt {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
}

.listing li.is-pc {
  background: var(--frame);
  color: var(--panel);
}

.listing li.is-pc .cmt {
  color: var(--on-frame-muted);
}

.regs {
  display: grid;
  margin: 0;
  border-left: 1px solid var(--frame);
}

.regs div {
  display: grid;
  min-width: 4.4rem;
  align-content: center;
  padding: 0.3rem 0.6rem;
  border-top: 1px solid var(--rule);
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: center;
}

.regs div:first-child {
  border-top: 0;
}

.regs dt {
  color: var(--muted);
  letter-spacing: 0.08em;
}

.regs dd {
  margin: 0;
}

.trace {
  display: block;
  width: 100%;
  height: 3.5rem;
  border-bottom: 1px solid var(--rule);
}

.trace path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  shape-rendering: crispEdges;
}

.controls {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.js .controls {
  display: flex;
}

.controls .btn {
  min-width: 4.1rem;
  flex: 1;
  padding-inline: 0.5rem;
}

.machine-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

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

.section {
  padding-block: clamp(4rem, 9vw, 7rem);
  border-top: 1px solid var(--rule);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.section-head .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

h2 {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.section-head--wide h2 {
  max-width: 32ch;
  grid-column: 1 / -1;
}

.section-head p:not(.eyebrow) {
  max-width: 34rem;
  color: var(--muted);
}

/* thesis: two lanes on one clock */

.lanes {
  display: grid;
  gap: 0.75rem;
}

.lane {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0;
  padding: 0;
}

.lane-main {
  min-width: 0;
  padding: 0.95rem 1rem 1rem;
}

.lane-main .label {
  margin-bottom: 0.75rem;
}

.lane svg {
  display: block;
  width: 100%;
  height: 4.5rem;
}

/* The mark's ramp belongs to the fixed-state lane; the growing-context lane stays neutral. */
.lane .mem {
  fill: var(--accent-2);
}

.lane .ticks {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  shape-rendering: crispEdges;
}

.lane .regs dd {
  color: var(--accent);
}

.lane--drift .mem {
  fill: var(--rule);
}

.lane--drift .ticks {
  stroke: var(--muted);
}

.lane--drift .regs dd {
  color: inherit;
}

.lane .regs div {
  min-width: 6.5rem;
}

.figure-note {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.75rem;
}

/* architecture: concept tabs + die */

.concepts {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 0.75rem;
}

.concept-list {
  display: grid;
  gap: 0.75rem;
}

.concept {
  display: grid;
  width: 100%;
  align-content: start;
  gap: 0.5rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.concept span {
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.concept small {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.concept:hover {
  border-color: var(--frame);
}

.concept[aria-selected="true"] {
  border-color: var(--frame);
  background: var(--frame);
  color: var(--panel);
}

.concept[aria-selected="true"] small {
  color: var(--on-frame-muted);
}

.die-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1rem;
}

.die {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "io io"
    "state scan"
    "state route"
    "state act"
    "cfg cfg";
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px dashed var(--rule);
}

.die > * {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.die small {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.die-io {
  display: flex;
  grid-area: io;
  justify-content: space-between;
  border-style: none none solid;
}

.die-state {
  display: grid;
  min-height: 9.5rem;
  grid-area: state;
  align-content: space-between;
}

.die-scan {
  grid-area: scan;
}

.die-route {
  grid-area: route;
}

.die-act {
  grid-area: act;
}

.die-cfg {
  display: flex;
  grid-area: cfg;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.cells {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  margin-top: 0.75rem;
}

.cells i {
  height: 0.5rem;
  background: currentColor;
  opacity: 0.55;
}

/* selected, the state memory carries the mark's ramp: each column shows its slice of one gradient */
[data-active="state"] .cells i {
  background: linear-gradient(90deg, var(--accent), var(--accent-2)) calc(var(--col, 0) / 7 * 100%) 0 / 800% 100%;
  opacity: 1;
}

.cells i:nth-child(8n + 2) { --col: 1; }
.cells i:nth-child(8n + 3) { --col: 2; }
.cells i:nth-child(8n + 4) { --col: 3; }
.cells i:nth-child(8n + 5) { --col: 4; }
.cells i:nth-child(8n + 6) { --col: 5; }
.cells i:nth-child(8n + 7) { --col: 6; }
.cells i:nth-child(8n + 8) { --col: 7; }

[data-active="state"] .die-state,
[data-active="work"] .die-scan,
[data-active="work"] .die-route,
[data-active="work"] .die-act,
[data-active="silicon"] .die-cfg {
  border-color: var(--frame);
  color: var(--ink);
}

[data-active="silicon"] .die {
  border-color: var(--frame);
}

.concept-caption {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
}

.concept-caption p:last-child {
  color: var(--muted);
}

/* workflow: four nodes, artifacts in transit */

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow li {
  display: grid;
  align-content: start;
  gap: 0.6rem;
}

.flow h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flow p:last-child {
  color: var(--muted);
  font-size: 0.8125rem;
}

/* the port between two flow nodes */
.flow li + li::before {
  position: absolute;
  top: 50%;
  left: -1.55rem;
  width: 1rem;
  height: 0.7rem;
  transform: translateY(-50%);
  background: var(--frame);
  clip-path: polygon(0 32%, 52% 32%, 52% 0, 100% 50%, 52% 100%, 52% 68%, 0 68%);
  content: "";
}

.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

/* rows: domains, principles, risks, milestones */

.rows {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--frame);
  list-style: none;
}

.rows > li,
.rows > div {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.4rem 1.5rem;
  align-items: baseline;
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.rows .idx {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rows .name {
  margin: 0;
  font-size: clamp(1rem, 1.9vw, 1.3rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rows .desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.rows--status > li {
  grid-template-columns: 3rem minmax(0, 1fr) auto;
}

.rows--status .name {
  font-size: 0.9375rem;
  letter-spacing: 0;
  text-transform: none;
}

.status {
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status--done {
  border-color: var(--frame);
  background: var(--frame);
  color: var(--panel);
}

/* scopes: one list per question — what we measure first, where the part is meant to work */

.scopes {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
}

.scope {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.scope-head {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.scope-head h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.scope-head p:not(.label):not(.status) {
  max-width: 26rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.scope-head .status {
  margin-top: 0.25rem;
  white-space: normal;
}

/* white paper */

.paper {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.paper h2 {
  margin-bottom: 1.25rem;
}

.paper-copy > p:not(.eyebrow) {
  max-width: 32rem;
  margin-bottom: 2rem;
  color: var(--muted);
}

.paper-cover {
  display: block;
  max-width: 22rem;
  margin: 0 auto;
  padding: 0.5rem;
}

.paper-cover img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- inner pages ---------- */

.page-head {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
}

h1.page-title {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(1.75rem, 4.6vw, 3.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.page-head .lede {
  max-width: 40rem;
  margin-top: 1.5rem;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
}

.split h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
}

.prose {
  display: grid;
  max-width: 42rem;
  gap: 1.1rem;
}

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

.sites {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem;
}

.sites h3 {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sites ul {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  list-style: none;
}

.sites li::before {
  content: "· ";
}

.sites .port {
  align-self: center;
  flex-direction: column;
  height: auto;
  color: var(--muted);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
}

.arrow--right {
  width: 1rem;
  height: 0.7rem;
  background: var(--frame);
  clip-path: polygon(0 32%, 52% 32%, 52% 0, 100% 50%, 52% 100%, 52% 68%, 0 68%);
}

.links {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--frame);
  list-style: none;
}

.links a {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) auto;
  gap: 0.3rem 1.5rem;
  align-items: baseline;
  padding: 0.95rem 0.5rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.links a:hover {
  background: var(--frame);
  color: var(--panel);
}

.links a:hover .desc {
  color: var(--on-frame-muted);
}

.links .host {
  overflow-wrap: anywhere;
}

.links .desc {
  color: var(--muted);
  font-size: 0.8125rem;
}

/* updates log */

.log {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--frame);
  list-style: none;
}

.log > li {
  display: grid;
  grid-template-columns: 7.5rem 5rem minmax(0, 1fr);
  gap: 0.4rem 1.5rem;
  align-items: baseline;
  padding: 1.25rem 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.log time {
  color: var(--muted);
  font-size: 0.8125rem;
}

.log .tag {
  justify-self: start;
}

.log h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}

.log p {
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.next {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.foot {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.75rem;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem;
}

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

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

/* ---------- small screens ---------- */

@media (max-width: 960px) {
  .hero,
  .section-head,
  .concepts,
  .paper,
  .split,
  .scope {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    align-items: start;
  }

  .machine {
    max-width: 36rem;
  }

  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow li:nth-child(3)::before {
    display: none;
  }

  .paper-cover {
    margin: 0;
  }
}

@media (max-width: 640px) {
  /* two rows is too much chrome to pin on a phone */
  .bar {
    position: static;
  }

  .bar-inner {
    flex-wrap: wrap;
    gap: 0;
  }

  .brand {
    min-height: 2.75rem;
  }

  .bar-nav {
    min-height: 2.5rem;
    margin-inline: calc(-1 * var(--gutter));
    width: calc(100% + 2 * var(--gutter));
    border-top: 1px solid var(--rule);
  }

  .bar-nav a {
    flex: 1;
    justify-content: center;
    padding: 0 0.25rem;
    font-size: 0.6875rem;
  }

  html {
    scroll-padding-top: 1rem;
  }

  .listing .cmt {
    display: none;
  }

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

  .lane .regs {
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--frame);
    border-left: 0;
  }

  .lane .regs div {
    border-top: 0;
  }

  .lane .regs div + div {
    border-left: 1px solid var(--rule);
  }

  .flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.85rem;
  }

  .flow li:nth-child(3)::before {
    display: block;
  }

  .flow li + li::before {
    top: -1.45rem;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }

  .rows > li,
  .rows > div,
  .links a {
    grid-template-columns: 2.25rem minmax(0, 1fr);
  }

  .rows .desc,
  .links .desc {
    grid-column: 2;
  }

  .links a {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .links .desc {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .rows--status > li {
    grid-template-columns: 2.25rem minmax(0, 1fr);
  }

  .rows--status .status {
    grid-column: 2;
    justify-self: start;
  }

  .concept-caption {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }

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

  .sites .port {
    flex-direction: row;
    padding-block: 0.25rem;
  }

  .sites .arrow--right {
    transform: rotate(90deg);
  }

  .log > li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .log > li > div {
    grid-column: 1 / -1;
  }

  .log .tag {
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
