/* EMS Atlas — public site. Tokens track docs/design-language.md: warm paper is
   the identity theme, dark is true night mode, volt is brand mark only. */

:root {
  --ground: #f6f3ec;
  --raised: #fafaf7;
  --ink: #171b19;
  --muted: #5b615c;
  --hairline: #d9dcd4;
  --volt: #8fa30a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #101413;
    --raised: #191e1c;
    --ink: #ecefea;
    --muted: #9ba39e;
    --hairline: #2a302d;
    --volt: #d4e834;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: "Barlow", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

header.masthead {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 28px;
}

.wordmark {
  font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-decoration: none;
}

.tick {
  color: var(--volt);
}

.plate {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.8px;
  color: var(--muted);
  border: 1px solid var(--hairline);
  padding: 2px 6px;
  white-space: nowrap;
}

h1 {
  font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 10px;
}

h2 {
  font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin: 32px 0 8px;
}

p {
  margin-bottom: 12px;
  max-width: 62ch;
}

.lede {
  font-size: 18px;
  color: var(--ink);
}

.muted {
  color: var(--muted);
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--volt);
}

/* Feature rows — hairlines organize, whitespace separates. */
.rows {
  border-top: 1px solid var(--hairline);
  margin-top: 24px;
}

.row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.row dt {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.6px;
  color: var(--muted);
  padding-top: 3px;
}

.row dd {
  margin: 0;
}

@media (max-width: 480px) {
  .row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

footer {
  margin-top: 44px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

footer a {
  color: var(--muted);
}

.disclaimer {
  margin-top: 28px;
  padding: 14px;
  background: var(--raised);
  border-radius: 3px;
  font-size: 14px;
  color: var(--muted);
}

/* Legal documents */
.doc h2 {
  font-size: 18px;
}

.doc p {
  font-size: 15px;
}

.backlink {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
