@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

html:root {
  --paper: #fcfaf6;
  --band: #f6f3ef;
  --card: #ffffff;
  --ink: #2f3037;
  --muted: #6d6e79;
  --line: #e2e0e4;
  --line-soft: rgba(226, 224, 228, 0.62);

  --accent: #d55815;
  --primary: #b84a10;
  --primary-hi: #a8410c;
  --primary-ink: #fff8f2;
  --primary-wash: #fbe4d5;
  --primary-deep: #a8410c;

  --dark: #100d0a;
  --dark-ink: #f5f1df;
  --dark-body: #d3c9bc;
  --dark-accent: #f16b28;
  --dark-line: rgba(245, 241, 223, 0.14);

  --blue: #3e6ba8;

  --accent-ink: #b84f12;
  --accent-line: rgba(213, 88, 21, 0.45);
  --accent-tint: rgba(213, 88, 21, 0.12);

  --banner: #bd4b0f;
  --banner-ink: #fff9f0;
  --banner-wash: #fff3e6;
  --banner-focus: #fff1d6;

  --dark-glow: #a2481a;
  --dark-glow-soft: rgba(162, 72, 26, 0.55);
  --dark-shade: #3d1e0e;
  --dark-void: rgba(16, 13, 10, 0);
  --dark-label: rgba(211, 201, 188, 0.72);
  --shadow-deep: rgba(47, 48, 55, 0.45);

  --pen: #c0392b;
  --card-warm: #fffdfb;
  --door-wash: #fff7f1;
  --edge: rgba(20, 16, 12, 0.14);

  --code-bg: #faf9f7;
  --code-ink: #383a42;
  --code-dim: #6f7079;
  --code-str: #6b5aa0;

  --focus-light: #ffd9a8;

  --print-paper: #fff;
  --print-ink: #000;

  --anchor-clear: 5rem;

  --r-xs: 4px;
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  --shadow-sm: 0 1px 3px rgba(47, 48, 55, 0.06), 0 1px 2px rgba(47, 48, 55, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(47, 48, 55, 0.08), 0 2px 4px -2px rgba(47, 48, 55, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(47, 48, 55, 0.09), 0 4px 6px -4px rgba(47, 48, 55, 0.07);
  --shadow-primary: 0 10px 15px -3px rgba(213, 88, 21, 0.22), 0 4px 6px -4px rgba(213, 88, 21, 0.18);
  --shadow-primary-hi: 0 14px 22px -6px rgba(213, 88, 21, 0.3), 0 6px 8px -4px rgba(213, 88, 21, 0.2);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;

  --gutter: 1rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "cv11" 1;
}

/* A selection is painted on the ground it selects, so each ground carries its
   own pair: paper/band/card, the dark proof card, and the accent grounds. */
::selection {
  background: var(--primary-wash);
  color: var(--ink);
}

.proof ::selection {
  background: var(--dark-accent);
  color: var(--dark);
}

.btn-primary::selection,
.banner ::selection,
.tag-on::selection,
.skip::selection {
  background: var(--primary-ink);
  color: var(--primary-deep);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

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

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

/* A table's used width floors at its min-content width, so width:1px cannot
   shrink the hero's transcript; block display lets the 1px width apply and
   the table keeps its role in the accessibility tree. */
table.sr-only {
  display: block;
}

.skip {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 100;
  transform: translate(-50%, -120%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 0 0 var(--r) var(--r);
  font-size: 0.875rem;
  font-weight: 600;
}

.skip:focus-visible {
  transform: translate(-50%, 0);
  outline-color: var(--focus-light);
  /* The light ring needs a dark halo to clear the page ground as well as the
     chip's own ink. */
  box-shadow: 0 0 0 5px var(--ink);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Announcement strip */

.banner {
  background: var(--banner);
  color: var(--banner-ink);
  font-size: 0.875rem;
  line-height: 1.5;
}

.banner-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.875rem;
  padding: 0.625rem 1.25rem;
  text-align: center;
}

.banner a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.banner a svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}

.banner a:hover svg {
  transform: translateX(3px);
}

/* The banner's one action: a solid chip on the strip rather than an
   underlined address; the address itself is named in the access section. */
.banner .banner-cta {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 0.8rem;
  border-radius: var(--r-xs);
  background: var(--paper);
  color: var(--primary-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.16s ease;
}

.banner .banner-cta:hover {
  background: var(--banner-wash);
}

.banner :focus-visible {
  outline-color: var(--banner-focus);
}

/* Masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}

.masthead-in {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  flex: none;
}

.brand-word {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--accent-ink);
  line-height: 1;
  padding-bottom: 2px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-left: auto;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav a {
  color: var(--ink);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

.nav .nav-strong {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--primary);
}

.nav .nav-strong svg {
  width: 14px;
  height: 14px;
}

/* Hero */

.hero {
  position: relative;
  padding: 3.5rem 0 2rem;
  background: var(--paper);
}

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
  max-width: 40rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.034em;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 34rem;
}

.code-inline {
  font-family: var(--mono);
  font-size: 0.9em;
  font-weight: 500;
  color: var(--ink);
  background: var(--band);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xs);
  padding: 1px 5px;
  white-space: nowrap;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 2rem;
  border-radius: var(--r);
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.16s ease, box-shadow 0.16s ease,
    border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
}

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

.btn-primary:hover {
  background: var(--primary-hi);
  box-shadow: var(--shadow-primary-hi);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: var(--accent-line);
  color: var(--primary);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags > span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 1.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 26px;
  padding: 0 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
  flex: none;
}

.hero-art {
  justify-self: center;
  width: 100%;
  max-width: 33rem;
}

/* The hero's streamline field — both direct lanes from the ten us-west-1
   captures on one shared rate scale. Static; the caption is the claim and the
   hidden table the numbers. */

.field-figure {
  margin: 0;
}

.field-figure canvas {
  display: block;
  width: 100%;
  height: 340px;
}

.field-figure figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.9rem;
}

.field-claim {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}

.field-note {
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 43.75em) {
  .field-figure canvas { height: 240px; }
}

/* The commands, above a figure: one lane per block, the ssh line over the qqt
   line. The executable sits in a fixed-width box so the flags line up by
   construction — hand-typed padding would make the two lines differ by more
   than the word that should be the only difference between them. */
.cmd-set {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0.9rem;
}

.cmd-lane {
  margin: 0 0 0.3rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cmd-lane-name { color: var(--ink); }

.cmd-pair {
  padding: 0.45rem 0.6rem 0.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: var(--band);
}

.cmd {
  margin: 0;
  padding: 0 0 0 5ch;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.75;
  color: var(--muted);
  /* A command wider than its lane wraps under the flags, not under the
     executable: the executable's cell is 4ch plus the space after it. */
  text-indent: -5ch;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-user-select: text;
  user-select: text;
}

.cmd-exe {
  display: inline-block;
  min-width: 4ch;
  /* text-indent inherits: without this the executable's own glyphs take the
     line's hanging indent and paint left of the lane's box. */
  text-indent: 0;
  color: var(--ink);
  font-weight: 600;
}

/* The hero's pair: the ssh executable struck out in ink, the qqt line under
   it. The strike is an SVG path rather than a transformed rule, because a rule
   is a machine's slash — three overlapping strokes of slightly different
   length and slope are a hand's. */
.cmd-verdict {
  display: grid;
  gap: 0.1rem;
  margin: 1.15rem 0 0;
  padding-left: 0.75rem;
  border-left: 2px solid var(--line);
}

.cmd-struck { position: relative; color: var(--muted); }

.cmd-struck .pen {
  position: absolute;
  top: 0.40em;
  /* The pen covers the executable word alone: it starts at the line's left
     edge (the hanging indent pulls the first character there) and spans three
     characters, with a pen's overshoot at the tail. */
  left: 0;
  width: 3.4ch;
  height: 0.85em;
  overflow: visible;
  pointer-events: none;
}

.cmd-struck .pen path {
  fill: none;
  stroke: var(--pen);
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0.88;
}

.cmd-struck .pen path:nth-child(2) { opacity: 0.7; }
.cmd-struck .pen path:nth-child(3) { opacity: 0.5; stroke-width: 0.9; }

/* Three-up evidence row */

.trio {
  padding: 1rem 0 5rem;
}

.trio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.75rem;
  text-align: center;
}

.trio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.trio-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
}

