/*
 * Siontology website. Plain CSS, no build step.
 * Tokens live in tokens.css (a copy of brand/tokens.css).
 */

/* ---------------------------------------------------------------- fonts */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fragment Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/fragment-mono-latin-400-normal.woff2") format("woff2");
}

/* A subset of Noto Sans Math: Greek letters, arrows and logic operators,
   which the text faces do not carry. */
@font-face {
  font-family: "Siontology Symbols";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/siontology-symbols.woff2") format("woff2");
}

/* ----------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-stretch: var(--width-text);
  font-weight: var(--weight-text);
  line-height: var(--leading-text);
  letter-spacing: var(--tracking-text);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--color-rule-strong);
}

a:hover {
  text-decoration-color: currentColor;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
}

h2 {
  font-size: var(--text-3xl);
  font-stretch: var(--width-heading);
}

h3 {
  font-size: var(--text-lg);
  font-stretch: 106%;
  font-weight: var(--weight-strong);
  letter-spacing: 0;
  line-height: 1.25;
}

h4 {
  font-size: var(--text-md);
  font-weight: var(--weight-strong);
  letter-spacing: 0;
  line-height: 1.35;
}

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

p {
  max-width: var(--measure);
  text-wrap: pretty;
}

ul,
ol {
  padding-left: 1.25em;
}

li + li {
  margin-top: var(--space-2);
}

strong {
  font-weight: var(--weight-strong);
}

code,
kbd,
samp,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
  letter-spacing: 0;
  /* Fragment Mono has one weight; a synthesised bold smears the glyphs. */
  font-weight: 400;
  font-synthesis: none;
}

:not(pre) > code {
  overflow-wrap: anywhere;
}

hr {
  border: 0;
  border-top: var(--rule-hair) solid var(--color-rule);
  margin: 0;
}

/* ---------------------------------------------------------- utilities */

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

.skip-link {
  position: absolute;
  left: calc(var(--gutter) + env(safe-area-inset-left, 0px));
  top: -100px;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--color-ink);
  color: var(--color-bg);
  text-decoration: none;
}

.skip-link:focus {
  top: calc(var(--space-2) + env(safe-area-inset-top, 0px));
}

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

.faint {
  color: var(--color-ink-3);
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0;
}

.nums {
  font-variant-numeric: tabular-nums;
}

/* Keeps a phrase on one line where the line is wide enough for it. */
@media (min-width: 48rem) {
  .nowrap-md {
    white-space: nowrap;
  }
}

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  /* The gutter also clears a phone's side insets (notch, system bar). */
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* --------------------------------------------------------------- header */

/* Paints the band above the sticky header where a phone's status bar sits. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 51;
  background: var(--color-bg);
}

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--color-bg);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-ink);
  text-decoration: none;
  flex: none;
}

.brand svg {
  width: 22px;
  height: 22px;
}

.brand-name {
  font-size: 1.1875rem;
  font-stretch: 115%;
  font-weight: 540;
  letter-spacing: -0.008em;
  line-height: 1;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  display: inline-block;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  letter-spacing: var(--tracking-label);
  color: var(--color-ink-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

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

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

.header-tools {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--space-2);
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--color-ink-2);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  cursor: pointer;
}

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

.icon-button svg {
  width: 18px;
  height: 18px;
}

.menu-button {
  display: none;
}

html:not(.js) .theme-button {
  display: none;
}

/* Without JavaScript the figures cannot draw; their captions carry them. */
html:not(.js) canvas[data-scene] {
  display: none;
}

html:not(.js) .plate figcaption,
html:not(.js) .hero-figure figcaption {
  border-top: 0;
}

/* The theme button shows the theme you would switch to. */
.theme-button .when-dark,
.theme-button .when-light {
  display: none;
}

:root .theme-button .when-light {
  display: inline-flex;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-button .when-light {
    display: none;
  }

  :root:not([data-theme="light"]) .theme-button .when-dark {
    display: inline-flex;
  }
}

:root[data-theme="dark"] .theme-button .when-light {
  display: none;
}

:root[data-theme="dark"] .theme-button .when-dark {
  display: inline-flex;
}

@media (max-width: 63.99rem) {
  .js .menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--color-bg);
    border-bottom: var(--rule-hair) solid var(--color-rule);
    padding-block: var(--space-2) var(--space-5);
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .js .site-nav a {
    display: block;
    padding: var(--space-3) 0;
    font-size: var(--text-md);
    border-bottom: var(--rule-hair) solid var(--color-rule);
  }

  .js .site-nav a[aria-current="page"] {
    border-bottom-color: var(--color-rule);
    color: var(--color-ink);
    font-weight: var(--weight-strong);
  }

  .site-header .wrap {
    flex-wrap: wrap;
  }

  html:not(.js) .site-nav {
    width: 100%;
    order: 3;
    padding-bottom: var(--space-2);
  }
}

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

