/*
 * RackMeadow design tokens.
 *
 * One file feeds the app, the browser dashboard and the public website, so
 * the three cannot drift apart. Components use the semantic tokens (--bg,
 * --ink, --accent …); the brand values above them exist so a rebrand is a
 * change to this file only.
 *
 * Themes: light is the default. Dark applies under [data-theme='dark'].
 * The app sets data-theme from the person's choice or the system setting.
 */

:root {
  /* Brand: forest green, tangerine, acid lime, warm white. */
  --rm-forest-950: #08130d;
  --rm-forest-900: #10291d;
  --rm-forest-800: #173b2a;
  --rm-forest-700: #1e4d37;
  --rm-forest-600: #2a6447;
  --rm-forest-500: #3a7f5c;
  --rm-lime: #cdf03a;
  --rm-tangerine: #f2811d;
  --rm-paper: #fbf8f1;

  /* Type. Archivo is a variable face with a width axis: wide for names and
     headings (like the lettering on equipment faceplates), normal for text. */
  --font-sans: 'Archivo Variable', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --font-mono:
    ui-monospace, 'Cascadia Mono', 'Cascadia Code', Consolas, 'SF Mono', Menlo, monospace;
  --width-display: 112%;
  --width-text: 100%;
  --width-tight: 90%;

  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-md: 0.875rem;
  --text-lg: 1rem;
  --text-xl: 1.125rem;
  --text-2xl: 1.3125rem;
  --text-3xl: 1.625rem;
  --text-4xl: 2.25rem;

  /* Space, on a 4px grid. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-14: 56px;

  /* Corners differ by role on purpose: hardware is square-ish, panels are
     softer, pills are round. */
  --radius-hard: 3px;
  --radius-control: 7px;
  --radius-panel: 10px;
  --radius-dialog: 14px;
  --radius-pill: 999px;

  /* Motion. The app shortens these to nothing when motion is reduced. */
  --dur-fast: 90ms;
  --dur: 160ms;
  --dur-slow: 260ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;

  /* Surfaces */
  --bg: #f7f3e9;
  --surface: #fffdf8;
  --surface-sunken: #f0ebdd;
  --surface-hover: #f3eee1;
  --line: #e0d9c7;
  --line-strong: #c9c1ab;

  /* Ink */
  --ink: #14261c;
  --ink-2: #46564c;
  --ink-3: #5f6c64;
  --ink-on-accent: #fdfbf6;

  /* Action */
  --accent: #1e4d37;
  --accent-hover: #173b2a;
  --accent-soft: #e3ecdc;
  --link: #1a5c3e;
  --focus: #d96a0a;
  --highlight: #cdf03a;
  --highlight-ink: #10291d;

  /* State. Each pairs a fill with a text colour that passes 4.5:1 on it. */
  --ok-fill: #e2f3ae;
  --ok-ink: #24482f;
  --ok-mark: #2a6447;
  --warn-fill: #fce3c4;
  --warn-ink: #8a4505;
  --warn-mark: #d96a0a;
  --error-fill: #fadad3;
  --error-ink: #96281a;
  --error-mark: #c8402c;
  --info-fill: #eae5d6;
  --info-ink: #3f4a44;
  --info-mark: #5f6c64;
  --danger: #a82f1f;
  --danger-hover: #8c2517;

  /* The rack is dark in both themes: it is the one loud element. */
  --rack-frame: #0b1f15;
  --rack-bg: #10291d;
  --rack-unit: #173b2a;
  --rack-unit-hover: #1e4d37;
  --rack-line: #2a6447;
  --rack-ink: #f2efe4;
  --rack-ink-2: #a9bbaf;
  --led-ok: #cdf03a;
  --led-warn: #f2811d;
  --led-error: #ff6b57;
  --led-off: #5a6b61;
  --meter-track: rgba(242, 239, 228, 0.14);

  /* Navigation rail */
  --rail-bg: #10291d;
  --rail-ink: #f2efe4;
  --rail-ink-2: #a9bbaf;
  --rail-hover: rgba(242, 239, 228, 0.08);
  --rail-active: rgba(205, 240, 58, 0.14);
  --rail-marker: #cdf03a;
  --rail-line: rgba(242, 239, 228, 0.1);

  /* Charts. Validated for colour-vision deficiency against --surface. */
  --chart-1: #1f7a4c;
  --chart-2: #2f6fb0;
  --chart-grid: #e6dfce;
  --chart-axis: #c9c1ab;

  --shadow-raised: 0 1px 0 rgba(20, 38, 28, 0.04), 0 10px 28px -14px rgba(20, 38, 28, 0.28);
  --shadow-dialog: 0 24px 64px -24px rgba(8, 19, 13, 0.5);
  --scrim: rgba(8, 19, 13, 0.42);
  --dot: rgba(20, 38, 28, 0.1);
  --dot-lit: rgba(30, 77, 55, 0.5);
}

