/* ---------------------------------------------------------------------------
   Travel — front-end shell
   Step 1 only. This styles a shell that holds no data and no application code.
   --------------------------------------------------------------------------- */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #5c5c5c;
  --rule: #d8d8d8;
  --panel: #f6f6f6;
  --pass: #1a7f47;
  --fail: #b3261e;
  --pending: #6b6b6b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181a;
    --fg: #e8e8e8;
    --muted: #9a9a9a;
    --rule: #33363a;
    --panel: #1e2124;
    --pass: #5cc98a;
    --fail: #f2857c;
    --pending: #9a9a9a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  max-width: 46rem;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.masthead h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 0.25rem 0 2.5rem;
  color: var(--muted);
}

h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

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

.stage {
  margin: 0 0 2.5rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--rule);
  background: var(--panel);
  font-size: 0.9rem;
}

section { margin-bottom: 2.5rem; }

code {
  padding: 0.1em 0.35em;
  border-radius: 3px;
  background: var(--panel);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
}

/* The capability checklist ------------------------------------------------- */

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.checklist li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.checklist .label { color: var(--muted); }
.checklist .value { font-variant-numeric: tabular-nums; }

/*
 * Set from JavaScript via data-state on the <li>, so the colour follows the
 * result rather than being asserted in the markup. An unchecked row is
 * neutral rather than red, because a check that has not run is not a failure.
 */
.checklist li[data-state="pass"] .value { color: var(--pass); font-weight: 600; }
.checklist li[data-state="fail"] .value { color: var(--fail); font-weight: 600; }
.checklist li[data-state="pending"] .value { color: var(--pending); }

.colophon {
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
}

.colophon p { margin: 0; }