main {
  display: block;
}

.section {
  padding-block: var(--space-9);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.section--flush {
  border-top: 0;
}

.section-head {
  display: grid;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.section-head > p {
  color: var(--color-ink-2);
  font-size: var(--text-lg);
  line-height: 1.5;
  max-width: 58ch;
}

.statement {
  font-size: var(--text-4xl);
  font-stretch: 118%;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  max-width: 18ch;
}

.page-head {
  padding-block: var(--space-9) var(--space-8);
}

.page-head h1 {
  font-size: var(--text-4xl);
  font-stretch: 118%;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  max-width: 20ch;
}

.page-head .lede {
  margin-top: var(--space-5);
}

.lede {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-ink-2);
  max-width: 56ch;
}

.prose > * + * {
  margin-top: var(--space-4);
}

.prose > h2 + *,
.prose > h3 + * {
  margin-top: var(--space-4);
}

.prose > * + h2 {
  margin-top: var(--space-8);
}

.prose > * + h3 {
  margin-top: var(--space-6);
}

.prose li {
  max-width: var(--measure);
}

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

.hero {
  padding-top: var(--space-8);
}

.display {
  font-size: var(--text-5xl);
  font-stretch: var(--width-display);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-display);
}

@media (min-width: 64rem) {
  .display .line {
    display: block;
  }
}

.hero-lede {
  margin-top: var(--space-6);
}

.agent-start {
  margin-top: var(--space-8);
}

/* The hero: the headline, then what it means beside a run of it. */
.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
  align-items: start;
}

.hero-stage .lede {
  margin: 0;
}

.hero-stage .actions {
  margin-top: var(--space-5);
}

@media (min-width: 64rem) {
  .hero-stage {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-8);
  }
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-5);
  border: var(--rule-hair) solid var(--color-ink);
  border-radius: var(--radius-control);
  background: var(--color-ink);
  color: var(--color-bg);
  font-size: 0.9375rem;
  font-stretch: 106%;
  font-weight: var(--weight-heading);
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}

.button:hover {
  background: var(--color-ink-2);
  border-color: var(--color-ink-2);
}

.button--quiet {
  background: transparent;
  color: var(--color-ink);
}

.button--quiet:hover {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-bg);
}

.hero-figure {
  position: relative;
  margin: var(--space-7) 0 0;
  border-top: var(--rule-hair) solid var(--color-rule);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.hero-figure canvas {
  width: 100%;
  height: clamp(380px, 34vw, 500px);
}

.hero-figure figcaption {
  border-top: var(--rule-hair) solid var(--color-rule);
}

.hero-caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}

.hero-caption p {
  font-size: var(--text-sm);
  color: var(--color-ink-3);
  max-width: 88ch;
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  align-items: baseline;
  padding-block: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  max-width: none;
}

.status-line strong {
  color: var(--color-ink);
}

/* -------------------------------------------------- paths and transcripts */

/* Two ways in, from the hero's two buttons: run your own agent, or build on
   the ledger. A path label starts each way's sections, with a solid cell
   from the diagram vocabulary; a transcript shows a real run. */
.path-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  color: var(--color-ink-3);
}

.path-label::before {
  content: "";
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  background: var(--color-ink);
}

.path-label {
  margin-bottom: var(--space-5);
}

.door-term {
  margin: 0;
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-bg-raised);
}

/* A transcript, wrapped rather than cut: each line a block whose
   continuation hangs two characters in. */
.door-term pre {
  padding: var(--space-4);
  font-size: 0.8125rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.door-term .l {
  display: block;
  padding-left: 2ch;
  text-indent: -2ch;
}

.door-term .t {
  font-style: italic;
}

@media (max-width: 40rem) {
  .door-term pre {
    font-size: 0.75rem;
  }
}

.door-term .c {
  color: var(--color-ink-3);
}

.door-term .x {
  color: var(--color-signal);
}

.door-term figcaption {
  padding: var(--space-2) var(--space-4);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-xs);
  color: var(--color-ink-3);
}

/* ----------------------------------------------------------- grids */

