@charset "UTF-8";

/* --- The television ------------------------------------------------------
   Decorative only. The one on stevencaputo.com is a seven channel radio group
   with two working dials and a reward for solving them; this is the cabinet,
   the dials sitting still, the glass and the snow. No inputs, no labels, no
   lamp, and aria-hidden because it says nothing a reader needs.

   The cabinet is a PNG with the tube and both dial centres punched out of it,
   so everything else sits underneath and shows through. Every rectangle below
   was measured from the original 1536x1024 art by walking its alpha channel,
   carried over as percentages so the whole assembly scales as one piece. */
.tube {
  margin: 30px auto 6px;
  padding: 0;
  width: clamp(190px, 32vw, 290px);
}

/* The set is the way back. aria-hidden moved off the figure and onto the
   cabinet: a hidden link is still focusable, which lands a keyboard on a
   control that announces nothing. The link carries the label, the decoration
   stays hidden. */
.tube__link {
  display: block;
  text-decoration: none;
  border-radius: 6px;
}
.tube__link:focus-visible { outline: 2px solid var(--live); outline-offset: 6px; }

/* It should read as a thing you can press before you press it. */
.tube__link .tv { transition: transform 220ms cubic-bezier(0.3, 0.8, 0.3, 1); }
.tube__link:hover .tv { transform: translateY(-2px) scale(1.012); }
.tube__link:hover .snow { opacity: 0.62; }

.tv {
  position: relative;
  line-height: 0;
  --screen-x: 15.59%;  --screen-y: 18.90%;
  --screen-w: 52.47%;  --screen-h: 63.18%;
  --knob-x: 84.57%;    --knob-y: 27.10%;   --knob-d: 6.84%;
  --uhf-x:  84.57%;    --uhf-y:  47.71%;   --uhf-d: 6.70%;
  --knob-zero: 35deg;
}

.tv__screen {
  position: absolute;
  left: var(--screen-x); top: var(--screen-y);
  width: var(--screen-w); height: var(--screen-h);
  overflow: hidden;
  background: #05070a;
  /* The tube is convex. Square corners read as a sticker. */
  border-radius: 14% / 20%;
}

/* Scanlines, a highlight off the top left, and the falloff into the corners.
   Above the picture, below the cabinet. Without it the screen reads as a flat
   rectangle of noise rather than something behind glass. */
.tv__glass {
  position: absolute;
  left: var(--screen-x); top: var(--screen-y);
  width: var(--screen-w); height: var(--screen-h);
  border-radius: 14% / 20%;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 22% 12%, rgba(255,255,255,0.10), transparent 55%),
    repeating-linear-gradient(180deg, rgba(0,0,0,0.26) 0 1px, transparent 1px 3px),
    radial-gradient(130% 120% at 50% 50%, transparent 58%, rgba(0,0,0,0.72) 100%);
}

/* The dials, behind the cabinet, showing through the punched holes. They do
   not turn here: there is nothing to tune. */
.tv__knob, .tv__uhf {
  position: absolute;
  /* height:auto matters. The width comes from a percentage and the height
     attribute on the img is 256, so without this each knob renders 20px wide
     and 256 tall, and the 35deg rotation drags that across the cabinet as a
     diagonal streak that looks like a broken antenna. */
  height: auto;
  transform: translate(-50%, -50%) rotate(var(--knob-zero));
}
.tv__knob { left: var(--knob-x); top: var(--knob-y); width: var(--knob-d); }
.tv__uhf  { left: var(--uhf-x);  top: var(--uhf-y);  width: var(--uhf-d); }

.tv__cabinet {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  z-index: 2;
}

/* Real snow. Four frames of fractal noise, hard cut between them, which is
   what static does: it does not pan or fade.

   The first attempt at this used the repeating-gradient pair the original
   fires for one frame on a channel change. At tube size that tiles at 3px and
   reads as a regular dotted mesh, not noise. feTurbulence with a different
   seed per frame is the thing that actually looks like a detuned set.

   The frames are four files rather than the data: URIs the original uses,
   because img-src is 'self' here and a data: URI would need the policy
   loosened. Four files at 533 bytes is the cheaper trade. */
.snow {
  position: absolute;
  inset: 0;
  opacity: 0.46;
  mix-blend-mode: screen;
  background-repeat: repeat;
  background-image: url("snow1.svg");
  animation: snow 320ms linear infinite;
}

@keyframes snow {
  0%   { background-image: url("snow1.svg"); }
  25%  { background-image: url("snow2.svg"); }
  50%  { background-image: url("snow3.svg"); }
  75%  { background-image: url("snow4.svg"); }
}

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

.funnel-lead {
  margin: 30px 0 14px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--live);
}

