@font-face {
  font-family: "Instrument Sans";
  src: url("./fonts/instrument-sans-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

@font-face {
  font-family: "Pirata One";
  src: url("./fonts/pirata-one.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("./fonts/geist-mono-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Paper and ink */
  --paper: #f3f0e8;
  --paper-raised: #f9f7f1;
  --wash: #e7e8dd;
  --ink: #181a16;
  --muted: #696a62;
  --line: #c9c7bd;
  --line-control: #83847a;

  /* One decisive accent, reserved for something a reader can act on */
  --yellow: #ecdf36;
  --yellow-pressed: #dfd127;

  /* Family identity. A tool page may override --accent. */
  --gold: #80642f;
  --accent: #486b61;

  /* Dark surface for code */
  --ink-surface: #1d201b;
  --on-ink: #f3f0e8;
  --on-ink-muted: #b4b5a8;
  --on-ink-line: #50544b;

  /* Tool fields: four muted hues that sit on paper, plus a neutral */
  --field-red: #a9644f;
  --field-green: #6f8257;
  --field-blue: #57809f;
  --field-yellow: #b08c3c;
  --field-slate: #68717a;
  --field-fallback: #9c8c73;

  /* Sheet tints: light versions of the fields for diagrams */
  --tint-red: #edd5ca;
  --tint-green: #dbe3c9;
  --tint-blue: #cfdeea;
  --tint-yellow: #f0e0b4;
  --tint-slate: #dcdedb;

  /* Pastels: small icon tiles in diagrams only */
  --pastel-butter: #f8e6a6;
  --pastel-mint: #bfe8d5;
  --pastel-blue: #bcdcf7;
  --pastel-stone: #d9d6cf;
  --pastel-rose: #f2a7c3;

  /* Type */
  --sans: "Instrument Sans", ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --wordmark: "Pirata One", var(--serif);
  --display: var(--sans);
  --display-weight: 400;
  --display-weight-strong: 500;
  --text-xs: 13px;
  --text-s: 15px;
  --text-m: 17px;
  --text-l: 21px;

  /* Space: a field for looking and a column for reading */
  --edge: clamp(22px, 3vw, 52px);
  --gap: clamp(16px, 1.7vw, 28px);
  --shell: 1376px;
  --wide: 950px;
  --measure: 676px;
  --section: 96px;
  --chapter: 64px;

  /* Shape */
  --radius: 8px;
  --radius-control: 8px;
  --radius-icon: 22.5%;
  --radius-swatch: 3px;
  --radius-pill: 999px;

  /* Motion: expand, settle, reveal, return */
  --ease: cubic-bezier(.22, .7, .15, 1);
  --t-hover: 120ms;
  --t-page: 300ms;
  --t-reveal: 800ms;
  --t-image: 700ms;
  --t-menu: 720ms;

  /* Depth: only app icons and lifted cards cast a shadow */
  --shadow-icon: 0 1px 2px rgb(24 26 22 / .14), 0 4px 10px rgb(24 26 22 / .08);
  --shadow-lift: 0 2px 4px rgb(24 26 22 / .08), 0 12px 28px rgb(24 26 22 / .12);
}

@media (max-width: 700px) {
  :root {
    --section: 64px;
    --chapter: 44px;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

/* A gap in the surface color, then solid ink. It follows the radius. */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

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

img,
video {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
figure,
ol,
ul,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  text-wrap: balance;
}

h1 {
  font-size: clamp(36px, calc(28px + 3vw), 64px);
  font-weight: var(--display-weight-strong);
  line-height: 1.02;
  letter-spacing: -.055em;
}

h2 {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: var(--display-weight-strong);
  line-height: 1.12;
  letter-spacing: -.04em;
}

h3 {
  font-size: 22px;
  font-weight: var(--display-weight-strong);
  line-height: 1.2;
  letter-spacing: -.03em;
}

p {
  text-wrap: pretty;
}

p + p {
  margin-top: 16px;
}

code,
kbd,
pre {
  font-family: var(--mono);
}

code {
  font-size: .86em;
  letter-spacing: 0;
}

:not(pre) > code {
  padding: .12em .38em;
  border-radius: var(--radius-swatch);
  background: var(--wash);
  overflow-wrap: anywhere;
}

.hidden,
[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 30;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--paper);
}

.skip:focus {
  top: 10px;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    animation: none !important;
  }
}

/* Layout */

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

.column {
  width: min(var(--measure), 100%);
  margin-inline: auto;
}

.section {
  padding: var(--chapter) 0;
}

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

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px 40px;
  margin-bottom: 36px;
}

.section-head > p {
  max-width: 34ch;
  color: var(--muted);
}

.about {
  max-width: 62ch;
  margin: -12px 0 36px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr);
  gap: clamp(36px, 6vw, 90px);
}

.split > div > h2 + p,
.split > div > h3 + p {
  max-width: 36ch;
  margin-top: 20px;
  color: var(--muted);
}

/* Type roles */

.eyebrow {
  margin-bottom: 16px;
  color: var(--gold);
  font: 500 12px/1.5 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.standfirst {
  max-width: 34em;
  font-size: var(--text-l);
  line-height: 1.45;
  letter-spacing: -.028em;
}

.note {
  margin-top: 14px;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.annotation {
  color: var(--muted);
  font: 500 11px/14px var(--mono);
  letter-spacing: .02em;
}

/* Actions */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line-control);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink);
  font-size: var(--text-s);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background var(--t-hover) ease-out, border-color var(--t-hover) ease-out;
}

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

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

