/* ============================================================================
   evald — the acknowledgement
   ----------------------------------------------------------------------------
   One stylesheet, no framework, no build step, no runtime network request.

   ONE colour, and it means DURABLE — a span that is fsynced before the 2xx, a
   score that persisted, a gate that held. Everything else is monochrome,
   including the throughput number a competitor beats us on, because that number
   is real and dimming it would be the dishonest move.

   Light-first: this is an instrument you read, not a console you stare into,
   and every other dark page in the family is a runtime rather than a store.
   Archivo and JetBrains Mono are the pair the forge page uses — five vendored
   faces do not stretch to seven sites, so the worlds differ by ground and
   palette instead.
   ============================================================================ */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #fcfcfd;
  --panel: #f1f2f6;
  --panel-2: #e6e8ef;
  --rule: #dcdee6;
  --rule-lit: #b9bcc8;
  --text: #12141a;
  --text-2: #474b57;
  --text-3: #575b66;   /* 5.53:1 on --panel-2, the tightest pairing */
  --fire: #1c4fd8;
  --fire-wash: #e6ebfc;
  --sans: "Archivo", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --t-xs: 0.6875rem;
  --t-sm: 0.8125rem;
  --t-md: 1rem;
  --t-lg: 1.1875rem;
  --t-h3: 1.25rem;
  --t-h2: clamp(1.7rem, 1.05rem + 2.6vw, 2.75rem);
  --t-hero: clamp(2.05rem, 0.95rem + 4.5vw, 4.2rem);
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0f1116;
    --panel: #171a21;
    --panel-2: #1f232c;
    --rule: #292e39;
    --rule-lit: #3d4350;
    --text: #e9eaef;
    --text-2: #a4a8b4;
    --text-3: #8b909e;   /* 4.89:1 on --panel-2 */
    --fire: #6f9dff;
    --fire-wash: #141c31;
  }
}

:root[data-theme="dark"] {
  --ground: #0f1116;
  --panel: #171a21;
  --panel-2: #1f232c;
  --rule: #292e39;
  --rule-lit: #3d4350;
  --text: #e9eaef;
  --text-2: #a4a8b4;
  --text-3: #8b909e;
  --fire: #6f9dff;
  --fire-wash: #141c31;
}

/* ── Base ──────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--t-md);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
table {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--fire);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--text);
}

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

code {
  font-family: var(--mono);
  font-size: 0.9em;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--text);
  color: var(--ground);
  padding: 0.7rem 1.1rem;
  z-index: 100;
  font-family: var(--mono);
  font-size: var(--t-xs);
}

.skip:focus {
  left: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Masthead ──────────────────────────────────────────────────────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ground) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

@supports not (backdrop-filter: blur(1px)) {
  .top {
    background: var(--ground);
  }
}

.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--text);
}

.logo svg {
  width: 1.3rem;
  height: 1.3rem;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2.2vw, 1.6rem);
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
}

.nav a {
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: var(--text);
  border-bottom-color: var(--fire);
}

.nav__cta {
  color: var(--fire) !important;
  font-weight: 700;
}

@media (max-width: 46rem) {
  .nav__opt {
    display: none;
  }
}

/* ── Sections ──────────────────────────────────────────────────────────── */

.band {
  border-top: 1px solid var(--rule);
}

.band--fill {
  background: var(--panel);
}

.band__in {
  padding-block: clamp(2.75rem, 6.5vw, 5rem);
}

.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fire);
}

h2 {
  margin-top: 0.9rem;
  font-size: var(--t-h2);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 22ch;
}

h3 {
  font-size: var(--t-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.lead {
  margin-top: 1.1rem;
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 62ch;
}

.prose {
  margin-top: 1.3rem;
  max-width: 66ch;
  color: var(--text-2);
}

.prose p + p {
  margin-top: 0.9em;
}

.prose b,
.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(2.5rem, 6vw, 4.25rem) clamp(1.25rem, 2.5vw, 2rem);
}

h1 {
  margin-top: 1.2rem;
  font-size: var(--t-hero);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
  max-width: 17ch;
  text-wrap: balance;
}

h1 .f {
  color: var(--fire);
}

.hero__lead {
  margin-top: 1.5rem;
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 57ch;
}

.acts {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: var(--t-sm);
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--fire);
  transition: background-color 0.14s ease, color 0.14s ease;
}

.btn--solid {
  background: var(--fire);
  color: var(--ground);
}

.btn--solid:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--ground);
}

.btn--ghost {
  color: var(--fire);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--fire-wash);
  color: var(--fire);
}

/* ── The kill strip: four states of a 300-item batch ───────────────────── */

