/*
  One system for every page: near-black, hairline rules, and colour that comes from the product
  itself. The green is a check that passed, and the one line of colour a window carries. The red
  and the blue are the Board view's top and bottom copper, and name those two layers beside their
  pictures; the gold is its pad finish, and marks where a step starts. Instrument Sans for words;
  Geist Mono only for what a machine measured or named, never under 12 px.

  Site policy: no script, no inline style, nothing from another origin, and nothing that moves on
  its own. The only motion is the hero window's entrance and colour changes on hover; both are
  off under prefers-reduced-motion.
*/
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Ground. --bg is the page, --surface a card, --well the ground a drawing sits on. */
  --bg: #08090a;
  --surface: #0d0e10;
  --well: #0a0c0e;
  /* Lines are white at low alpha, so they sit right on any surface. */
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.12);
  --line-3: rgb(255 255 255 / 0.22);
  /* Words. Each is at least 4.5:1 on every ground it sits on; --text-3 never sits on a filled
     control. */
  --text: #f4f5f6;
  --text-2: #a4a7ae;
  --text-3: #8b8f98;
  --ink: #0b0c0d;
  /* A check that passed. It is never a button's fill. */
  --accent: #4be3a2;
  --accent-soft: rgb(75 227 162 / 0.1);
  --accent-line: rgb(75 227 162 / 0.28);
  /* --error only inside product output; --warn only on the provisional and draft notices. */
  --error: #ff7a70;
  --warn: #e7c06a;
  --warn-soft: rgb(231 192 106 / 0.07);
  --warn-line: rgb(231 192 106 / 0.3);
  /* The Board view's top and bottom copper, its pad finish, and its ground. */
  --cu-top: #ff4538;
  --cu-bottom: #3d8cff;
  --gold: #c9a25e;
  --board-ground: #0a0c0d;

  --sans: "Instrument Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --r-1: 0.375rem;
  --r-2: 0.625rem;
  --r-3: 1rem;
  --gap: 1rem;
  --box: 1.75rem;
  /* How far a linked heading stops below the top: the sticky bar and a little air. */
  --clear: 5.25rem;
  /* The light a cut-out board stands in: one ground for every board on the page. */
  --bench:
    radial-gradient(ellipse 72% 62% at 50% 42%, rgb(255 255 255 / 0.075), transparent 72%), #0a0c0e;
  --sheen: linear-gradient(180deg, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.008) 42%);
  --bar: linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.015));
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
}
img {
  max-width: 100%;
  height: auto;
}
/* A picture with a closer crop for a phone is laid out as the image inside it. */
picture {
  display: contents;
}
code {
  font-family: var(--mono);
  font-size: 0.9em;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote,
pre {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
table {
  border-collapse: collapse;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.25rem;
}
::selection {
  background: var(--accent-line);
}
/* A heading that is linked to stops clear of the sticky bar. */
[id] {
  scroll-margin-top: var(--clear);
}

/* Type */
h1,
h2 {
  font-size: clamp(2rem, 3.7vw, 3.25rem);
  font-weight: 540;
  line-height: 1.04;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
h3 {
  font-size: 1.25rem;
  font-weight: 580;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lead {
  color: var(--text-2);
  font-size: 1.125rem;
  line-height: 1.55;
  text-wrap: pretty;
}
/* What a thing is, said small above it. */
.label {
  color: var(--text-3);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}
.eyebrow {
  margin-bottom: 1.125rem;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}
.h2-line,
.h2-next {
  display: block;
}
.h2-next {
  color: var(--text-3);
}
.nowrap {
  white-space: nowrap;
}
/* Words for a screen reader, where a mark says them to the eye. */
.hide {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wrap {
  width: min(75rem, 100% - clamp(2rem, 6vw, 4rem));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 30;
  padding: 0.5rem 1rem;
  border-radius: var(--r-1);
  background: var(--text);
  color: var(--bg);
}
.skip:not(:focus) {
  clip-path: inset(100%);
}
.tick,
.dash,
.icon {
  flex: none;
  fill: none;
}
.tick {
  stroke: var(--accent);
}
.dash {
  stroke: var(--text-3);
}
.icon {
  stroke: currentColor;
}
/* A link in running text. */
.note a,
.doc-text a,
.faq-answer a,
.centre-card p a:not(.button),
.text-link,
.window-status a {
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-color: var(--line-3);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
.note a:hover,
.doc-text a:hover,
.faq-answer a:hover,
.centre-card p a:not(.button):hover,
.text-link:hover,
.window-status a:hover {
  text-decoration-color: var(--accent);
}

/* Header: one row that stays at the top. On a phone the links sit in a second row under it,
   which scrolls away with the page. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgb(8 9 10 / 0.84);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.bar {
  display: flex;
  align-items: center;
  gap: 1rem 1.75rem;
  min-height: 3.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}
.brand b {
  font-weight: 650;
}
.mark-trace {
  stroke: var(--text);
}
.mark-pad {
  stroke: var(--accent);
}
.bar-nav {
  display: flex;
  gap: 0.125rem;
}
.bar-nav a,
.subnav a {
  padding: 0.375rem 0.75rem;
  border-radius: var(--r-1);
  color: var(--text-2);
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.15s,
    background-color 0.15s;
}
.bar-nav a:hover,
.subnav a:hover {
  background: rgb(255 255 255 / 0.06);
  color: var(--text);
}
.bar-nav a[aria-current],
.subnav a[aria-current] {
  color: var(--text);
}
.bar-start {
  margin-left: auto;
}
.subnav {
  display: none;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  border: 1px solid transparent;
  border-radius: var(--r-2);
  background: var(--text);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.button:hover {
  background: #fff;
}
.button-ghost {
  border-color: var(--line-2);
  background: rgb(255 255 255 / 0.04);
  color: var(--text);
}
.button-ghost:hover {
  border-color: var(--line-3);
  background: rgb(255 255 255 / 0.08);
}
.button-small {
  min-height: 2.125rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
}
/* The status beside "Start in your browser" until the app takes boards. It is shown at every
   width: on a narrow phone the button stacks it under its words. */
.soon {
  padding: 0.2rem 0.45rem;
  border-radius: 0.25rem;
  background: rgb(11 12 13 / 0.09);
  color: rgb(11 12 13 / 0.74);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.text-link .soon,
.button-ghost .soon {
  background: rgb(255 255 255 / 0.08);
  color: var(--text-2);
}
.text-link .soon {
  margin-left: 0.5rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(2.25rem, 4.4vw, 3.75rem);
}
/* A plain light from above, where the page opens. */
.hero::before,
.page::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 40rem;
  background: radial-gradient(ellipse 62% 70% at 50% 0%, rgb(255 255 255 / 0.07), transparent 72%);
  pointer-events: none;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.125rem, 3.75vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.044em;
}
.h1-line {
  color: var(--accent);
}
.hero-lead {
  max-width: 44rem;
  margin-top: 1.25rem;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
  line-height: 1.5;
  text-wrap: balance;
}
.hero .actions {
  justify-content: center;
  margin-top: 1.75rem;
}
.hero-fine {
  margin-top: 0.875rem;
  color: var(--text-3);
  font-size: 0.875rem;
  text-wrap: balance;
}

/* A window: the app's 3D picture of one board, with what it is and its figures beside it. The
   page opens on one, and the walk starts with another. */
.window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.5),
    0 2.5rem 7rem -1.5rem rgb(0 0 0 / 0.9);
}
.hero .window {
  margin-top: clamp(2rem, 3.4vw, 2.75rem);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
/* One green hairline along the window's top edge. */
.window::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 18% 82%, transparent);
  opacity: 0.7;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3rem;
  padding: 1px 0.5rem 0 1.125rem;
  border-bottom: 1px solid var(--line);
  background: var(--bar);
}
.window-title {
  min-width: 0;
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Which of the app's views the picture is. It is a label, and nothing to press. */
.window-view {
  flex: none;
  margin-left: auto;
  padding-right: 0.625rem;
  color: var(--text-3);
  font-size: 0.8125rem;
  font-weight: 500;
}
.window-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
}
/* The stage holds 16:9, and a picture drawn at that shape covers it. */
.stage {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--well);
}
.stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* A board cut out of its ground stands whole on the bench, clear of the stage's edges. */
.stage-whole {
  background: var(--bench);
}
.stage-whole img {
  padding: clamp(0.75rem, 1.7vw, 1.5rem);
  object-fit: contain;
}
.rail {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: rgb(255 255 255 / 0.012);
  text-align: left;
}
.rail-group {
  padding: 1.125rem 1.25rem;
}
.rail-group + .rail-group {
  border-top: 1px solid var(--line);
}
/* How the board was made closes the rail, at its foot. */
.rail-made {
  margin-top: auto;
}
.rail .label {
  margin-bottom: 0.625rem;
}
.rail-text {
  color: var(--text-2);
  font-size: 0.9063rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.rail-text b {
  color: var(--text);
  font-weight: 600;
}
.rail-note {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
  font-size: 0.875rem;
}
.facts dt {
  color: var(--text-2);
}
.facts dd {
  font-family: var(--mono);
  font-size: 0.8125rem;
  white-space: nowrap;
}
.window-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 0.02);
  color: var(--text-2);
  font-size: 0.8125rem;
  text-align: left;
}
.status-note {
  margin-left: auto;
  color: var(--text-3);
}

/* The walked board's run as one line of figures, between two hairlines: what went in, how long
   it took, and what came out. */
.story {
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  border-block: 1px solid var(--line);
}
.story-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) minmax(0, 1.4fr) repeat(3, minmax(0, 0.75fr))
    minmax(0, 2.1fr);
}
.story-grid > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.375rem;
  padding: clamp(1.25rem, 2.4vw, 1.75rem) 1.25rem;
  border-left: 1px solid var(--line);
}
.story-grid > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.story-grid dt {
  color: var(--text-2);
  font-size: 0.875rem;
}
.story-grid dd {
  font-size: clamp(1.375rem, 2.1vw, 1.875rem);
  font-weight: 540;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.story-note {
  padding-block: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.8125rem;
}

/* Sections */
.section {
  padding-top: clamp(4.5rem, 9vw, 8.5rem);
}
/* The notes that close the home page sit right under its last panel. On another page they
   follow its text, a section's distance away. */
.section-notes {
  padding-top: var(--gap);
}
.page .section-notes {
  padding-top: clamp(3.5rem, 7vw, 6rem);
}
.section-notes,
.page-end {
  padding-bottom: clamp(4.5rem, 9vw, 8rem);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.section-head-single {
  grid-template-columns: minmax(0, 1fr);
}
.section-head .lead {
  padding-bottom: 0.3rem;
}
/* What a set of pictures is, under them. */
.provenance,
.results-note {
  max-width: 54rem;
  margin-top: 1.25rem;
  color: var(--text-3);
  font-size: 0.875rem;
}

/* Boards: one picture of each, all on the same ground. A row short of three is set wide. */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gap);
}
.tile {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--surface);
}
.tile-wide {
  grid-column: span 3;
}
.tile-art {
  background: var(--bench);
}
/* A board shown whole stands inside the tile, clear of its edges. */
.tile-art img {
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 1.25rem 1.5rem;
  object-fit: contain;
}
.tile-caption {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem 1.5rem 1.375rem;
  border-top: 1px solid var(--line);
}
.tile-caption h3 {
  font-size: 1.125rem;
}
/* How the board was made, under its name. */
.tile-tag {
  margin-top: 0.1875rem;
  color: var(--text-3);
  font-size: 0.8125rem;
}
.tile-does {
  margin-top: 0.625rem;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-wrap: pretty;
}
/* What a reader must be told beside a board. */
.tile-caution {
  margin-top: 0.625rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--warn-line);
  color: var(--warn);
  font-size: 0.875rem;
  line-height: 1.5;
  text-wrap: pretty;
}
/* A line of figures: mono, each figure whole, a dot between two. Every figure carries the dot on
   its left, and the line is cut back by that much, so a figure that starts a line shows none. A
   tile's figures come in two groups, and its line breaks between the groups, never inside one. */
