/* Collision Index Identity 1.0: the six-token palette, declared once (docs/specs/apollo/brand-identity.md). */
:root {
  --ink: #0F2430;
  --steel: #3D6E88;
  --signal: #F3A11A;
  --paper: #F5F6F4;
  --mist: #E1E7EA;
  --graphite: #566670;
}

/* Archivo (SIL OFL 1.1, fonts/OFL.txt), the portal's vendored files copied byte for byte. */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/Archivo-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/fonts/Archivo-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: grid;
  place-items: center;
  background: var(--paper);
}

/* The lockup's clear space is built into the file; it never renders under 116 px (the mark's threshold). */
.lockup {
  display: block;
  width: min(80vw, 560px);
  height: auto;
}

/* A text page: the lockup small at the top, then one readable column. */
body.doc {
  display: block;
  height: auto;
  min-height: 100%;
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.doc-head,
.doc-body {
  box-sizing: border-box;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding-inline: 20px;
}

.doc-head {
  padding-block: 32px 0;
}

.doc-lockup {
  display: block;
  width: 200px;
  height: auto;
}

.doc-body {
  padding-block: 8px 64px;
}

.doc-body h1 {
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.2;
  margin: 1.5rem 0 1rem;
}

.doc-body h2 {
  font-weight: 600;
  font-size: 1.2rem;
  margin: 2rem 0 0.5rem;
}

.doc-body ul {
  padding-left: 1.2rem;
}

.doc-body a {
  color: var(--steel);
}

/* A User-Agent string or a URL is one long word: it wraps anywhere rather than widening the page. */
.doc-body code {
  font-family: ui-monospace, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.doc-body pre {
  background: var(--mist);
  padding: 12px 14px;
  border-radius: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
