/* A-Team site — direction A "signal grid".
   PALETTE: Face's kit (agents/.../brand-kit.md, 2026-10-27), applied as v2. Colour is a
   STATUS, not decoration: ink for the claim, saturation only where a claim is graded.
   Red can only ever mean a failed test, which is why links are ink + 2px underline and
   never a coloured accent. Re-run the contrast snippet in README.md after any change.
   No webfonts (system stack only), so there is no network request and no FOUT. */

:root {
  --ink:        #0e1418;
  --ink-soft:   #43505a;
  --paper:      #f7f4ee;
  --paper-deep: #ece7db;
  --rule:       #cfc7b6;
  /* status only — never decorative. The kit's three `-fill` variants are deliberately not
     adopted: nothing on this site renders a filled chip, and an unused 3.86:1 token in a
     stylesheet is an invitation for the next editor to put text on it. Values live in Face's
     brand-kit if a chip is ever really needed. */
  --verify:      #14574a;
  --open:        #7a4a00;
  --fail:        #8d2f16;

  --measure: 68rem;
  --step-0: 1rem;
  --step-1: clamp(1.06rem, 0.99rem + 0.35vw, 1.2rem);
  --step-2: clamp(1.3rem, 1.15rem + 0.7vw, 1.6rem);
  --step-3: clamp(1.7rem, 1.35rem + 1.6vw, 2.6rem);
  --step-4: clamp(2.1rem, 1.4rem + 3.4vw, 4rem);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--step-1)/1.6 var(--sans);
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  text-rendering: optimizeLegibility;
}

main, .site-head, .site-foot { max-width: var(--measure); margin-inline: auto; }

a {
  color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 0.18em; text-decoration-color: currentColor;
}
a:hover { text-decoration-thickness: 3px; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------------------------------------------------------------- header */

.site-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  padding: 1.4rem 0 1rem;
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  color: var(--ink); text-decoration: none;
  margin-right: auto;
}
.mark { width: 2.1rem; height: auto; display: block; }
.mark rect { fill: var(--ink); }
.mark .alt { fill: currentColor; }   /* the mark is single-colour */
.wordmark {
  font: 700 1.05rem/1 var(--mono);
  letter-spacing: 0.16em;
}

.site-head nav ul {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.35rem;
  list-style: none; margin: 0; padding: 0;
  font: 600 0.85rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.site-head nav a { color: var(--ink-soft); text-decoration: none; padding: 0.35rem 0; }
.site-head nav a:hover { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }

/* ---------------------------------------------------------------- type */

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: var(--step-4); max-width: 20ch; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 0.9rem; }

