@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-mono-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-sans-700.woff2") format("woff2"); }

/* fno.sh - the fno site, in the fno-books design system (fno-books
   ui/src/ds/tokens.css): Paper (light, black on white) and Superscript (dark,
   white on black). Type: IBM Plex Mono for headings, buttons, navigation,
   labels and accents; IBM Plex Sans for the rest and for the F of the mark.
   The fonts are self-hosted from /fonts (OFL, see fonts/OFL.txt). */

:root {
  color-scheme: dark light;
  --bg: light-dark(#ffffff, #000000);
  --fg: light-dark(#000000, #ffffff);
  --muted: light-dark(#6b6b6b, #9a9a9a);    /* --mute */
  --line: light-dark(#e2e2e2, #2e2e2e);
  --surface: var(--line);                    /* the band behind commands: the system's one grey */
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --maxw: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}
/* Dark and Light (theme.js) pin a scheme; System and no JS follow the system. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* Browsers without light-dark() (pre-2024): same tokens, system setting only. */
@supports not (color: light-dark(#000, #fff)) {
  :root { --bg: #000000; --fg: #ffffff; --muted: #9a9a9a; --line: #2e2e2e; }
  @media (prefers-color-scheme: light) {
    :root { --bg: #ffffff; --fg: #000000; --muted: #6b6b6b; --line: #e2e2e2; }
  }
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

/* Headings and commands speak in the terminal's face; prose stays sans. */
h1, h2, h3, h4 {
  font-family: var(--mono);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}
/* Single-column grids must let their one track shrink below its content. */
.finish, .plane, .surfaces { grid-template-columns: minmax(0, 1fr); }
p { margin: 0; text-wrap: pretty; }
code, pre { font-family: var(--mono); font-size: 0.9em; }
/* A long command inside prose breaks instead of pushing the page wide. */
p code, li code, dd code { overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--surface); color: var(--fg); }
[id] { scroll-margin-top: 1.5rem; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--fg);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0; }

.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;
}

/* The note marker: an inverted chip, as fno-books' footnote-mark. Every claim
   that carries one links to its evidence in the Notes list. */
sup { font-size: 0.72em; line-height: 0; }
.fn {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  padding: 3px 4px;
  margin-left: 2px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
}
.fn:hover { text-decoration: underline; }

/* --- header --- */
.site-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
}
/* The mark: a large F, then [no] on an ink stamp with ground text, the stamp's top on the F's cap line.
   5.3px is the cap line inside a 30px Plex Sans 700 line box at line-height 1; the padding centres
   the bracket ink in the stamp. Both parts follow the theme colour. */
.wordmark { display: inline-flex; align-items: flex-start; gap: 2px; color: var(--fg); text-decoration: none; }
.brand-f { font-family: var(--sans); font-weight: 700; font-size: 30px; line-height: 1; }
.brand-no { font-family: var(--mono); font-weight: 500; font-size: 12px; line-height: 1; margin-top: 5.3px; padding: 0.5px 3px 2px; background: var(--fg); color: var(--bg); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-left: auto; }
.site-header nav a, .site-footer nav a {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.35rem 0;
}
.site-header nav a:hover, .site-footer nav a:hover { color: var(--fg); }
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
/* The symbol shows the current mode: no data-theme means System. */
.theme-icon {
  display: none;
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:root:not([data-theme]) .theme-icon-system,
:root[data-theme="dark"] .theme-icon-dark,
:root[data-theme="light"] .theme-icon-light { display: block; }
/* The tip: an inverted chip, as the note marker, with a small arrow. */
.theme-tip {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 0.3rem 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1;
  white-space: nowrap;
  background: var(--fg);
  color: var(--bg);
  visibility: hidden;
}
.theme-tip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -4px;
  border: 4px solid transparent;
  border-bottom-color: var(--fg);
}
.theme-toggle:focus-visible .theme-tip,
.theme-toggle.tip-show .theme-tip { visibility: visible; }
/* Hover only where hover is real: a tap must not leave the state stuck on. */
@media (hover: hover) {
  .theme-toggle:hover { border-color: var(--fg); }
  .theme-toggle:hover .theme-tip { visibility: visible; }
}
.theme-toggle.tip-off .theme-tip { visibility: hidden; }
.theme-toggle:active, .install button:active { transform: translateY(1px); }
@media (max-width: 52rem) {
  .nav-page { display: none; }
  .site-header { gap: 1rem; }
  .site-header nav { gap: 1rem; }
}

/* --- hero --- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}
.hero h1 {
  font-weight: 700;
  font-size: clamp(2.1rem, 5.6vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.hero h1 sup { font-size: 0.42em; letter-spacing: 0; }
.lede {
  max-width: 36rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.2rem;
}
.lede-sub {
  max-width: 36rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}
/* The install command. The button is a reverse-video stamp, the mux's own
   way of marking the one thing to press. */
.install {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  border: 1px solid var(--fg);
}
.install code {
  padding: 0.8rem 1.1rem;
  font-size: 1rem;
  white-space: nowrap;
  overflow-x: auto;
}
.install code::before { content: "$ "; color: var(--muted); }
.install button {
  border: 0;
  border-radius: 0;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 5.5rem;
  padding: 0 1.1rem;
  cursor: pointer;
}
.install button:hover { background: var(--muted); }
.quiet-link { color: var(--muted); font-size: 0.95rem; }
.quiet-link:hover { color: var(--fg); }

/* Real captures of the mux. They stay dark in both themes: they are
   photographs of a terminal, not page chrome. */
figure { margin: 0; }
figure img { background: #000000; }
picture { display: block; }
/* A phone gets a crop of the capture, so the text around it swaps too. The
   width matches the media attribute on the hero's source element. */
.on-phone { display: none; }
@media (max-width: 40rem) {
  .on-wide { display: none; }
  .on-phone { display: revert; }
}
/* Window chrome around each capture, in the mux's own frame idiom: square
   controls, the title inset in the top rule, a label on the right. It uses
   the superscript theme's fixed dark values in both page themes, because it
   frames a dark terminal. */
.window { border: 1px solid #2e2e2e; background: #000000; }
.window-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1;
  color: #9a9a9a;
  border-bottom: 1px solid #2e2e2e;
}
.window-controls { display: flex; gap: 0.35rem; margin-right: 0.25rem; }
.window-controls i { display: block; width: 0.6rem; height: 0.6rem; border: 1px solid #555555; }
.window-title { color: #ffffff; font-weight: 500; white-space: nowrap; }
.window-rule { flex: 1; height: 1px; background: #2e2e2e; min-width: 1rem; }
.window-label { white-space: nowrap; }
@media (max-width: 26rem) { .window-controls { display: none; } }
figcaption { margin-top: 0.7rem; color: var(--muted); font-size: 0.9rem; }
.shot { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.shot img { width: 100%; }

/* --- bands --- */
.band {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
  border-top: 1px solid var(--line);
}
.band h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); letter-spacing: -0.025em; }
.band h3 { font-size: 1.05rem; }
.band-lede { max-width: 42rem; margin-top: 1rem; color: var(--muted); }
.band p code, .band dd code { color: var(--fg); }

/* finish line: the claim on the left, the three reads on the right */
.finish { display: grid; gap: 2.5rem clamp(2rem, 6vw, 5rem); }
@media (min-width: 56rem) { .finish { grid-template-columns: 1fr 1fr; align-items: start; } }
.finish-claim p { margin-top: 1.25rem; color: var(--muted); max-width: 34rem; }
.finish-claim p + p { color: var(--fg); }
.checks { margin: 0; font-family: var(--mono); font-size: 0.95rem; }
.checks > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}
.checks dt { font-weight: 500; }
.checks dt::before { content: "\2713\00a0"; color: var(--muted); font-weight: 400; }
.checks dd { margin: 0; color: var(--muted); font-family: var(--sans); font-size: 1rem; }
/* The selection band: surface0 under the text, as the mux bands a row. */
.checks > .checks-cmd {
  grid-template-columns: 1fr;
  gap: 0.3rem;
  margin-top: 0.5rem;
  padding: 1rem 1.1rem;
  border-top: 0;
  background: var(--surface);
}
.checks-cmd dt::before { content: "$ "; }
.checks-cmd dd { color: var(--fg); }

/* pipeline: one rule, five stages in reading order */
.stages {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.75rem;
  border-top: 1px solid var(--fg);
}
.stages li { padding-top: 1.1rem; }
.stages code { display: block; margin: 0.35rem 0 0.75rem; color: var(--muted); font-size: 0.85rem; }
.stages p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 60rem) {
  .stages { grid-template-columns: 1fr; gap: 0; }
  .stages li {
    display: grid;
    grid-template-columns: 9.5rem 1fr;
    column-gap: 1rem;
    padding: 1.1rem 0;
  }
  .stages li + li { border-top: 1px solid var(--line); }
  .stages code { margin-bottom: 0; }
  .stages p { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 30rem) {
  .stages li { grid-template-columns: 1fr; }
  .stages p { grid-column: 1; grid-row: auto; margin-top: 0.5rem; }
}

/* control plane: two captures beside four points */
.plane { display: grid; gap: 2.5rem clamp(2rem, 5vw, 4rem); }
.plane-shots { display: grid; gap: 1.75rem; align-content: start; }
/* The roster capture is tall; show its top rows and let the rest crop. */
.plane-shots figure:first-child img {
  width: 100%;
  height: clamp(18rem, 42vw, 27rem);
  object-fit: cover;
  object-position: top left;
}
.plane-shots figure:last-child img { width: 100%; }
.plane-wide { grid-column: 1 / -1; }
.plane-wide img { width: 100%; }
.plane-points { display: grid; gap: 2.25rem; align-content: start; }
.plane-points p { margin-top: 0.6rem; color: var(--muted); }
.plane-points .verb { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; }
.verb code { background: var(--surface); color: var(--fg); padding: 0.15rem 0.5rem; font-size: 0.85rem; }
@media (min-width: 56rem) {
  .plane { grid-template-columns: 5fr 6fr; }
  .plane-head { grid-column: 1 / -1; }
}

/* surfaces: two command lists */
.surfaces { display: grid; gap: 2.5rem clamp(2rem, 6vw, 5rem); margin-top: 2.25rem; }
@media (min-width: 56rem) { .surfaces { grid-template-columns: 1fr 1fr; } }
.surfaces article > p { margin-top: 0.6rem; color: var(--muted); max-width: 30rem; }
.verbs { margin: 1.5rem 0 0; display: grid; gap: 0.7rem; }
.verbs > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; align-items: baseline; }
.verbs dt { font-size: 0.95rem; }
.verbs dd { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 26rem) {
  .verbs > div { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* the plain statement */
.plain p { margin-top: 1.25rem; max-width: 40rem; color: var(--muted); font-size: 1.1rem; }

/* quickstart: a real sequence, so it is numbered */
.quick { list-style: none; margin: 2.25rem 0 0; padding: 0; counter-reset: step; display: grid; gap: 2.25rem; }
.quick > li { counter-increment: step; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); align-items: baseline; }
.quick > li::before {
  content: counter(step);
  font-family: var(--mono);
  font-weight: 500;
  color: var(--muted);
}
.quick > li > * { grid-column: 2; }
/* The coming-soon page marks its items h2 (no skipped level under the band's
   h1) and holds them at the Title role, as the compare cards do. */
.quick h2 { font-size: 1.05rem; letter-spacing: 0; }
.quick p { margin-top: 0.7rem; color: var(--muted); max-width: 40rem; }
pre {
  margin: 0.8rem 0 0;
  padding: 0.85rem 1.1rem;
  max-width: 40rem;
  background: var(--surface);
  overflow-x: auto;
}
pre code { font-size: 0.95rem; }
pre code::before { content: "$ "; color: var(--muted); }
.quick > li:nth-child(2) pre code::before { content: "> "; }

.alt-install { margin-top: 1rem; max-width: 52rem; }
.alt-install > summary { cursor: pointer; width: fit-content; color: var(--fg); font-size: 0.95rem; padding: 0.3rem 0; }
.alt-install > summary:hover { color: var(--muted); }
.alt-install-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.5rem 2.5rem;
  margin-top: 1rem;
}
.alt-install h4 { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.7rem; }
.alt-install ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.alt-install li { font-size: 0.9rem; overflow-wrap: anywhere; }
.alt-install li span { display: block; margin-top: 0.15rem; color: var(--muted); }

/* notes: where the markers land */
.notes h2 { font-size: 1.05rem; letter-spacing: 0; color: var(--muted); }
.notes ol { margin: 1.25rem 0 0; padding: 0 0 0 1.75rem; max-width: 46rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
.notes li { color: var(--muted); font-size: 0.95rem; padding: 0.4rem 0.6rem; }
.notes li::marker { font-family: var(--mono); font-weight: 500; color: var(--fg); }
.notes li:target { background: var(--surface); color: var(--fg); }
.notes .back { display: inline-block; font-family: var(--mono); font-size: 0.85rem; padding: 0.25rem 0.4rem; white-space: nowrap; }

/* --- footer --- */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 3.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.site-footer .wordmark { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.fine { margin-left: auto; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 40rem) { .fine { margin-left: 0; width: 100%; } }

/* --- compare: The Alternative: F[no], one page per rival --- */
.compare-home { padding: 0.25rem 0; font-family: var(--mono); font-size: 0.9rem; }
.compare-home a { color: var(--muted); text-decoration: none; }
.compare-home a:hover { color: var(--fg); text-decoration: underline; }
.stamp { margin-top: 1rem; color: var(--muted); font-family: var(--mono); font-size: 0.9rem; }
.compare-cards { display: grid; gap: 1.25rem; margin: 2.25rem 0 0; padding: 0; }
@media (min-width: 48rem) { .compare-cards { grid-template-columns: 1fr 1fr; } }
.compare-cards .card {
  border: 1px solid var(--line);
  padding: 1.25rem 1.5rem;
  color: var(--fg);
  text-decoration: none;
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.compare-cards .card:hover { border-color: var(--fg); }
.compare-cards .card h2 { font-size: 1.05rem; letter-spacing: 0; }
.compare-cards .card p { color: var(--muted); font-size: 0.97rem; }
.compare-list { margin: 1.25rem 0 0; padding: 0 0 0 1.5rem; max-width: 44rem; display: grid; gap: 0.55rem; }
.compare-list li { color: var(--muted); }
.compare-table-scroll {
  max-inline-size: 100%;
  margin-top: 2rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.compare-table-scroll .compare-table { min-width: 42rem; margin-top: 0; }
.compare-scope { display: block; margin-top: 0.5rem; font-family: var(--sans); font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.compare-table { margin-top: 2rem; border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.compare-table th, .compare-table td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.compare-table thead th { font-family: var(--mono); font-weight: 500; }
.compare-table tbody th { font-family: var(--mono); font-weight: 500; font-size: 0.85rem; white-space: nowrap; }
.compare-table td { color: var(--fg); }
.compare-table td code { overflow-wrap: anywhere; }
.compare-table a { color: var(--fg); }
.compare-faq { margin-top: 1.25rem; max-width: 44rem; display: grid; gap: 1.25rem; }
.compare-faq h3 { font-size: 1.05rem; letter-spacing: 0; }
.compare-faq p { margin-top: 0.6rem; color: var(--muted); }
.compare-band h2 { margin-top: 2.5rem; }
.compare-band h2:first-of-type { margin-top: 2.25rem; }
.compare-band > .notes { padding-left: 0; padding-right: 0; border-top: 1px solid var(--line); }
.compare-band h3 { margin-top: 1.25rem; }
.compare-band p { margin-top: 0.75rem; }