.kill {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.st {
  background: var(--ground);
  padding: 1.1rem 1.25rem 1.35rem;
  min-width: 0;
}

.band--fill .st {
  background: var(--panel);
}

.st--done {
  background: var(--fire-wash);
}

.band--fill .st--done {
  background: var(--fire-wash);
}

.st__k {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
}

.st--done .st__k {
  color: var(--fire);
}

.st__n {
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.st--done .st__n {
  color: var(--fire);
}

.st__n small {
  font-size: 0.42em;
  color: var(--text-2);
  letter-spacing: 0;
}

.st__d {
  margin-top: 0.6rem;
  font-size: var(--t-sm);
  color: var(--text-2);
  line-height: 1.5;
}

/* ── Fleet bars: what each engine actually chewed ──────────────────────── */

.fleet {
  margin-top: 2rem;
  border: 1px solid var(--rule);
  background: var(--panel);
  padding: 1.3rem 1.4rem 1.5rem;
}

.band--fill .fleet {
  background: var(--ground);
}

.fleet__k {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-bottom: 1.1rem;
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 10rem) minmax(0, 1fr) 6.5rem;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 40rem) {
  .row {
    grid-template-columns: minmax(0, 1fr) 5.5rem;
  }
  .row__t {
    grid-column: 1 / -1;
    order: 3;
  }
}

.row__l {
  font-family: var(--mono);
  font-size: var(--t-sm);
  color: var(--text-2);
  line-height: 1.35;
}

.row__t {
  height: 1.5rem;
  background: var(--panel-2);
  position: relative;
}

.row__f {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--fire);
}

.row__f--dim {
  background: var(--rule-lit);
}

.row__v {
  font-family: var(--mono);
  font-size: var(--t-sm);
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--fire);
  white-space: nowrap;
}

.row__v--dim {
  color: var(--text-2);
}

/* ── Tables ────────────────────────────────────────────────────────────── */

.tw {
  overflow-x: auto;
  border: 1px solid var(--rule);
  margin-top: 1.75rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--mono);
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

thead th {
  text-align: left;
  font-weight: 700;
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--rule-lit);
  background: var(--panel);
}

.band--fill thead th {
  background: var(--panel-2);
}

tbody td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  color: var(--text-2);
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody td:first-child {
  color: var(--text);
}

td.num {
  text-align: right;
}

td.good {
  color: var(--fire);
  font-weight: 700;
}

/* Loss is the ABSENCE of the accent, shaded so it reads without colour too. */
td.lost {
  color: var(--text);
  font-weight: 700;
  background: var(--panel-2);
}

/* ── Terminal ──────────────────────────────────────────────────────────── */

.term {
  border: 1px solid var(--rule);
  background: var(--panel);
  font-family: var(--mono);
  font-size: var(--t-sm);
  line-height: 1.7;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  white-space: pre;
  color: var(--text);
  tab-size: 2;
}

.band--fill .term {
  background: var(--ground);
}

.term .c {
  color: var(--text-3);
}

.term .p {
  color: var(--fire);
  font-weight: 700;
  user-select: none;
  background: none;
  padding: 0;
}

.term .k {
  color: var(--fire);
  font-weight: 700;
}

/* ── Cards ─────────────────────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 2rem;
}

.card {
  background: var(--ground);
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}

.band--fill .card {
  background: var(--panel);
}

.card__k {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fire);
}

.card p {
  font-size: var(--t-sm);
  color: var(--text-2);
  line-height: 1.55;
}

.card ul {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: var(--t-sm);
  color: var(--text-2);
}

.card li {
  position: relative;
  padding-left: 0.95rem;
  line-height: 1.45;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 1px;
  background: var(--fire);
}

/* ── Caveat ────────────────────────────────────────────────────────────── */

.caveat {
  margin-top: 1.6rem;
  border-left: 2px solid var(--rule-lit);
  background: var(--panel-2);
  padding: 0.95rem 1.15rem;
  font-size: var(--t-sm);
  color: var(--text-2);
  line-height: 1.55;
  max-width: 68ch;
}

.band--fill .caveat {
  background: var(--ground);
}

.caveat b {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.caveat i {
  font-style: normal;
  color: var(--text);
  font-weight: 600;
}

.note {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--text-3);
  line-height: 1.6;
  max-width: 76ch;
}

/* ── Footer ────────────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--rule-lit);
  background: var(--panel);
}

.foot__in {
  padding-block: 2rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--text-3);
  line-height: 1.7;
}

.foot a {
  color: var(--text-2);
  text-decoration: none;
}

.foot a:hover {
  color: var(--fire);
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}