.button.primary:hover {
  background: #30342d;
}

.button.action {
  border-color: var(--yellow);
  background: var(--yellow);
}

.button.action:hover {
  border-color: var(--yellow-pressed);
  background: var(--yellow-pressed);
}

.button.pill {
  padding: 0 24px;
  border-radius: var(--radius-pill);
}

.button .icon,
.text-link .icon {
  transition: transform var(--t-page) var(--ease);
}

.button:hover .icon,
.text-link:hover .icon {
  transform: translateX(3px);
}

/* Get: a compact link to the tool's page. */
.get {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 68px;
  min-height: 32px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--wash);
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background var(--t-hover) ease-out;
}

.get:hover {
  background: var(--line);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  font-size: var(--text-s);
  line-height: 1.3;
  text-decoration: none;
}

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

.icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Identity: masthead, menu, footer */

.masthead {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.masthead .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  min-height: 96px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  flex: none;
  width: 32px;
  height: 32px;
}

.mark-spark {
  fill: var(--gold);
}

.menu .mark-spark {
  fill: var(--ink);
}

.brand-name {
  font: var(--display-weight-strong) 22px/1.2 var(--display);
  letter-spacing: -.035em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: var(--text-s);
}

.nav a {
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  transition: background var(--t-hover) ease-out;
}

.menu-toggle:hover {
  background: var(--yellow-pressed);
}

/* The yellow field grows from the control that opened it. */
.menu {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: auto;
  visibility: hidden;
  background: var(--yellow);
  clip-path: circle(0 at var(--menu-x, calc(100% - 48px)) var(--menu-y, 54px));
  transition: clip-path var(--t-menu) var(--ease), visibility 0s var(--t-menu);
}

.menu[data-open] {
  visibility: visible;
  clip-path: circle(150vmax at var(--menu-x, calc(100% - 48px)) var(--menu-y, 54px));
  transition: clip-path var(--t-menu) var(--ease), visibility 0s;
}

.menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 96px;
}

.menu-close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  transition: transform var(--t-page) var(--ease);
}

.menu-close:hover {
  transform: rotate(90deg);
}

.menu .button.primary {
  margin-bottom: 24px;
  color: var(--yellow);
}

.menu-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: menu;
  border-bottom: 1px solid rgb(24 26 22 / .32);
}

.menu-rows a {
  display: grid;
  grid-template-columns: clamp(44px, 6.5vw, 90px) 1fr auto;
  align-items: center;
  padding: clamp(22px, 5.2vh, 84px) 0;
  border-top: 1px solid rgb(24 26 22 / .32);
  font: var(--display-weight-strong) clamp(38px, 5.6vw, 76px) / 1 var(--display);
  letter-spacing: -.055em;
  text-decoration: none;
  counter-increment: menu;
}

.menu-rows a::before {
  content: "0" counter(menu);
  font: 500 11px/1 var(--mono);
  letter-spacing: .02em;
}

.menu-rows .icon {
  transition: transform var(--t-page) var(--ease);
}

.menu-rows a:hover .icon {
  transform: translate(4px, -4px);
}

.site-footer {
  margin-top: var(--section);
  padding: 48px 0 72px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 32px 60px;
}

