/* Kevros / TaskHawk — website rewrite 2026-04-08
   Tone: defense-grade, technical, restrained. No exclamations. No rhetorical questions.
*/

/* ===== Accessibility primitives ===== */

/* Skip-link: visually hidden until focused via keyboard Tab.
   Lets keyboard and screen-reader users jump past the nav on every page.
   WCAG 2.4.1 Bypass Blocks, A-level conformance. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
}
.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 12px 20px;
  background: #ffffff;
  color: #0b0d10;
  font-weight: 600;
  font-family: var(--sans);
  border: 2px solid #0b0d10;
  border-radius: 4px;
  text-decoration: none;
  outline: 3px solid #7dd3fc;
  outline-offset: 2px;
}

/* Remove default focus outline suppression if any theme adds it.
   Make keyboard focus visible on all interactive elements. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* Ensure <main tabindex="-1"> can receive focus without visible ring */
main:focus {
  outline: none;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:root {
  --bg: #0b0d10;
  --bg-elev: #12161b;
  --bg-card: #161b21;
  --border: #222a33;
  --text: #e6edf3;
  --text-dim: #9aa7b4;
  --text-mute: #6b7785;
  --accent: #6ee7b7;     /* signed-green */
  --accent-2: #7dd3fc;   /* verification-blue */
  --warn: #fbbf24;
  --danger: #f87171;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --radius: 6px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre, .mono { font-family: var(--mono); }
pre {
  background: #0a0c0f;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(11,13,16,0.85);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand .dot { color: var(--accent); }
.nav a {
  color: var(--text-dim);
  margin-left: 24px;
  font-size: 14px;
}
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: 52px;
  line-height: 1.1;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  max-width: 900px;
}
.hero p.lede {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 0 32px;
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
}
.btn.primary {
  background: var(--accent);
  color: #062016;
  border-color: var(--accent);
}
.btn.primary:hover { background: #8af0c5; text-decoration: none; }
.btn:hover { border-color: var(--accent-2); text-decoration: none; }

/* Credential bar */
.credbar {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.credbar ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  font-size: 13px; color: var(--text-dim);
  font-family: var(--mono);
}
.credbar li::before { content: "▪ "; color: var(--accent); }

/* Sections */
section.block { padding: 72px 0; border-bottom: 1px solid var(--border); }
section.block h2 {
  font-size: 28px;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
section.block h3 {
  font-size: 18px;
  margin: 24px 0 8px;
  color: var(--text);
}
section.block p { color: var(--text-dim); max-width: 780px; }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Grid of cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin-top: 0; }
.card p { font-size: 14px; color: var(--text-dim); }
.card .path {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-2);
}

/* Tables */
table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 16px;
}
table.spec th, table.spec td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.spec th {
  color: var(--text);
  font-weight: 600;
  background: var(--bg-elev);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
table.spec td { color: var(--text-dim); }
table.spec td:first-child { color: var(--text); font-family: var(--mono); font-size: 13px; }

/* CTA path cards */
.path-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 820px) { .path-cards { grid-template-columns: 1fr; } }
.path-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.path-card h3 { margin-top: 0; font-size: 20px; }
.path-card p { font-size: 14px; color: var(--text-dim); }
.path-card .btn { margin-top: 16px; }

/* Footer */
.site-footer {
  padding: 48px 0 64px;
  color: var(--text-mute);
  font-size: 13px;
}
.site-footer .tagline {
  font-family: var(--mono);
  color: var(--text);
  font-size: 15px;
  margin-bottom: 16px;
}
.site-footer a { color: var(--text-dim); margin-right: 20px; }

/* Changelog */
.changelog-item {
  border-left: 2px solid var(--border);
  padding: 8px 0 8px 20px;
  margin-bottom: 16px;
}
.changelog-item .date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}
.changelog-item .entry { color: var(--text-dim); font-size: 14px; }

/* Proof page */
.proof-artifact {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.proof-artifact h3 { margin: 0 0 6px; font-size: 16px; }
.proof-artifact .meta { font-family: var(--mono); font-size: 12px; color: var(--text-mute); }