[data-theme='dark'] {
  color-scheme: dark;

  --bg: #0c1a13;
  --surface: #12241a;
  --surface-sunken: #0a160f;
  --surface-hover: #183023;
  --line: #24402f;
  --line-strong: #32553f;

  --ink: #eef2e6;
  --ink-2: #b4c2b6;
  --ink-3: #8c9c90;
  --ink-on-accent: #10291d;

  --accent: #cdf03a;
  --accent-hover: #dcf56e;
  --accent-soft: #1d3a1c;
  --link: #cdf03a;
  --focus: #f2811d;
  --highlight: #cdf03a;
  --highlight-ink: #10291d;

  --ok-fill: #1d3a1c;
  --ok-ink: #cdf03a;
  --ok-mark: #cdf03a;
  --warn-fill: #43300f;
  --warn-ink: #ffb366;
  --warn-mark: #f2811d;
  --error-fill: #4a1d17;
  --error-ink: #ff9c8c;
  --error-mark: #ff6b57;
  --info-fill: #1c3125;
  --info-ink: #b4c2b6;
  --info-mark: #8c9c90;
  --danger: #ff8572;
  --danger-hover: #ff9c8c;

  --rack-frame: #050d08;
  --rack-bg: #08130d;
  --rack-unit: #12241a;
  --rack-unit-hover: #183023;
  --rack-line: #24402f;

  --rail-bg: #08130d;
  --rail-line: rgba(238, 242, 230, 0.08);

  --chart-1: #6ca644;
  --chart-2: #5494ce;
  --chart-grid: #1e3528;
  --chart-axis: #32553f;

  --shadow-raised: 0 1px 0 rgba(0, 0, 0, 0.2), 0 12px 32px -16px rgba(0, 0, 0, 0.7);
  --shadow-dialog: 0 24px 64px -20px rgba(0, 0, 0, 0.8);
  --scrim: rgba(3, 8, 5, 0.62);
  --dot: rgba(238, 242, 230, 0.07);
  --dot-lit: rgba(205, 240, 58, 0.45);
}



@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('/assets/archivo.e3a28eade2.woff2') format('woff2-variations');
}

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

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

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

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

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

h1,
h2,
h3 {
  font-stretch: var(--width-display);
  font-weight: 620;
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
}

h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}

pre {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-panel);
  background: var(--rack-bg);
  color: var(--rack-ink);
  overflow-x: auto;
  line-height: 1.6;
}

pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 0.92rem;
}

kbd {
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface);
}

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

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--surface);
  border-radius: var(--radius-control);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

/* Buttons --------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition:
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

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

.button:active {
  transform: scale(0.98);
}

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

.button--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button--small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.875rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Header ------------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-stretch: 118%;
  font-weight: 650;
  font-size: 1.125rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a:not(.button) {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 540;
  font-size: 0.9375rem;
}

.nav a:not(.button):hover,
.nav a[aria-current='page'] {
  color: var(--ink);
}

.nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--focus);
  text-decoration-thickness: 2px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}

@media (max-width: 800px) {
  .menu-toggle {
    display: grid;
  }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav--open {
    display: flex;
  }
  .nav a:not(.button) {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav .button {
    margin-top: 14px;
  }
}

/* Hero ---------------------------------------------------------------------- */

.hero {
  padding: 72px 0 0;
  background:
    radial-gradient(var(--dot) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--bg);
}

.hero__text {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.hero h1 {
  font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.5rem);
  font-stretch: 116%;
  font-weight: 640;
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 16ch;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  color: var(--ink-2);
  max-width: 62ch;
}

.release {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 560;
  color: var(--ink-2);
}

.release__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rm-tangerine);
  box-shadow: 0 0 0 3px rgba(242, 129, 29, 0.2);
}

/* The screenshot sits in a rack, like the units it shows. */
.rack-frame {
  margin-top: 56px;
  padding-bottom: 72px;
}

.rack-frame__inner {
  position: relative;
  padding: 14px 44px;
  border-radius: 12px 12px 0 0;
  background: var(--rack-bg);
  border: 1px solid var(--rack-frame);
  border-bottom: 0;
}

.rack-frame__inner::before,
.rack-frame__inner::after {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 0;
  width: 14px;
  background: radial-gradient(circle, var(--rack-frame) 2.8px, transparent 3.3px) center top / 14px
    28px repeat-y;
}