.cells {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.cells > * {
  padding: var(--space-5) 0 var(--space-6);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.cells h3 {
  margin-bottom: var(--space-3);
}

.cells p {
  color: var(--color-ink-2);
}

.cells .cell-link {
  display: inline-block;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
}

/* ---------------------------------------------------------- use cases */

/* A use case in a grid of cells: pictogram, audience, outcome, what
   happens today, then status and the demo that shows it. */
.uc {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pict {
  display: block;
  width: 2rem;
  height: 2rem;
  flex: none;
  color: var(--color-ink);
}

.pict-signal {
  stroke: var(--color-signal);
}

.cells .uc h3 {
  margin-bottom: 0;
}

.uc .uc-for {
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  color: var(--color-ink-3);
}

.uc .uc-today {
  padding-top: var(--space-3);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-sm);
}

.uc .uc-today strong {
  margin-right: 0.4em;
  font-weight: var(--weight-label);
  color: var(--color-ink-3);
}

.uc .uc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  margin-top: auto;
  padding-top: var(--space-2);
  color: var(--color-ink);
}

.uc-foot code {
  font-size: var(--text-sm);
}

.cells .uc .cell-link {
  margin-top: 0;
}

.topic > .pict {
  width: 2.5rem;
  height: 2.5rem;
}

@media (min-width: 48rem) {
  .cells--2,
  .cells--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .cells > * {
    padding-right: var(--space-6);
  }

  .cells--2 > :nth-child(2n),
  .cells--4 > :nth-child(2n) {
    padding-left: var(--space-6);
    border-left: var(--rule-hair) solid var(--color-rule);
  }

  .cells--3 > :not(:nth-child(3n + 1)) {
    padding-left: var(--space-6);
    border-left: var(--rule-hair) solid var(--color-rule);
  }
}

@media (min-width: 80rem) {
  .cells--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cells--4 > :not(:nth-child(4n + 1)) {
    padding-left: var(--space-6);
    border-left: var(--rule-hair) solid var(--color-rule);
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7);
}

.split > *,
.cells > *,
.hero-intro > * {
  min-width: 0;
}

@media (min-width: 64rem) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-8);
  }

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

  .split > .code {
    align-self: start;
  }

  .split > .sticky {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
    align-self: start;
  }
}

/* ------------------------------------------------------- figure plates */

.plate {
  margin: 0;
  border: var(--rule-hair) solid var(--color-rule);
}

.plate canvas {
  width: 100%;
  aspect-ratio: 16 / 9;
}

@media (max-width: 39.99rem) {
  .plate canvas {
    aspect-ratio: 3 / 5;
  }
}

.plate.plate--hero canvas {
  aspect-ratio: 8 / 5;
}

@media (max-width: 39.99rem) {
  .plate.plate--hero canvas {
    aspect-ratio: 3 / 5;
  }
}

/* A figure in chapters: a button goes to each, and the caption follows the
   one that plays (js/scenes/core.js). */
.reel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

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

.reel-chapters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.reel-chapter {
  appearance: none;
  margin: 0;
  border: 0;
  border-left: 2px solid transparent;
  background: none;
  color: var(--color-ink-3);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  text-align: left;
  padding: var(--space-3) var(--space-4);
  min-height: 44px;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}

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

.reel-chapter[aria-pressed="true"] {
  color: var(--color-ink);
  border-left-color: var(--color-ink);
}

.reel-chapter:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: -2px;
}

.reel-panel {
  display: grid;
  gap: var(--space-3);
}

.reel-panel[hidden] {
  display: none;
}

.reel-panel-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-strong);
}

@media (min-width: 64rem) {
  .reel-body {
    grid-template-columns: 15rem minmax(0, 1fr);
  }

  .reel-chapters {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    padding-block: var(--space-3);
    border-bottom: 0;
    border-right: var(--rule-hair) solid var(--color-rule);
  }
}

/* Without JavaScript there is nothing to step through: every caption shows. */
html:not(.js) .reel-chapters {
  display: none;
}

html:not(.js) .reel-panel[hidden] {
  display: grid;
}

/* Chapters with a headline: numbered, the one that plays showing its blurb
   (on wide screens; on narrow ones the caption has it), with a line under it
   that fills as it plays (--progress, set by js/scenes/core.js). */
.reel--rich .reel-chapters {
  border-bottom: 0;
}

.reel-chapter--rich {
  position: relative;
  display: grid;
  gap: var(--space-1);
  align-content: start;
  padding: var(--space-3) var(--space-4) var(--space-4);
  border-left: 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.reel-chapter--rich:nth-child(odd) {
  border-right: var(--rule-hair) solid var(--color-rule);
}

.reel-chapter--rich::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--color-ink);
  transform: scaleX(0);
  transform-origin: left center;
}

.reel-chapter--rich[aria-pressed="true"]::after {
  transform: scaleX(var(--progress, 1));
}

.reel-chapter-name {
  display: flex;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  letter-spacing: var(--tracking-label);
  color: var(--color-ink-3);
}

.reel-chapter-n {
  font-variant-numeric: tabular-nums;
}

.reel-chapter-head {
  font-size: var(--text-md);
  font-stretch: 106%;
  font-weight: var(--weight-heading);
  line-height: 1.25;
  color: var(--color-ink-2);
}

