/*
 * TrueAbuse — trueabuse.co.uk
 *
 * The palette comes from the physical object the product produces: a complaint
 * filed and delivered. Carbonless copy paper, navy ink, a rubber stamp. The
 * action colour is the console's own primary, so the marketing site and the
 * portal read as one company rather than two.
 *
 * Monospace appears only where genuine machine output does — log lines,
 * addresses, mail headers. Never for labels; a label set in mono is decoration
 * pretending to be data.
 */

:root {
  --paper:    #e9eef3;
  --paper-2:  #f4f7fa;
  --ink:      #101a2e;
  --ink-2:    #46557a;
  --rule:     #bfccd9;
  --seal:     #a21b44;
  --action:   #2d5ed4;
  --threat:   #b23b3b;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 5rem);

  --sans: "Archivo", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-optical-sizing: auto;
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.021em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--action); }

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 0.5rem;
  z-index: 10;
  background: var(--ink);
  color: var(--paper-2);
  padding: 0.5rem 0.875rem;
  border-radius: 4px;
}

/* ── Bar ──────────────────────────────────────────────────────────────── */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.125rem var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}
.brand img { border-radius: 7px; display: block; }

.bar-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
}
/*
 * :not(.button) matters more than it looks. `.bar-nav > a` is (0,1,1) and
 * `.button-solid` is (0,1,0), so without it the bar wins and paints the portal
 * button's label navy on blue — invisible, and invisible only in the bar.
 */
.bar-nav > a:not(.button) { color: var(--ink-2); text-decoration: none; }
.bar-nav > a:not(.button):hover { color: var(--ink); }