.tile-meta,
.step-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem 0;
  margin-left: -1.6em;
  clip-path: inset(0 0 0 1.6em);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.6;
}
.tile-meta {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--text-3);
}
.meta-group,
.meta-group span,
.step-facts span {
  position: relative;
  padding-left: 1.6em;
  white-space: nowrap;
}
.meta-group span:first-child {
  padding-left: 0;
}
.meta-group::before,
.meta-group span + span::before,
.step-facts span::before {
  content: "·";
  position: absolute;
  left: 0;
  width: 1.6em;
  color: var(--text-3);
  text-align: center;
}

/* The walk: one board in seven steps. Each step hangs from a trace, with a via where it starts,
   and under its words is what the step leaves behind. */
.walk {
  display: grid;
  gap: clamp(4rem, 8vw, 6.5rem);
}
.step {
  position: relative;
  min-width: 0;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line-2);
}
.step::before {
  content: "";
  position: absolute;
  top: -0.4375rem;
  left: 0;
  width: 0.8125rem;
  height: 0.8125rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 0.375rem var(--bg);
}
.step-copy {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: 0.75rem clamp(2rem, 5vw, 5rem);
}
.step-number {
  grid-column: 1 / -1;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
}
.step h3 {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 540;
  line-height: 1.1;
  letter-spacing: -0.032em;
}
.step-words {
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.step-facts {
  margin-top: 0.875rem;
  color: var(--text);
  font-size: 0.8125rem;
}
.step-art {
  min-width: 0;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
/* A step whose artefact is narrow: the words on the left, the artefact beside them. */
.step-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: 2rem clamp(2rem, 5vw, 5rem);
}
/* Beside a tall artefact the step's words stay in view while the artefact goes past. */
.step-split .step-copy {
  position: sticky;
  top: 5.5rem;
  grid-template-columns: minmax(0, 1fr);
}
.step-split .step-art {
  margin-top: 0;
}
.step-split .step-below {
  grid-column: 1 / -1;
}

/* A drawing in its frame, on the drawing's own ground. The drawing is a link to its own file,
   the way to read it at full size. One set at the size its words can be read at may be wider
   than a narrow window: it scrolls sideways inside its frame. */
.sheet {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  overscroll-behavior-x: contain;
  scrollbar-color: var(--line-3) transparent;
  scrollbar-width: thin;
}
.sheet a {
  display: block;
  width: fit-content;
  margin-inline: auto;
  cursor: zoom-in;
}
.sheet img {
  width: 100%;
  max-width: none;
}
.sheet-plan {
  background: #0a0c0d;
}
.sheet-schematic {
  background: #0d1011;
}
/* The power tree's frame may run wider than the column of text. */
.sheet-plan {
  width: min(84rem, 100vw - 2rem);
  margin-inline: calc((100% - min(84rem, 100vw - 2rem)) / 2);
}
.sheet-plan a {
  width: 80rem;
}
/* The keypad's section fits its column. The charger's is as wide as the page, and never drawn
   smaller than its words can be read at. */
.sheet-keypad a {
  width: 100%;
}
.sheet-charger a {
  width: max(100%, 56rem);
}
.sheet-hint {
  margin-top: 0.625rem;
  color: var(--text-3);
  font-size: 0.8125rem;
}
/* Said only where the frame scrolls. */
.sheet-scrolls {
  display: none;
}

/* The parts of the bill of materials, and the six boards as checked: tables of figures. */
.parts,
.results-table,
.compare-table {
  width: 100%;
  font-size: 0.9375rem;
  text-align: left;
}
.parts caption,
.results-table caption {
  padding-bottom: 0.875rem;
  color: var(--text-3);
  font-size: 0.875rem;
  text-align: left;
  caption-side: top;
}
.parts thead th,
.results-table thead th,
.compare-table thead th {
  padding: 0.625rem 1rem 0.625rem 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--text-3);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}