.reel-chapter-blurb {
  display: none;
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--weight-text);
  line-height: 1.45;
  color: var(--color-ink-2);
}

.reel-chapter--rich[aria-pressed="true"] .reel-chapter-name,
.reel-chapter--rich[aria-pressed="true"] .reel-chapter-head {
  color: var(--color-ink);
}

.reel-panel-blurb {
  font-size: var(--text-md);
  line-height: 1.45;
  max-width: 60ch;
}

@media (min-width: 64rem) {
  .reel--rich .reel-body {
    grid-template-columns: 19rem minmax(0, 1fr);
  }

  .reel--rich .reel-chapters {
    padding-block: 0;
  }

  .reel-chapter--rich:nth-child(odd) {
    border-right: 0;
  }

  .reel-chapter--rich[aria-pressed="true"] .reel-chapter-blurb {
    display: block;
  }

  .reel--rich .reel-panel-blurb {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reel-chapter--rich[aria-pressed="true"]::after {
    transform: scaleX(1);
  }
}

html:not(.js) .reel--rich .reel-panel-blurb {
  display: block;
}

/* Where it answers, and what it thinks with: by name. The services' and the
   model makers' logos are their own marks, so none are used. */
.names {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.names-group {
  display: grid;
  gap: var(--space-3);
}

.names-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  color: var(--color-ink-3);
}

.names-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--rule-hair) solid var(--color-rule);
}

.names-list li,
.names-list li + li {
  margin: 0;
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-md);
  font-stretch: 106%;
}

/* ------------------------------------------------------------- team */

/* A team of agents: a face for each role, in a grid of hairlines. A face is
   a diamond, the brand's sign for an agent, drawn in SVG (figures.py, TEAM)
   and moved only by the rules below: it breathes, blinks, looks about, and
   its eyes follow the pointer (--lx, --ly, set by js/site.js). One button
   pauses them all; with reduced motion they keep still. */
.team {
  display: grid;
  gap: var(--space-3);
}

.team-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 36px;
}

.team-bar-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  color: var(--color-ink-3);
}

.team-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--rule-hair) solid var(--color-rule);
  border-left: var(--rule-hair) solid var(--color-rule);
}

@media (min-width: 56rem) {
  .team-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.team-list > li,
.team-list > li + li {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  margin: 0;
  padding: var(--space-4);
  border-right: var(--rule-hair) solid var(--color-rule);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

@media (min-width: 56rem) {
  .team-list > li,
  .team-list > li + li {
    padding: var(--space-5);
  }
}

.mate .face {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: var(--space-2);
  overflow: visible;
  color: var(--color-ink);
}

@media (min-width: 56rem) {
  .mate .face {
    width: 5.5rem;
    height: 5.5rem;
  }
}

.mate--yours .face {
  color: var(--color-ink-3);
}

.mate-role {
  font-size: var(--text-md);
  font-stretch: 106%;
  font-weight: var(--weight-strong);
  line-height: 1.25;
}

.mate-line {
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--color-ink-2);
}

.mate-uses {
  margin-top: auto;
  padding-top: var(--space-2);
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--color-ink-3);
}

.mate-uses span {
  margin-right: 0.25em;
  font-weight: var(--weight-label);
  color: var(--color-ink-2);
}

.mate-uses code {
  font-size: var(--text-xs);
  overflow-wrap: anywhere;
}

.face .face-body,
.face .face-gaze,
.face .face-look,
.face .face-eyes,
.face .face-eye-r,
.face .face-mouth,
.face .face-sign,
.face .face-caret,
.face .face-think rect {
  transform-box: fill-box;
  transform-origin: center;
}

.face .face-gaze {
  transform: translate(var(--lx, 0px), var(--ly, 0px));
  transition: transform 0.35s var(--ease-standard);
}

/* The faces move only with JavaScript, which gives them their Pause button;
   with reduced motion it starts them paused, and offers Play. */
html.js .face .face-body {
  animation: face-breathe 4.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.7s);
}

html.js .face .face-eyes {
  animation: face-blink 5.2s infinite;
  animation-delay: calc(var(--i, 0) * -1.3s);
}

html.js .face .face-look {
  animation: face-look 9s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -2.3s);
}

html.js .face .face-talk {
  animation: face-talk 3.4s infinite;
}

html.js .face .face-caret {
  animation: face-caret 1.1s steps(1) infinite;
}

html.js .face .face-think rect {
  animation: face-think 1.5s infinite;
}

html.js .face .face-think rect:nth-child(2) {
  animation-delay: 0.25s;
}

html.js .face .face-think rect:nth-child(3) {
  animation-delay: 0.5s;
}

html.js .face--sales .face-eye-r {
  animation: face-wink 7s infinite;
}