.kicker {
  font: 600 0.8rem/1 var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.kicker::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

section { padding: clamp(2.2rem, 5vw, 3.6rem) 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }

.section-intro { color: var(--ink-soft); max-width: 46ch; }

/* ---------------------------------------------------------------- hero */

.hero { padding-top: clamp(2.5rem, 8vw, 5rem); }
.hero h1 { margin-bottom: 1.1rem; }
.lede { font-size: var(--step-2); line-height: 1.45; max-width: 44ch; color: var(--ink); }
.hero-pitch {
  margin: 1.1rem 0 0; max-width: 46ch;
  font-size: var(--step-2); line-height: 1.4; color: var(--ink-soft);
}
.hero-pitch::before { content: "— "; }
.cta {
  margin: 1.4rem 0 0; max-width: 46ch;
  background: var(--ink); color: var(--paper);
  padding: 1.15rem 1.25rem 1.25rem;
}
.cta p { margin: 0; }
.cta-line { font-weight: 700; font-size: var(--step-2); line-height: 1.35; }
.cta-sub {
  margin-top: 0.55rem !important; font-family: var(--mono); font-size: 0.82rem;
  letter-spacing: 0.04em; color: var(--paper); opacity: 0.82;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem;
  margin: 1.6rem 0 0;
  font: 600 0.8rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-meta span::before { content: "▪"; color: var(--ink-soft); margin-right: 0.5rem; }

/* ---------------------------------------------------------------- stance */

.principles {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(1.2rem, 3vw, 2.4rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  counter-reset: p;
}
.principles li { counter-increment: p; border-top: 2px solid var(--ink); padding-top: 0.9rem; }
.principles h3 { margin-bottom: 0.45rem; }
.principles h3::before {
  content: counter(p, decimal-leading-zero);
  font: 600 0.78rem/1 var(--mono); color: var(--ink-soft);
  display: block; margin-bottom: 0.5rem; letter-spacing: 0.1em;
}
.principles p { color: var(--ink-soft); margin: 0; font-size: var(--step-0); }

/* ---------------------------------------------------------------- lanes */

.lanes {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  background: var(--rule);
  border: 1px solid var(--rule);
}
.lanes li { background: var(--paper); padding: 1.2rem 1.15rem 1.35rem; }
.lane-name { font-weight: 700; margin: 0 0 0.15rem; font-size: var(--step-2); letter-spacing: -0.02em; }
.lane-role {
  font: 600 0.76rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 0.8rem;
}
.lane-trust { margin: 0; font-size: var(--step-0); color: var(--ink-soft); }

/* ---------------------------------------------------------------- method */

.phases {
  margin: 0 0 2rem; padding: 0; list-style: none;
  counter-reset: ph;
  display: grid; gap: 0.55rem;
}
/* The counter is absolutely positioned, NOT a grid column: as a grid item it tore the
   sentence into anonymous items and poured the text into the 2.2rem column (caught in a
   rendered phone-width check, 2026-10-27 — it looked fine in the source). */
.phases li {
  counter-increment: ph;
  display: block; position: relative;
  padding: 0.55rem 0 0.55rem 3.1rem; border-bottom: 1px dotted var(--rule);
}
.phases li::before {
  content: counter(ph, decimal-leading-zero);
  position: absolute; left: 0; top: 0.72rem;
  font: 600 0.8rem/1.9 var(--mono); color: var(--ink-soft);
}
.phases em { font-style: normal; font-family: var(--mono); font-size: 0.86em; color: var(--ink-soft); }

.verdicts { width: 100%; border-collapse: collapse; font-size: var(--step-0); }
.verdicts caption {
  text-align: left; font: 600 0.78rem/1 var(--mono); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft); padding-bottom: 0.7rem;
}
.verdicts th, .verdicts td { text-align: left; padding: 0.7rem 1rem 0.7rem 0; border-top: 1px solid var(--rule); vertical-align: top; }
.verdicts thead th { border-top: 2px solid var(--ink); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.verdicts tbody th { font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.04em; }
.verdicts td { color: var(--ink-soft); }

/* ---------------------------------------------------------------- proof */

.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(1rem, 2.5vw, 1.8rem);
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.cards li {
  display: flex; flex-direction: column;
  border: 1px solid var(--rule); border-top: 4px solid var(--verify);
  padding: 1.3rem 1.25rem 1.2rem; background: var(--paper-deep);
}
.card-figure {
  font: 700 var(--step-2)/1 var(--mono); letter-spacing: -0.02em;
  margin: 0 0 0.7rem; color: var(--ink);
}
.cards h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.cards p { font-size: var(--step-0); color: var(--ink-soft); }
.card-prov {
  font: 600 0.68rem/1.45 var(--mono); letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 0.15rem;
}
.card-link { margin-top: auto; padding-top: 0.6rem; }
.card-link a { font: 600 0.82rem/1.3 var(--mono); letter-spacing: 0.04em; }

/* ---------------------------------------------------------------- gaps */

.gaps dl { margin: 0; display: grid; gap: 1.2rem; max-width: 60ch; }
.gaps dt { font-weight: 700; }
.gaps dd { margin: 0.3rem 0 0; color: var(--ink-soft); font-size: var(--step-0); }

/* ---------------------------------------------------------------- footer */

.site-foot {
  padding: 1.6rem 0 3rem; border-top: 2px solid var(--ink); margin-top: 0.5rem;
  font-size: 0.9rem; color: var(--ink-soft);
}
.site-foot strong { color: var(--ink); font-family: var(--mono); letter-spacing: 0.06em; }
.foot-note { margin: 0.6rem 0 0; font-size: 0.84rem; }

/* ---------------------------------------------------------------- article notes */

.note { max-width: 60ch; }
.note h1 { font-size: var(--step-3); margin-bottom: 0.6rem; }
.note .standfirst { font-size: var(--step-2); color: var(--ink-soft); line-height: 1.4; }
.note h2 { font-size: var(--step-1); margin: 2.2rem 0 0.7rem; }
.note ul, .note ol { padding-left: 1.15rem; }
.note li { margin: 0.35rem 0; }
.note table { width: 100%; border-collapse: collapse; font-size: var(--step-0); margin: 1rem 0; }
.note th, .note td { text-align: left; padding: 0.5rem 0.9rem 0.5rem 0; border-top: 1px solid var(--rule); vertical-align: top; }
.note thead th { border-top: 2px solid var(--ink); }
.note caption {
  caption-side: top; text-align: left; padding-bottom: 0.5rem;
  font: 600 0.74rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
}
.note code, .note .mono { font-family: var(--mono); font-size: 0.88em; }
.note pre {
  margin: 1rem 0; padding: 0.9rem 1rem; overflow-x: auto;
  background: var(--paper-deep); border-left: 3px solid var(--ink);
  font: 0.8rem/1.55 var(--mono); color: var(--ink);
  white-space: pre-wrap; overflow-wrap: anywhere;   /* a command URL must not need a sideways scroll */
}
.note pre code { font-size: 1em; }
.note .source {
  margin-top: 2.4rem; padding-top: 0.9rem; border-top: 1px solid var(--rule);
  font-size: 0.84rem; color: var(--ink-soft);
}
.note .source code { word-break: break-word; }
.status {
  display: inline-block; font: 600 0.72rem/1 var(--mono); letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.3rem 0.5rem; border: 1px solid var(--ink);
  color: var(--ink); margin-bottom: 1.2rem;
}
/* evidence grading: saturation appears only where a claim is graded */
.grade-pass { color: var(--verify); font-weight: 700; }
.grade-open { color: var(--open); font-weight: 700; }
.grade-fail { color: var(--fail); font-weight: 700; }

/* On a phone a 3-column table squeezes to four words a line. Stack the rows and carry
   the column name on each cell instead — same markup, same semantics, readable at 375px. */
@media (max-width: 34rem) {
  .verdicts tr { display: block; padding: 0.55rem 0; border-top: 1px solid var(--rule); }
  .verdicts tbody th, .verdicts tbody td { display: block; border: 0; padding: 0 0 0.15rem; }
  .verdicts thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .verdicts tbody th { font-size: 0.95rem; }
  .verdicts tbody td::before {
    content: attr(data-label); display: block;
    font: 600 0.66rem/1.6 var(--mono); letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--ink-soft);
  }
  .site-head { gap: 0.8rem; }
  .wordmark { font-size: 0.95rem; letter-spacing: 0.12em; }
  .phases li { padding-left: 2.5rem; }
  .phases li::before { top: 0.5rem; }
  .cards li { padding: 1.1rem 1rem; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-head nav, .skip { display: none; }
  section { break-inside: avoid; }
}

/* The notes' three-column verification table never stacked: at 345 px the cells were 109 px
   wide and every word broke mid-token (Amy's gate, 2026-10-27). Stack it like the verdict
   table and carry the column name on the cell. */
@media (max-width: 34rem) {
  .note table thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .note table tr { display: block; padding: 0.6rem 0; border-top: 1px solid var(--rule); }
  .note table th, .note table td { display: block; border: 0; padding: 0 0 0.2rem; }
  .note table tbody th { font-size: 0.95rem; }
  .note table td::before {
    content: attr(data-label); display: block;
    font: 600 0.64rem/1.7 var(--mono); letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--ink-soft);
  }
}