.credit {
  display: flex;
  flex: 1 0 100%;
  justify-content: flex-end;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.credit strong {
  color: var(--ink);
  font: 400 24px/1 var(--wordmark);
  letter-spacing: -.02em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  font-size: var(--text-s);
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

/* Drawn details */

.crop {
  --crop-size: 16px;
  --crop-stroke: linear-gradient(var(--line-control), var(--line-control));
  background-image:
    var(--crop-stroke), var(--crop-stroke), var(--crop-stroke), var(--crop-stroke),
    var(--crop-stroke), var(--crop-stroke), var(--crop-stroke), var(--crop-stroke);
  background-repeat: no-repeat;
  background-position:
    left top, left top, right top, right top,
    left bottom, left bottom, right bottom, right bottom;
  background-size:
    var(--crop-size) 1px, 1px var(--crop-size), var(--crop-size) 1px, 1px var(--crop-size),
    var(--crop-size) 1px, 1px var(--crop-size), var(--crop-size) 1px, 1px var(--crop-size);
}

.dimension {
  --tick: linear-gradient(var(--line-control), var(--line-control));
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font: 500 13px/16px var(--mono);
  letter-spacing: .02em;
  white-space: nowrap;
}

.dimension::before,
.dimension::after {
  content: "";
  flex: 1;
  height: 9px;
  background-image: var(--tick), var(--tick);
  background-repeat: no-repeat;
  background-size: 100% 1px, 1px 9px;
}

.dimension::before {
  background-position: center, left center;
}

.dimension::after {
  background-position: center, right center;
}

.tag {
  display: inline-block;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-swatch);
  color: var(--muted);
  font: 500 10px/1 var(--mono);
  letter-spacing: .02em;
}

.tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--swatch, var(--pastel-stone));
  color: var(--ink);
}

.status-pill {
  display: inline-block;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: rgb(243 240 232 / .82);
  color: var(--ink);
  font: 500 10px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Graphics: a tool's glyph is pressed into its field */

.app-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--size, 56px);
  aspect-ratio: 1;
  border-radius: var(--radius-icon);
  background: var(--field, var(--field-fallback));
  box-shadow: inset 0 0 0 1px rgb(24 26 22 / .1), var(--shadow-icon);
}

.app-icon svg {
  width: 56%;
  height: 56%;
  overflow: visible;
}

/* A tool's own artwork is drawn for the whole tile. */
.app-icon.art svg {
  width: 100%;
  height: 100%;
}

/* Openings */

.hero {
  padding: 24px 0 var(--chapter);
}

.hero-start {
  max-width: 640px;
  margin-top: 36px;
}

.hero-start .eyebrow {
  margin-bottom: 10px;
}

.hero-start .note {
  margin-top: 10px;
}

.hero .actions {
  margin-top: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
}

.news {
  padding: 24px 28px 8px;
  border-radius: var(--radius);
  background: var(--paper-raised);
}

.news h2 {
  margin-bottom: 8px;
  color: var(--gold);
  font: 500 12px/1.5 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  padding: 16px 0;
}

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

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font: 500 12px/1.5 var(--mono);
  letter-spacing: .02em;
}

.news-title {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.news-title a {
  text-decoration: none;
}

.news-title a:hover {
  text-decoration: underline;
}

.news-title .icon {
  display: inline-block;
  margin-left: 6px;
  vertical-align: -2px;
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(42px, 5vw, 72px);
  font-weight: var(--display-weight);
  line-height: 1.06;
}

.hero .standfirst {
  max-width: 22em;
  margin-top: 20px;
}

.catalog-hero {
  padding: 24px 0 40px;
}

.catalog-hero .standfirst {
  margin-top: 16px;
  color: var(--muted);
}

.store-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 36px);
  padding: 24px 0 48px;
}

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

/* A tool's facts: one quiet line under its name. */
.facts {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.6;
}

.facts dd {
  display: inline;
  margin: 0;
}

/* Each fact carries its divider on the left, so a wrapped line never starts with one. */
.facts > div {
  position: relative;
  margin: 0 21px 0 -21px;
  padding-left: 21px;
}

.facts > div::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10px;
  width: 1px;
  height: 11px;
  background: var(--line-control);
  translate: 0 -50%;
}

.store-head .app-icon {
  --size: clamp(96px, 11vw, 144px);
}

.store-head .standfirst {
  max-width: 34em;
  margin-top: 16px;
  color: var(--muted);
}

.store-head .actions {
  margin-top: 24px;
}

/* Blocks */

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px clamp(24px, 3vw, 48px);
}

