/*
 * XRADE. Instrument panel, same discipline as robin.bot: dense, monospaced
 * figures, minimal chrome, accent used as a signal and never as a background
 * wash. A loud surface undercuts the measurement claim the whole thing rests on.
 *
 * The accent here is a signal amber rather than robin's lime, so an XRADE page
 * never reads as a robin.bot page. It marks disagreement, which is the only
 * thing this site is about.
 */
:root {
  color-scheme: light;
  --fg: #0a0a0a;
  --bg: #fbfbf9;
  --muted: #6b6b66;
  --border: #d8d8d2;
  --panel: #ffffff;
  --accent: #a8560a;
  --rule: #ececE4;
}

/*
 * Light only, deliberately.
 *
 * There was a dark palette here keyed off prefers-color-scheme. It meant the
 * site looked one way in Safari and another in Chrome depending on the reader's
 * OS setting, and the dark version read as generic. A record people are meant
 * to trust should look the same to everyone who opens it, and be quotable from
 * a screenshot without the screenshot looking like a different site.
 *
 * `color-scheme: light` above is the other half of this. Without it the browser
 * still renders form controls, scrollbars and autofill backgrounds dark, which
 * is what made /contact look half-converted.
 */

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

/* Every figure is monospaced and tabular so columns line up down the page. */
.mono, code, .figure, .panel, .brand {
  font-family: ui-monospace, SFMono-Regular, Menlo, 'Liberation Mono', monospace;
  font-variant-numeric: tabular-nums;
}

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

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 5rem;
}

/* ---------- head ---------- */

.head { margin-bottom: 2.75rem; }

.brand {
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  margin: 0 0 0.4rem;
  font-weight: 600;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  margin: 2.75rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}

section p { margin: 0 0 0.9rem; }

.lede p { font-size: 1.02rem; }

.claim {
  font-weight: 600;
  border-left: 2px solid var(--accent);
  padding-left: 0.85rem;
}

.back {
  margin: 0 0 1.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.back a { text-decoration-color: var(--accent); }

.cta {
  display: inline-block;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  color: var(--bg);
  background: var(--fg);
  border: 1px solid var(--fg);
  border-radius: 3px;
  text-decoration: none;
}

.cta:hover { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }

/* ---------- networks ---------- */

.networks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.networks li {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rule);
}

.networks a {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-decoration-color: var(--accent);
}

/* Unlinked networks read the same as linked ones, minus the affordance. */
.net-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.net-desc { color: var(--muted); font-size: 0.9rem; }

/* ---------- figure panel ---------- */

.panel {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 3px;
}

.row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--rule);
}

.row:last-child { border-bottom: 0; }

.label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.88rem;
  color: var(--muted);
}

.figure {
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
}

.figure.alert { color: var(--accent); }

.note { margin-top: 0.85rem; font-size: 0.9rem; color: var(--muted); }

code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border: 1px solid var(--border);
  border-radius: 2px;
}

/* ---------- contact ---------- */

.contact { display: flex; flex-direction: column; gap: 0.9rem; }

.contact label { display: flex; flex-direction: column; gap: 0.3rem; }

.contact label > span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contact label em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.7;
}

.contact input,
.contact select,
.contact textarea {
  font: inherit;
  color: var(--fg);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.55rem 0.65rem;
  width: 100%;
}

.contact input:focus,
.contact select:focus,
.contact textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.contact textarea { resize: vertical; }

.contact button {
  font: inherit;
  font-weight: 600;
  align-self: flex-start;
  padding: 0.55rem 1.4rem;
  color: var(--bg);
  background: var(--fg);
  border: 1px solid var(--fg);
  border-radius: 3px;
  cursor: pointer;
}

.contact button:hover { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }
.contact button[disabled] { opacity: 0.5; cursor: default; }

.form-status { margin: 0; font-size: 0.9rem; min-height: 1.4em; }
.form-status.err { color: var(--accent); }

/* Honeypot. Hidden from people, reachable by bots that fill every field. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- footer ---------- */

footer {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.82rem;
}

footer p { margin: 0; }