html.js .face--artist .face-sign {
  animation: face-float 2.4s ease-in-out infinite;
}

html.js .face--wellbeing .face-body {
  animation-duration: 7.5s;
}

/* A hop when you point at one. */
html.js .team:not(.is-paused) .mate:hover .face .face-body {
  animation: face-hop 0.6s var(--ease-standard) 1;
}

html.js .team.is-paused .face,
html.js .team.is-paused .face * {
  animation-play-state: paused;
}

@keyframes face-hop {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
}

@keyframes face-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

@keyframes face-wink {
  0%, 60%, 70%, 100% { transform: scaleY(1); }
  63%, 67% { transform: scaleY(0.15); }
}

@keyframes face-look {
  0%, 16%, 100% { transform: translate(0, 0); }
  22%, 38% { transform: translate(-2.5px, 0); }
  44%, 60% { transform: translate(2.5px, 0); }
  66%, 82% { transform: translate(0, 1.5px); }
  88% { transform: translate(0, 0); }
}

@keyframes face-talk {
  0%, 38%, 100% { transform: scaleY(0.5); }
  6% { transform: scaleY(1.3); }
  12% { transform: scaleY(0.4); }
  18% { transform: scaleY(1.1); }
  24% { transform: scaleY(0.6); }
  30% { transform: scaleY(1.25); }
}

@keyframes face-caret {
  0% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes face-think {
  0%, 60%, 100% { opacity: 0.25; }
  30% { opacity: 1; }
}

@keyframes face-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* The limits beside the run that shows them; the start below them. */
.split--stage {
  align-items: start;
}

@media (min-width: 48rem) {
  .rows--3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rows--3 > li:not(:first-child) {
    padding-left: var(--space-5);
    border-left: var(--rule-hair) solid var(--color-rule);
  }

  .rows--3 > li:not(:last-child) {
    padding-right: var(--space-5);
  }
}

.split + .rows--3 {
  margin-top: var(--space-7);
}

.ledger-start {
  margin-bottom: var(--space-7);
}

.ledger-start-text {
  display: grid;
  gap: var(--space-5);
  align-content: start;
}

.ledger-start-text p {
  color: var(--color-ink-2);
  max-width: 52ch;
}

.plate figcaption {
  border-top: var(--rule-hair) solid var(--color-rule);
  padding: var(--space-4);
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 48rem) {
  .plate figcaption {
    padding: var(--space-5);
  }
}

.plate-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
}

.plate-title h3,
.plate-title .plate-name {
  font-size: var(--text-md);
  font-stretch: 106%;
  font-weight: var(--weight-strong);
  letter-spacing: 0;
}

.plate-title .fig {
  color: var(--color-ink-3);
  font-weight: var(--weight-label);
  margin-right: var(--space-2);
  font-variant-numeric: tabular-nums;
}

.plate-desc {
  color: var(--color-ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 78ch;
}

.plate-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 36px;
  padding: 0 var(--space-3);
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: var(--radius-control);
  background: var(--color-bg);
  color: var(--color-ink);
  font: inherit;
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  letter-spacing: var(--tracking-label);
  cursor: pointer;
}

.plate-toggle:hover {
  border-color: var(--color-ink);
}

/* A toggle the scripts have not shown (no JavaScript, or nothing moving). */
.plate-toggle[hidden] {
  display: none;
}

.plate-toggle svg {
  width: 10px;
  height: 10px;
}

.plate-toggle .icon-play {
  display: none;
}

.plate-toggle[aria-pressed="true"] .icon-play {
  display: block;
}

.plate-toggle[aria-pressed="true"] .icon-pause {
  display: none;
}

.plate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  font-size: var(--text-sm);
}

.plate-meta div {
  display: flex;
  gap: var(--space-2);
  align-items: baseline;
  min-width: 0;
}

.plate-meta dt {
  color: var(--color-ink-3);
  font-weight: var(--weight-label);
  flex: none;
}

.plate-meta dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.plate-meta code {
  font-size: 0.875rem;
}

/* Status of a mechanism in the reference implementation. Same grammar as
   the diagrams: solid is real, outline is partial, dashed is simulated. */
.status {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5em;
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  line-height: 1.4;
}

.status::before {
  content: "";
  width: 0.72em;
  height: 0.72em;
  margin-top: 0.3em;
  flex: none;
  border: 1.5px solid currentColor;
}

.status--built::before {
  background: currentColor;
}

.status--simplified::before {
  background: linear-gradient(135deg, currentColor 50%, transparent 50%);
}

.status--simulated::before {
  border-style: dashed;
}

.status--missing {
  color: var(--color-ink-3);
}

.status--missing::before {
  border-color: transparent;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
}

/* --------------------------------------------------------------- code */

.code {
  position: relative;
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-bg-raised);
}