.parts tbody :is(td, th),
.results-table tbody :is(td, th),
.compare-table tbody :is(td, th) {
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  vertical-align: baseline;
}
.parts tbody th,
.parts td:is([data-label="Ref"], [data-label="LCSC no."], [data-label="Est. price"]) {
  font-family: var(--mono);
  font-size: 0.8125rem;
  white-space: nowrap;
}
.parts tbody th {
  color: var(--text);
  font-weight: 500;
}
.parts td {
  color: var(--text-2);
}
.parts td[data-label="Ref"] {
  color: var(--text-3);
}

/* The Board view's pictures on its own ground, one ground for all three: the whole board with
   its parts, and beside it each copper layer alone. All three are of one frame, so the board
   sits alike in each, and the two small ones together stand about as tall as the large one. */
.layers {
  display: grid;
  grid-template-columns: minmax(0, 2.16fr) minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--board-ground);
}
.layer-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}
.layer img {
  width: 100%;
}
/* A picture's name, and for a layer a swatch of the colour the Board view draws it in. */
.layer figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.625rem;
  color: var(--text-2);
  font-size: 0.875rem;
}
.layer-top figcaption::before,
.layer-bottom figcaption::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 2px;
  border-radius: 1px;
}
.layer-top figcaption::before {
  background: var(--cu-top);
}
.layer-bottom figcaption::before {
  background: var(--cu-bottom);
}

/* Three more views of the board. The close one and the view from below are framed pictures of
   one shape: each fills its tile, side by side. The long view from the edge is the board cut
   out, and runs under both on the bench. */
.angles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.angle {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--well);
}
.angle img {
  width: 100%;
}
.angle-edge {
  grid-column: 1 / -1;
  background: var(--bench);
}
.angle-edge img {
  max-width: 62rem;
  margin: auto;
  padding: 1.5rem;
}
.angle figcaption {
  flex: 1;
  padding: 0.75rem 1.25rem 0.875rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.875rem;
}