.rack-frame__inner::before {
  left: 15px;
}

.rack-frame__inner::after {
  right: 15px;
}

.rack-frame img {
  border-radius: 6px 6px 0 0;
  border: 1px solid var(--rack-line);
  border-bottom: 0;
}

.rack-frame figcaption,
.shot figcaption {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--ink-2);
  max-width: 70ch;
}

.rack-frame figcaption {
  padding-top: 14px;
  border-top: 3px solid var(--rack-frame);
}

@media (max-width: 700px) {
  .hero {
    padding-top: 44px;
  }
  .rack-frame__inner {
    padding: 8px 10px;
  }
  .rack-frame__inner::before,
  .rack-frame__inner::after {
    display: none;
  }
}

/* Sections ------------------------------------------------------------------ */

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

.section--sunken {
  background: var(--surface-sunken);
}

.section h2 {
  margin-bottom: 18px;
}

.section__lead {
  color: var(--ink-2);
  max-width: 62ch;
  margin-bottom: 36px;
  font-size: 1.125rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  align-items: start;
}

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

@media (max-width: 960px) {
  .split,
  .split--even {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

.features {
  display: grid;
  gap: 0;
  margin-top: 28px;
}

.features > div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.features dt {
  font-weight: 640;
  font-stretch: var(--width-display);
  font-size: 1.0625rem;
  margin-bottom: 4px;
}

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

.shot {
  position: sticky;
  top: 96px;
}

.shot img {
  border-radius: var(--radius-panel);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-raised);
}

/* A sequence, so numbered. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 12px 0 56px;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 26px 28px 0 0;
  border-top: 3px solid var(--accent);
}

.steps li + li {
  padding-left: 28px;
  border-left: 1px solid var(--line-strong);
}

.steps li::before {
  content: counter(step);
  font-stretch: 120%;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--rm-tangerine);
}

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

@media (max-width: 860px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .steps li + li {
    padding-left: 0;
    border-left: 0;
  }
}

.diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1.1fr) 48px minmax(0, 1fr);
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-panel);
  background: var(--surface);
  border: 1px solid var(--line);
}

.diagram__col {
  display: grid;
  gap: 8px;
}

.node {
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-hard);
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 540;
}

.node--quiet {
  border-style: dashed;
  color: var(--ink-2);
}

.diagram__link {
  height: 2px;
  background: var(--line-strong);
  position: relative;
}

.diagram__link::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  border: 5px solid transparent;
  border-left: 7px solid var(--line-strong);
  border-right: 0;
}

.diagram__core {
  display: grid;
  gap: 4px;
  padding: 22px 20px;
  border-radius: var(--radius-panel);
  background: var(--rack-bg);
  color: var(--rack-ink);
  text-align: center;
}

.diagram__core b {
  font-stretch: var(--width-display);
  font-size: 1.125rem;
}

.diagram__core span {
  color: var(--rack-ink-2);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.diagram__note {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

@media (max-width: 860px) {
  .diagram {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .diagram__link {
    width: 2px;
    height: 28px;
    margin: 6px auto;
  }
  .diagram__link::after {
    right: -4px;
    top: auto;
    bottom: -1px;
    border: 5px solid transparent;
    border-top: 7px solid var(--line-strong);
    border-bottom: 0;
  }
}

/* Status table ---------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
}

.status {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96875rem;
}

.status th,
.status td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.status tbody tr:last-child > * {
  border-bottom: 0;
}

.status thead th {
  font-weight: 600;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.status tbody th {
  font-weight: 560;
  width: 44%;
}

.status td {
  color: var(--ink-2);
  line-height: 1.9;
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
  padding: 1px 9px 1px 7px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.8125rem;
  white-space: nowrap;
}

/* The mark's shape changes with the state, so colour is not the only cue. */
.state::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: none;
}

.state--ok {
  background: var(--ok-fill);
  color: var(--ok-ink);
}
.state--ok::before {
  border-radius: 50%;
  background: currentColor;
}

.state--wait {
  background: var(--warn-fill);
  color: var(--warn-ink);
}
.state--wait::before {
  border-radius: 50%;
  border: 2px solid currentColor;
}

.state--no {
  background: var(--info-fill);
  color: var(--info-ink);
}
.state--no::before {
  height: 2px;
  background: currentColor;
}

@media (max-width: 640px) {
  .status thead {
    display: none;
  }
  .status tr {
    display: grid;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
  }
  .status th,
  .status td {
    padding: 2px 0;
    border: 0;
    width: auto;
  }
}

