/*
  BOILERBROKERS documentation page.

  Pixel, but NOT pixel everywhere. Headings and labels use a pixel face;
  paragraphs do not. A pixel font across text this long wastes the time of
  somebody who came to read, and a page that is tiring to read does not look
  professional. It looks like an amateur showing off a style.

  No neon. Not one glowing shadow, gradient, or luminous colour in this file.
  What makes a page look expensive is spacing, a firm hierarchy, and restraint
  with colour. Not effects.

  The palette is identical to the city page and comes from the same place:
  sampled out of city.png. Two pages, one location.
*/

:root {
  --line: #34363d;
  --line-deep: #141d33;
  --enamel: #f5f3e9;
  --paper: #fbfaf5;
  --stone: #ded5d1;
  --red-deep: #963441;
  --yellow: #fde403;
  --ink: #2a2c33;
  --ink-dim: #6b6e77;
  --green: #1f6b34;

  --display: "Press Start 2P", ui-monospace, monospace;
  --pixel: "Silkscreen", ui-monospace, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------------ header */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 26px;
  background: var(--enamel);
  border-bottom: 3px solid var(--line);
}
.topbar .brand {
  font-family: var(--display); font-size: 13px; letter-spacing: .04em;
  color: var(--ink); text-decoration: none;
}
.topbar .actions { display: flex; align-items: center; gap: 10px; }
.btn {
  font-family: var(--pixel); font-weight: 700; font-size: 13px;
  letter-spacing: .06em;
  padding: 10px 16px;
  color: var(--ink); text-decoration: none;
  background: var(--yellow);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 rgba(20, 29, 51, .3);
}
.btn:hover { background: #ffee4d; }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(20, 29, 51, .3); }
.btn.quiet { background: var(--enamel); }
.btn.quiet:hover { background: var(--stone); }

/* -------------------------------------------------------------------- tata */
.shell {
  max-width: 1120px; margin: 0 auto; padding: 40px 26px 90px;
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 52px;
  align-items: start;
}

/* The contents list sticks and marks the section being read. In a document this
   long, without a marker a reader loses their place within two scrolls. */
.sidebar { position: sticky; top: 90px; }
.sidebar .sidebar-head {
  font-family: var(--pixel); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-dim);
  padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 2px solid var(--stone);
}
.sidebar a {
  display: block; padding: 6px 0 6px 12px;
  color: var(--ink-dim); text-decoration: none;
  font-size: 13.5px;
  border-left: 3px solid transparent;
}
.sidebar a:hover { color: var(--ink); }
.sidebar a.active {
  color: var(--ink); font-weight: 600;
  border-left-color: var(--red-deep);
}

/* -------------------------------------------------------------------- text */
.content > section { padding-bottom: 46px; }
.content > section + section { border-top: 2px solid var(--stone); padding-top: 46px; }

.content h1 {
  font-family: var(--display);
  font-size: clamp(19px, 3vw, 27px); line-height: 1.45;
  margin: 0 0 6px; color: var(--red-deep);
}
.content .kicker {
  font-family: var(--pixel); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-dim);
  margin: 0 0 22px;
}
.content h2 {
  font-family: var(--display);
  font-size: clamp(13px, 1.7vw, 16px); line-height: 1.5;
  margin: 0 0 18px; color: var(--ink);
}
.content h3 {
  font-family: var(--pixel); font-weight: 700;
  font-size: 14px; letter-spacing: .07em; text-transform: uppercase;
  margin: 30px 0 10px; color: var(--red-deep);
}
.content p { margin: 0 0 15px; }
.content p.lede { font-size: 16.5px; color: var(--ink); }
.content ul { margin: 0 0 15px; padding-left: 20px; }
.content li { margin-bottom: 7px; }
.content strong { font-weight: 700; }
.content a { color: var(--red-deep); }

/* ------------------------------------------------------------------ table */
table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--stone); }
thead th {
  font-family: var(--pixel); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-dim);
  border-bottom: 2px solid var(--line);
}
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--mono); }
.rare { color: var(--red-deep); font-weight: 700; }

/* ------------------------------------------------------------------- box */
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0; margin: 0 0 24px;
  border: 3px solid var(--line); background: var(--enamel);
}
.facts div { padding: 14px 16px; border-right: 2px solid var(--stone); }
.facts div:last-child { border-right: 0; }
.facts dt {
  font-family: var(--pixel); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-dim); margin-bottom: 5px;
}
.facts dd { margin: 0; font-weight: 700; font-size: 15px; }

/* A note marked by a thick edge, not a brightly coloured box. A bright fill
   behind a whole paragraph is tiring; an edge is enough to set it apart. */
.note {
  border-left: 5px solid var(--red-deep);
  background: var(--enamel);
  padding: 16px 18px; margin: 0 0 20px;
}
.note p:last-child { margin-bottom: 0; }

.hash {
  font-family: var(--mono); font-size: 12.5px; word-break: break-all;
  background: var(--enamel); border: 2px solid var(--line);
  padding: 12px 14px; margin: 0 0 18px;
}

.tag {
  display: inline-block;
  font-family: var(--pixel); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px; border: 2px solid var(--line);
}
.tag.done { background: var(--yellow); }
.tag.todo { background: var(--stone); color: var(--ink-dim); }

/* A third state, and the page needs all three. "Done" and "not built" cannot
   describe a decision that has been taken but not settled - a price that exists
   but is not published, a licence nobody has written yet. Collapsing those into
   "not built" reads as further away than it is; collapsing them into "done"
   would be a lie. */
.tag.pending { background: var(--paper); color: var(--red-deep); }

/* ------------------------------------------------------------------ footer */
/*
   The wordmark, a rule, and one line of small print. The old footer repeated
   the front page tagline to a reader who had just scrolled the whole document,
   which told them nothing they did not already know.

   The revision date is the part that earns its place. A specification carrying
   allocations, phase rules and eventually prices, with no date anywhere on it,
   is one whose figures cannot be trusted a month from now - the reader has no
   way to tell what is still current.
*/
footer {
  border-top: 3px solid var(--line);
  margin-top: 44px;
  padding: 30px 26px 36px;
  font-family: var(--sans); font-size: 13px; line-height: 1.55;
  color: var(--ink-dim);
}

.foot-brand {
  max-width: 1080px; margin: 0 auto;
  font-family: var(--display); font-size: 12px;
  letter-spacing: .06em; color: var(--ink);
}

.foot-note {
  max-width: 1080px; margin: 18px auto 0;
  padding-top: 16px; border-top: 1px solid var(--stone);
  font-size: 12px;
}

/* ------------------------------------------------------------------- small */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; gap: 26px; padding-top: 26px; }
  .sidebar { position: static; }
  .sidebar a { display: inline-block; padding: 5px 10px; border-left: 0; border-bottom: 3px solid transparent; }
  .sidebar a.active { border-left: 0; border-bottom-color: var(--red-deep); }
  .topbar { padding: 12px 16px; }
  .topbar .brand { font-size: 10px; }
}