.benefits > div {
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.benefits strong {
  display: block;
  font: var(--display-weight-strong) 22px/1.2 var(--display);
  letter-spacing: -.03em;
}

.benefits p {
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--text-s);
  line-height: 1.5;
}

.numbered {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
  border-top: 1px solid var(--line);
}

.numbered li {
  position: relative;
  padding: 22px 0 24px 56px;
  border-bottom: 1px solid var(--line);
  counter-increment: steps;
}

.numbered li::before {
  content: "0" counter(steps);
  position: absolute;
  left: 0;
  top: 29px;
  color: var(--gold);
  font: 500 11px/1 var(--mono);
  letter-spacing: .02em;
}

.numbered p {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--text-s);
}

.callout {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
  background: var(--wash);
}

.code-box {
  padding: 16px 20px 20px;
  border-radius: var(--radius);
  background: var(--ink-surface);
  color: var(--on-ink);
}

h3 + .copy-region {
  margin-top: 16px;
}

.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  color: var(--on-ink-muted);
  font: 500 11px/1.4 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.code-box pre {
  margin: 12px 0 0;
  font-size: var(--text-xs);
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--on-ink-line);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: .02em;
  text-transform: none;
}

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

.copy:focus-visible {
  outline-color: var(--on-ink);
}

.status-message {
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--text-xs);
}

.status-message:empty {
  display: none;
}

.product-image {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--wash);
}

.product-image img,
.product-image video {
  width: 100%;
  max-height: 760px;
  object-fit: contain;
}

.product-image .embed {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.image-caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--text-xs);
}

/* Flow diagram: who calls, what the tool holds, what comes back */

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr) auto minmax(0, 1fr);
  align-items: stretch;
}

.flow-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line-control);
  border-radius: 12px;
  background: var(--paper-raised);
}

.flow-panel > h3 {
  margin-bottom: 2px;
  font: 600 var(--text-s)/1.3 var(--sans);
  letter-spacing: -.012em;
  text-align: center;
}

.flow-panel.tool {
  border-color: var(--ink);
  background: var(--wash);
}

.flow .tile {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.flow-item {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.flow-item > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
}

.flow-item strong {
  font-size: var(--text-s);
  font-weight: 600;
  line-height: 1.3;
}

.flow-item span:not(.tile) {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.35;
}

.flow-core {
  flex: 1;
  padding: 10px 12px 12px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--paper);
}

.flow-core .eyebrow {
  margin-bottom: 8px;
}

.flow-quad {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.flow-quad > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-s);
  font-weight: 600;
}

.flow-arrow {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 0 14px;
  color: var(--muted);
  font: 500 11px/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.flow-arrow .icon {
  color: var(--ink);
}

.flow + .dimension {
  margin-top: 18px;
}

/* Tool card: field, pressed glyph, title at the lower edge */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 32px var(--gap);
}

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

.tool-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 3 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--field, var(--field-fallback));
  color: var(--on-ink);
  transition: box-shadow var(--t-page) var(--ease), transform var(--t-page) var(--ease);
}

.tool-card.wide {
  aspect-ratio: 16 / 10;
}

.tool-card:hover,
.tool-card:focus-within {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.tool-card-art {
  position: absolute;
  top: 12%;
  left: 50%;
  z-index: -2;
  width: 62%;
  overflow: visible;
  translate: -50% 0;
  transition: scale var(--t-image) var(--ease);
}

.tool-card.wide .tool-card-art {
  top: 11%;
  left: auto;
  right: 7%;
  width: 30%;
  translate: none;
}

/* A tile drawing carries its own margin, so it is set larger to match a glyph. */
.tool-card.wide.art .tool-card-art {
  top: 5%;
  right: 3%;
  width: 38%;
}

/* An ink tile is dark enough for its title without the shade. */
.tool-card.art::before {
  background: none;
}

.tool-card:hover .tool-card-art,
.tool-card:focus-within .tool-card-art {
  scale: 1.035;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, transparent 40%, rgb(24 26 22 / .45) 72%, rgb(24 26 22 / .88));
}

.tool-card-top {
  display: flex;
  min-height: 24px;
  padding: 20px 20px 0;
}

.tool-card-body {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 20px;
}

.tool-card-title {
  font: var(--display-weight-strong) clamp(20px, 1.9vw, 28px) / 1.08 var(--display);
  letter-spacing: -.04em;
}

.tool-card-title a {
  text-decoration: none;
}

