/* Rochet — the site.

   Same brief as the app's "instrument panel": calm, hairlines rather than
   boxes, monospace for anything that is a label or a value. Ember and cyan are
   the only accents, and green/red are left alone — they belong to diffs.

   Hand-written, no build step, no external fonts or scripts. The pages are two
   files and this one. */

:root {
  --void: #08090b;
  --panel: #0e1013;
  --raised: #14171b;
  --rule: #1e2228;
  --rule-bright: #2b313a;
  --ink: #e6e9ee;
  --ink-dim: #98a1ae;
  --ink-faint: #5d6672;
  --ember: #f4913e;
  --signal: #4ec9d6;
  --mono: ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, 'Archivo', sans-serif;
}

* { box-sizing: border-box; }

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

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

/* Header — the wordmark, and the one line that says what this is. */

header { border-bottom: 1px solid var(--rule); padding-bottom: 2rem; }

.mark {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 1.25rem;
}

h1 {
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.lede { color: var(--ink-dim); margin: 0; font-size: 1.05rem; }

/* Body */

h2 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  margin: 3rem 0 1rem;
}

p { margin: 0 0 1rem; }
a { color: var(--signal); text-decoration-color: var(--rule-bright); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--signal); }
strong { color: var(--ink); font-weight: 600; }

/* The install line. It is the point of the page, so it is the loudest object
   on it — a panel, not a paragraph. */

.install {
  font-family: var(--mono);
  font-size: 0.95rem;
  background: var(--panel);
  border: 1px solid var(--rule-bright);
  border-left: 2px solid var(--ember);
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  white-space: nowrap;
}
.install::before { content: '$ '; color: var(--ink-faint); }

pre.block {
  font-family: var(--mono);
  font-size: 0.85rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
  margin: 1rem 0;
  color: var(--ink-dim);
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--ink);
  background: var(--raised);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

ul { margin: 0 0 1rem; padding-left: 1.1rem; }
li { margin-bottom: 0.5rem; }
li::marker { color: var(--ink-faint); }

/* A fact list — label left, value right, hairline between. Monospace, because
   every one of these is a value someone might have to read back to you. */

dl.facts { margin: 1rem 0; font-family: var(--mono); font-size: 0.82rem; }
dl.facts div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}
dl.facts dt { color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; }
dl.facts dd { margin: 0; color: var(--ink-dim); text-align: right; }

/* Callout — used once per page at most, for the thing you must not miss. */

.note {
  border-left: 2px solid var(--rule-bright);
  padding: 0.1rem 0 0.1rem 1.1rem;
  margin: 1.5rem 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
footer a { color: var(--ink-faint); }
footer a:hover { color: var(--signal); }

@media (max-width: 34rem) {
  .wrap { padding: 2.5rem 1.15rem 4rem; }
  dl.facts div { flex-direction: column; gap: 0.15rem; }
  dl.facts dd { text-align: left; }
}

/* The breadcrumb in the wordmark is a link, but it is still the wordmark. */
.mark a { color: inherit; text-decoration: none; }
.mark a:hover { text-decoration: underline; text-decoration-color: var(--ember); }
