/* ───────────────────────────────────────────────────────────────
   detonate.sh — coming soon
   Human voice: Archivo. Machine voice: IBM Plex Mono. One signal
   colour, magenta, meaning exactly one thing: this is dangerous.
   ─────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --paper:        #FBFBF9;
  --ink:          #15171A;
  --graphite:     #62686D;
  --rule:         #E2E3DF;
  --chamber:      #14171A;
  --chamber-ink:  #D8DCDA;
  --chamber-dim:  #767E82;
  --chamber-rule: #262B2E;
  --signal:       #D10057;   /* on paper */
  --signal-lit:   #FF3D86;   /* inside the chamber */

  --sans: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:        #0E1012;
    --ink:          #ECEEEA;
    --graphite:     #8C9398;
    --rule:         #24282B;
    --chamber:      #181C1F;
    --chamber-ink:  #E2E6E3;
    --chamber-dim:  #838B8F;
    --chamber-rule: #343A3E;   /* holds its edge against a dark page */
    --signal:       #FF3D86;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 4px; z-index: 10;
  text-decoration: none; font-weight: 600;
  transition: top .15s;
}
.skip:focus { top: 16px; }

:where(a, button, input):focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* ── frame ─────────────────────────────────────────────────── */

.frame {
  max-width: 1200px;
  margin-inline: auto;
  padding: 28px 24px 36px;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(40px, 7vh, 80px);
}

/* ── top line ──────────────────────────────────────────────── */

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.mark {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.01em;
}
.mark-tld { color: var(--graphite); font-weight: 500; }

.top-note {
  margin: 0;
  color: var(--graphite);
  font-size: 0.9375rem;
}

/* ── stage: words left, chamber right ──────────────────────── */

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

/* the chamber's first line sits on the headline's cap height */
@media (min-width: 901px) {
  .chamber { margin-top: 0.7rem; }
}

.say { max-width: 34rem; }

h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.5rem, 5.6vw, 4.25rem);
  font-weight: 700;
  font-stretch: 108%;
  line-height: 0.98;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.lede {
  margin: 0 0 2rem;
  max-width: 40ch;
  color: var(--graphite);
  font-size: 1.0625rem;
  line-height: 1.62;
}

.honest {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  max-width: 38ch;
  color: var(--graphite);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ── sign-up ───────────────────────────────────────────────── */

.signup { margin: 0; }

.field {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  background: transparent;
  max-width: 27rem;
  transition: border-color .15s;
}
.field:focus-within { border-color: var(--signal); }

.field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 13px 15px;
  border-radius: 4px 0 0 4px;
}
.field input::placeholder { color: var(--graphite); opacity: .8; }
.field input:focus { outline: none; }

.field button {
  flex: 0 0 auto;
  border: 0;
  background: var(--signal);
  color: #FFFFFF;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0 20px;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  transition: filter .15s;
}
.field button:hover { filter: brightness(1.12); }
.field button[disabled] { opacity: .55; cursor: default; filter: none; }

.note {
  margin: 0.85rem 0 0;
  max-width: 34rem;
  color: var(--graphite);
  font-size: 0.875rem;
  line-height: 1.55;
}
.note.is-bad { color: var(--signal); }
.note.is-good { color: var(--ink); font-weight: 500; }

.trap {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ── the chamber ───────────────────────────────────────────── */

.chamber { margin: 0; }

.chamber-glass {
  background: var(--chamber);
  border: 1px solid var(--chamber-rule);
  border-radius: 7px;
  padding: clamp(20px, 2.4vw, 30px);
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 10px 28px -22px rgba(0,0,0,.55);
}

.readout {
  font-family: var(--mono);
  font-size: clamp(0.76rem, 1.08vw, 0.875rem);
  line-height: 1.5;
  color: var(--chamber-ink);
}

.rd-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--chamber-rule);
}
.rd-task { color: var(--chamber-ink); font-weight: 500; }
.rd-clock { color: var(--chamber-dim); font-variant-numeric: tabular-nums; }

.rd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  padding: 10px 0 20px;
  color: var(--chamber-dim);
}
.rd-egress { color: var(--chamber-ink); }

/* process tree */

.tree {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tree li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 4px 0;
  opacity: 0;
  transform: translateY(2px);
}
.tree li.in { opacity: 1; transform: none; transition: opacity .28s ease, transform .28s ease; }

.tree .t1 { padding-left: 1.6em; }
.tree .t2 { padding-left: 3.2em; }
.tree .t1::before, .tree .t2::before {
  content: '└─';
  margin-left: -1.6em;
  color: var(--chamber-dim);
  flex: 0 0 auto;
}