.code pre {
  overflow-x: auto;
  padding: var(--space-4) var(--space-5);
  font-size: 0.875rem;
  line-height: var(--leading-code);
  tab-size: 2;
}

.code pre code {
  font-size: inherit;
}

.code--wrap pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.code .c {
  color: var(--color-ink-3);
}

.code-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-5);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  font-weight: var(--weight-label);
}

.copy-button {
  min-height: 32px;
  padding: 0 var(--space-3);
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--color-ink-2);
  font: inherit;
  font-size: var(--text-xs);
  cursor: pointer;
}

.copy-button:hover {
  color: var(--color-ink);
  border-color: var(--color-ink);
}

.formula {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  letter-spacing: 0;
  padding: var(--space-4) var(--space-5);
  border-left: var(--rule-strong) solid var(--color-ink);
  background: var(--color-bg-raised);
  overflow-x: auto;
  max-width: 100%;
  white-space: pre;
}

/* -------------------------------------------------------------- tables */

.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.table caption {
  text-align: left;
  font-size: var(--text-sm);
  color: var(--color-ink-3);
  padding-bottom: var(--space-3);
}

.table th,
.table td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.table thead th {
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  color: var(--color-ink-3);
  border-bottom-color: var(--color-rule-strong);
  white-space: nowrap;
}

.table tbody th {
  font-weight: var(--weight-strong);
}

.table td code,
.table th code {
  font-size: 0.8125rem;
  white-space: nowrap;
}

.table--wide {
  min-width: 40rem;
}

.table .num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* On phones, rows stack: each row becomes a block, and cells of tables with
   three or more columns show their column's name (data-label, added when
   the pages are built). The header row stays available to screen readers. */
@media (max-width: 39.99rem) {
  .table,
  .table tbody,
  .table tr,
  .table td,
  .table tbody th {
    display: block;
  }

  .table,
  .table--wide {
    min-width: 0;
  }

  .table caption {
    display: block;
  }

  .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .table tbody tr {
    padding: var(--space-3) 0;
    border-bottom: var(--rule-hair) solid var(--color-rule);
  }

  .table tbody tr:first-child {
    border-top: var(--rule-hair) solid var(--color-rule-strong);
  }

  .table td,
  .table tbody th {
    padding: 0;
    border: 0;
  }

  .table tr > * + * {
    margin-top: var(--space-2);
  }

  .table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: var(--text-xs);
    font-weight: var(--weight-label);
    color: var(--color-ink-3);
  }

  .table .num {
    white-space: normal;
  }

  .table--api td:first-child {
    display: inline-block;
    min-width: 3.25rem;
    color: var(--color-ink-3);
  }

  .table--api td:nth-child(2) {
    display: inline-block;
    margin-top: 0;
  }

  .table--api td:nth-child(3) {
    margin-top: var(--space-1);
  }
}

/* A comparison: Siontology's column on a raised ground, rows in groups under
   a label, and a check or a dash beside each yes or no (build_site.py). On
   phones, rows stack like any table's, each answer under its column's name. */
.table--compare {
  table-layout: fixed;
  min-width: 58rem;
}

.table--compare .compare-what {
  width: 17%;
}

.table--compare .compare-us {
  width: 19%;
}

.table--compare td {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

.table--compare tbody th {
  font-size: var(--text-sm);
}

.table--compare thead th:nth-child(n + 2),
.table--compare tbody td {
  padding-left: var(--space-3);
}

.table--compare thead th:nth-child(2),
.table--compare tbody td:nth-child(2) {
  background: var(--color-bg-raised);
  color: var(--color-ink);
}

.table--compare thead th:nth-child(2) {
  font-weight: var(--weight-strong);
}

.table--compare .compare-group th {
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  letter-spacing: var(--tracking-label);
  color: var(--color-ink-3);
  border-bottom-color: var(--color-rule-strong);
}

.table--compare tbody:first-of-type .compare-group th {
  padding-top: var(--space-3);
}

.mark {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.35em;
  vertical-align: -0.1em;
  color: var(--color-ink);
}

.mark--no {
  color: var(--color-ink-3);
}

.compare-sources {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--color-ink-3);
  max-width: none;
}

.compare-sources strong {
  color: var(--color-ink-2);
}

