/* HARD STOP - hardstop.cold.fyi
   Fire-alarm and transit signage: black, white, one signal red.
   Page colours are these six and nothing else. TICK's colours live in tick.css,
   generated from tick-frames.json. Spacing scale: 8 16 24 32 48 72 120. */

:root {
  --bg: #000000;
  --text: #FFFFFF;
  --dim: #A0A0A0;
  --line: #333333;
  --field: #444444;
  --red: #E5170F;

  --pad: 16px;          /* column side padding */
  --gap-sec: 72px;      /* between major sections */
  --gap-grid: 32px;     /* between items in a grid */
  --radius-shot: 6px;

  --fs-wordmark: 96px;
  --fs-hero-line: 32px;
  --fs-h1: 56px;
  --fs-h2: 48px;
  --fs-h3: 32px;
  --fs-numeral: 64px;
  --fs-unit: 96px;

  --font-sign: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, Inter, Helvetica, Arial, sans-serif;
  --font-tick: "VT323", ui-monospace, monospace;
}

@media (min-width: 768px) {
  :root {
    --pad: 32px;
    --gap-grid: 24px;
    --radius-shot: 10px;
    --fs-wordmark: 140px;
    --fs-hero-line: 44px;
    --fs-h1: 72px;
    --fs-h2: 64px;
    --fs-h3: 36px;
    --fs-numeral: 80px;
    --fs-unit: 120px;
  }
}

@media (min-width: 1100px) {
  :root {
    --pad: 48px;
    --gap-sec: 120px;
    --fs-wordmark: clamp(96px, 18vw, 240px);
    --fs-hero-line: 56px;
    --fs-h1: 88px;
    --fs-h2: 88px;
    --fs-h3: 40px;
    --fs-numeral: 96px;
  }
}