.tool-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.tool-card-title a:focus-visible {
  outline: none;
}

.tool-card:has(.tool-card-title a:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.tool-card-sub {
  display: -webkit-box;
  overflow: hidden;
  max-width: 30ch;
  margin-top: 6px;
  color: rgb(243 240 232 / .82);
  font-size: var(--text-s);
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tool-card .get {
  background: var(--paper);
}

.tool-card .get:hover {
  background: #fff;
}

/* App list: icon, name, one line, Get */

.app-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 3vw, 48px);
}

.app-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.app-row-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: var(--text-m);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.app-row-name a {
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-row-name a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.app-row-name a:hover {
  text-decoration: underline;
}

.app-row p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Catalog */

.store-search {
  position: relative;
  max-width: 560px;
  margin-top: 28px;
}

.store-search .icon {
  position: absolute;
  top: 50%;
  left: 16px;
  color: var(--muted);
  translate: 0 -50%;
  pointer-events: none;
}

.store-search input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px 0 48px;
  border: 1px solid var(--line-control);
  border-radius: var(--radius-control);
  background: var(--paper-raised);
  font-size: var(--text-m);
}

.store-search input::placeholder {
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 14px;
  line-height: 1;
  transition: background var(--t-hover) ease-out, border-color var(--t-hover) ease-out;
}

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

.chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.store-section {
  margin-top: 56px;
}

.store-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.store-section-head h2 {
  font-size: 26px;
}

.store-section-head.plain {
  margin-bottom: 20px;
  padding-bottom: 0;
  border-bottom: 0;
}

.empty {
  margin-top: 40px;
  padding: 48px 24px;
  text-align: center;
  background-color: var(--paper-raised);
}

.empty p {
  margin-top: 8px;
  color: var(--muted);
}

.empty .button {
  margin-top: 20px;
}

/* Reader: long-form specification pages */

.reader-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, var(--measure)) 210px;
  grid-template-areas: "chapters content outline";
  justify-content: space-between;
  align-items: start;
  gap: clamp(30px, 4vw, 64px);
  padding: 32px 0 var(--chapter);
}

.reader-sidebar {
  grid-area: chapters;
}

.reader-content {
  grid-area: content;
}

.reader-toc {
  grid-area: outline;
}

.reader-sidebar,
.reader-toc {
  position: sticky;
  top: 28px;
  font-size: var(--text-xs);
  line-height: 1.4;
}

.reader-sidebar nav,
.reader-toc nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reader-sidebar nav a,
.reader-toc nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.reader-sidebar nav a[aria-current="page"] {
  text-decoration: underline;
}

