/* hoodsei.com — theme_09 Graphite Engineering Deck */
:root {
  --bg: #18181b;
  --surface: #27272a;
  --surface-2: #1f1f23;
  --ink: #fafafa;
  --muted: #a1a1aa;
  --accent: #06b6d4;
  --accent-dim: #0e7490;
  --danger: #f87171;
  --warn: #fbbf24;
  --ok: #34d399;
  --line: #3f3f46;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
code, pre, .mono { font-family: var(--mono); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #04202a; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.brand { font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.accent { color: var(--accent); }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); }

.disclosure-banner {
  background: #3b2f0b;
  border-bottom: 1px solid #6b5518;
  color: #fde68a;
  font-size: 0.85rem;
  padding: 8px 0;
}
.disclosure-banner a { color: #fcd34d; }

.hero { padding: 48px 0 24px; }
.eyebrow { color: var(--accent); font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 8px; }
h1 { font-size: 2.6rem; margin: 0 0 16px; letter-spacing: -0.03em; }
h2 { font-size: 1.5rem; margin: 0 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--ink); }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 720px; }
.fact-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin: 28px 0 8px; padding: 0;
}
.fact-strip div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.fact-strip dt { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.fact-strip dd { margin: 4px 0 0; font-weight: 600; }

.command-strip {
  display: flex; gap: 4px; margin: 24px 0 8px;
  border-bottom: 1px solid var(--line); overflow-x: auto;
}
.command-strip a {
  color: var(--muted); text-decoration: none; padding: 10px 16px;
  font-family: var(--mono); font-size: 0.85rem; border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.command-strip a:hover { color: var(--ink); }
.command-strip a.active { color: var(--accent); border-bottom-color: var(--accent); }

.panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  margin: 24px 0;
}
.panel.active { display: block; }
.panel > p { color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 16px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  h1 { font-size: 1.9rem; }
  .panel { padding: 18px; }
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label, legend {
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
textarea, input[type="number"], select {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.88rem;
  padding: 10px 12px;
  width: 100%;
}
textarea:focus, input:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
button {
  background: var(--accent);
  color: #04202a;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  cursor: pointer;
}
button:hover { filter: brightness(1.1); }
button.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
}

.result-box { margin-top: 16px; }
.verdict { font-family: var(--mono); font-size: 1.1rem; font-weight: 700; margin: 0 0 4px; }
.verdict.clean { color: var(--ok); }
.verdict.warn { color: var(--warn); }
.verdict.fail { color: var(--danger); }
.score-line { color: var(--muted); font-family: var(--mono); font-size: 0.85rem; margin: 0 0 12px; }

.findings-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.findings-table th, .findings-table td {
  text-align: left; padding: 8px 10px;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.findings-table th { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.sev-fail { color: var(--danger); font-weight: 700; }
.sev-warn { color: var(--warn); font-weight: 700; }
.sev-info { color: var(--muted); }
.muted { color: var(--muted); }
.error { color: var(--danger); font-family: var(--mono); font-size: 0.85rem; }

.tiers-fieldset {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 14px; margin: 8px 0 16px;
}
.tier-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 8px; align-items: end; margin-bottom: 8px;
}
.tier-row .field { margin-bottom: 0; }
.tier-row button { padding: 8px 10px; }
@media (max-width: 760px) { .tier-row { grid-template-columns: 1fr 1fr; } }

#tradeoff-chart { width: 100%; height: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; margin: 12px 0; }
.chart-axis { stroke: var(--line); stroke-width: 1; }
.chart-label { fill: var(--muted); font-family: var(--mono); font-size: 11px; }
.chart-point { fill: var(--accent); }
.chart-point:hover { fill: var(--ink); }
.chart-line { stroke: var(--accent-dim); stroke-width: 1.5; fill: none; }

.check-list { list-style: none; padding: 0; margin: 12px 0; }
.check-list li {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 10px 14px; margin-bottom: 8px;
  display: flex; gap: 12px; align-items: baseline;
}
.check-badge { font-family: var(--mono); font-size: 0.75rem; font-weight: 700; min-width: 86px; }
.check-badge.pass { color: var(--ok); }
.check-badge.fail { color: var(--danger); }
.check-badge.optional-miss, .check-badge.optional-pass { color: var(--muted); }
.check-ev { color: var(--muted); font-family: var(--mono); font-size: 0.8rem; margin-left: auto; text-align: right; }

.code-out {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 14px; overflow-x: auto; font-size: 0.8rem; color: var(--muted);
  max-height: 320px; overflow-y: auto;
}

#reference { margin: 40px 0 24px; }
#reference ul { color: var(--muted); padding-left: 20px; }
#reference li { margin-bottom: 6px; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding: 28px 0;
  margin-top: 40px;
}
.site-footer nav { display: flex; gap: 20px; margin: 10px 0; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 6px 0; color: var(--muted); font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
