:root {
  --paper:  #E9EDF1;
  --card:   #F7F9FB;
  --ink:    #16232B;
  --muted:  #5F6B75;
  --rule:   #C4CDD6;
  --record: #B23A2E;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 680px; margin: 0 auto; padding: 48px 24px 96px; }
.wordmark { font-weight: 600; font-size: 18px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.wordmark img { height: 24px; width: auto; }
/* 64px: the 96px value was set when blocks were denser; with short blocks it read
   as a void rather than as breathing room. */
.block { padding: 64px 0; border-bottom: 1px solid var(--rule); }
.block.tight { padding: 48px 0; }
.block:last-of-type { border-bottom: none; padding-bottom: 0; }
.eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 24px;
}
/* Sections are ledger entries too: 01 · CONNECT, 02 · THEN JUST ASK, ... */
#content { counter-reset: section; }
#content > .block .eyebrow::before {
  counter-increment: section; content: counter(section, decimal-leading-zero) " · ";
  color: var(--record);
}

/* The hero identity moment: the mark, oversized and almost-paper, behind the text.
   It is the one asset that is already ours; opacity keeps it structure, not ornament. */
.hero { position: relative; }
/* Planted in the empty margin beside the column rather than behind the words —
   an emblem, not a smudge. The 1440px viewport leaves ~380px of void there. */
.hero-mark {
  position: absolute; right: -300px; top: -24px; height: 380px; width: auto;
  opacity: 0.08; pointer-events: none; user-select: none;
}
.hero h1, .hero p { position: relative; }
h1 { font-size: 44px; font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 24px; }
h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 24px; }
.lede { color: var(--muted); }
.connector {
  display: flex; align-items: center; gap: 16px; background: var(--card);
  border: 1px solid var(--rule); border-radius: 4px; padding: 16px; margin-bottom: 16px;
}
.connector code { font-family: 'IBM Plex Mono', monospace; font-size: 15px; flex: 1; overflow-x: auto; white-space: nowrap; }
.btn {
  font-family: 'Archivo', sans-serif; font-size: 14px; font-weight: 500; padding: 12px 20px;
  border-radius: 4px; border: 1px solid transparent; cursor: pointer; transition: opacity .15s ease;
  white-space: nowrap; text-decoration: none; display: inline-block;
}
.btn:hover { opacity: .9; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-secondary { background: transparent; border-color: var(--rule); color: var(--ink); }
.note { font-size: 15px; color: var(--muted); }
/* Prompt rows and trust marks are numbered like ledger entries with hairline
   separators — structure that is on-concept for a system of record, not ornament. */
.prompts { list-style: none; display: flex; flex-direction: column; counter-reset: prompt; }
.prompts li {
  font-family: 'IBM Plex Mono', monospace; font-size: 15px; display: flex; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.prompts li:first-child { padding-top: 0; }
.prompts li:last-child { border-bottom: none; padding-bottom: 0; }
.prompts li::before { counter-increment: prompt; content: counter(prompt, decimal-leading-zero); color: var(--muted); }

.marks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; counter-reset: mark; }
.mark { border-left: 2px solid var(--record); padding-left: 16px; border-radius: 0; }
.mark::before {
  counter-increment: mark; content: counter(mark, decimal-leading-zero);
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); display: block;
}
.mark strong { display: block; font-weight: 600; }
.mark span { font-size: 15px; color: var(--muted); }
.mark a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule); }
.mark a:hover { color: var(--ink); }
/* The privacy group sits on a card so the two mark groups read as different kinds
   of claim rather than one seven-row list. */
.marks-panel { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 24px; }

/* The record block — one real round trip, rendered as the machine output it is.
   Everything inside is mono; that split already means "machine" site-wide. */
.record {
  background: var(--card); border: 1px solid var(--rule); border-left: 2px solid var(--record);
  border-radius: 4px; font-family: 'IBM Plex Mono', monospace; font-size: 14px;
  margin-bottom: 16px;
}
.record-head {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 24px; border-bottom: 1px solid var(--rule);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.record-head .id { color: var(--record); }
.record-body { padding: 24px; overflow-x: auto; }
.record .prompt { margin-bottom: 16px; }
.record .prompt::before { content: '\203A  '; color: var(--record); }
.record .result { margin-bottom: 4px; }
.record .result .ok { color: var(--record); font-weight: 500; }
.record .meta { color: var(--muted); margin-bottom: 16px; }
.record .history { border-top: 1px solid var(--rule); padding-top: 16px; color: var(--muted); white-space: pre; font-size: 13px; }
.record .history .actor { color: var(--ink); }
.mono { font-family: 'IBM Plex Mono', monospace; }
.price-line { margin-bottom: 24px; }
footer {
  padding-top: 64px; font-size: 14px; color: var(--muted);
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule); }
footer a:hover { color: var(--ink); }
.doc { padding: 48px 0 0; }
.doc h1 { font-size: 34px; margin-bottom: 8px; }
.doc .updated { font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 48px; }
.doc h2 { font-size: 21px; margin: 48px 0 16px; }
.doc p, .doc li { margin-bottom: 16px; }
.doc ul, .doc ol { padding-left: 24px; }
.doc a { color: var(--ink); }
.todo {
  font-family: 'IBM Plex Mono', monospace; font-size: 14px; color: var(--record);
  background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 0 4px;
}
.callout { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 24px; margin: 24px 0; font-size: 15px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn { font-size: 15px; padding: 14px 24px; }

@media (max-width: 1180px) {
  /* Not enough margin void to plant the emblem in; tuck it behind, fainter. */
  .hero-mark { right: -32px; opacity: 0.05; }
}
@media (max-width: 600px) {
  h1 { font-size: 34px; }
  .doc h1 { font-size: 28px; }
  .block, .block.tight { padding: 40px 0; }
  .connector { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .marks { grid-template-columns: 1fr; }
  .hero-mark { height: 160px; right: -16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Docs tables — added for the tool reference; follows the hairline-rule treatment
   used elsewhere rather than introducing a new card or shadow. */
.doc table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 8px 16px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.doc th { font-size: 12px; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; }
.doc td:first-child { white-space: nowrap; }
.doc code { font-family: 'IBM Plex Mono', monospace; font-size: 14px; }
.doc .connector code { font-size: 15px; }

/* Skip link — visually hidden until focused, so keyboard users can jump the wordmark.
   Uses existing tokens only; adds no new colour to the palette. */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  font-size: 14px; padding: 12px 20px; border-radius: 4px; text-decoration: none; z-index: 10;
}
.skip-link:focus { left: 8px; top: 8px; }

/* OAuth consent page */
.auth-card {
  background: var(--card); border: 1px solid var(--rule); border-radius: 4px;
  padding: 24px; margin-bottom: 24px;
}
.auth-card h2 { font-size: 20px; margin-bottom: 8px; }
.auth-card p { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.auth-card label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.auth-card input[type="text"], .auth-card input[type="password"] {
  font-family: 'IBM Plex Mono', monospace; font-size: 15px; width: 100%;
  padding: 12px; border: 1px solid var(--rule); border-radius: 4px;
  background: #fff; color: var(--ink); margin-bottom: 16px;
}
.auth-card input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.auth-alert { border-left: 2px solid var(--record); padding-left: 16px; margin-bottom: 24px; font-size: 15px; }
.auth-token {
  font-family: 'IBM Plex Mono', monospace; font-size: 15px; background: var(--card);
  border: 1px solid var(--rule); border-radius: 4px; padding: 16px;
  word-break: break-all; margin-bottom: 16px;
}