@font-face {
  font-family: "Bebas Neue";
  src: url("/assets/fonts/BebasNeue.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "VT323";
  src: url("/assets/fonts/VT323.ttf") format("truetype");
  font-display: swap;
}

/* ------------------------------------------------------------------ base */

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

html {
  color-scheme: dark;
  background: #000000;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-sign);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  margin: 0;
}

p { margin: 0; max-width: 60ch; }
p + p { margin-top: 16px; }

img { max-width: 100%; }

a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
main:focus { outline: none; }

[hidden] { display: none !important; }

ul.plain, ol.steps, ul.poses, ul.footer-links, ul.links-row, .nav-wide ul, ul.menu-list { list-style: none; margin: 0; padding: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.js-only { display: none; }
.js .js-only { display: block; }

.skip {
  position: absolute;
  left: 16px; top: -120px;
  z-index: 100;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sign);
  font-size: 22px;
  padding: 8px 16px;
  border: 1px solid var(--text);
  text-decoration: none;
}
.skip:focus { top: 8px; }

/* ------------------------------------------------------------------ column */

.col {
  width: 100%;
  max-width: calc(1100px + 2 * var(--pad));
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.col.narrow { max-width: calc(480px + 2 * var(--pad)); }

.page { padding-top: 48px; }
@media (min-width: 1100px) { .page { padding-top: 72px; } }

.rule {
  border: 0;
  height: 2px;
  background: var(--red);
  margin: calc(var(--gap-sec) / 2) 0;
}
.rule-tight { margin: 48px 0; }

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

.wordmark {
  display: inline-block;
  font-size: var(--fs-wordmark);
  white-space: nowrap;
  line-height: 0.9;
}
.wordmark::after {
  content: "";
  display: block;
  width: 40%;
  height: 6px;
  margin: 16px auto 0;
  background: var(--red);
}

.hero-line { font-family: var(--font-sign); font-size: var(--fs-hero-line); line-height: 1; max-width: none; }

.h-page { font-size: var(--fs-h1); }
.h-section { font-size: var(--fs-h2); }
.h-block { font-size: var(--fs-h3); }
.h-label, .label { font-family: var(--font-sign); font-size: 20px; line-height: 1.1; font-weight: 400; color: var(--text); }

.h-page + p, .h-section + p, .h-block + p, .h-label + p { margin-top: 16px; }
.h-label + .form-wrap { margin-top: 16px; }
.sub { color: var(--dim); }
.small { font-size: 14px; color: var(--dim); }
.small a { color: var(--dim); }
.small a:hover { color: var(--red); }

.caption {
  font-family: var(--font-sign);
  font-size: 20px;
  line-height: 1.1;
  color: var(--dim);
  margin: 8px 0 0;
  max-width: none;
}

.link-sign {
  font-family: var(--font-sign);
  font-size: 22px;
  line-height: 1.2;
  display: inline-block;
  padding: 10px 0;          /* 44 px tap target */
}

.more { margin-top: 24px; }

.closing { margin-top: var(--gap-sec); font-size: 18px; }

.page-head { margin-bottom: 48px; }
.page-head .actions { margin-top: 24px; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: var(--font-sign);
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}
.btn-red { background: var(--red); border-color: var(--red); color: var(--text); }
.btn-ghost, .btn-black { background: var(--bg); border-color: var(--text); color: var(--text); }
.btn:hover, .btn:active { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-red:focus-visible { outline-color: var(--text); }
.btn[disabled] { cursor: default; }
.btn[aria-busy="true"] { background: var(--bg); border-color: var(--field); color: var(--dim); }

.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.actions-center { justify-content: center; }
.actions-stack { flex-direction: column; }
.actions-stack .btn { width: 100%; }

@media (max-width: 767px) {
  .btn { width: 100%; }
  .actions { flex-direction: column; }
}

/* ------------------------------------------------------------------ nav */

.site-nav { background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav-mark {
  font-family: var(--font-sign);
  font-size: 32px;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 0;
}
.nav-mark:hover { color: var(--text); }
.nav-wide { display: none; }
.nav-toggle {
  font-family: var(--font-sign);
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}
.nav-toggle:hover { color: var(--red); }

.nav-wide a:not(.btn), .menu-list a {
  font-family: var(--font-sign);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.nav-wide a:not(.btn):hover, .menu-list a:hover { color: var(--red); }
.nav-wide a[aria-current="page"]:not(.btn), .menu-list a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* The phone menu. Works with JavaScript off through :target; site.js adds focus handling. */
.menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  overflow-y: auto;
}
.menu:target, .menu-open .menu { display: block; }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: 56px; border-bottom: 1px solid var(--line); }
.menu-list { margin-top: 24px; }
.menu-list a { display: flex; align-items: center; height: 64px; font-size: 48px; line-height: 1; }
.menu .btn { margin-top: 32px; width: 100%; }

@media (min-width: 1100px) {
  .nav-inner { height: 72px; }
  .nav-toggle { display: none; }
  .nav-wide { display: flex; align-items: center; gap: 32px; }
  .nav-wide ul { display: flex; gap: 32px; }
  .nav-wide a:not(.btn) { font-size: 22px; display: inline-flex; align-items: center; min-height: 44px; }
  .nav-mark { font-size: 40px; }
  .menu, .menu:target, .menu-open .menu { display: none; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .nav-inner { height: 72px; }
  .nav-mark { font-size: 40px; }
  .menu-top { height: 72px; }
}

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

.site-footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 48px 0; }
.footer-inner > * + * { margin-top: 16px; }
.tpa { display: inline-block; line-height: 0; padding: 11px 0; margin: -11px 0; }
.tpa img { height: 22px; width: auto; display: block; }
.maker { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; column-gap: 32px; }

/* ------------------------------------------------------------------ screens */

.shot { margin: 0; max-width: 800px; }
.screen {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 480;
  border-radius: var(--radius-shot);
  outline: 1px solid var(--line);
  outline-offset: -1px;
}
p + .shot, p + .grid { margin-top: 24px; }

.grid { display: grid; gap: var(--gap-grid); grid-template-columns: 1fr; }
.grid .shot { max-width: none; }
@media (min-width: 768px) {
  .grid-two, .grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ home */

.hero { text-align: center; padding-top: 48px; }
.hero .wordmark { margin: 0 auto; }
.hero-line { margin-top: 32px; }
.hero-sub { margin: 24px auto 0; }
.hero-screen { margin-top: 48px; }
.hero-screen .shot { margin: 0 auto; }
@media (min-width: 1100px) { .hero { padding-top: 72px; } }

.blocks { display: grid; grid-template-columns: 1fr; gap: 48px 32px; }
.block .h-block { margin-top: 24px; }
@media (min-width: 768px) {
  .blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
}

.band .h-section { margin-top: 32px; }

.facts { margin: 0; border-bottom: 1px solid var(--line); }
.fact { border-top: 1px solid var(--line); padding: 16px 0; }
.fact dt { font-family: var(--font-sign); font-size: 20px; line-height: 1.1; color: var(--text); }
.fact dd { margin: 8px 0 0; color: var(--dim); max-width: 60ch; }
@media (min-width: 768px) {
  .fact { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: baseline; }
  .fact dd { margin: 0; }
}

.split { display: grid; gap: 32px; }
.links-row { display: flex; flex-wrap: wrap; column-gap: 32px; margin-top: 16px; }
@media (min-width: 768px) {
  .split { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; }
}

/* ------------------------------------------------------------------ sections */

.secs > .sec + .sec { margin-top: var(--gap-sec); }
.sec-tight { margin-top: 48px; }
.sec + .sec { margin-top: 48px; }
.secs > .sec + .sec { margin-top: var(--gap-sec); }

.qas { display: grid; gap: 32px; margin-top: 48px; }
@media (min-width: 768px) { .qas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; } }
@media (min-width: 1100px) { .qas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cols-two { display: grid; gap: 48px; }
@media (min-width: 768px) { .cols-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.plain { margin-top: 16px; }
.plain li { padding: 8px 0; border-top: 1px solid var(--line); max-width: 60ch; }
.plain li:last-child { border-bottom: 1px solid var(--line); }

.prose p { max-width: 60ch; }

/* ------------------------------------------------------------------ steps */

.step { display: grid; grid-template-columns: 1fr; gap: 8px; }
.step + .step { margin-top: var(--gap-sec); }
.numeral { font-family: var(--font-sign); font-size: var(--fs-numeral); line-height: 0.85; color: var(--red); }
.step-body > .h-block + p { margin-top: 16px; }
.step-body > p + .shot, .step-body > p + .grid { margin-top: 24px; }
.step-body > p + .btn { margin-top: 24px; }
@media (min-width: 768px) {
  .step { grid-template-columns: 96px minmax(0, 1fr); gap: 24px; }
}
@media (min-width: 1100px) {
  .step { grid-template-columns: 120px minmax(0, 1fr); }
}
.steps-tight .step + .step { margin-top: 48px; }
.h-section + .steps, .h-section + p + .steps { margin-top: 48px; }
.narrow .step { grid-template-columns: 1fr; gap: 8px; }
.narrow .steps + .shot { margin-top: 48px; }
.stuck { margin-top: 48px; }
.shot + .sec { margin-top: 48px; }

/* ------------------------------------------------------------------ faq */

.faq { border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 16px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-family: var(--font-body); font-size: 18px; line-height: 1.4; font-weight: 600; }
.faq-sign::before { content: "+"; font-family: var(--font-sign); font-size: 32px; line-height: 1; color: var(--text); }
.faq-item[open] .faq-sign::before { content: "-"; }
.faq-item summary:hover .faq-q, .faq-item summary:hover .h-label { color: var(--red); }
.faq-item > p { padding: 0 0 24px; color: var(--dim); }
.faq-item.help { margin-top: 48px; border-bottom: 1px solid var(--line); }
.faq-item.help .plain { margin: 0 0 24px; }
.faq-item.help .plain li { color: var(--dim); }

/* ------------------------------------------------------------------ TICK */

.tick {
  font-family: var(--font-tick);
  line-height: 0.92;
  letter-spacing: 0;
  white-space: pre;
  margin: 0;
  color: transparent;
  font-variant-ligatures: none;
  overflow: visible;
  user-select: none;
  -webkit-user-select: none;
}
.tick-20 { font-size: 20px; }
.tick-28 { font-size: 28px; }
.tick-hero { font-size: 28px; }
@media (min-width: 1100px) { .tick-hero { font-size: 40px; } }

.split-tick { display: flex; justify-content: flex-start; }
@media (min-width: 768px) { .split-tick { justify-content: flex-end; } }

.tick-top { text-align: center; margin-bottom: 72px; }
.tick-button {
  display: inline-block;
  background: none;
  border: 0;
  padding: 16px;
  margin: 0 auto 32px;
  cursor: pointer;
  color: inherit;
  border-radius: 4px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.tick-button .tick { text-align: left; }
.tick-sub { font-family: var(--font-sign); font-size: var(--fs-h3); line-height: 1; color: var(--dim); margin: 16px auto 0; max-width: none; }
.tick-top .h-page { font-size: var(--fs-h1); }

.poses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.pose { display: flex; flex-direction: column; align-items: flex-start; }
.pose .caption { margin-top: 8px; font-size: 18px; }
@media (min-width: 768px) { .poses { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .poses { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

.egg { margin-top: 48px; }

/* ------------------------------------------------------------------ forms */

.form { max-width: 640px; }
.needs-js { display: none; }
.js .needs-js { display: block; }
.field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.field label:not(.choice), .field legend, .field .label {
  display: block;
  font-family: var(--font-sign);
  font-size: 20px;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 8px;
  padding: 0;
}
.opt { font-family: var(--font-body); font-size: 14px; color: var(--dim); }
.hint { font-size: 14px; color: var(--dim); margin: 0 0 8px; }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--field);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}
textarea { height: 140px; padding: 16px; resize: vertical; }
input:hover, textarea:hover { border-color: var(--dim); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }

.choices { display: flex; flex-wrap: wrap; gap: 0 24px; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  font-size: 18px;
}
.choice-wide { align-items: flex-start; padding-top: 8px; }
.choice-wide span { max-width: 52ch; }
.choice input { width: 24px; height: 24px; margin: 0; accent-color: #E5170F; flex: none; }
.choice-wide input { margin-top: 1px; }

.err { color: var(--red); font-size: 16px; margin-top: 8px; }
.notice { color: var(--dim); }
.form-status { margin-top: 16px; }
.form-status p { max-width: 60ch; }
.form-status .fail { color: var(--text); }
.form-done:focus { outline: none; }
.form-done p { margin-top: 16px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ unit page */

.unit { padding-top: 32px; }
.wordmark-small {
  font-family: var(--font-sign);
  font-size: 40px;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  padding: 2px 0;
}
.wordmark-small:hover { color: var(--text); }
.unit-num { font-size: var(--fs-unit); line-height: 0.9; margin-top: 16px; white-space: nowrap; }
.belongs { margin-top: 16px; }
.lost-band {
  margin-top: 32px;
  background: var(--red);
  color: var(--text);
  font-family: var(--font-sign);
  font-size: 32px;
  line-height: 1;
  padding: 16px;
  max-width: none;
}
.unit .btn, .narrow .btn { width: 100%; }
.unit .actions { margin-top: 24px; gap: 16px; }
.crew-note { white-space: pre-line; overflow-wrap: anywhere; }
.unit-foot { margin-top: 48px; }

/* ------------------------------------------------------------------ updater */

.releases { margin-top: 32px; border-bottom: 1px solid var(--line); }
.release { border-top: 1px solid var(--line); padding: 24px 0; }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
.release-ver { font-size: var(--fs-h3); }
.tags { display: flex; flex-wrap: wrap; gap: 0 16px; font-family: var(--font-sign); font-size: 22px; line-height: 1; }
.tag-rec { color: var(--red); }
.tag-fallback { color: var(--text); }
.tag-new { color: var(--dim); }
.release-meta { color: var(--dim); margin-top: 8px; }
.release-why { margin-top: 8px; }
.release details { margin-top: 8px; }
.release summary { cursor: pointer; font-family: var(--font-sign); font-size: 20px; min-height: 44px; display: inline-flex; align-items: center; }
.release summary:hover { color: var(--red); }
.files { margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--dim); }
.files li + li { margin-top: 8px; }
.files code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; overflow-wrap: anywhere; color: var(--dim); }
.releases .notice, .releases .small { padding: 24px 0; }

/* ------------------------------------------------------------------ 404 */

.page-404 { min-height: 40vh; }
.page-404 .more { margin-top: 32px; }

/* ------------------------------------------------------------------ v2 (Oct 25) */

/* Only on non-production origins (site.js): their sign-ups are test-only. */
.preview-bar {
  margin: 0;
  max-width: none;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-sign);
  font-size: 20px;
  line-height: 1;
  text-align: center;
  padding: 10px var(--pad);
}
.preview-bar[hidden] { display: none; }

/* A group of fields with a heading (register: ON THE UNIT'S PAGE / JUST FOR US). */
.group { margin: 0 0 32px; padding: 0; border: 0; min-width: 0; }
.group > legend { font-family: var(--font-sign); font-size: var(--fs-h3); line-height: 1; padding: 0; margin-bottom: 24px; color: var(--text); }

/* The unit page's reports, each a native disclosure (works without JS). */
.reports { margin-top: 48px; border-bottom: 1px solid var(--line); }
.report { border-top: 1px solid var(--line); }
.report summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  font-family: var(--font-sign);
  font-size: var(--fs-h3);
  line-height: 1;
}
.report summary::-webkit-details-marker { display: none; }
.report summary:hover { color: var(--red); }
.report[open] .faq-sign::before { content: "-"; }
.report .form-wrap { padding: 8px 0 32px; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* TICK's colours - generated by build.mjs from tick-frames.json. */
.tk-M { color: #A8A8A8; }
.tk-B { color: #FFC870; }
.tk-F { color: #FFFFFF; }
.tk-C { color: #FF71CE; }
.tk-X { color: #00C8FF; }