.reader-toc summary {
  color: var(--gold);
  font: 500 11px/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.reader-toc nav {
  margin-top: 12px;
}

.reader-source {
  display: inline-block;
  margin-top: 28px;
  color: var(--muted);
}

.reader-content {
  min-width: 0;
  overflow-wrap: break-word;
  font-size: 19px;
  line-height: 1.7;
}

.reader-content h1 {
  margin-bottom: clamp(24px, 3vw, 40px);
}

.reader-content h2 {
  margin: var(--chapter) 0 20px;
}

.reader-content h3 {
  margin: 36px 0 12px;
}

.reader-content p {
  margin: 18px 0;
}

.reader-content li {
  margin: 8px 0;
}

.reader-content pre {
  max-width: 100%;
  margin: 24px 0;
  padding: 20px 22px;
  overflow: auto;
  border-radius: var(--radius);
  background: var(--ink-surface);
  color: var(--on-ink);
  font-size: var(--text-xs);
  line-height: 1.7;
}

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

.reader-content blockquote {
  margin: 28px 0;
  padding-left: 24px;
  border-left: 1px solid var(--gold);
  color: var(--muted);
}

.reader-content table {
  display: block;
  max-width: 100%;
  margin: 24px 0;
  overflow: auto;
  border-collapse: collapse;
  font-size: var(--text-s);
  line-height: 1.5;
}

.reader-content th,
.reader-content td {
  padding: 12px 24px 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.reader-content th {
  border-bottom-color: var(--ink);
  color: var(--muted);
  font: 500 11px/1.4 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.reader-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-top: var(--chapter);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* Tool listing */

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

.use-cases li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-s);
  line-height: 1.5;
}

.store-head .status-pill {
  margin-bottom: 14px;
  background: var(--wash);
}

.source-line {
  margin-top: 16px;
  color: var(--muted);
  font-size: var(--text-xs);
}

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

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

/* Reasons to use a tool, as cards under an icon tile. */
.benefits.cards,
.build {
  --pad: 24px;
}

.benefits.cards {
  gap: var(--gap);
}

.benefits.cards > div {
  padding: var(--pad);
  border-top: 0;
  border-radius: var(--radius);
  background: var(--paper-raised);
}

.benefits.cards .tile {
  margin-bottom: 20px;
}

/* How to build a tool: a band whose columns start where the text of the cards starts. */
.build {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 28px calc(var(--gap) + 2 * var(--pad));
  margin-top: var(--gap);
  padding: 28px var(--pad);
  border-radius: var(--radius);
  background: var(--ink-surface);
  color: var(--on-ink);
}

.build .text-link {
  border-bottom-color: var(--on-ink-line);
}

.build .text-link:hover {
  border-bottom-color: var(--on-ink);
}

.build :focus-visible {
  outline-color: var(--on-ink);
}

.build > div > h3 {
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -.04em;
}

.build .actions {
  flex-direction: column;
  align-items: flex-start;
  margin-top: 22px;
}

.build .numbered {
  display: grid;
  grid-column: 2 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px calc(var(--gap) + 2 * var(--pad));
  border-top: 0;
}

.build .numbered li {
  padding: 0;
  border-bottom: 0;
}

.build .numbered li::before {
  position: static;
  display: block;
  margin: 6px 0 14px;
  color: var(--on-ink-muted);
}

/* Blog */

.post {
  max-width: var(--measure);
  margin-inline: auto;
  padding: 24px 0 var(--chapter);
}

.post-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.post-header .eyebrow {
  margin-top: 0;
}

.post-header .eyebrow a {
  color: inherit;
  text-decoration: none;
}

.post-header h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.06;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: 20px;
}

.post-meta .facts {
  margin-top: 0;
}

.copy-markdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-control);
  border-radius: 6px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .02em;
  text-decoration: none;
}

.copy-markdown:hover,
.copy-markdown[data-copied] {
  border-color: var(--ink);
}

.copy-markdown .icon + .icon,
.copy-markdown[data-copied] .icon,
.copy-request .icon + .icon,
.copy-request[data-copied] .icon {
  display: none;
}

.copy-request[data-copied] .icon + .icon,
.copy-markdown[data-copied] .icon + .icon {
  display: block;
  animation: copied .28s var(--ease);
}

@keyframes copied {
  from {
    opacity: 0;
    transform: scale(.4) rotate(-20deg);
  }
}

/* A figure may be wider than the reading column. */
.post figure {
  width: min(var(--wide), calc(100vw - 2 * var(--edge)));
  margin: 40px 0 40px 50%;
  translate: -50% 0;
}

.post .image-caption {
  justify-content: center;
  text-align: center;
}

.post-list {
  max-width: var(--wide);
  border-top: 1px solid var(--line);
}

.post-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 8px 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.post-date {
  padding-top: 8px;
  color: var(--muted);
  font: 500 12px/1.6 var(--mono);
  letter-spacing: .04em;
}

.post-row h2 {
  font-size: clamp(24px, 2.4vw, 32px);
}

.post-row h2 a {
  text-decoration: none;
}

.post-row h2 a:hover {
  text-decoration: underline;
}

.post-row h2 + p {
  max-width: 60ch;
  margin-top: 8px;
  color: var(--muted);
}

figure + .section {
  padding-top: var(--chapter);
}

/* A tool's own site */