@media (max-width: 39.99rem) {
  .table--compare {
    min-width: 0;
  }

  .table--compare tbody td {
    padding-left: 0;
  }

  .table--compare tbody td:nth-child(2) {
    padding: var(--space-2) var(--space-3);
  }

  .table--compare .compare-group th,
  .table--compare tbody:first-of-type .compare-group th {
    padding-top: var(--space-5);
  }

  .table--compare tbody tr.compare-group {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

/* --------------------------------------------------------------- lists */

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  border-top: var(--rule-hair) solid var(--color-rule);
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--space-3);
  padding: var(--space-4) 0;
  margin: 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.steps li::before {
  content: counter(step);
  font-variant-numeric: tabular-nums;
  color: var(--color-ink-3);
  font-weight: var(--weight-label);
}

.steps strong {
  display: block;
}

.steps p {
  color: var(--color-ink-2);
}

.rows {
  list-style: none;
  padding: 0;
  border-top: var(--rule-hair) solid var(--color-rule);
}

.rows > li {
  margin: 0;
  padding: var(--space-4) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.rows p {
  color: var(--color-ink-2);
}

.rows h3 + p {
  margin-top: var(--space-2);
}

/* Numbered rows, for lists that are numbered at their source. */
.rows--numbered {
  counter-reset: row;
}

.rows--numbered > li {
  counter-increment: row;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-content: start;
}

.rows--numbered > li::before {
  content: counter(row);
  grid-row: 1 / span 2;
  font-size: var(--text-lg);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  color: var(--color-ink-3);
  font-weight: var(--weight-label);
}

.rows--numbered > li > * {
  grid-column: 2;
}

@media (min-width: 64rem) {
  .rows--two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-8);
  }
}

.notice {
  border: var(--rule-hair) solid var(--color-ink);
  padding: var(--space-5);
  display: grid;
  gap: var(--space-3);
  max-width: 72ch;
}

.notice strong {
  font-stretch: 106%;
}

.tag {
  display: inline-block;
  padding: 0.15em 0.55em;
  border: var(--rule-hair) solid currentColor;
  border-radius: var(--radius-control);
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  letter-spacing: var(--tracking-label);
  white-space: nowrap;
  vertical-align: 0.15em;
}

.tag--signal {
  color: var(--color-signal);
}

/* ------------------------------------------------------- documents page */

.doc {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

@media (min-width: 64rem) {
  .doc {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: var(--space-8);
  }
}

.doc:first-of-type {
  border-top: var(--rule-hair) solid var(--color-rule);
}

.doc h2 {
  font-size: var(--text-2xl);
}

.doc .meta {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-ink-3);
}

/* ----------------------------------------------------- technology layout */

.with-toc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7);
}

.with-toc > * {
  min-width: 0;
}

@media (min-width: 72rem) {
  .with-toc {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: var(--space-8);
  }
}

.toc {
  font-size: var(--text-sm);
}

.toc h2 {
  font-size: var(--text-sm);
  font-stretch: 100%;
  font-weight: var(--weight-label);
  color: var(--color-ink-3);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-label);
}

.toc ol {
  list-style: none;
  padding: 0;
  border-top: var(--rule-hair) solid var(--color-rule);
}