.trio-head svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex: none;
}

.trio h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.trio p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 22rem;
}

/* Dark proof band */

.proof {
  padding: 0 0 4rem;
}

.proof-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 130% at 12% 118%, var(--dark-glow) 0%, var(--dark-glow-soft) 26%, var(--dark-void) 58%),
    radial-gradient(90% 120% at 88% -20%, var(--dark-shade) 0%, var(--dark-void) 60%),
    var(--dark);
  color: var(--dark-body);
  box-shadow: 0 24px 48px -24px var(--shadow-deep);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.proof-copy {
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  /* The card's columns keep their share at 200% text, and a figure like
     "240.0 ms" is one unbreakable token past it; the break holds the card
     inside the viewport. */
  overflow-wrap: anywhere;
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark-accent);
}

.proof h2 {
  color: var(--dark-ink);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.028em;
  max-width: 18ch;
}

/* The copy paragraphs carry the reading size; the eyebrow and the figure
   labels keep their own declared sizes. */
.proof p:not([class]) {
  color: var(--dark-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 36ch;
}

.proof-figures {
  border-top: 1px solid var(--dark-line);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.proof-figure {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--dark-line);
}

.proof-figure:last-child {
  border-bottom: 0;
}

.proof-num {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--dark-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.proof-num em {
  font-style: normal;
  color: var(--dark-accent);
}

.proof-label {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dark-label);
  font-weight: 500;
}

/* Numbers section */

.band {
  background: var(--band);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-head p {
  margin-top: 0.875rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 46rem;
}

/* Stat card — the release-note idiom */

.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.stat-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 1.5rem 1.5rem 1.25rem;
}

.stat-value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--primary-wash);
  color: var(--primary-deep);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stat-note {
  color: var(--muted);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.stat-note .sep {
  color: var(--muted);
  padding: 0 0.375rem;
}

.stat-meta {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--muted);
}

