/* Deliberately plain.
 *
 * The visual direction is not settled yet — Palantir/Vercel/Linear are still being weighed — and
 * the one decision already made is that this must NOT look like adlathe. Several certification
 * sites sharing one visual language read as a single template applied repeatedly, which is worse
 * for a portfolio than five plainly different builds.
 *
 * So this is typographic and neutral: readable, honest, and cheap to throw away. It is a holding
 * page, not a design statement. Light by default, because adlathe is dark. */

:root {
  --ink: #14171a;
  --ink-soft: #4a5259;
  --ink-faint: #7c858d;
  --bg: #fbfaf8;
  --line: #e2ded8;
  --accent: #1f4fd8;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eaec;
    --ink-soft: #a8b0b8;
    --ink-faint: #78818a;
    --bg: #101214;
    --line: #262a2e;
    --accent: #7aa2ff;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 6.5rem) clamp(1.25rem, 5vw, 2rem) 4rem;
}

/* ── head ── */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 600;
  margin: 0 0 1.1rem;
}

.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--ink-soft);
  margin: 0;
  max-width: 38rem;
}

/* ── sections ── */
section { margin-top: clamp(2.75rem, 7vw, 4rem); }

h2 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin: 0 0 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}

.note { color: var(--ink-soft); margin: 0 0 1.5rem; }

.built, .six { margin: 0; padding: 0; list-style: none; }

.built li {
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.built li:last-child { border-bottom: 0; }
.built b { color: var(--ink); font-weight: 600; }
.built .next b { color: var(--accent); }

/* The six subagents, numbered — an ordered list because the coordinator fans out to them in order
   of how much of the exam each one covers, not because they run sequentially. */
.six { counter-reset: n; }
.six li {
  counter-increment: n;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: .2rem .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
}
.six li::before {
  content: counter(n, decimal-leading-zero);
  grid-row: 1 / 3;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  padding-top: .35rem;
}
.six b { font-weight: 600; }
.six span { color: var(--ink-soft); font-size: .95rem; }
.six li:last-child { border-bottom: 0; }

/* ── foot ── */
.foot {
  margin-top: clamp(3rem, 8vw, 4.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: .9rem;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* ── gate ── */
body.centred { display: grid; place-items: center; min-height: 100vh; padding: 1.5rem; }

.gate { width: 100%; max-width: 20rem; text-align: center; }
.gate h1 { font-size: 1.5rem; margin-bottom: .4rem; }
.gate p { color: var(--ink-soft); font-size: .95rem; margin: 0 0 1.5rem; }

.gate input, .gate button {
  width: 100%;
  font: inherit;
  padding: .7rem .9rem;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.gate input { background: var(--bg); color: var(--ink); text-align: center; }
.gate input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.gate button {
  margin-top: .6rem;
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
.gate button:hover { opacity: .88; }

.err { color: #d1483a; font-size: .9rem; min-height: 1.2em; margin-top: .9rem; }
@media (prefers-color-scheme: dark) { .err { color: #ff8b7d; } }

/* The one call to action on the page. Understated on purpose: this is a tool the owner opens, not a
   button a visitor is being sold. */
.go {
  display: inline-block;
  font-weight: 600;
  padding: .65rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 5px;
  text-decoration: none;
}
.go:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
