/* =============================================================================
   The intake.

   Same materials as the site: Portland concrete, canal ink, one hi-vis, rust
   as ink. Square corners. Mono only next to a number.

   THE AVATAR. PunchBug is a whole car, not a face in a circle. His container
   is sized to the artwork, nothing clips him, and the animation is never cut
   off at the bottom. Drop was cropped on purpose - this one is not.
   ========================================================================== */

:root {
  --ink: #121a18;
  --ink-soft: #1d2a26;
  --hi-vis: #d8f24c;
  --hi-vis-deep: #b6d02f;
  --rust: #a8482a;
  --rust-deep: #8c3a20;
  --concrete: #e3e4dc;
  --concrete-recessed: #d7d9ce;
  --paper: #f6f3ea;
  --steel: #8a918c;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, Consolas, monospace;
  --edge: clamp(18px, 4.2vw, 64px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; }

.vl-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--hi-vis);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 60;
}
.vl-skip:focus { left: 0; }

/* ---------------------------------------------------------------- the head */

.vl-top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--edge);
  background: var(--ink);
  color: var(--paper);
}
.vl-top__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.vl-top__name span { color: var(--hi-vis); }
.vl-top__meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(246 243 234 / 0.66);
}
.vl-top__link {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid var(--hi-vis);
  padding-bottom: 2px;
}

/* --------------------------------------------------------------- the stage */

.vl-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.6rem);
  padding: clamp(1.2rem, 3vw, 2.4rem) var(--edge) clamp(3rem, 7vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .vl-stage { grid-template-columns: 1fr; }
}

.vl-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  padding: clamp(1rem, 2.4vw, 1.6rem);
}
.vl-card--dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.vl-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.6rem;
}
.vl-card--dark .vl-label { color: rgb(246 243 234 / 0.6); }

.vl-h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 0.95;
  margin: 0 0 0.5rem;
}

/* ------------------------------------------------------------- the mascot */

/* Nothing clips PunchBug. The box is as big as the artwork, and the
   overflow is left visible on purpose. */
.vl-bug {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  overflow: visible;
}
.vl-bug svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.vl-stagebox {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0 1rem;
}

.vl-state {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--hi-vis);
  padding: 0.35rem 0.7rem;
  border: 2px solid var(--ink);
}
.vl-state[data-state="idle"] { background: var(--concrete-recessed); }
.vl-state[data-state="error"] { background: var(--rust); color: var(--paper); }
.vl-state[data-state="thinking"] { background: var(--paper); }

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

.vl-btn {
  appearance: none;
  border: 3px solid var(--ink);
  background: var(--hi-vis);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  padding: 0.8rem 1.4rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.2rem;
}
.vl-btn:hover { background: var(--ink); color: var(--hi-vis); }
.vl-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.vl-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.vl-btn--ghost {
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  padding: 0.55rem 0.9rem;
  border-width: 2px;
}
.vl-btn--ghost:hover { background: var(--ink); color: var(--hi-vis); }
.vl-card--dark .vl-btn--ghost { border-color: var(--paper); color: var(--paper); }
.vl-card--dark .vl-btn--ghost:hover { background: var(--hi-vis); color: var(--ink); }

.vl-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }

/* -------------------------------------------------------- the conversation */

.vl-talk {
  max-height: 22rem;
  overflow-y: auto;
  border-top: 1px solid rgb(18 26 24 / 0.2);
  border-bottom: 1px solid rgb(18 26 24 / 0.2);
  padding: 0.8rem 0;
  margin: 0.9rem 0;
  min-height: 8rem;
}
.vl-talk p { margin: 0 0 0.55rem; }
.vl-talk p:last-child { margin-bottom: 0; }
.vl-talk__who {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  display: block;
}
.vl-talk__me { color: var(--steel); }
.vl-talk__me .vl-talk__who { color: var(--steel); }
.vl-talk__empty { color: var(--steel); font-style: italic; }

/* -------------------------------------------------------------- the facts */

.vl-facts { list-style: none; margin: 0; padding: 0; }
.vl-facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgb(18 26 24 / 0.14);
  font-size: 0.95rem;
}
.vl-facts li:last-child { border-bottom: 0; }
.vl-facts b {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.vl-facts span { font-family: var(--mono); font-size: 0.86rem; text-align: right; }
.vl-facts .is-empty span { color: rgb(18 26 24 / 0.32); }

/* -------------------------------------------------------------- the photos */

.vl-shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.7rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}
.vl-shot {
  position: relative;
  border: 3px solid var(--ink);
  background: var(--concrete-recessed);
  margin: 0;
}
.vl-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.vl-shot figcaption {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.4rem;
  background: var(--ink);
  color: var(--hi-vis);
}
.vl-shot--vin figcaption { background: var(--rust); color: var(--paper); }
.vl-shot--working {
  border-style: dashed;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------------- notices */

.vl-note {
  font-size: 0.9rem;
  color: var(--steel);
  margin: 0.7rem 0 0;
}
.vl-note--bad { color: var(--rust-deep); font-weight: 600; }
.vl-note--good { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------- the gate */

.vl-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--edge);
}
.vl-gate__box {
  background: var(--paper);
  border: 3px solid var(--ink);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  max-width: 26rem;
  width: 100%;
}
.vl-gate input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid rgb(18 26 24 / 0.4);
  background: transparent;
  font-family: var(--mono);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  padding: 0.5rem 0.1rem;
  color: var(--ink);
}
.vl-gate input:focus { outline: none; border-bottom-color: var(--ink); }

/* ------------------------------------------------------------ the published */

.vl-done {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--edge);
}
.vl-done h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 0.9;
  margin: 0 0 0.6rem;
}
.vl-done p { margin: 0 auto 1.2rem; max-width: 34rem; }
.vl-done__link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
  text-decoration: none;
}

/* ----------------------------------------------------------------- the foot */

.vl-foot {
  background: var(--ink);
  color: var(--paper);
  padding: 1.4rem var(--edge);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(246 243 234 / 0.6);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