.table-wrap {
  padding: 0 1.5rem 0.5rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

/* A caption is the table's lead-in sentence, so it takes the table's width
   rather than shrinking to its own longest line. */
caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

thead th {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--line);
}

thead th:first-child {
  text-align: left;
}

tbody td {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9375rem;
  text-align: right;
  color: var(--muted);
}

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

td.workload {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
}

td.fast {
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
}

td.ratio {
  display: table-cell;
}

.ratio > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  height: 24px;
  padding: 0 0.5rem;
  border-radius: var(--r-xs);
  background: var(--accent-tint);
  color: var(--primary-deep);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stat-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 2.5rem;
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--card-warm);
}

.stat-foot h3 {
  grid-column: 1 / -1;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.foot-item {
  padding: 0.6rem 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.foot-item .figure {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Formulas — three identities, each printed as an equation and then as the
   measurement that had to satisfy it. The equation is mono because it is a
   formula, not prose; the words around it are the page's own. */

.formulas {
  margin-top: 3.5rem;
}

.formula-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: formula;
}

@media (min-width: 60em) {
  .formula-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.formula {
  counter-increment: formula;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 1.125rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.formula-name {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--primary-deep);
}

.formula-name::before {
  content: counter(formula) " · ";
  font-variant-numeric: tabular-nums;
}

.formula-eq {
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--band);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: 0.6rem 0.7rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.formula-eq .eq-var {
  color: var(--primary-deep);
  font-weight: 600;
}

.formula-why,
.formula-check {
  font-size: 0.875rem;
  line-height: 1.6;
}

.formula-why {
  color: var(--muted);
}

.formula-check {
  color: var(--ink);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-soft);
}

.formula-check .figure {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.formula-check .eq-var {
  color: var(--primary-deep);
  font-weight: 600;
}

/* Install */

.install-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.access-cta {
  margin: 0 0 2.5rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--primary-deep);
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.step p {
  margin-top: 0.125rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.install-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}

.spec-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spec-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spec-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 0.65rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.tag-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.tag-planned {
  background: transparent;
  color: var(--muted);
  border-style: dashed;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 1.25rem 0;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-bottom: 0.75rem;
}

.code-head span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}

.code-head-gap {
  margin-top: 1.25rem;
}

.code-head .path {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

pre {
  margin: 0;
  overflow-x: auto;
  background: var(--code-bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 0.875rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--code-ink);
  tab-size: 2;
  -webkit-overflow-scrolling: touch;
}

code {
  font-family: inherit;
}

pre .tok-cmd {
  color: var(--primary);
  font-weight: 600;
}

pre .tok-flag {
  color: var(--blue);
}

pre .tok-str {
  color: var(--code-str);
}

pre .tok-comment {
  color: var(--code-dim);
}

/* Doors */

.cols-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem 3rem;
}

/* A grid item's automatic minimum is its content's, and a code block's
   longest line is wider than the column at 200% text; the explicit floor is
   what lets the block scroll inside its own column instead of pushing the
   page sideways. */
.cols-2 > * {
  min-width: 0;
}

.col-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.col-head svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex: none;
}

.col-head h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.door-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.door {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 32px;
  padding: 0 0.75rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.door.tested {
  border-color: var(--accent-line);
  background: var(--door-wash);
  color: var(--primary-deep);
  font-weight: 600;
}

.door.tested::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}

.door .planned {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.75rem;
}

.notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* The 2-up note grid at 200% text leaves ~100px a column, narrower than a
   single heading word; the floor and the break keep the pair inside it. */
.notes > * {
  min-width: 0;
}

.note h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin-bottom: 0.4rem;
  overflow-wrap: anywhere;
}