/* Security ------------------------------------------------------------------ */

.ticks {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 30px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--ok-mark);
  border-bottom: 2.5px solid var(--ok-mark);
  transform: rotate(-45deg);
}

/* Get it ------------------------------------------------------------------- */

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.option {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-panel);
  background: var(--surface);
}

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

.command {
  justify-self: start;
  padding: 8px 12px;
  background: var(--rack-bg);
  color: var(--rack-ink);
  border-color: var(--rack-frame);
}

@media (max-width: 760px) {
  .options {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Setup guide ---------------------------------------------------------------- */

.doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: 64px;
  padding: 56px 0 96px;
}

.doc__toc {
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 0.9375rem;
}

.doc__toc p {
  font-weight: 620;
  margin-bottom: 8px;
}

.doc__toc ul {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

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

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

.doc__body {
  display: grid;
  gap: 16px;
}

.doc__body h1 {
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.25rem);
}

.doc__body h2 {
  font-size: 1.5rem;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.doc__body ul,
.doc__body ol {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.faq dt {
  font-weight: 620;
  margin-top: 14px;
}

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

@media (max-width: 900px) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 36px;
  }
  .doc__toc {
    position: static;
  }
}

.notfound {
  display: grid;
  gap: 18px;
  justify-items: start;
  padding: 120px 0 160px;
}

.notfound h1 {
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.25rem);
}

/* Footer -------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--rack-frame);
  background: var(--rack-bg);
  color: var(--rack-ink-2);
  padding: 48px 0 40px;
  font-size: 0.9375rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 48px;
}

.footer .brand {
  color: var(--rack-ink);
  margin-bottom: 10px;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 24px 56px;
  align-content: start;
}

.footer__nav div {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer__head {
  color: var(--rack-ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
}

.footer__brand p {
  max-width: 42ch;
}

.footer a {
  color: var(--rack-ink);
}

.footer :focus-visible {
  outline-color: var(--rm-lime);
}

.footer__small {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--rack-line);
  font-size: 0.8125rem;
}

@media (max-width: 700px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer__nav {
    grid-template-columns: repeat(2, auto);
    justify-content: start;
  }
}

/* Shared bits ---------------------------------------------------------------- */

/* Hidden means hidden, whatever display a class sets. */
[hidden] {
  display: none !important;
}

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

.bullets {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

q {
  quotes: '“' '”';
  font-style: normal;
  font-weight: 560;
}

.doc__toc a[aria-current='page'] {
  color: var(--ink);
  font-weight: 620;
  text-decoration: underline;
  text-decoration-color: var(--focus);
  text-decoration-thickness: 2px;
}

/* A measured result, set apart from the copy around it. */
.measure {
  display: grid;
  gap: 8px;
  margin-top: 40px;
  padding: 24px 28px;
  border-radius: var(--radius-panel);
  background: var(--rack-bg);
  color: var(--rack-ink);
  max-width: 760px;
}

.measure__title {
  color: var(--rack-ink-2);
  font-size: 0.875rem;
  font-weight: 600;
}

.measure__text {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.45;
}

.measure__text b {
  color: var(--led-ok);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.measure__note {
  color: var(--rack-ink-2);
  font-size: 0.875rem;
}

/* Consent ------------------------------------------------------------------- */

.consent {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-dialog);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-dialog);
}

.consent::backdrop {
  background: var(--scrim);
  backdrop-filter: blur(3px);
}

