/* No Fixed Exit: Live, the sign-up site. Colours are palette C+ (docs/art-direction.md): dark damp carpet, sour
   wallpaper, fluorescent light, and tape red as the one loud colour. */
:root {
  --void: #13120a;
  --shadow: #1e1c12;
  --wall-top: #2b281b;
  --carpet: #524b1d;
  --fibre: #6d652d;
  --damp: #8d844d;
  --seam: #afa773;
  --paper: #c4be90;
  --light: #e6ead0;
  --tape: #e0321a;
  --teal: #5e8285;
}

* { box-sizing: border-box; }

/* Anything marked hidden stays hidden, whatever display a later rule gives it. */
[hidden] { display: none !important; }

html { background: var(--void); }

body {
  margin: 0;
  color: var(--paper);
  background: var(--void);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

a { color: var(--light); }

.top {
  padding: 14px 20px;
  border-bottom: 2px solid var(--wall-top);
}

.wordmark {
  font: 600 14px/1 ui-monospace, "Cascadia Mono", Menlo, monospace;
  letter-spacing: 3px;
  color: var(--light);
}

.wordmark b { color: var(--tape); }

a.wordmark { text-decoration: none; }

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 48px 0; }

section + section { border-top: 2px dashed var(--wall-top); }

h1, h2 {
  color: var(--light);
  font-family: ui-monospace, "Cascadia Mono", Menlo, monospace;
  letter-spacing: -0.5px;
}

h1 { font-size: clamp(30px, 6vw, 52px); line-height: 1.1; margin: 0 0 18px; }

h1 span { color: var(--seam); }

h2 { font-size: 26px; margin: 0 0 12px; }

.lede { max-width: 640px; font-size: 19px; }

.sub { margin-top: 0; color: var(--seam); }

.cta, button {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 22px;
  border: 2px solid var(--void);
  border-radius: 4px;
  background: var(--tape);
  color: var(--light);
  font: 700 17px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--shadow);
}

.cta:active, button:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--shadow); }

/* The clip: a phone-shaped frame. */
.clip { display: flex; justify-content: center; }

.clip-frame {
  width: min(100%, 340px);
  aspect-ratio: 9 / 16;
  display: grid;
  place-items: center;
  border: 3px solid var(--wall-top);
  border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, var(--carpet) 0 2px, var(--fibre) 2px 3px),
    var(--carpet);
}

.clip-frame video { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }

.clip figure { margin: 0; width: min(100%, 340px); }

.clip figcaption { margin-top: 10px; color: var(--seam); font-size: 15px; text-align: center; }


.how ol { padding-left: 22px; max-width: 680px; }

.how li { margin-bottom: 12px; }

.how b { color: var(--light); }

/* The cast: sprites shown big with hard pixels. */
.cast-grid {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.cast-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; /* feet and names on one line, however tall the sprite */
  padding: 14px 8px 12px;
  background: var(--carpet);
  border: 2px solid var(--wall-top);
  border-radius: 6px;
}

.cast-grid img { width: 96px; height: auto; image-rendering: pixelated; }

.cast-grid b { margin-top: 6px; color: var(--light); }

.cast-grid span { font-size: 14px; color: var(--seam); }

/* The form. */
form { max-width: 440px; display: grid; gap: 14px; }

label { display: grid; gap: 4px; color: var(--light); }

label small { color: var(--seam); }

input:not([type="checkbox"]) {
  padding: 11px 12px;
  border: 2px solid var(--wall-top);
  border-radius: 4px;
  background: var(--shadow);
  color: var(--light);
  font: inherit;
}

input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; }

.check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; color: var(--paper); font-size: 15px; }

.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--tape); }

.bot-check { min-height: 65px; }

button:disabled { opacity: 0.6; cursor: default; }

.form-note { min-height: 1.5em; margin: 0; color: var(--light); }

.form-note.error { color: #ff8a72; }

footer {
  padding: 28px 20px 40px;
  border-top: 2px solid var(--wall-top);
  color: var(--damp);
  font-size: 14px;
  text-align: center;
}

footer a { color: var(--seam); }

/* Legal pages. */
.legal { max-width: 760px; padding: 32px 20px 48px; }

.legal h1 { font-size: 32px; }

.legal h2 { font-size: 20px; margin-top: 28px; }

.welcome { text-align: center; min-height: 50vh; }

.welcome img { image-rendering: pixelated; }

/* Account page. */
.account form, .account #signed-in { display: grid; gap: 14px; max-width: 440px; }

.small { margin: 0; font-size: 15px; }

button.link {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--light);
  font: inherit;
  text-decoration: underline;
}

button.quiet { justify-self: start; background: var(--wall-top); }

button.danger { justify-self: start; background: #8f1d0e; }

.qr { width: 180px; height: 180px; padding: 8px; background: #fff; border-radius: 4px; }

code { font-family: ui-monospace, "Cascadia Mono", Menlo, monospace; color: var(--light); word-break: break-all; }

.top { display: flex; justify-content: space-between; align-items: center; }

.top-link { color: var(--seam); font-size: 15px; }

.draft {
  padding: 10px 14px;
  border: 2px solid var(--tape);
  border-radius: 4px;
  color: var(--light);
  background: var(--shadow);
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  section { padding: 36px 0; }
  .cast-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