.toc li {
  margin: 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.toc a {
  display: block;
  padding: var(--space-2) 0;
  text-decoration: none;
  color: var(--color-ink-2);
}

.toc a:hover,
.toc a[aria-current="true"] {
  color: var(--color-ink);
}

@media (min-width: 72rem) {
  .toc > div {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
  }
}

@media (max-width: 71.99rem) {
  .toc ol {
    columns: 2;
    column-gap: var(--space-5);
  }

  .toc li {
    break-inside: avoid;
  }
}

.topic {
  padding-bottom: var(--space-9);
  margin-bottom: var(--space-8);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

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

.topic > h2 {
  margin-bottom: var(--space-5);
}

.topic > * + * {
  margin-top: var(--space-6);
}

.topic > .swatch-group {
  margin-top: var(--space-7);
  font-size: var(--text-md);
}

.topic > .swatch-group + * {
  margin-top: var(--space-3);
}

/* A short list of facts: a term and its value per row. */
.facts {
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: 0.9375rem;
  align-self: start;
}

.facts > div {
  display: grid;
  grid-template-columns: minmax(6.5rem, 2fr) minmax(0, 5fr);
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.facts dt {
  color: var(--color-ink-3);
  font-weight: var(--weight-label);
}

.facts dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Measured numbers in a row: the figure large, what it is above it, and
   how it was measured below. */
.measures {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: var(--space-7);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.measures > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) 0 var(--space-6);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.measures dt {
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  color: var(--color-ink-3);
}

.measures dd {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.measure {
  font-size: var(--text-3xl);
  font-stretch: 112%;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
}

.measure sup {
  font-size: 0.55em;
  line-height: 0;
  vertical-align: 0.75em;
}

.measure-note {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  max-width: 34ch;
}

@media (min-width: 48rem) {
  .measures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .measures > div {
    padding-right: var(--space-6);
  }

  .measures > :nth-child(2n) {
    padding-left: var(--space-6);
    border-left: var(--rule-hair) solid var(--color-rule);
  }
}

@media (min-width: 80rem) {
  .measures {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .measures > :not(:nth-child(4n + 1)) {
    padding-left: var(--space-6);
    border-left: var(--rule-hair) solid var(--color-rule);
  }
}

.notice-line {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

.notice-line strong {
  color: var(--color-ink);
}

/* ------------------------------------------------------------ brand page */

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  border-top: var(--rule-hair) solid var(--color-rule);
  border-left: var(--rule-hair) solid var(--color-rule);
}

.swatch {
  border-right: var(--rule-hair) solid var(--color-rule);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-sm);
}

.swatch-chip {
  height: 5rem;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.swatch-info {
  padding: var(--space-3);
  display: grid;
  gap: 2px;
}

.swatch-info code {
  font-size: var(--text-xs);
  color: var(--color-ink-2);
}

.logo-tiles {
  display: grid;
  gap: 0;
  border-top: var(--rule-hair) solid var(--color-rule);
  border-left: var(--rule-hair) solid var(--color-rule);
}

@media (min-width: 48rem) {
  .logo-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.logo-tile {
  border-right: var(--rule-hair) solid var(--color-rule);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  display: grid;
  grid-template-rows: 1fr auto;
}

.logo-tile .art {
  min-height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-7) var(--space-5);
}

.logo-tile .art--dark {
  background: #000000;
}

.logo-tile .art--light {
  background: #ffffff;
}

.logo-tile .art img {
  max-height: 4.5rem;
  width: auto;
}

.logo-tile .art img.mark {
  height: 5rem;
}

.logo-tile .art--sizes {
  gap: var(--space-6);
  align-items: flex-end;
}

.logo-tile .label {
  padding: var(--space-3) var(--space-4);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-sm);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
}

.specimen {
  border-top: var(--rule-hair) solid var(--color-rule);
}

.specimen > div {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

@media (min-width: 64rem) {
  .specimen > div {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: var(--space-6);
    align-items: baseline;
  }
}

.specimen .spec {
  font-size: var(--text-sm);
  color: var(--color-ink-3);
}

.dodont {
  display: grid;
  gap: 0;
  border-top: var(--rule-hair) solid var(--color-rule);
}

@media (min-width: 48rem) {
  .dodont {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dodont > div:nth-child(2n) {
    border-left: var(--rule-hair) solid var(--color-rule);
    padding-left: var(--space-6);
  }
}

.dodont > div {
  padding: var(--space-5) var(--space-6) var(--space-5) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.dodont h3 {
  font-size: var(--text-md);
  margin-bottom: var(--space-3);
}

.dodont ul {
  color: var(--color-ink-2);
}

.legend {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  border-top: var(--rule-hair) solid var(--color-rule);
}

.legend > div {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-sm);
}

.legend svg {
  width: 2rem;
  height: 2rem;
}

.legend .legend-signal svg {
  color: var(--color-signal);
}

.construction {
  margin: 0;
}

.construction svg {
  width: 100%;
  max-width: 30rem;
  height: auto;
  color: var(--color-ink);
}

.construction .mark-cells rect {
  fill: currentColor;
}

.construction .dim line {
  stroke: var(--color-ink-3);
  stroke-width: 1;
}

.construction text {
  fill: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 17px;
}

.construction text.note {
  fill: var(--color-ink-3);
  font-size: 14px;
}

.construction figcaption {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-ink-3);
}

.downloads {
  list-style: none;
  padding: 0;
  border-top: var(--rule-hair) solid var(--color-rule);
}

.downloads li {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  padding: var(--space-3) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-sm);
}

.downloads .what {
  color: var(--color-ink-2);
}

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

.site-footer {
  margin-top: var(--space-9);
  border-top: var(--rule-hair) solid var(--color-rule);
  padding-block: var(--space-7) var(--space-6);
  font-size: var(--text-sm);
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  }
}

.footer-grid h2 {
  font-size: var(--text-sm);
  font-stretch: 100%;
  font-weight: var(--weight-label);
  color: var(--color-ink-3);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-label);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
}

.footer-grid li + li {
  margin-top: var(--space-2);
}

.footer-grid a {
  text-decoration: none;
  color: var(--color-ink-2);
}

.footer-grid a:hover {
  color: var(--color-ink);
  text-decoration: underline;
}

.footer-brand p {
  margin-top: var(--space-4);
  color: var(--color-ink-2);
  max-width: 40ch;
}

.footer-base {
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: var(--rule-hair) solid var(--color-rule);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  color: var(--color-ink-3);
}

.footer-base p {
  max-width: none;
}

/* ---------------------------------------------------------------- print */

@media print {
  .site-header,
  .plate-toggle,
  .copy-button,
  .menu-button,
  .theme-button {
    display: none !important;
  }
}
