/* DJZS truth-surface — TERMINAL BRUTALISM (ratified design system, C3).
   Neutrals for canvas/panel/rule; the PASS/WAIT/FAIL trio are the ONLY saturated colors on the
   page (used semantically: OK/live=pass, wait, critical/fail); Base blue is reserved for links and
   "on Base" tags only. JetBrains Mono for ALL structural type (headers, labels, numbers, buttons,
   status rows); Inter for long body paragraphs only. Flat: sharp corners (0–2px), 1px rules,
   no shadows, no gradients, no glass. */
:root {
  --canvas: #0A0A0A;
  --panel:  #111113;
  --rule:   #26262B;
  --text:   #E7E7EA;
  --muted:  #8A8A93;
  --pass:   #22C55E;
  --wait:   #F59E0B;
  --fail:   #EF4444;
  --base:   #0052FF;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--mono);            /* structural default */
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 1.25rem; }

/* long body paragraphs → Inter; everything else stays mono */
p, li { font-family: var(--body); }
.muted { color: var(--muted); }
a { color: var(--base); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--text); }
em { color: var(--muted); font-style: normal; }

/* header / identity */
header.site { border-bottom: 1px solid var(--rule); padding: 0.9rem 0; position: sticky; top: 0; background: var(--canvas); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-family: var(--mono); font-weight: 800; letter-spacing: 0.04em; color: var(--text); }
.brand::before { content: ">_ "; color: var(--muted); }   /* prompt mark */
.brand .dot { color: var(--text); }
nav a { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--muted); margin-left: 1.1rem; }
nav a:hover { color: var(--text); text-decoration: none; }

/* headings */
h1, h2, h3 { font-family: var(--mono); color: var(--text); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.5rem); margin: 0 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: 1.1rem; margin: 0 0 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
h3 { font-size: 0.92rem; margin: 1.3rem 0 0.4rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.k { font-family: var(--mono); color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 0.8rem; }

/* sections + "// ────" dividers (CSS-only, no markup) */
section { padding: 2.3rem 0; }
section::before {
  content: "// ──────────────────────────────────────────";
  display: block; color: var(--rule); font-family: var(--mono); font-size: 0.8rem;
  letter-spacing: 0.02em; margin-bottom: 1.4rem; overflow: hidden; white-space: nowrap;
}
section:first-of-type::before { display: none; }   /* no divider above the hero */
.lede { font-size: 1.05rem; }

/* code */
pre { background: var(--panel); border: 1px solid var(--rule); border-radius: 0; padding: 0.9rem 1rem; overflow-x: auto; font-family: var(--mono); font-size: 0.82rem; color: var(--text); }
code { font-family: var(--mono); font-size: 0.88em; color: var(--text); }

/* doctrine lines — terse, structural, mono */
.doctrine { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text); font-weight: 700; border-left: 2px solid var(--rule); padding-left: 0.75rem; margin: 1.3rem 0 0; }

/* hero status block (boot-log rows) */
.status { border: 1px solid var(--rule); background: var(--panel); border-radius: 0; padding: 1rem 1.1rem; margin: 1.2rem 0; font-family: var(--mono); font-size: 0.85rem; }
.status .row { display: grid; grid-template-columns: 2.4rem 6.8rem 1fr; gap: 0.6rem; padding: 0.22rem 0; align-items: baseline; }
.status .ok { color: var(--pass); font-weight: 700; }
.status .label { color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; }
.status .val { color: var(--text); }
.cursor { display: inline-block; width: 0.5rem; height: 0.95rem; background: var(--pass); vertical-align: text-bottom; margin-left: 0.25rem; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* ladder — the trio lives here as stamps */
.ladder { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0; }
.rung { flex: 1 1 210px; background: var(--panel); border: 1px solid var(--rule); border-radius: 0; padding: 0.9rem 1rem; }
.rung .verdict { display: inline-block; font-family: var(--mono); font-weight: 800; letter-spacing: 0.06em; border: 1px solid currentColor; border-radius: 0; padding: 0.12rem 0.5rem; margin-bottom: 0.55rem; }
.rung.pass .verdict { color: var(--pass); }
.rung.wait .verdict { color: var(--wait); }
.rung.fail .verdict { color: var(--fail); }

/* tables */
table { width: 100%; border-collapse: collapse; margin: 0.8rem 0; font-size: 0.82rem; font-family: var(--mono); }
th, td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; font-weight: 700; }
td { color: var(--text); }
td code { color: var(--text); }
/* severity: ALL-CAPS mono. CRITICAL == the FAIL trigger (hasCritical forces FAIL in the engine). */
.sev-CRITICAL, .sev-HIGH, .sev-MEDIUM, .sev-LOW { text-transform: uppercase; letter-spacing: 0.08em; }
.sev-CRITICAL { color: var(--fail); font-weight: 700; }
.sev-HIGH, .sev-MEDIUM, .sev-LOW { color: var(--muted); }
.live { color: var(--pass); font-weight: 700; }

/* proof-of-logic certificate */
.proof { border: 1px solid var(--rule); background: var(--panel); border-radius: 0; padding: 1rem 1.2rem; }
.stamp { display: inline-block; font-family: var(--mono); font-weight: 800; letter-spacing: 0.16em; border: 2px solid var(--fail); color: var(--fail); border-radius: 0; padding: 0.15rem 0.6rem; margin-bottom: 0.8rem; }
.cert { font-family: var(--mono); font-size: 0.82rem; margin: 0; white-space: pre-wrap; word-break: break-word; color: var(--text); background: none; border: 0; padding: 0; }
.cert .key { color: var(--muted); }              /* keys — secondary */
.cert .str { color: var(--text); }               /* strings — primary */
.cert .fail-val { color: var(--fail); font-weight: 700; }  /* verdict FAIL */
.cert .hash { color: var(--muted); }              /* texture; full value present + copyable */

/* badge (guide.html) */
.badge { display: inline-block; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; border: 1px solid var(--rule); border-radius: 0; padding: 0.1rem 0.45rem; color: var(--muted); }

ul.tight { margin: 0.5rem 0; padding-left: 1.2rem; }
ul.tight li { margin: 0.35rem 0; }

/* footer */
footer.site { border-top: 1px solid var(--rule); padding: 1.6rem 0; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; }
