/* Tokens pulled from Travis's logo files (bomb_city_stack.svg). */
:root {
  --night: #0e100d;        /* green-black, from the bomb's #171817 */
  --neon: #ff008c;         /* the sign's tube color */
  --neon-soft: rgba(255, 0, 140, 0.35);
  --white: #ffffff;
  --olive: #36472e;
  --olive-deep: #1f2a19;
  --olive-line: #5c714a;
  --tan: #e0cfa3;          /* MOAB stencil + bomb outline */
  --brass: #d2b65c;
  --error: #ff8a7a;
  --radius: 4px;
  --stencil: "Big Shoulders Stencil Display", "Barlow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  min-height: 100vh;
  color: var(--tan);
  font: 400 1.0625rem/1.55 var(--body);
  background:
    radial-gradient(ellipse 70% 45% at 30% 30%, rgba(255, 0, 140, 0.16), transparent 70%),
    var(--night);
}

/* Faint scanlines, like glass in front of a cabinet screen */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
}

.stage {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 6vw, 4.5rem) 16px 3rem;
  display: grid;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 900px) {
  .stage { grid-template-columns: 1.15fr 1fr; min-height: 100vh; }
}

.sign { margin: 0; }
.sign img { display: block; width: 100%; max-width: 40rem; height: auto; margin: 0 auto; }

/* The sign powers on once, the way a neon tube catches */
@media (prefers-reduced-motion: no-preference) {
  .sign img { animation: ignite 1.6s steps(1, end) both; }
  @keyframes ignite {
    0%   { opacity: 0.08; }
    12%  { opacity: 0.9; }
    16%  { opacity: 0.15; }
    30%  { opacity: 1; }
    34%  { opacity: 0.35; }
    40%  { opacity: 1; }
    100% { opacity: 1; }
  }
}

.pitch { max-width: 30rem; width: 100%; justify-self: center; }

h2 {
  font: 800 clamp(2.4rem, 7vw, 3.4rem)/0.95 var(--stencil);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 0.75rem;
}

.lede { font-size: 1.1875rem; margin: 0 0 1.75rem; color: var(--tan); }

/* The form reads as a painted ammo crate */
.crate {
  display: grid;
  gap: 0.3rem;
  padding: 1.5rem;
  background: linear-gradient(180deg, var(--olive) 0%, var(--olive-deep) 100%);
  border: 2px solid var(--olive-line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(224, 207, 163, 0.12), 0 18px 40px rgba(0, 0, 0, 0.45);
}

label {
  font: 800 1.05rem/1 var(--stencil);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tan);
  margin-top: 0.8rem;
}
label:first-child { margin-top: 0; }
.opt { font: 400 0.9rem/1 var(--body); letter-spacing: 0; text-transform: none; color: rgba(224, 207, 163, 0.7); }

input {
  font: 500 1.0625rem/1.3 var(--body);
  color: var(--white);
  background: rgba(14, 16, 13, 0.75);
  border: 1px solid rgba(224, 207, 163, 0.25);
  border-radius: var(--radius);
  padding: 0.8rem 0.85rem;
  width: 100%;
}
input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px var(--neon-soft); }
input[aria-invalid="true"] { border-color: var(--error); }

button {
  margin-top: 1.25rem;
  font: 800 1.5rem/1 var(--stencil);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--neon);
  border: 0;
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  box-shadow: 0 0 22px var(--neon-soft);
  transition: box-shadow 0.2s ease;
}
button:hover { box-shadow: 0 0 34px rgba(255, 0, 140, 0.6); }
button:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
button[disabled] { opacity: 0.6; cursor: wait; }

.status { min-height: 1.5em; margin: 0.75rem 0 0; }
.status.error { color: var(--error); }
.status.done { font: 800 1.6rem/1.15 var(--stencil); color: var(--white); text-transform: uppercase; letter-spacing: 0.02em; margin: 0; }

.crate.sent label, .crate.sent input, .crate.sent button { display: none; }

.fine { color: rgba(224, 207, 163, 0.65); font-size: 0.9375rem; margin-top: 1.1rem; }

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