/* The package's files, by name, two to a row: most are a top layer beside its bottom one. */
.files {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.5rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  background: var(--sheen), var(--surface);
  padding: 0.5rem 1.375rem;
}
.files li {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 4.25rem;
  align-items: baseline;
  gap: 0.125rem 1.25rem;
  padding: 0.5625rem 0;
  font-size: 0.875rem;
}
.files li:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}
.file-name,
.file-size {
  font-family: var(--mono);
  font-size: 0.8125rem;
}
.file-name {
  overflow-wrap: anywhere;
}
.file-what {
  color: var(--text-2);
}
.file-size {
  color: var(--text-3);
  text-align: right;
  white-space: nowrap;
}
/* What the package is today, under its files. */
.files-note {
  max-width: 54rem;
  margin-top: 1.25rem;
  color: var(--text-3);
  font-size: 0.875rem;
}

/* Cards */
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--sheen), var(--surface);
}
.card-copy {
  padding: var(--box);
}
.card-copy .label {
  margin-bottom: 0.625rem;
}
.card-copy h3 {
  font-size: 1.375rem;
  letter-spacing: -0.025em;
}
.card-copy p:not(.label) {
  margin-top: 0.625rem;
  color: var(--text-2);
  font-size: 0.9688rem;
  text-wrap: pretty;
}

/* Checks */
.checks-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: 2rem clamp(2rem, 5vw, 5rem);
}
/* The five kinds of check and the six boards as checked are one column, beside the check run
   and the note under it. */
.checks-side {
  display: grid;
  grid-row: span 2;
  gap: clamp(2rem, 3.5vw, 3rem);
}
.checks-grid .results-note {
  grid-column: 2;
  margin-top: 0;
}
.check-list li {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.125rem 0;
  border-top: 1px solid var(--line);
}
.check-list li:first-child {
  padding-top: 0;
  border-top: 0;
}
/* The kind of check, as a tag. A tick here would read as "passed". */
.check-tag {
  align-self: start;
  padding: 0.3rem 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-1);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.check-list h3 {
  font-size: 1.0625rem;
}
.check-list p {
  margin-top: 0.25rem;
  color: var(--text-2);
  font-size: 0.9375rem;
  text-wrap: pretty;
}
/* A check run, as the product reports it: the errors first, and large. */
.panel {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  background: var(--surface);
}
.panel-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.375rem;
  border-bottom: 1px solid var(--line);
  background: var(--bar);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
}
.panel-bar span:last-child {
  color: var(--text);
}
.result {
  padding: 1.5rem 1.375rem 1.375rem;
}
.result-main {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 540;
  letter-spacing: -0.02em;
}
.result-main b {
  font-size: 4rem;
  font-weight: 540;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.result-main.is-pass {
  color: var(--accent);
}
.result-rest {
  margin-top: 0.75rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}
.result-title {
  margin-top: 0.125rem;
  color: var(--text-3);
  font-size: 0.875rem;
}
.result-key {
  padding: 0 1.375rem;
  border-top: 1px solid var(--line);
}
.result-key > div {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.75rem 0;
  font-size: 0.9063rem;
}
.result-key > div + div {
  border-top: 1px solid var(--line);
}
.result-key dt {
  font-weight: 600;
}
.result-key dd {
  color: var(--text-2);
  text-wrap: pretty;
}
/* What the board's warnings are, by kind: how many, then what that kind of warning says. */
.warning-block {
  padding: 1.25rem 1.375rem 1rem;
  border-top: 1px solid var(--line);
}
.warning-list {
  margin-top: 0.5rem;
}
.warning-list li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.3125rem 0;
  color: var(--text-2);
  font-size: 0.9063rem;
  text-wrap: pretty;
}
.warning-list b {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: right;
}
.finding-block {
  padding: 1.25rem 1.375rem 1.375rem;
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 0.014);
}
.finding-intro {
  margin-top: 0.375rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}