.tool-id {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.tool-id .app-icon {
  --size: 52px;
}

.tool-name {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.tool-id .facts {
  margin-top: 2px;
}

/* The install prompt and the things to ask share the column at the right of the headline, which is the taller one. */
.tool-site .hero-grid {
  align-items: center;
}

.hero-side {
  display: grid;
  gap: 28px;
}

.hero-side .hero-start {
  margin-top: 0;
}

/* Things to ask: the text, then its copy button. */
.requests .news-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
}

.requests .news-list p {
  font-size: 16px;
  line-height: 1.45;
}

.copy-request {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-control);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.copy-request:hover,
.copy-request[data-copied] {
  border-color: var(--ink);
  color: var(--ink);
}

/* A tool's color: the pastel of its icon, on the parts that are its own. */
.tinted .requests {
  background: color-mix(in srgb, var(--tint) 36%, var(--paper-raised));
}

.tinted .requests .news-list li + li {
  border-top-color: rgb(24 26 22 / .16);
}

.tinted .benefits.cards .tile {
  background: var(--tint);
}

.tinted .build .numbered li::before {
  color: var(--tint);
}

/* Three cards stay in one row until the phone layout, so none is left alone. */
@media (min-width: 701px) {
  .benefits.cards.of-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

/* A band of steps on its own closes the section above it. */
.section.joined {
  padding-top: 0;
  border-top: 0;
}

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

/* An example report: the request, a tally, and each finding with its evidence. */
.report {
  border-radius: var(--radius);
  background: var(--paper-raised);
}

.report-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px 32px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.report-head .eyebrow {
  margin-bottom: 6px;
}

.report-request {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.tally,
.findings,
.evidence,
.fit-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tally {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font: 500 12px/1 var(--mono);
}

.tally li {
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  background: var(--pastel-stone);
}

.findings {
  padding: 0 28px;
}

.finding {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) minmax(0, .8fr);
  align-items: start;
  gap: 10px 20px;
  padding: 22px 0;
}

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

.state {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pastel-stone);
}

.tally .passed,
.finding.passed .state {
  background: var(--pastel-mint);
}

.tally .failed,
.finding.failed .state {
  background: var(--pastel-rose);
}

.finding-state {
  color: var(--muted);
  font: 500 11px/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.finding h3 {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.finding h3 + p {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--text-s);
  line-height: 1.45;
}

.evidence {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.evidence li {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-swatch);
  background: var(--paper);
  color: var(--muted);
  font: 500 11px/1.3 var(--mono);
}

/* What sits inside a boundary: the outside at the left, the walled space at the right. */
.flow.enclosure {
  grid-template-columns: minmax(0, .8fr) auto minmax(0, 2fr);
}

.flow-panel.wall {
  padding: 18px;
  border: 1.5px dashed var(--ink);
  background: color-mix(in srgb, var(--tint, var(--pastel-blue)) 32%, var(--paper-raised));
}

.wall .eyebrow {
  margin: -4px 0 8px;
  color: var(--muted);
  text-align: center;
}

.enclosure-parts {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.enclosure .flow-item > div {
  flex-direction: column;
  gap: 2px;
}

.enclosure .tile {
  background: var(--pastel-butter);
}

.wall .tile {
  background: var(--tint, var(--pastel-blue));
}

/* The parts of what a tool makes, as blocks. The reader's own part is the filled one. */
.blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.block {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 190px;
  padding: 22px;
  border: 3px solid var(--ink);
  border-radius: 4px;
}

.block h3 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.block p {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--text-s);
  line-height: 1.45;
}

.block.own {
  border-color: transparent;
  background: var(--tint, var(--pastel-mint));
}

.block.own p {
  color: var(--ink);
}

.block.own .icon {
  width: 52px;
  height: 52px;
  margin: -6px 0 auto -8px;
  stroke-width: 2.4;
}

/* What a tool is for, beside what it is not for. */
.fit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.fit-list {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fit-list.use {
  border-color: transparent;
  background: var(--paper-raised);
}

.fit-list h3 {
  margin-bottom: 12px;
  font-size: 20px;
  letter-spacing: -.02em;
}

.fit-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  line-height: 1.4;
}

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

.fit-list li .icon {
  flex: none;
  margin-top: 2px;
}

.fit-list:not(.use) li {
  color: var(--muted);
}

/* The product picture belongs to the opening above it. */
.hero + figure {
  margin-top: -16px;
}

/* A screenshot on white paper needs an edge. */
.hero + figure .product-image {
  border: 1px solid var(--line);
}

.app-row p + .tag {
  margin-top: 8px;
}

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

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.image-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.motion-toggle {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-control);
  border-radius: 6px;
  background: transparent;
  font-size: var(--text-xs);
}

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

/* Narrow screens */

@media (max-width: 1000px) {
  .app-list,
  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .build .numbered {
    grid-column: auto;
  }

  .build .actions {
    flex-direction: row;
  }

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

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

  .flow-arrow {
    grid-auto-flow: column;
    gap: 10px;
    padding: 12px 0;
  }

  .flow-arrow .icon {
    rotate: 90deg;
  }

}

@media (max-width: 1100px) {
  .reader-layout {
    grid-template-columns: 165px minmax(0, 1fr);
    grid-template-areas: "chapters content" "outline content";
    grid-template-rows: auto 1fr;
  }

  .reader-sidebar,
  .reader-toc {
    position: static;
  }

  .reader-toc {
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 700px) {
  .masthead .wrap,
  .menu-head {
    min-height: 80px;
  }

  .js .masthead .nav {
    display: none;
  }

  .js .masthead .menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 20px;
  }

  .hero {
    padding: 16px 0 56px;
  }

  .hero h1 {
    font-size: clamp(34px, 9.6vw, 42px);
    line-height: 1.1;
    letter-spacing: -.04em;
  }

  .standfirst {
    font-size: 19px;
  }

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

  .post-date {
    padding-top: 0;
  }

  .hero-grid,
  .split,
  .app-list,
  .benefits,
  .benefits.three,
  .build .numbered,
  .card-grid.three {
    grid-template-columns: minmax(0, 1fr);
  }

  .split {
    gap: 28px;
  }

  .credit {
    justify-content: flex-start;
  }

  .section-head {
    display: block;
    margin-bottom: 24px;
  }

  .section-head > p {
    margin-top: 12px;
  }

  .store-head {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Categories become one row that scrolls sideways. */
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--edge) * -1);
    padding: 2px var(--edge);
    scrollbar-width: none;
  }

  .chip {
    flex: none;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .tool-card-top {
    padding: 14px 14px 0;
  }

  .tool-card-body {
    padding: 14px;
  }

  .reader-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "chapters" "outline" "content";
    grid-template-rows: none;
    gap: 24px;
    padding-top: 20px;
  }

  .reader-sidebar > nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 16px;
  }

  .reader-content {
    font-size: 18px;
  }
}