.sep { color: var(--live); font-style: normal; }

/* The front About is a pitch, not a manual, so it gets room to breathe. */
.promise {
  margin: 26px 0;
  padding: 14px 0 14px 16px;
  border-left: 2px solid var(--live);
  font-size: 1.12rem;
  color: var(--ink);
}
.beats {
  margin: 22px 0;
  font-size: 1.24rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.offer { margin: 0; padding: 0; list-style: none; }
.offer li {
  padding: 11px 0;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: #c6c0b4;
}
.offer b { color: var(--live); font-weight: 600; }
.offer .deeper {
  display: inline-block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: rgba(79, 214, 201, 0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 214, 201, 0.3);
}
.offer .deeper:hover { color: var(--live); border-bottom-color: var(--live); }

/* --- The board's chrome ---------------------------------------------------
   These pages shared the palette but not the furniture, so they read as
   documentation about the site rather than as part of it. Same bar, same
   wordmark, same mono buttons, same hairlines. Copied from treemap.py rather
   than imported, because they are separate stylesheets on separate pages and
   the alternative is one stylesheet that has to carry the board's geometry to
   every page that does not have a board. */

.bar {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 -20px;
  padding: 9px 14px;
  background: #0b0d10;
  border-bottom: 1px solid var(--rule);
}

.bar h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  /* Misregistration, one pixel each way, same as the board. */
  text-shadow: -1px 0 rgba(79, 214, 201, 0.55), 1px 0 rgba(201, 139, 79, 0.45);
}

.bar .spacer { flex: 1 1 auto; }

.btn {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--live);
  text-decoration: none;
  border: 1px solid rgba(79, 214, 201, 0.4);
  padding: 4px 11px;
}
.btn:hover { background: rgba(79, 214, 201, 0.12); border-color: var(--live); }

/* The rule under each heading is the board's cell border at reading scale. It
   is what makes a long page feel like the same object as a dense one. */
main h2 {
  margin: 38px 0 4px;
  padding-top: 13px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--live);
}

main { max-width: 680px; margin: 0 auto; }

/* Numbers inside prose get the board's treatment: mono, white, so a figure
   reads as a measurement rather than as emphasis. */
main b { color: #fff; font-weight: 600; }

main p .stamp, p.stamp {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}

footer {
  max-width: 680px;
  margin: 46px auto 0;
  padding-top: 15px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  line-height: 1.9;
  color: var(--dim);
}
footer a { color: var(--live); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .bar { gap: 9px 11px; padding: 8px 12px; }
  .bar h1 { font-size: 0.95rem; letter-spacing: 0.14em; }
  .btn { font-size: 0.58rem; padding: 3px 8px; letter-spacing: 0.12em; }
}


/* The About page. Three layers: the idea, the method, the receipts. A visitor
   should have the whole mental model in ten seconds; a sceptic should be able to
   keep scrolling and audit every decision. */

:root {
  --ink: #ece7db;
  --dim: #8d8778;
  --paper: #0b0d10;
  --rule: #1f242c;
  --live: #4fd6c9;
  --warn: #c98b4f;
  --font: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 72px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.02rem;
  line-height: 1.55;
}

/* The first screen carries the thesis and nothing else. */
.top {
  max-width: 680px;
  margin: 0 auto;
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--rule);
}

.back {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--live);
  text-decoration: none;
}

.top h1 {
  margin: 22px 0 0;
  /* Sized to hold the opening line unbroken. 54 characters inside a 680px
     column is about 12.6px a character, so the ceiling comes down from 2.5rem
     and the floor tracks the viewport rather than the column. text-wrap is
     nowrap for the same reason: if it cannot fit it should overflow visibly
     rather than silently wrap and look like a mistake. */
  font-size: clamp(1.15rem, 3.4vw, 1.72rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.008em;
  white-space: nowrap;
  text-shadow: -1px 0 rgba(79, 214, 201, 0.32), 1px 0 rgba(201, 139, 79, 0.24);
}

.standfirst {
  margin: 18px 0 0;
  font-size: 1.08rem;
  color: #c6c0b4;
  max-width: 34em;
}

/* The country strip, moved here from the top of the board. It was competing
   with 96 cells for the same glance up there; here it has room to be what it
   is, which is the evidence for "newsrooms in 69 countries". */
.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  margin: 24px 0 8px;
  padding: 0;
}
.strip li {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 5px 2px 4px;
  background: #11141a;
  cursor: default;
}
.strip li:hover { background: #171b22; }
.strip .flag {
  display: block;
  width: 16px;
  height: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(236, 231, 219, 0.14);
}
.strip .n { font-family: var(--mono); font-size: 0.58rem; color: var(--dim); }
.strip-note { margin: 0; font-family: var(--mono); font-size: 0.62rem; color: var(--dim); }


main { max-width: 680px; margin: 0 auto; }

section { padding-top: 34px; }

/* The layer markers are the spine of the page. */
.layer {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--live);
}