.consent__body {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.consent h2 {
  font-size: 1.5rem;
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.consent__small {
  font-size: 0.8125rem;
  color: var(--ink-3);
}

/* Plain pages (download) ---------------------------------------------------- */

.page {
  display: grid;
  gap: 48px;
  padding: 56px 0 96px;
}

.page__head {
  display: grid;
  gap: 14px;
}

.page__head h1,
.account h1 {
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.25rem);
}

.page__section {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.page__section h2 {
  font-size: 1.5rem;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.platform {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-panel);
  background: var(--surface);
}

.platform--yours {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.platform h2 {
  font-size: 1.5rem;
}

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

.platform .button {
  justify-self: start;
}

.platform__yours {
  justify-self: start;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--ok-fill);
  color: var(--ok-ink) !important;
  font-size: 0.8125rem;
  font-weight: 600;
}

.platform__req {
  font-size: 0.9375rem;
  font-weight: 560;
}

.file {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.file dt {
  color: var(--ink-3);
  font-weight: 600;
  margin-top: 6px;
}

.file dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.hash {
  word-break: break-all;
  font-size: 0.75rem;
}

.commands {
  display: grid;
  gap: 8px;
}

@media (max-width: 980px) {
  .platforms {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Policies ------------------------------------------------------------------ */

.policy__date {
  color: var(--ink-3);
  font-size: 0.9375rem;
}

.policy .button {
  justify-self: start;
  margin-top: 20px;
}

/* Account: sign-in and the phone dashboard ------------------------------- */

.account {
  max-width: 760px;
  padding: 40px 0 80px;
}

.account__state {
  display: grid;
  gap: 18px;
}

.notice {
  padding: 12px 16px;
  border-radius: var(--radius-control);
  background: var(--warn-fill);
  color: var(--warn-ink);
  font-weight: 540;
}

.signin__steps {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.signin__steps li {
  position: relative;
  padding: 16px 18px 16px 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  counter-increment: step;
}

.signin__steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rack-bg);
  color: var(--led-ok);
  font-weight: 650;
  font-size: 0.875rem;
}

.signin__small {
  color: var(--ink-3);
  font-size: 0.9375rem;
}

.account-id {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.dash__head .button {
  white-space: nowrap;
  flex: none;
}

.dash__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dash__meta {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 0.875rem;
}

.dash__updated {
  color: var(--ink-3);
  font-size: 0.875rem;
}

/* The one loud element: is the rack all right? */
.summary {
  display: grid;
  gap: 4px;
  padding: 20px 22px;
  border-radius: var(--radius-panel);
  background: var(--rack-bg);
  color: var(--rack-ink);
  border-left: 6px solid var(--led-off);
}

.summary:empty {
  display: none;
}

.summary--ok {
  border-left-color: var(--led-ok);
}

.summary--problem {
  border-left-color: var(--led-error);
}

.summary--stale {
  border-left-color: var(--led-warn);
}

.summary__title {
  font-size: 1.375rem;
  font-weight: 640;
  font-stretch: 112%;
}

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

.dash__section {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.dash__section h2 {
  font-size: 1.125rem;
}

.empty {
  color: var(--ink-3);
  list-style: none;
  font-size: 0.9375rem;
}

.incidents,
.svc-list,
.events {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.incident {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
}

.incident--open {
  border-color: var(--warn-mark);
}

.incident__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.incident__subject {
  font-weight: 620;
}

.incident__summary {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.incident__meta {
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'name pill' 'rule pill';
  align-items: center;
  gap: 2px 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
}

.svc__name {
  grid-area: name;
  font-weight: 600;
}

.svc__rule {
  grid-area: rule;
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.svc .pill {
  grid-area: pill;
}

.svc__detection {
  color: var(--ink-3);
  font-size: 0.8125rem;
  padding: 2px 4px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.pill--ok {
  background: var(--ok-fill);
  color: var(--ok-ink);
}

.pill--warn {
  background: var(--warn-fill);
  color: var(--warn-ink);
}

.pill--error {
  background: var(--error-fill);
  color: var(--error-ink);
}

.pill--info {
  background: var(--info-fill);
  color: var(--info-ink);
}

.machines {
  display: grid;
  gap: 12px;
}

.machine {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-panel);
  background: var(--rack-bg);
  color: var(--rack-ink);
}

.machine__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.machine__name {
  font-size: 1.0625rem;
}

.machine__os,
.machine__temp {
  color: var(--rack-ink-2);
  font-size: 0.8125rem;
}

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

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  align-self: center;
  background: var(--led-off);
}

.dot--ok {
  background: var(--led-ok);
  box-shadow: 0 0 6px var(--led-ok);
}

.dot--error {
  background: var(--led-error);
}

.metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'label value' 'bar bar';
  align-items: center;
  gap: 4px 10px;
  font-size: 0.8125rem;
}

.metric .bar {
  grid-area: bar;
}

.metric__label {
  grid-area: label;
  color: var(--rack-ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric__value {
  grid-area: value;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.bar {
  height: 8px;
  border-radius: 4px;
  background: var(--meter-track);
  overflow: hidden;
}

.bar__fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--led-ok);
}

.bar__fill--high {
  background: var(--led-warn);
}

.event {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 2px 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.event__time {
  grid-row: span 2;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  padding-top: 2px;
}

.event__title {
  font-weight: 560;
}

.event__message {
  color: var(--ink-2);
  font-size: 0.875rem;
}

.event--error .event__title {
  color: var(--error-ink);
}

.event--warning .event__title {
  color: var(--warn-ink);
}

.dash__readonly {
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--surface-sunken);
  color: var(--ink-2);
  font-size: 0.875rem;
}

@media (max-width: 520px) {
  .account {
    padding-top: 24px;
  }
}