.finding {
  margin-top: 0.875rem;
  padding: 0.875rem 1rem;
  border: 1px solid rgb(255 122 112 / 0.26);
  border-radius: var(--r-2);
  background: rgb(255 122 112 / 0.05);
}
.finding-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.75rem;
  color: var(--text-2);
  font-size: 0.8125rem;
}
.severity {
  padding: 0.125rem 0.45rem;
  border-radius: 0.25rem;
  background: rgb(255 122 112 / 0.14);
  color: var(--error);
  font-weight: 600;
}
.finding-where {
  margin-left: auto;
  color: var(--text);
  font-family: var(--mono);
}
.finding-message {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.finding-fix {
  margin-top: 0.5rem;
  color: var(--text-2);
  font-size: 0.9063rem;
}
.finding-fix .label {
  margin-right: 0.375rem;
  color: var(--text);
  font-weight: 600;
}
/* The six boards: a name, then figures set to the right under their headings. */
.results-table thead th {
  vertical-align: bottom;
  white-space: normal;
}
.results-table :is(td, thead th + th) {
  padding-right: 0;
  padding-left: 0.75rem;
  text-align: right;
}
.results-table tbody th {
  color: var(--text);
  font-weight: 500;
}
.results-table td {
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.results-table td.is-pass {
  color: var(--accent);
  font-weight: 600;
}
.results-table td.is-fail {
  color: var(--error);
  font-weight: 600;
}

/* Who it is for */
.who-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
/* Both cards share two rows, so the snippets start level and are one height. */
@supports (grid-template-rows: subgrid) {
  .who-grid .card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    row-gap: 0;
  }
  .who-grid .snippet {
    margin-top: 0;
  }
}
.snippet {
  margin-top: auto;
  padding: 1.125rem var(--box) 1.375rem;
  border-top: 1px solid var(--line);
  background: rgb(0 0 0 / 0.22);
  border-radius: 0 0 var(--r-3) var(--r-3);
}
.snippet-label {
  color: var(--text-3);
  font-size: 0.8125rem;
  font-weight: 500;
}
.snippet-words {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
}
.snippet-code {
  margin-top: 0.5rem;
  overflow-x: auto;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
}
.diff-group {
  color: var(--text-3);
}
.diff-mark {
  color: var(--warn);
}

/* Pricing */
/* The free board: its own row, set apart by the green of the offer. */
.free-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto;
  align-items: center;
  gap: 1.25rem 2.5rem;
  padding: var(--box);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-3);
  background: linear-gradient(120deg, var(--accent-soft), transparent 58%), var(--surface);
}
.free-row :is(h2, h3) {
  font-size: 1.375rem;
  font-weight: 580;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.free-lead {
  margin-top: 0.375rem;
  color: var(--text-2);
  text-wrap: pretty;
}
.offer-list li,
.every-plan li {
  display: flex;
  gap: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.offer-list li + li {
  margin-top: 0.375rem;
}
.offer-list :is(.tick, .dash),
.every-plan .tick {
  margin-top: 0.22rem;
}
.offer-locked {
  color: var(--text-2);
}
/* The plans: three cards, the middle one lit. */
.offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
}
.offer {
  display: flex;
  flex-direction: column;
  padding: var(--box);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--surface);
}
.offer.is-middle {
  border-color: var(--line-3);
  background: var(--sheen), var(--surface);
}
.offer :is(h2, h3) {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.price {
  margin-top: 1rem;
  font-size: 3rem;
  font-weight: 540;
  line-height: 1;
  letter-spacing: -0.045em;
}
.price span {
  color: var(--text-3);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
}
.credits {
  margin-top: 1.125rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.9375rem;
}
.credits b {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 500;
}
.credits-note {
  margin-top: 0.25rem;
  color: var(--text-3);
  font-size: 0.875rem;
}
.offer .button {
  margin-top: auto;
}
/* The button sits at the foot of its card, whatever the card says above it. */
.offer > p:last-of-type {
  margin-bottom: 1.5rem;
}
.offers-note,
.provisional {
  margin-top: 1rem;
  color: var(--text-3);
  font-size: 0.875rem;
}
.provisional {
  margin-top: 0.25rem;
  color: var(--warn);
}
.every-plan {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 0.75rem 2rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.every-plan-title {
  font-size: 0.9375rem;
  font-weight: 600;
}
.every-plan ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  color: var(--text-2);
}

/* Questions: each answer opens under its question, without script. */
.faq-block {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}
.faq-title {
  margin-bottom: 1.25rem;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 540;
  line-height: 1.1;
  letter-spacing: -0.032em;
}
.faq details {
  border-top: 1px solid var(--line-2);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line-2);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 3.5rem;
  padding: 0.875rem 0;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary :is(h3, h4) {
  font-size: 1.0625rem;
  font-weight: 560;
  line-height: 1.35;
  letter-spacing: -0.012em;
}
/* A plus that turns to a cross when the answer is open. */
.faq summary::after {
  content: "";
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  background:
    linear-gradient(var(--text-2), var(--text-2)) 50% 50% / 100% 1.5px no-repeat,
    linear-gradient(var(--text-2), var(--text-2)) 50% 50% / 1.5px 100% no-repeat;
  transition: transform 0.15s;
}
.faq details[open] > summary::after {
  transform: rotate(45deg);
}
.faq summary:hover :is(h3, h4) {
  color: #fff;
}
.faq-answer {
  max-width: 44rem;
  padding: 0 2.5rem 1.375rem 0;
  color: var(--text-2);
  font-size: 0.9688rem;
  line-height: 1.6;
}
.faq-answer * + :is(p, ul),
.pricing-notes * + :is(p, ul),
.credit-words * + p {
  margin-top: 0.625rem;
}
.faq-answer li,
.pricing-notes li {
  position: relative;
  padding-left: 1.25rem;
}
.faq-answer li::before,
.pricing-notes li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 0.5rem;
  height: 1px;
  background: var(--text-3);
}

/* The pricing page: what is free and what a plan adds, how credits are used, and the notes. */
.pricing-body {
  padding-top: clamp(2.25rem, 4vw, 3.5rem);
}
.compare,
.credit-rule,
.pricing-notes {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}
.pricing-body section > h2,
.pricing-notes h2 {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 540;
  line-height: 1.1;
  letter-spacing: -0.032em;
}
.compare-table {
  margin-top: 1.5rem;
}
.compare-table :is(td, thead th + th) {
  width: 24%;
}
.compare-table tbody th {
  color: var(--text);
}
.compare-table td {
  color: var(--text-2);
}
.credit-rule {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
}
.credit-rule > h2 {
  grid-column: 1 / -1;
}
/* Two marks on one trace: where a paid board starts, and where a job stops taking on work.
   The marks are not set to scale. */
.credit-scale {
  padding-top: 0.375rem;
}
.credit-bar {
  position: relative;
  height: 2px;
  margin: 0.375rem 0.375rem 1rem;
  background: linear-gradient(90deg, var(--line-3), var(--gold));
}
.credit-bar span {
  position: absolute;
  top: 50%;
  width: 0.8125rem;
  height: 0.8125rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--bg);
  transform: translate(-50%, -50%);
}
.credit-start {
  left: 0;
}
.credit-run {
  left: 100%;
}
.credit-marks {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}
.credit-marks > div:last-child {
  text-align: right;
}
.credit-marks dt {
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 500;
}
.credit-marks dd {
  color: var(--text-2);
  font-size: 0.875rem;
}
.credit-words,
.pricing-notes p,
.pricing-notes ul {
  color: var(--text-2);
  font-size: 0.9688rem;
}
.pricing-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(2rem, 5vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.pricing-notes h2 {
  margin-bottom: 1rem;
}

/* The closing call. */
.closing {
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 6vw, 5rem);
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  background: var(--sheen), var(--surface);
  text-align: center;
}
.closing-copy {
  max-width: 40rem;
  margin-inline: auto;
}
.closing h2 {
  font-size: clamp(2.25rem, 4.6vw, 4rem);
}
.closing .lead {
  margin-top: 1.25rem;
}
.closing .actions {
  justify-content: center;
  margin-top: 2rem;
}