/* Below this width the bar is the brand and the one thing worth tapping. */
@media (max-width: 47.99rem) {
  .bar-nav > a:not(.button) { display: none; }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.button {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 0.75rem 1.125rem;
  border-radius: 6px;
  border: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  background: transparent;
}
.button:hover { border-color: var(--ink-2); }

.button-solid {
  background: var(--action);
  border-color: var(--action);
  color: #fff;
}
.button-solid:hover { background: #2450bb; border-color: #2450bb; }

.button-lg { font-size: 1.0625rem; padding: 0.9375rem 1.5rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

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

.hero {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(3rem, 7vw, 5.5rem);
}

@media (min-width: 62rem) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.hero h1 {
  font-size: clamp(2.25rem, 1.3rem + 4.2vw, 4rem);
  max-width: 15ch;
}

.deck {
  margin-top: 1.5rem;
  max-width: var(--measure);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--ink-2);
}

/* ── The chain: one event becoming a report ───────────────────────────── */

.chain {
  margin: 0;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  position: relative;
}

.chain-step {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.chain-step-last {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

@media (max-width: 30rem) {
  .chain-step { grid-template-columns: 1fr; gap: 0.375rem; }
}

.chain-stage {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-2);
  padding-top: 0.125rem;
  position: relative;
}

/*
 * A thread running down the stage column. The three steps are a real sequence —
 * the same event moving along — and the line says so without numbering them
 * 01/02/03, which would imply a list of features instead.
 */
@media (min-width: 30.01rem) {
  .chain-step:not(.chain-step-last) .chain-stage::after {
    content: "";
    position: absolute;
    left: 0.3125rem;
    top: 1.75rem;
    bottom: -2.25rem;
    width: 1px;
    background: var(--rule);
  }
  .chain-stage::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.6875rem;
    height: 0.6875rem;
    border: 1px solid var(--ink-2);
    border-radius: 50%;
    background: var(--paper-2);
  }
  .chain-stage { padding-left: 1.5rem; }
}

.chain-body .mono {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  margin: 0 0 0.625rem;
  word-break: break-word;
}
.chain-body .threat { color: var(--threat); }

.chain-note {
  font-size: 0.9375rem;
  color: var(--ink-2);
  margin: 0;
}

/* The one piece of motion on the page: the seal lands once, on load. */
.seal {
  position: absolute;
  right: -0.25rem;
  bottom: -0.5rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  color: var(--seal);
  border: 2px solid var(--seal);
  border-radius: 4px;
  padding: 0.3125rem 0.625rem;
  opacity: 0.88;
  transform: rotate(-7deg);
  animation: stamp 520ms cubic-bezier(0.2, 1.3, 0.4, 1) 900ms backwards;
}

@keyframes stamp {
  from { opacity: 0; transform: rotate(-22deg) scale(2.1); }
  to   { opacity: 0.88; transform: rotate(-7deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .seal { animation: none; }
}

/* ── Bands ────────────────────────────────────────────────────────────── */

.band {
  padding: clamp(3rem, 7vw, 5rem) var(--gutter);
  border-top: 1px solid var(--rule);
}
.band-tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }

.band h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.25rem);
  max-width: 22ch;
}

.lede {
  margin-top: 1.125rem;
  max-width: var(--measure);
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.band-dark {
  background: var(--ink);
  color: var(--paper-2);
  border-top-color: var(--ink);
}
.band-dark h2, .band-dark h3 { color: var(--paper-2); }
.band-dark .lede, .band-dark .aside { color: #a8b6cf; }

/* ── Sources ──────────────────────────────────────────────────────────── */

.sources {
  margin: 2.5rem 0 0;
  display: grid;
  gap: 0;
}

.sources > div {
  display: grid;
  gap: 0.375rem 2rem;
  padding: 1.375rem 0;
  border-top: 1px solid var(--rule);
}
.sources > div:last-child { border-bottom: 1px solid var(--rule); }

@media (min-width: 48rem) {
  .sources > div { grid-template-columns: 11rem minmax(0, 1fr); }
}

.sources dt {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.0625rem;
}

.sources dd { margin: 0; max-width: var(--measure); }
.sources dd p { color: var(--ink-2); }

.sample {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink);
  margin: 0.5rem 0 0;
  word-break: break-word;
}

/* ── Verdicts ─────────────────────────────────────────────────────────── */

.verdicts {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 48rem) {
  .verdicts { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

.verdict {
  border-left: 3px solid #35456a;
  padding-left: 1.25rem;
}
.verdict-held { border-left-color: var(--seal); }

.verdict h3 {
  font-size: 1.125rem;
  margin-bottom: 0.625rem;
}
.verdict p { color: #a8b6cf; max-width: 46ch; }

.aside {
  margin-top: 2.5rem;
  max-width: var(--measure);
  font-size: 0.9375rem;
}

/* ── The letter ───────────────────────────────────────────────────────── */

.letter {
  margin: 2.5rem 0 0;
  max-width: 64ch;
}

.letter pre {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.75;
  margin: 0;
  padding: clamp(1.125rem, 3vw, 1.75rem);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--seal);
  border-radius: 8px;
  overflow-x: auto;
  white-space: pre;
}

.letter figcaption {
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  max-width: var(--measure);
}

/* ── Facts ────────────────────────────────────────────────────────────── */

.facts {
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 72ch;
}

.facts li {
  padding: 0.875rem 0 0.875rem 1.5rem;
  border-top: 1px solid var(--rule);
  position: relative;
  color: var(--ink-2);
}
.facts li:last-child { border-bottom: 1px solid var(--rule); }

.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.5rem;
  width: 0.5rem;
  height: 1px;
  background: var(--ink-2);
}

/* ── Call to action ───────────────────────────────────────────────────── */

.cta {
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
}
.cta h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  letter-spacing: -0.021em;
  max-width: 18ch;
}
.cta p { margin-top: 1.125rem; max-width: var(--measure); color: var(--ink-2); }
.cta .actions { margin-top: 2rem; }

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

.foot {
  padding: 2rem var(--gutter) 3rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  align-items: center;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.foot p { margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.foot img { border-radius: 5px; }
