/* ===========================================================================
   The devices' help pages — /help/*.html

   Read inside the app's help window (a frame) or in a tab of their own, in
   the app's palette: the dark ground, the lavender of the controls, Inter.
   A page is a title, a lead, then sections — each a heading, prose, a
   screenshot of the device where one helps, and tables for the knobs.
   =========================================================================== */

:root {
  color-scheme: dark;
  --ink: #e6e0ee;
  --muted: #8f89a0;
  --soft: #b6b0c2;
  --lavender: #a98ff0;
  --lavender-deep: #9b7fe8;
  --line: #2a2833;
  --card: #15141a;
  --ok: #5dcaa5;
  --bad: #e24b4a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #100f14;
  color: var(--ink);
  font: 15px/1.6 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 28px 56px;
}

h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0 0 26px;
  font-size: 16px;
  color: var(--soft);
}

h2 {
  margin: 38px 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 19px;
  font-weight: 600;
}

h3 {
  margin: 22px 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--lavender);
}

p,
li {
  color: var(--soft);
}

p {
  margin: 0 0 12px;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

a {
  color: #c9b8ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

ul,
ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

li {
  margin: 4px 0;
}

kbd {
  padding: 1px 6px;
  border: 1px solid #3b3741;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #1c1a22;
  font: 12px/1.4 Inter, system-ui, sans-serif;
  color: var(--ink);
}

/* Screenshots of the device, in a frame of the panel's own dark. */

figure {
  margin: 14px 0 20px;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0f0e14;
}

figure.narrow img {
  width: auto;
  max-width: 100%;
}

figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

/* The knobs' table. */

table {
  width: 100%;
  margin: 10px 0 18px;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

td:first-child {
  white-space: nowrap;
  color: var(--ink);
  font-weight: 500;
}

td.range {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--soft);
}

/* A note aside from the prose. */

.note {
  margin: 14px 0 18px;
  padding: 12px 16px;
  border: 1px solid #4a3f66;
  border-radius: 12px;
  background: #a98ff00a;
  font-size: 14px;
}

.note p:last-child {
  margin-bottom: 0;
}

/* The meters' legend colours, in the text. */

.swatch {
  display: inline-block;
  width: 12px;
  height: 3px;
  margin: 0 5px 3px 0;
  border-radius: 2px;
  vertical-align: middle;
  background: var(--lavender);
}

.swatch.integrated {
  background: var(--ok);
}

.swatch.mix {
  background: var(--muted);
}

.swatch.ceiling {
  background: var(--bad);
}

/* The index: one line per device. */

.index a {
  display: block;
  padding: 14px 18px;
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}

.index a:hover {
  border-color: var(--lavender-deep);
}

.index a span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