/* basis 0, not auto: otherwise the longest command line becomes the
   minimum width of the whole page on a narrow screen */
.proc { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proc i { color: var(--chamber-dim); font-style: normal; }

.tag {
  flex: 0 0 auto;
  color: var(--signal-lit);
  font-weight: 500;
}
.at {
  flex: 0 0 auto;
  color: var(--chamber-dim);
  font-variant-numeric: tabular-nums;
}

/* facts */

.facts {
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.facts > div {
  display: flex;
  gap: 14px;
  opacity: 0;
  transform: translateY(2px);
}
.facts > div.in { opacity: 1; transform: none; transition: opacity .28s ease, transform .28s ease; }
.facts dt { flex: 0 0 5.5em; margin: 0; color: var(--chamber-dim); }
.facts dd { margin: 0; }

/* verdict */

.verdict {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--chamber-rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  opacity: 0;
  transform: translateY(2px);
}
.verdict.in { opacity: 1; transform: none; transition: opacity .36s ease, transform .36s ease; }

.v-word {
  color: var(--signal-lit);
  font-weight: 500;
  font-size: 1.12em;
  letter-spacing: .01em;
}
.v-score {
  color: var(--signal-lit);
  font-weight: 500;
  font-size: 1.12em;
  font-variant-numeric: tabular-nums;
}

/* chamber footing */

.chamber-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-top: 12px;
  color: var(--graphite);
  font-size: 0.8125rem;
}

.replay {
  border: 0;
  background: none;
  color: var(--graphite);
  font: inherit;
  font-size: 0.8125rem;
  padding: 2px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--rule);
}
.replay:hover { color: var(--ink); border-bottom-color: currentColor; }

/* ── server-rendered pages: /confirm, 404 ──────────────────── */

.stage-single {
  grid-template-columns: 1fr;
  align-items: start;
}
.h1-small { font-size: clamp(2rem, 4.5vw, 3rem); }
.mark a { color: inherit; text-decoration: none; }
.mark a:hover { color: var(--signal); }

/* ── bottom ────────────────────────────────────────────────── */

.bottom {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  display: grid;
  gap: 6px;
  max-width: 54rem;
  color: var(--graphite);
  font-size: 0.875rem;
  line-height: 1.55;
}
.bottom p { margin: 0; }
.distance { color: var(--graphite); opacity: .78; }

/* ── narrow ────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .stage {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
  }
  /* proof sits directly under the claim, before the ask */
  .say { display: contents; }
  h1 { order: 1; }
  .chamber { order: 2; }
  .lede { order: 3; margin-bottom: 1.5rem; }
  .signup { order: 4; }
  .honest { order: 5; }
}

@media (max-width: 560px) {
  .frame { padding: 22px 18px 30px; gap: 34px; }
  h1 { font-size: clamp(2.1rem, 9.5vw, 2.9rem); }
  .field { max-width: none; }
  .field button { padding: 0 16px; }
  .rd-meta { gap: 2px 16px; }
  .top { gap: 4px 12px; }
  .top-note { font-size: 0.875rem; }
  /* let the balancer break the headline rather than forcing it */
  .wide-only { display: none; }
  /* the encoded argument is detail, not information, at this size */
  .proc i { display: none; }
  .facts dt { flex-basis: 4.8em; }
}

/* ── motion ────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ───────────────────────────────────────────────────────────────
   Header navigation, and the content pages: /about /team /roadmap
   Same two voices, same single signal colour. Prose is set in one
   measure and allowed to be long; the mono face is reserved for
   facts, states and dates, as it is inside the chamber.
   ─────────────────────────────────────────────────────────────── */

.brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 16px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 20px;
  font-family: var(--mono);
  font-size: 0.8125rem;
}
.nav a {
  color: var(--graphite);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--signal); }
.nav .nav-cta { color: var(--signal); }
.nav .nav-cta:hover { color: var(--signal); border-bottom-color: var(--signal); }

/* ── sheet: the shape every content page takes ─────────────── */

.sheet {
  display: grid;
  gap: clamp(34px, 4.4vw, 58px);
  align-content: start;
}

.sheet-head { max-width: 46rem; }

.sheet-h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.0;
  letter-spacing: -0.026em;
}

.sheet-lede {
  max-width: 56ch;
  margin-bottom: 0;
  font-size: 1.0625rem;
}

/* Two columns of prose that continue each other — not a feature
   grid, and nothing is repeated across them in parallel. */
.cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 3.2vw, 50px);
  align-items: start;
}

