/* PDoomStatus — dark status-console look. System fonts only (no third-party requests). */
:root {
  --bg: #0E1114;
  --panel: #14181B;
  --band: #161B1F;
  --line: #23292E;
  --line-soft: #1E2428;
  --text: #E7E5E0;
  --text-2: #C9CDD1;
  --text-3: #B9BEC3;
  --muted: #9BA3AB;
  --blue: #6CB4EE;
  --blue-text: #8CC4F2;
  --orange: #F0A23B;
  --orange-text: #F3B562;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: var(--blue-text); }
a:hover { color: #B5DAF7; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--text); }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(240,162,59,.18); }
.brand-name { font-family: var(--mono); font-weight: 500; font-size: 15px; letter-spacing: .1em; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--text-2); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--text); }
.stamp { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.banner { background: var(--band); border-bottom: 1px solid var(--line); }
.banner .wrap { padding-top: 10px; padding-bottom: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.banner.warn .wrap { color: var(--orange-text); }

/* Hero */
.hero { padding: 64px 0 40px; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--orange); }
h1 { margin: 0; font-size: clamp(34px, 6vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -.02em; max-width: 820px; }
.lede { margin: 0; font-size: 18px; color: var(--text-3); max-width: 720px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.strip-card { margin-top: 16px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.strip-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.strip-head h2 { margin: 0; font-size: 18px; font-weight: 500; }
.strip { position: relative; height: 64px; margin: 0 8px; }
.strip-axis { position: absolute; left: 0; right: 0; top: 28px; height: 2px; background: #2A3136; }
.strip-range { position: absolute; top: 25px; height: 8px; border-radius: 4px; background: rgba(108,180,238,.45); }
.strip-dot { position: absolute; top: 20px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--blue); border: 3px solid var(--panel); display: block; }
.strip-dot.survey { background: var(--panel); border: 3px solid var(--blue); }
.context-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.context-card { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.context-figure { font-size: 28px; font-weight: 500; line-height: 1.2; }
.context-note, .context-cite { margin: 0; font-size: 14px; color: var(--muted); }
.context-card .quote { margin: 0; font-style: italic; font-size: 14px; }
.context-cite .archived { display: block; margin-top: 4px; }
.context-license { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.strip-range-line { margin: 0; font-size: 15px; }
.strip-dot:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.strip-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); margin: -8px 8px 0; }
.strip-note { margin: 0; font-size: 14px; color: var(--muted); }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding-bottom: 72px; }
.tile { padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; }
.tile-label { font-size: 13px; color: var(--muted); }
.tile-value { font-family: var(--mono); font-size: 30px; font-weight: 500; }
.tile-sub { font-size: 12px; color: var(--muted); }

/* Sections */
.section { padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.section-head > div { display: flex; flex-direction: column; gap: 6px; }
h2.section-title { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.section-sub { margin: 0; color: var(--muted); font-size: 15px; }
.empty { padding: 28px 24px; color: var(--muted); font-size: 15px; }

/* Table */
.table-box { overflow-x: auto; }
table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 14px 20px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--line); }
td { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tr:last-child td { border-bottom: none; }
.person { font-weight: 500; }
.role { color: var(--muted); font-size: 13px; }
.estimate { font-family: var(--mono); font-size: 20px; font-weight: 500; white-space: nowrap; }
.definition { color: var(--text-2); max-width: 300px; }
.quote { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-style: italic; }
td.date { font-family: var(--mono); color: var(--text-2); white-space: nowrap; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.chip.ok { background: rgba(108,180,238,.12); border: 1px solid rgba(108,180,238,.3); color: var(--blue-text); }
.chip.warn { background: rgba(240,162,59,.12); border: 1px solid rgba(240,162,59,.35); color: var(--orange-text); }
.chip svg { flex: none; }
.archived { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Two columns */
.cols { display: flex; flex-wrap: wrap; gap: 40px; padding-bottom: 72px; }
.cols > .section { flex: 1 1 440px; min-width: 0; padding-bottom: 0; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 24px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 28px; }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 4px; }
.timeline li::before { content: ""; position: absolute; left: -32px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); border: 2px solid var(--bg); }
.timeline .when { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.timeline .what { font-size: 16px; font-weight: 500; }
.timeline .src { font-size: 13px; }

/* Signals */
.signals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.signal { display: flex; flex-direction: column; gap: 6px; padding: 18px 24px; border-bottom: 1px solid var(--line-soft); }
.signal:last-child { border-bottom: none; }
.signal-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--orange-text); }
.signal-title { font-size: 16px; font-weight: 500; color: var(--text); text-decoration: none; }
.signal-title:hover { text-decoration: underline; color: var(--text); }
.signal-desc { margin: 0; font-size: 14px; color: var(--text-3); }
.signal-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Sources */
.sources { display: flex; flex-direction: column; }
.source { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 16px 24px; border-bottom: 1px solid var(--line-soft); }
.source:last-child { border-bottom: none; }
.source.is-stale, .source.is-error { background: rgba(240,162,59,.05); }
.source-main { flex: 1 1 260px; display: flex; flex-direction: column; }
.source-name { font-weight: 500; }
.source-desc { font-size: 13px; color: var(--muted); }
.source-when { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.state { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; min-width: 96px; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state.healthy { color: var(--blue-text); }
.state.stale, .state.error { color: var(--orange-text); }
.state.planned, .state.never { color: var(--muted); }

/* Methodology */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.principle { border-top: 2px solid #2E353B; padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.principle:first-child { border-top-color: var(--orange); }
.principle h3 { margin: 0; font-size: 17px; font-weight: 600; }
.principle p { margin: 0; color: var(--text-3); font-size: 15px; }

.prose { max-width: 760px; color: var(--text-3); padding-bottom: 72px; }
.prose h2 { color: var(--text); font-size: 24px; margin: 48px 0 12px; }
.prose h3 { color: var(--text); font-size: 18px; margin: 32px 0 8px; }
.prose table { min-width: 0; margin: 12px 0 24px; }
.prose td, .prose th { padding: 10px 14px; }
.prose code { font-family: var(--mono); font-size: 14px; color: var(--text-2); }

/* Error pages */
.terminal { margin: 0; font-size: 14px; color: var(--muted); }
.cursor { display: inline-block; margin-left: 4px; color: var(--orange); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
.egg { padding: 18px 24px; }
.egg summary { cursor: pointer; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--orange-text); min-height: 44px; display: flex; align-items: center; }
.egg summary::before { content: "▸"; margin-right: 10px; }
.egg[open] summary::before { content: "▾"; }
.egg summary::-webkit-details-marker { display: none; }
.egg p { margin: 8px 0 0; color: var(--text-3); }
.brand:hover .brand-dot { box-shadow: 0 0 0 6px rgba(240,162,59,.28); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer a { color: var(--text-2); }

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 40px; }
  .strip-card { padding: 20px; }
}
.archived.stale-note { color: var(--orange-text); }
