/* BlackBoxNG website — static, dependency-free. One committed dark theme:
   the brand world is a vault; there is no light mode. */

:root {
  --ground: #0b0f0d;
  --raised: #121814;
  --line: #1e2822;
  --ink: #e9eeea;
  --muted: #8fa096;
  --accent: #00f887;
  --accent-dim: #00c96d;
  --on-accent: #04140c;
  --sealed-tint: #0d2418;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.page { max-width: 920px; margin: 0 auto; padding: 0 28px 96px; }

a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.muted { color: var(--muted); }

/* ---- nav ---- */
.nav {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.wordmark::after { content: "."; color: var(--accent); }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

/* ---- hero / page headers ---- */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--line); }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.12;
  text-wrap: balance;
  max-width: 18ch;
}
.hero h1 em, h2 em { font-style: italic; color: var(--accent); }
.dek {
  margin-top: 26px;
  max-width: 62ch;
  font-size: 18px;
  color: var(--muted);
}
.dek strong { color: var(--ink); font-weight: 600; }
.status-line {
  margin-top: 34px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--muted);
}
.status-line b { color: var(--accent); font-weight: 400; }

.page-header { padding: 72px 0 52px; border-bottom: 1px solid var(--line); }
.page-header h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 5vw, 46px); line-height: 1.15;
  text-wrap: balance; max-width: 22ch;
}

/* ---- sections ---- */
section { padding: 64px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
section > h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  text-wrap: balance;
  margin: 10px 0 18px;
  max-width: 28ch;
}
.lede { max-width: 66ch; color: var(--muted); }
.lede strong { color: var(--ink); }
.prose { max-width: 66ch; display: flex; flex-direction: column; gap: 16px; }
.prose p { color: var(--muted); }
.prose p b, .prose p strong { color: var(--ink); }
.prose h3 { font-size: 16px; font-weight: 600; margin-top: 10px; }

/* ---- cards / grids ---- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-top: 36px; }
.mode { background: var(--ground); padding: 22px 20px 26px; display: flex; flex-direction: column; gap: 10px; }
.mode h3 { font-size: 15px; font-weight: 600; }
.mode .tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.mode p { font-size: 14px; color: var(--muted); }
.mode p b { color: var(--ink); font-weight: 600; }

.pillars { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 40px; }
.pillar { display: flex; flex-direction: column; gap: 8px; }
.pillar .p-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.pillar p { font-size: 14.5px; color: var(--muted); }
.pillar p b { color: var(--ink); font-weight: 600; }

/* ---- visibility ledger ---- */
.ledger-wrap { overflow-x: auto; margin-top: 40px; }
.ledger {
  min-width: 560px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.ledger .col { background: var(--raised); }
.ledger .col.sealed { background: var(--sealed-tint); }
.ledger .col-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.ledger .col-head h3 { font-size: 14px; font-weight: 600; }
.chip {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.chip.visible { color: var(--muted); border: 1px solid var(--line); }
.chip.sealed-chip { color: var(--on-accent); background: var(--accent); font-weight: 700; }
.ledger ul { list-style: none; padding: 8px 0 14px; }
.ledger li {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.5;
  padding: 8px 18px; color: var(--muted);
  display: flex; gap: 10px; align-items: baseline;
}
.ledger .sealed li { color: var(--ink); }
.ledger li::before { content: "·"; color: var(--muted); }
.ledger .sealed li::before { content: "×"; color: var(--accent); font-weight: 700; }
.ledger-note { margin-top: 14px; font-size: 13px; color: var(--muted); max-width: 66ch; }

/* ---- roadmap ---- */
.phases { margin-top: 36px; display: flex; flex-direction: column; }
.phase {
  display: grid; grid-template-columns: 72px 200px 1fr; gap: 20px;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.phase:first-child { border-top: 0; }
.phase .num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.phase h3 { font-size: 15px; font-weight: 600; line-height: 1.4; }
.phase p { font-size: 14px; color: var(--muted); }
.badge {
  display: inline-block; margin-left: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-accent); background: var(--accent); border-radius: 999px; padding: 2px 8px;
  vertical-align: 2px;
}

.nongoals { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.nongoal {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  text-decoration: line-through; text-decoration-color: var(--accent-dim);
}

/* ---- callouts ---- */
.callout {
  margin-top: 30px; max-width: 66ch;
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--raised);
  padding: 18px 22px;
  font-size: 14.5px; color: var(--muted);
}
.callout b { color: var(--ink); }

/* ---- closing / footer ---- */
.closing blockquote {
  font-family: var(--serif); font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.35; max-width: 30ch; text-wrap: balance;
}
.closing blockquote em { font-style: italic; color: var(--accent); }
footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted);
}
footer a { color: var(--muted); }

@media (max-width: 720px) {
  .modes { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 56px 1fr; }
  .phase p { grid-column: 2; }
  .nav-links { gap: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .dek, .page-header h1 { animation: rise 0.7s ease both; }
  .hero .dek { animation-delay: 0.12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