/* At 200% text the note columns are ~104px, narrower than a path chip like
   /usr/local/bin/qqt; inside a note the chip breaks rather than pushing the
   page. */
.note .code-inline {
  white-space: normal;
  overflow-wrap: anywhere;
}

.note p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.68;
}

/* Footer */

.foot {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
}

.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 24rem;
}

.foot-brand p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.foot-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.foot-h {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  /* A 96px column at 200% text is narrower than "reference"; the break keeps
     the heading inside its column instead of pushing the page sideways. */
  overflow-wrap: anywhere;
}

.foot-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9375rem;
  /* At 200% text the footer's 2-up grid leaves ~160px a column, and a
     reference word like "Documentation" is one unbreakable token past it; the
     break keeps the page inside the viewport instead of scrolling sideways. */
  overflow-wrap: anywhere;
}

.foot-list a {
  display: inline-block;
  padding: 0.2rem 0;
  color: var(--ink);
  transition: color 0.15s ease;
}

.foot-list a:hover {
  color: var(--primary);
}

.foot-list span {
  color: var(--muted);
}

.foot-bottom a {
  display: inline-block;
  padding: 0.25rem 0;
}

.foot-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (min-width: 40em) {
  html:root {
    --gutter: 1.5rem;
  }


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

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

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

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

  .spec-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
  }

  .spec-label {
    flex: none;
  }

  .chip-row {
    justify-content: flex-end;
  }

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

  .proof-figure {
    border-bottom: 0;
    border-left: 1px solid var(--dark-line);
    padding: 1.75rem 1.5rem;
  }

  .proof-figure:first-child {
    border-left: 0;
  }
}

@media (min-width: 56.25em) {
  html:root {
    --gutter: 2.5rem;
  }

  .cmd { font-size: 0.75rem; }

  .section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .hero {
    padding: 5.5rem 0 2rem;
  }

  .hero-in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 2rem;
  }

  .hero-in { align-items: start; }

  .hero-art {
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

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

  .proof-copy {
    padding: 2.75rem 2.5rem;
  }

  .proof-figures {
    border-top: 0;
    border-left: 1px solid var(--dark-line);
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
  }

  .proof-figure {
    border-left: 0;
    border-bottom: 1px solid var(--dark-line);
  }

  .proof-figure:last-child {
    border-bottom: 0;
  }

  .install-in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 4rem;
  }

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

  .foot-nav {
    gap: 3rem;
  }
}

@media (max-width: 47.5em) {
  html:root {
    /* The bar stacks a banner row and a wrapped nav on a phone; the measured
       clearance is 136px at this width before any text-size increase. */
    --anchor-clear: 9rem;
  }

  .masthead-in {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .nav {
    margin-left: 0;
    width: 100%;
    gap: 0.35rem 0.85rem;
    font-size: 0.8125rem;
  }

  .banner {
    font-size: 0.8125rem;
  }

  .banner-in {
    padding: 0.55rem 1rem;
  }
}

/* Below the desktop two-column layout a nowrap chip would set the page's
   min-content width, so the code spans and chips wrap instead. */
@media (max-width: 56.25em) {
  .code-inline,
  .chip,
  .tag,
  .door,
  .hero-tags > span {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .chip { height: auto; min-height: 1.625rem; padding-block: 0.2rem; }
  .tag { height: auto; min-height: 1.75rem; padding-block: 0.25rem; }
  .door { height: auto; min-height: 2rem; padding-block: 0.3rem; }
}

@media (max-width: 42.5em) {
  /* The hero's pair sits at the mono furniture floor; below it the command
     wraps under the flags rather than shrinking further. */
  .cmd-verdict .cmd { font-size: 0.625rem; }

  /* At a doubled text size the display line's longest word can exceed the
     lane; break it rather than widen the page. */
  .hero h1 { overflow-wrap: anywhere; }

  .banner .banner-cta {
    height: auto;
    min-height: 1.625rem;
    padding-block: 0.25rem;
  }

  .btn {
    height: auto;
    min-height: 3rem;
    padding: 0.5rem 1.25rem;
  }

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

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  table,
  tbody,
  tr,
  td {
    display: block;
  }

  caption {
    display: block;
    width: 100%;
  }

  tbody tr {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line-soft);
  }

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

  tbody td {
    border-bottom: 0;
    padding: 0.175rem 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
  }

  tbody td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    flex: none;
  }

  td.workload {
    padding-bottom: 0.35rem;
  }

  td.workload::before {
    content: none;
  }

  td.ratio {
    padding-top: 0.15rem;
  }

  td.ratio > span {
    margin-left: auto;
  }

  .stat-meta {
    margin-left: 0;
    width: 100%;
  }

  .stat-top {
    padding: 1.25rem 1.1rem 1rem;
  }

  .table-wrap {
    padding: 0 1.1rem 0.25rem;
  }

  .stat-foot {
    padding: 1.1rem;
  }

  .install-card {
    padding: 1.1rem;
  }
}

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

  .banner a svg {
    transition: none;
  }

  .btn,
  .nav a,
  .foot-list a {
    transition: none;
  }
}