/* The review notice and support */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.note {
  padding: var(--box);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--surface);
}
.note .label {
  margin-bottom: 0.625rem;
}
.note h2 {
  font-size: 1.375rem;
  font-weight: 580;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.note p:not(.label) {
  max-width: 36em;
  margin-top: 0.5rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* Every page but the home page opens the same way: the light, an eyebrow, the title. */
.page {
  position: relative;
  isolation: isolate;
}
.page::before {
  height: 26rem;
}
.page-head {
  padding-top: clamp(3rem, 6vw, 5rem);
}
.page-head .lead {
  max-width: 40rem;
  margin-top: 1.25rem;
}
.status {
  color: var(--warn);
  font-size: 0.9375rem;
}

/* Download */
.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
}
/* Until a release names an installer there is nothing to install, and so one column. */
.download-solo {
  grid-template-columns: minmax(0, 1fr);
}
.installer {
  align-items: flex-start;
  max-width: 32rem;
  margin-top: 2.25rem;
  padding: var(--box);
}
.installer .label {
  margin-bottom: 1rem;
}
.installer-file {
  margin-top: 0.875rem;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}
.installer-facts {
  align-self: stretch;
  margin-top: 1.125rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.installer-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
  font-size: 0.875rem;
}
.installer-facts dt {
  color: var(--text-3);
}
.installer-facts dd {
  color: var(--text);
}
/* The hash is 64 characters: it has its own lines, two of 32. */
.installer-facts .installer-hash {
  flex-direction: column;
  gap: 0.25rem;
}
.installer-hash dd {
  max-width: 32.5ch;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.or-browser {
  margin-top: 1.25rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}
.install {
  padding: var(--box);
}
.install h2 {
  font-size: 1.375rem;
  font-weight: 580;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.install-steps {
  margin-top: 1.25rem;
  counter-reset: step;
}
.install-steps li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.875rem 0;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.55;
  counter-increment: step;
}
.install-steps li::before {
  content: counter(step, decimal-leading-zero);
  padding-top: 0.15em;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
}
.install-note {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.875rem;
  line-height: 1.55;
}
.install-note strong,
.doc-text strong {
  color: var(--text);
  font-weight: 600;
}

/* Policies and help: a page to be read, in one column of about 68 characters at the middle of
   the window, with the list of its sections beside it where it has more than one. */
.legal-draft {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--warn-line);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
}
.doc-head {
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.doc-wrap {
  display: grid;
  grid-template-columns: minmax(0, 43rem);
  justify-content: center;
}
.doc-wrap.has-contents {
  grid-template-columns: 14rem minmax(0, 43rem);
  align-items: start;
  gap: 0 4rem;
}
.doc-wrap.has-contents .doc-head-text {
  grid-column: 2;
}
.doc-head h1 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}
.version {
  margin-top: 1.25rem;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.8125rem;
}
.doc-body {
  padding-top: clamp(2rem, 4vw, 3rem);
}
/* The list follows the reader. One longer than the window scrolls on its own. */
.doc-contents {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  font-size: 0.8125rem;
}
.doc-contents .label {
  margin-bottom: 0.75rem;
}
.doc-contents a {
  padding: 0.3rem 0 0.3rem 1rem;
  border-left: 1px solid var(--line);
  color: var(--text-2);
  line-height: 1.4;
  text-decoration: none;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.doc-contents a:hover {
  border-color: var(--line-3);
  color: var(--text);
}
/* The same list, folded shut: it is shown in place of the rail where the rail has no room. */
.doc-fold {
  display: none;
}
/* A policy may quote an address longer than a phone is wide: it breaks rather than widen the page. */
.doc-text {
  color: var(--text-2);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.doc-text section + section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.doc-text h2 {
  color: var(--text);
  font-size: 1.375rem;
  font-weight: 580;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.doc-text * + :is(p, ul, ol) {
  margin-top: 1rem;
}
.doc-text li {
  position: relative;
  padding-left: 1.5rem;
}
.doc-text li + li {
  margin-top: 0.5rem;
}
/* A short dash for a list; a mono number for steps. */
.doc-text ul li::before {
  content: "";
  position: absolute;
  top: 0.85em;
  left: 0;
  width: 0.625rem;
  height: 1px;
  background: var(--text-3);
}
.doc-text ol {
  counter-reset: step;
}
.doc-text ol li {
  padding-left: 2.25rem;
  counter-increment: step;
}
.doc-text ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0.45em;
  left: 0;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

/* A page that is one card: the billing return and the page that is not there. */
.centre {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.centre-card {
  width: min(34rem, 100% - clamp(2rem, 6vw, 4rem));
  padding: 2.5rem;
}
.centre-card .label {
  margin-bottom: 1rem;
}
/* A card's title is a step under a page's, so it sits on one line. */
.centre-card h1 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.125rem);
}
.centre-card p:not(.label) {
  margin-top: 1rem;
  color: var(--text-2);
}
.centre-card .centre-actions {
  margin-top: 1.75rem;
}
.centre-card .button {
  text-align: center;
  white-space: normal;
}
.centre-card .centre-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
}
.centre-card .centre-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.centre-card .centre-foot {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.875rem;
}

/* Footer */
.site-footer {
  overflow: hidden;
  padding-block: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.footer-brand .brand {
  color: var(--text);
}
.footer-brand p {
  margin-top: 0.75rem;
  color: var(--text-3);
}
.site-footer h2 {
  margin-bottom: 0.875rem;
  color: var(--text-3);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
}
.site-footer nav a,
.footer-contact a {
  display: block;
  width: fit-content;
  padding-block: 0.22rem;
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer nav a:hover,
.footer-contact a:hover {
  color: var(--text);
}
.footer-contact a {
  overflow-wrap: anywhere;
}
.footer-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.8125rem;
}
/* Whose names the pages use, and that we are neither. */
.footer-legal {
  margin-top: 0.75rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  color: var(--text-3);
  font-size: 0.8125rem;
}
.footer-legal p {
  max-width: 54rem;
}

/* A wide window: the page's column grows with it. */
@media (min-width: 100rem) {
  .wrap {
    width: min(86rem, 100% - 8rem);
  }
  .window-body {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }
}
/* The headline's two sentences, one to a line. */
@media (min-width: 48rem) {
  .h1-first,
  .h1-line {
    display: block;
  }
}
/* A drawing wider than its frame: the line under the frame says it scrolls. */
@media (max-width: 85rem) {
  .sheet-plan + .sheet-hint .sheet-scrolls {
    display: inline;
  }
}
@media (max-width: 61.5rem) {
  .sheet-charger + .sheet-hint .sheet-scrolls {
    display: inline;
  }
}

@media (max-width: 64rem) {
  /* The board first, then what the rail says in columns under it. */
  .window-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .stage-whole {
    aspect-ratio: 3 / 2;
  }
  .rail {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .rail-group + .rail-group {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .rail-made {
    margin-top: 0;
  }
  /* The run's figures, three to a row. */
  .story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .story-grid > div:nth-child(3n + 1) {
    padding-left: 0;
    border-left: 0;
  }
  .story-grid > div:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }
  .free-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .free-row .button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 56rem) {
  :root {
    --box: 1.375rem;
    --clear: 4.5rem;
  }
  /* One row, 56 px: the mark and the way in. The links are the row under it. */
  .bar {
    min-height: 3.5rem;
  }
  .bar-nav {
    display: none;
  }
  .bar-start {
    min-height: 2.75rem;
    padding-inline: 1rem;
  }
  .subnav {
    display: block;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }
  .subnav .wrap {
    display: flex;
    gap: 0.125rem;
  }
  .subnav a {
    display: inline-flex;
    flex: none;
    align-items: center;
    min-height: 2.75rem;
    padding-inline: 0.625rem;
  }
  .subnav a:first-child {
    margin-left: -0.625rem;
  }
  .hero {
    padding-top: 1.5rem;
  }
  .hero-lead {
    margin-top: 0.875rem;
  }
  .hero .actions {
    margin-top: 1.25rem;
  }
  .window {
    margin-top: 1.5rem;
  }
  .status-note {
    margin-left: 0;
  }
  .section-head,
  .step-copy,
  .step-split,
  .checks-grid,
  .credit-rule {
    grid-template-columns: minmax(0, 1fr);
  }
  /* One column: the note follows the table it explains, and the check run follows the note. */
  .checks-side {
    grid-row: auto;
  }
  .checks-grid .results-note {
    grid-column: auto;
    order: 1;
  }
  .checks-grid .panel {
    order: 2;
  }
  .section-head {
    align-items: start;
  }
  /* Two to a row. With an odd number of boards the first takes a row of its own. */
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tile,
  .tile-wide {
    grid-column: span 1;
  }
  .gallery-odd .tile:first-child {
    grid-column: 1 / -1;
  }
  .files {
    grid-template-columns: minmax(0, 1fr);
  }
  .files li:nth-child(2) {
    border-top: 1px solid var(--line);
  }
  .angles {
    grid-template-columns: minmax(0, 1fr);
  }
  .step-split .step-copy {
    position: static;
  }
  .step-split .step-art {
    margin-top: 0.5rem;
  }
  .who-grid,
  .offers,
  .notes-grid,
  .pricing-notes,
  .download-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .offer > p:last-of-type {
    margin-bottom: 1.25rem;
  }
  .every-plan {
    grid-template-columns: minmax(0, 1fr);
  }
  .doc-wrap.has-contents {
    grid-template-columns: minmax(0, 43rem);
  }
  .doc-wrap.has-contents .doc-head-text {
    grid-column: 1;
  }
  /* The list of sections is folded shut above the text, so the policy starts on the screen. */
  .doc-contents {
    display: none;
  }
  .doc-fold {
    display: block;
    margin-bottom: 2rem;
    border-block: 1px solid var(--line-2);
  }
  .doc-fold summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3rem;
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
  }
  .doc-fold summary::-webkit-details-marker {
    display: none;
  }
  .doc-fold summary::after {
    content: "";
    flex: none;
    width: 0.875rem;
    height: 0.875rem;
    background:
      linear-gradient(var(--text-2), var(--text-2)) 50% 50% / 100% 1.5px no-repeat,
      linear-gradient(var(--text-2), var(--text-2)) 50% 50% / 1.5px 100% no-repeat;
    transition: transform 0.15s;
  }
  .doc-fold[open] > summary::after {
    transform: rotate(45deg);
  }
  .doc-fold nav {
    padding-bottom: 0.75rem;
  }
  /* A finger needs 44 px: the links of the foot, a section list and an address in a sentence. */
  .site-footer nav a,
  .footer-contact a,
  .doc-fold a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding-block: 0;
  }
  .doc-fold a {
    color: var(--text-2);
    font-size: 0.9375rem;
    line-height: 1.4;
    text-decoration: none;
  }
  /* A link in a sentence is 44 px tall to a finger and no taller to the line it is in. */
  .note a,
  .or-browser a,
  .centre-foot a,
  .window-status a {
    padding-block: 0.8125rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand,
  .footer-contact {
    grid-column: 1 / -1;
  }
}

/* Too narrow for columns under the board: what the rail says, one under another. */
@media (max-width: 40rem) {
  .rail {
    grid-auto-flow: row;
  }
  .rail-group + .rail-group {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 36rem) {
  h1,
  h2 {
    letter-spacing: -0.032em;
  }
  /* The mark and the way in share a phone's row. The space between them is what is left over,
     never less than this, and a row too narrow for both puts the way in under the mark. */
  .bar {
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
  }
  .bar-start {
    padding-inline: 0.75rem;
  }
  /* The status stays: the bar's button stacks it under its words, as plain small type, so the
     button is the 44 px a finger needs and no taller. */
  .bar .button.is-soon {
    flex-direction: column;
    gap: 0.125rem;
    padding-block: 0.3125rem;
    line-height: 1.15;
  }
  .bar .is-soon .soon {
    padding: 0;
    background: none;
    font-weight: 500;
    line-height: 1.15;
  }
  /* The five links of the second row share a phone's width; a narrower one scrolls them. */
  .subnav .wrap {
    justify-content: space-between;
    gap: 0;
  }
  .subnav a {
    padding-inline: 0.375rem;
  }
  .subnav a:first-child {
    margin-left: -0.375rem;
  }
  .subnav a:last-child {
    margin-right: -0.375rem;
  }
  .hero .actions {
    flex-direction: column;
    align-self: stretch;
  }
  .actions .button {
    flex: 1 1 auto;
  }
  /* The board runs to the edges of the screen. */
  .hero .window {
    margin-inline: calc(clamp(2rem, 6vw, 4rem) / -2);
    border-inline: 0;
    border-radius: 0;
  }
  /* The board the page opens on fills the screen's width, in a stage of its own shape; the
     walk's board is the closer crop, in a stage of that crop's shape. */
  .stage-whole {
    aspect-ratio: 9 / 7;
  }
  .stage-whole img {
    padding: 0.75rem 0.5rem;
  }
  .window-walk .stage {
    aspect-ratio: 4 / 3;
  }
  /* The run's figures, two to a row. */
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .story-grid > div {
    padding: 1.125rem 0 1.125rem 1.125rem;
    border-left: 1px solid var(--line);
  }
  .story-grid > div:nth-child(3n + 1) {
    padding-left: 1.125rem;
    border-left: 1px solid var(--line);
  }
  .story-grid > div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .story-grid > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .story-grid dd {
    white-space: normal;
  }
  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }
  .tile-caption {
    padding-inline: 1.25rem;
  }
  /* A long figure breaks rather than push the page wider than a small phone. */
  .step-facts span {
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .sheet {
    padding: 0.75rem;
  }
  /* The charger's closer crop, at the size its words can be read at: the frame opens on its
     chip, and scrolls to the rest. */
  .sheet-charger a {
    width: 49rem;
  }
  /* The whole board across the column, and its two copper layers side by side under it. */
  .layers {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
  }
  .layer-stack {
    flex-direction: row;
    gap: 1rem;
  }
  .layer-stack .layer {
    flex: 1;
    min-width: 0;
  }
  .layer figcaption {
    gap: 0.5rem;
  }
  .layer-top figcaption::before,
  .layer-bottom figcaption::before {
    width: 1rem;
  }
  /* A table of figures becomes a list: the name on one line, its figures on the next. */
  .parts thead,
  .results-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .parts tbody,
  .results-table tbody {
    display: block;
  }
  .parts tr,
  .results-table tr {
    display: grid;
    gap: 0.125rem 0.875rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }
  .parts tbody :is(td, th),
  .results-table tbody :is(td, th) {
    padding: 0;
    border: 0;
  }
  .parts tr {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .parts td[data-label="Ref"] {
    grid-area: 1 / 1;
  }
  .parts tbody th {
    grid-area: 1 / 2;
  }
  .parts td[data-label="Est. price"] {
    grid-area: 1 / 3;
    text-align: right;
  }
  .parts td[data-label="What it is"] {
    grid-area: 2 / 1 / 2 / 3;
  }
  .parts td[data-label="LCSC no."] {
    grid-area: 2 / 3;
    text-align: right;
  }
  .parts td[data-label="Maker"] {
    grid-area: 3 / 1 / 3 / -1;
    color: var(--text-3);
    font-size: 0.875rem;
  }
  .results-table tr {
    grid-template-columns: repeat(2, auto) minmax(0, 1fr);
  }
  .results-table tbody th {
    grid-column: 1 / -1;
  }
  .results-table td {
    padding-left: 0;
    font-size: 0.875rem;
    text-align: left;
    white-space: nowrap;
  }
  /* Each figure is followed by what it counts, since the headings are out of sight. */
  .results-table td::after {
    content: " " attr(data-label);
    color: var(--text-3);
    font-weight: 400;
  }
  .results-table td[data-label="layers"] {
    display: none;
  }
  .angle-edge img {
    padding: 1rem;
  }
  /* A file's name and size on one line, what it is under them. */
  .files {
    padding-inline: 1.125rem;
  }
  .files li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .file-what {
    grid-area: 2 / 1 / 2 / -1;
    font-size: 0.8125rem;
  }
  .check-list li {
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 0.875rem;
  }
  .result-main b {
    font-size: 3.25rem;
  }
  .result-key > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.125rem;
  }
  .free-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .free-row .button {
    justify-self: stretch;
  }
  .faq-answer {
    padding-right: 0;
  }
  .compare-table :is(td, thead th + th) {
    width: 28%;
  }
  .credit-marks {
    flex-direction: column;
    gap: 0.75rem;
  }
  .credit-marks > div:last-child {
    text-align: left;
  }
  .credit-bar {
    display: none;
  }
  .centre-card {
    padding: 1.75rem;
  }
  .footer-note {
    flex-direction: column;
  }
}

/* A small phone: the five links are set a step smaller, so they still share its width, and the
   bar's button gives up some of its padding, so it still shares the row with the mark. */
@media (max-width: 23rem) {
  .bar {
    column-gap: 0.5rem;
  }
  .bar-start,
  .bar .button.is-soon {
    padding-inline: 0.5rem;
  }
  .subnav a {
    font-size: 0.8125rem;
  }
}

/* Narrower than a 360 px phone: the way in is under the mark, and the two rows get room. */
@media (max-width: 22.25rem) {
  .bar {
    padding-block: 0.375rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