@media (max-width: 700px) {
  .report-head {
    padding: 20px 18px;
  }

  .findings {
    padding: 0 18px;
  }

  .finding {
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 14px;
  }

  .evidence {
    grid-column: 2;
    justify-content: flex-start;
  }

  .enclosure-parts,
  .blocks,
  .fit {
    grid-template-columns: minmax(0, 1fr);
  }

  /* A long line under a diagram wraps where it cannot fit. */
  .dimension {
    white-space: normal;
    text-align: center;
  }

  /* A wide screenshot shows its top left part, large enough to read. */
  .product-image.zoom img {
    aspect-ratio: 1;
    object-fit: cover;
    object-position: left top;
  }

  .block {
    min-height: 0;
  }

  .copy-request {
    width: 40px;
    height: 40px;
  }

  /* The opening and the section under it have no rule between them, so one of the two paddings is enough. */
  .hero {
    padding-bottom: 12px;
  }

  .hero + figure {
    margin-top: 32px;
  }

  .about {
    margin-top: 0;
  }

  /* A card is a row on a phone: the tile at the left, the words beside it. */
  .benefits.cards > div {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 16px;
    padding: 20px;
  }

  .benefits.cards .tile {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .block.own .icon {
    margin-bottom: 20px;
  }

  .fit-list {
    padding: 20px;
  }
  /* One of the two paddings where the last section meets the footer. */
  .site-footer {
    margin-top: 0;
  }

  /* The last row of a list has the rule of the next section under it. */
  .use-cases li:last-child,
  .app-list > .app-row:last-child,
  .post-row:last-child {
    border-bottom: 0;
  }

  .app-row {
    column-gap: 12px;
  }

  .actions {
    gap: 14px 16px;
  }

  .reader-content ul,
  .reader-content ol {
    padding-left: 24px;
  }

  /* Each control is at least 40px high for a thumb. */
  .chip,
  .copy,
  .copy-markdown {
    min-height: 40px;
  }

  .text-link {
    position: relative;
  }

  .text-link::after {
    content: "";
    position: absolute;
    inset: -8px 0;
  }

  .reader-sidebar > nav {
    gap: 0 16px;
  }

  .reader-sidebar > nav a,
  .reader-toc nav a {
    padding: 11px 0;
  }

  .reader-toc nav {
    gap: 0;
    margin-top: 0;
  }

  .reader-toc summary {
    padding: 13px 0;
  }

  .reader-source {
    margin-top: 8px;
    padding: 11px 0;
  }

  .footer-links {
    gap: 0 32px;
  }

  .footer-links a {
    padding: 10px 0;
  }

  .footer-grid {
    row-gap: 20px;
  }
}

/* A stacked diagram keeps each arrow beside its label. */
@media (max-width: 1000px) {
  .flow-arrow {
    justify-content: center;
  }
}