.install-note {
  margin: 1.6rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--edge);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
}
.install-note h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.install-note p { margin: 0; color: var(--muted); font-size: 0.875rem; line-height: 1.55; }
.launch-figure { margin: 0.9rem 0 0; }
.launch-figure img { width: 100%; height: auto; border: 1px solid var(--edge); border-radius: 4px; }
.launch-figure figcaption { margin-top: 0.35rem; font-size: 0.75rem; color: var(--muted); font-family: var(--mono); }

/* The observability section: two cards, each a rendering of one snapshot. */
.obs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.obs-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.obs-card .col-head { margin-bottom: 0.2rem; }
.obs-card p { color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }

.obs-label {
  font-family: var(--mono);
  font-size: 0.625rem !important;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}

.obs-note {
  font-size: 0.75rem !important;
  font-family: var(--mono);
  line-height: 1.5 !important;
}

@media (min-width: 56.25em) {
  .obs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
  .obs-card { padding: 1.6rem 1.6rem 1.3rem; }
}

/* An in-page jump lands the heading clear of the sticky bar. The CSS value is
   the measured phone stack; streamline.js re-measures the bar so a wrapped
   nav or a reader's text size cannot leave the heading under it. */
:target {
  scroll-margin-top: var(--anchor-clear);
}

/* The field's fallback when its records cannot be fetched: the figure keeps
   its claim and caption, and the canvas gives up its empty box. */
.field-figure canvas[hidden] {
  display: none;
}

.field-fallback {
  margin: 1rem 0 0;
  padding: 1.5rem 1.25rem;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  background: var(--card);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media print {
  body {
    background: var(--print-paper);
    color: var(--print-ink);
  }

  .banner,
  .masthead,
  .nav,
  .skip,
  .foot {
    display: none;
  }

  /* The card's gradients are dropped with every other background, so give it
     a white ground and black ink: readable whether the browser prints the
     ground or not. */
  .proof-card {
    background: var(--print-paper);
    background-image: none;
    color: var(--print-ink);
    border: 1px solid var(--line);
    box-shadow: none;
  }

  .proof-card h2,
  .proof-card p,
  .proof-card p:not([class]),
  .proof-card .proof-num,
  .proof-card .proof-num em,
  .proof-card .proof-label,
  .proof-card .eyebrow {
    color: var(--print-ink);
  }

  .proof-figures,
  .proof-figure {
    border-color: var(--line);
  }

  /* A filled ground is the one thing print drops, so every chip's ink has to
     stand on its own: dark text and a rule instead of a fill. */
  .btn-primary,
  .pill,
  .tag-on {
    background: none;
    border: 1px solid var(--print-ink);
    color: var(--print-ink);
    box-shadow: none;
  }

  .btn-ghost,
  .stat-card,
  .install-card,
  .obs-card {
    box-shadow: none;
  }
}

/* The masthead nav collapses to a button below the layout's narrow end: seven
   links wrapping into a three-row block set the page's min-content width, and
   200% text made it taller than the content. The panel is a sibling of the
   button (not a class-only hide) so `hidden` is the one source of state. */
.nav-toggle {
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 1px solid color-mix(in srgb, var(--ink) 45%, transparent);
  border-radius: var(--r-xs);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle .bars { display: flex; flex-direction: column; gap: 4px; }

.nav-toggle .bars i {
  display: block;
  width: 15px;
  height: 1px;
  background: currentColor;
}

.sections {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem) 1.25rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 34px -22px var(--shadow-deep);
}

.sections[hidden] { display: none; }

.sections a {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.6rem 0 0.5rem;
  border-bottom: 1px solid var(--line-soft);
}

.sections a:hover,
.sections a:focus-visible { border-bottom-color: var(--accent); }

@media (max-width: 47.5em) {
  .nav { display: none; }
  .nav-toggle { display: grid; }

  .sections {
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 1rem;
    padding: 0.75rem 1rem 0.9rem;
  }
}