.block { margin: 0; }
.block h2 {
  margin: 0 0 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  font-size: 1.0625rem;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.008em;
}
.block p { margin: 0 0 0.9rem; max-width: 58ch; line-height: 1.62; }
.block p:last-child { margin-bottom: 0; }
.block-wide { max-width: 64rem; }

.block .sub {
  margin: 1.2rem 0 0.55rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--graphite);
}
.block h2 + .sub { margin-top: 0; }

.block .caveat {
  margin-top: 1.4rem;
  color: var(--graphite);
  font-size: 0.9375rem;
}

ul.plain {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
  max-width: 58ch;
}
ul.plain li { position: relative; padding-left: 1.2em; line-height: 1.6; }
ul.plain li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--graphite);
}
ul.plain.tight { gap: 0.55rem; font-size: 0.9375rem; }
ul.plain strong { font-weight: 600; }

.mono-in { font-family: var(--mono); font-size: 0.92em; }

/* prose links: ink, underlined in the signal colour */
.block a, .bottom a, .sheet-lede a, ul.plain a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.block a:hover, .bottom a:hover, .sheet-lede a:hover, ul.plain a:hover {
  color: var(--signal);
}

/* ── spec strip: facts in the machine voice ────────────────── */

dl.spec {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(26px, 3.2vw, 50px);
  font-family: var(--mono);
  font-size: 0.8125rem;
}
dl.spec > div {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}
dl.spec dt { flex: 0 0 4.6em; margin: 0; color: var(--graphite); }
dl.spec dd { margin: 0; min-width: 0; }

/* ── team ──────────────────────────────────────────────────── */

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 3.8vw, 54px);
  align-items: start;
}

.person {
  margin: 0;
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}
.person .role {
  margin: 0 0 0.55rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--graphite);
}
.person-name {
  margin: 0 0 0.9rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  font-stretch: 108%;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.person p { margin: 0 0 0.85rem; max-width: 52ch; line-height: 1.62; }
.person p:last-child { margin-bottom: 0; }
.person .owns {
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--graphite);
}
.person .contact { font-size: 0.9375rem; color: var(--graphite); }

/* a name we have not written in yet, impossible to ship by accident */
.tbd { color: var(--signal); border-bottom: 2px dotted var(--signal); }

/* ── roadmap ───────────────────────────────────────────────── */

.phases { list-style: none; margin: 0; padding: 0; }

.phase {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: clamp(18px, 2.8vw, 42px);
  padding: clamp(18px, 2.2vw, 26px) 0;
  border-top: 1px solid var(--rule);
}
.phase:last-child { border-bottom: 1px solid var(--rule); }

.ph-meta {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-content: start;
  gap: 3px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--graphite);
}
.ph-meta p { margin: 0; }
.ph-num { font-size: 1.5rem; line-height: 1; color: var(--ink); font-weight: 500; }
.ph-when { padding-top: 5px; color: var(--ink); }
.ph-state::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  vertical-align: 1px;
  border: 1px solid var(--graphite);
}
.ph-who { opacity: .82; }

.is-now .ph-num { color: var(--signal); }
.is-now .ph-state { color: var(--signal); }
.is-now .ph-state::before { background: var(--signal); border-color: var(--signal); }
.is-soft .ph-num { color: var(--graphite); }
.is-soft .ph-state::before { border-style: dotted; }

.ph-body h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  font-stretch: 106%;
  line-height: 1.12;
  letter-spacing: -0.018em;
}
.ph-body p { margin: 0 0 0.85rem; max-width: 62ch; line-height: 1.62; }
.ph-body p:last-child { margin-bottom: 0; }

.ph-body .ph-done {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--graphite);
}
.ph-done span {
  margin-right: 0.6rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}
.is-soft .ph-done span { color: var(--graphite); }

/* ── narrow ────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .cols, .pair, dl.spec { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 1fr; gap: 14px; }
  .ph-meta { flex-direction: row; align-items: baseline; gap: 2px 18px; }
  .ph-num { font-size: 1.125rem; }
  .ph-when { padding-top: 0; }
}

@media (max-width: 560px) {
  .nav { font-size: 0.75rem; gap: 4px 15px; }
  .sheet { gap: 28px; }
  .sheet-h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .ph-meta { font-size: 0.75rem; gap: 2px 14px; }
}

/* a column that holds more than one block, so two columns of prose
   end where their own content ends rather than leaving four ragged
   cells in a grid */
.stack {
  display: grid;
  gap: clamp(26px, 3vw, 44px);
  align-content: start;
}

/* the rules between phases should end near the text they divide */
.phases { max-width: 56rem; }