h2 {
  margin: 0 0 16px;
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: 0.005em;
}

section h2 + h2, p + h2, ol + h2, div + h2, details + h2 { margin-top: 38px; }

p { margin: 0 0 15px; }
b { font-weight: 600; }
a { color: var(--live); }
i { color: #c6c0b4; }

/* The conceptual heart of the whole project, given the room to say so. */
/* The three numbers, staged so the narrowing is the visual. */
.funnel { margin: 22px 0 24px; }
.step {
  margin: 0;
  padding: 12px 16px;
  background: #0e1116;
  border-left: 2px solid var(--live);
}
.step b { color: var(--live); font-size: 1.15rem; font-weight: 600; }
.step span { display: block; font-size: 0.85rem; color: var(--dim); }
.arrow {
  margin: 0;
  padding: 7px 16px 7px 30px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  color: var(--dim);
  position: relative;
}
.arrow::before { content: "↓"; position: absolute; left: 14px; color: var(--live); }

.truth {
  margin: 20px 0 0;
  padding: 12px 15px;
  border-left: 2px solid var(--warn);
  background: #14100c;
  color: var(--warn);
  font-size: 0.95rem;
}

.axiom {
  margin: 20px 0;
  padding-left: 16px;
  border-left: 2px solid var(--live);
  font-size: 1.08rem;
  color: var(--ink);
}

.pull {
  margin: 26px 0;
  padding-left: 18px;
  border-left: 2px solid var(--warn);
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  line-height: 1.2;
  color: var(--warn);
  letter-spacing: 0.01em;
}

/* Four steps. The concept is the heading, the implementation is underneath in
   small type for whoever wants to check the arithmetic. */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 18px;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 38px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: 0; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--live);
  border: 1px solid var(--rule);
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
}

.steps h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  font-weight: 500;
}
.steps p { margin: 0; }

.detail {
  margin-top: 7px !important;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--dim);
  letter-spacing: 0.01em;
}

/* The one number that argues for the subject quota. */
.figure {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  background: #0e1116;
}
.figure-nums {
  margin: 0 0 6px;
  font-size: 1.3rem;
  font-family: var(--mono);
  letter-spacing: 0.02em;
  color: var(--dim);
}
.figure-nums b { color: var(--live); font-weight: 600; }
.figure-nums .sep { color: var(--rule); padding: 0 6px; }
.figure-caption { margin: 0; font-size: 0.92rem; color: var(--dim); }

/* Two panels: what is configured, and what the last run did. They answer
   different questions and used to be one run-on line that contradicted the
   board. */
.panels { display: flex; gap: 14px; flex-wrap: wrap; margin: 18px 0 26px; }
.panel {
  flex: 1 1 260px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  background: #0e1116;
}
.panel-head {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--live);
}
.panel ul { list-style: none; margin: 0; padding: 0; font-size: 0.94rem; }
.panel li { margin-bottom: 5px; color: #c6c0b4; }
.panel li b { color: var(--ink); font-weight: 600; }
.panel-foot {
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--dim);
  line-height: 1.5;
}

.stat {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--dim);
  letter-spacing: 0.04em;
}

/* 243 rows used to own half this page. Folded away, still one click deep. */
.registry { margin-top: 18px; border-top: 1px solid var(--rule); }
.registry summary {
  cursor: pointer;
  padding: 14px 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--live);
}
.registry summary:hover { color: var(--ink); }
.registry[open] summary { color: var(--ink); }

table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 0.88rem; }
th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 400;
  border-bottom: 1px solid var(--rule);
  padding: 0 10px 6px 0;
}
td { padding: 6px 10px 6px 0; border-bottom: 1px solid #14181e; vertical-align: top; }
td.cc, td.mono { font-family: var(--mono); font-size: 0.72rem; color: var(--dim); }
tr.off td { color: #5e5a52; }
.dead { font-family: var(--mono); font-size: 0.66rem; color: var(--warn); }
.tie { font-family: var(--mono); font-size: 0.66rem; color: var(--live); opacity: 0.75; }

.credit { margin-top: 10px; font-size: 0.78rem; }

footer {
  max-width: 680px;
  margin: 44px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--dim);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .standfirst { font-size: 1.02rem; }
  .steps li { padding-left: 32px; }
  table { font-size: 0.8rem; }
  td, th { padding-right: 6px; }
}
