/* Original Signal Shelter art direction. */
body {
  background-color: #102723;
  background-image: radial-gradient(
    ellipse at 82% 14%,
    #234938 0,
    transparent 44rem
  );
}
.brand img {
  width: 78px;
  height: auto;
}
.bar {
  min-height: 77px;
}
.bar .brand {
  gap: 0.4rem;
}
.hero {
  padding-block: clamp(2.4rem, 5vw, 5.1rem);
  grid-template-columns: 0.93fr 1.07fr;
}
.herocopy h1 {
  font-family:
    "Bricolage Grotesque", "Arial Rounded MT Bold", system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.035em;
  font-size: clamp(2.65rem, 4.7vw, 4.6rem);
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: 2px 3px #0b1818;
}
.herocopy em {
  color: #ffc265;
}
.lead {
  max-width: 40ch;
}
.primary,
.nav-cta {
  border-radius: 8px;
  box-shadow: 0 3px 0 #78562c;
}
.quiet {
  border-color: #748879;
  border-radius: 8px;
}
.art {
  position: relative;
  transform: rotate(1deg);
  padding: 0;
  border: 3px solid #0c201e;
  border-radius: 24px 24px 22px 8px;
  overflow: hidden;
  box-shadow: 5px 6px 0 #efb35a;
}
.art img {
  aspect-ratio: auto;
  border-radius: 0;
}
.art figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  background: #ffe4aa;
  color: #202a24;
  border-radius: 0 12px 0 0;
  font-weight: 750;
  padding: 0.4rem 0.9rem;
}
.preset-rack {
  background: #feebc9;
  color: #252b26;
  border: 3px solid #182a24;
  border-radius: 26px;
  padding: clamp(1.25rem, 3.8vw, 3.25rem);
  box-shadow: 6px 7px 0 #a97740;
}
.preset-rack .kicker {
  color: #755025;
}
.kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 217px), 1fr));
  gap: 0.8rem;
}
.kit-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  background: #fffae9;
  border: 2px solid #415049;
  border-top: 6px solid #33957c;
  border-radius: 12px;
  padding: 1rem;
}
.kit-card:nth-child(3n + 2) {
  border-top-color: #c45e43;
}
.kit-card:nth-child(3n) {
  border-top-color: #bd8b27;
}
.kit-card h3 {
  margin: 0.15rem 0;
}
.kit-card p {
  margin: 0.35rem 0 1.1rem;
  line-height: 1.4;
}
.kit-card .kit-links {
  margin-top: auto;
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}
.kit-links a {
  color: #214b40;
  font-weight: 700;
  text-underline-offset: 3px;
}
.kit-links .download {
  border-radius: 5px;
  background: #245b48;
  color: white;
  padding: 0.36rem 0.65rem;
  text-decoration: none;
}
#presets {
  border-top: 0;
  padding-top: 0.5rem;
}
.room-link {
  color: #ffdb98;
}
.guide-intro h1 {
  color: #ffd18a;
  letter-spacing: -0.035em;
  font-size: clamp(2.35rem, 4.2vw, 3.75rem);
  line-height: 1.05;
  text-wrap: balance;
}
.guide-intro > p {
  max-width: 76ch;
}
.shelter-map {
  margin: 1.5rem auto 0.5rem;
  position: relative;
  background: #4a1938;
  border: 4px solid #33172a;
  border-radius: 20px;
  box-shadow: 4px 5px 0 #bb8145;
  overflow: hidden;
  max-width: 780px;
}
.map-art {
  display: block;
  width: 100%;
  height: auto;
}
.shelter-map nav {
  position: absolute;
  /* The top of the cutaway is landscape. The six rooms begin below it. */
  inset: 15.5% 1% 1%;
  display: grid;
  grid-template: 1fr 1fr / repeat(3, 1fr);
  gap: 2% 1.45%;
}
.map-room {
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: start;
  padding: 0.4rem;
  min-width: 0;
  color: white;
  text-align: left;
  border-radius: 6px;
  transition: background-color 0.16s;
}
.map-room span,
.map-room strong {
  color: #fff3cf;
  background: #142b26;
  padding: 0.04rem 0.4rem;
  border-radius: 3px;
}
.map-room span {
  font-size: 0.78rem;
}
.map-room[aria-current="step"] {
  border-color: #ffdd81;
  box-shadow: inset 0 0 0 2px #302e21;
}
.map-room:hover {
  background-color: #ffffff20;
}
.map-room:focus-visible {
  outline-offset: -5px;
}
.crew-panel {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 0.8rem 0 1.6rem;
  border: 2px solid #29493d;
  border-radius: 13px;
  background: #ffedc6;
  color: #253127;
  padding: 0.8rem;
  animation: arrive 0.22s ease-out;
}
.crew-panel img {
  flex: 0 0 auto;
  border: 2px solid #40243a;
  width: clamp(64px, 9vw, 100px);
  height: auto;
  border-radius: 11px;
}
.crew-panel p {
  margin: 0.15rem 0;
}
.crew-panel details {
  border: 0;
  font-size: 0.9rem;
}
.crew-panel summary {
  color: #285d48;
}
@keyframes arrive {
  from {
    opacity: 0.4;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
.field [hidden] {
  display: none;
}
.field select,
.field textarea {
  background-color: #142922;
}
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .brand img {
    width: 59px;
  }
  .desk aside {
    order: 2;
  }
  .map-room {
    padding: 0.2rem;
  }
  .map-room span {
    font-size: 0.74rem;
  }
  .guide-intro {
    margin-bottom: 0.5rem;
  }
  .preset-rack {
    border-radius: 15px;
  }
}
@media (max-width: 440px) {
  .bar .brand span {
    font-size: 0.91rem;
  }
  .bar nav {
    gap: 0.55rem;
  }
  .brand img {
    width: 52px;
  }
  .map-room strong {
    font-size: 0.85rem;
  }
  .map-room span {
    font-size: 0.7rem;
  }
  .crew-panel {
    align-items: start;
    gap: 0.6rem;
  }
  .crew-panel img {
    width: 58px;
  }
  .herocopy h1 br {
    display: none;
  }
}

.map-room {
  position: relative;
}
.map-keeper {
  position: absolute;
  right: 0.4rem;
  top: 0.4rem;
  width: clamp(23px, 3.5vw, 44px);
  border-radius: 50%;
  border: 2px solid #ffe29a;
  box-shadow: 1px 2px 0 #40243a;
}

.crew-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 155px;
  padding-top: 1.6rem;
  padding-bottom: 1.2rem;
  align-items: end;
}
.crew-panel img.room-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  border: 0;
  border-radius: 0;
}
.crew-panel > div {
  background: #fff0cf;
  padding: 0.55rem 0.8rem;
  border-radius: 10px 10px 10px 2px;
  border: 2px solid #43273b;
  max-width: 51ch;
}
.crew-panel img:not(.room-backdrop) {
  background: #ffe8b1;
  box-shadow: 2px 3px #43273b;
}
@media (max-width: 510px) {
  .crew-panel {
    padding-inline: 0.45rem;
    gap: 0.35rem;
  }
  .crew-panel > div {
    padding: 0.35rem 0.55rem;
  }
}

.entry {
  padding-block: clamp(2.3rem, 5vw, 4.6rem);
}
.entry > h1,
.connect-page h1 {
  font-size: clamp(2.25rem, 4.8vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 1.03;
  text-wrap: balance;
  margin: 0 0 0.8rem;
}
.entry > p {
  max-width: 65ch;
  color: var(--muted);
  font-size: 1.12rem;
}
.entry-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.8rem, 2vw, 1.6rem);
  margin-top: 1.5rem;
}
.entry-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 3px solid #0b211d;
  border-radius: 20px;
  background: #ffebbf;
  color: #203c33;
  text-decoration: none;
  box-shadow: 4px 5px #ba8445;
}
.entry-card:nth-child(2) {
  background: #d5f2df;
  box-shadow: 4px 5px #5d9b7c;
}
.entry-card:hover {
  text-decoration: none;
}
.entry-card:hover strong {
  text-decoration: underline;
}
.entry-card > img {
  width: 100%;
  height: clamp(125px, 13vw, 196px);
  object-fit: cover;
}
.entry-card img[src$='dispatch.webp'] {
  object-position: 52% 12%;
}
.entry-card > div {
  padding: clamp(1rem, 2vw, 1.5rem);
}
.entry-card h2 {
  font-size: clamp(1.55rem, 2.9vw, 2.6rem);
  letter-spacing: -0.035em;
  margin: 0;
}
.entry-card p {
  margin: 0.65rem 0 1rem;
}
.entry-card strong {
  display: inline-block;
  background: #214c3e;
  color: #fff5d6;
  padding: 0.45rem 0.8rem;
  border-radius: 7px;
}
.interview,
.connect-page {
  max-width: 1180px;
  padding-block: clamp(1.3rem, 3.2vw, 3rem);
}
.question-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.5fr);
  align-items: start;
  gap: clamp(1rem, 3vw, 3rem);
}
.scene {
  position: relative;
  border: 3px solid #15261e;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 3px 4px #bf8b4a;
  background: #ffeac5;
}
.scene > img {
  display: block;
  width: 100%;
  height: auto;
}
.scene-caption {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem;
  color: #18392b;
  font-weight: 700;
}
.speaker {
  width: clamp(44px, 4.8vw, 70px);
  height: auto;
  border: 2px solid #4b3044;
  border-radius: 12px;
}
.question-content {
  min-width: 0;
}
.question-content h1 {
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 0.7rem 0;
  text-wrap: balance;
}
.question-content progress {
  max-width: 100%;
  width: 100%;
  height: 0.5rem;
  accent-color: #edba69;
}
.question-tip {
  color: var(--muted);
}
.answer-group {
  border: 0;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.answer-group legend,
.custom-answer label,
.draft-tools summary {
  font-weight: 700;
}
.answer-group legend {
  padding: 0 0 0.6rem;
}
.answer-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem;
  border: 1px solid #607769;
  border-radius: 8px;
  cursor: pointer;
  background: #1c382f;
}
.answer-option:has(:checked) {
  border-color: var(--amber);
  background: #364b34;
}
.answer-option input {
  accent-color: var(--amber);
  flex: none;
}
.custom-answer {
  grid-column: 1/-1;
  margin-top: 0.6rem;
}
.custom-answer textarea,
.connect-page select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  border-radius: 7px;
  background: #152c25;
  color: var(--ink);
  padding: 0.65rem;
  border: 1px solid #728676;
  font: inherit;
}
.custom-answer textarea {
  resize: vertical;
}
.draft-tools,
.model-help {
  margin-top: 1.5rem;
}
.model-help a,
.connect-page a {
  color: var(--amber);
}
.draft-tools label {
  display: block;
  margin-top: 1rem;
}
.interview #screen > details,
.interview #screen > h3,
.interview #screen > p,
.interview #screen > button {
  margin-top: 1rem;
}
.connect-page {
  max-width: 900px;
}
.connect-page h2 {
  font-size: 1.8rem;
}
.connect-page details {
  padding: 0.8rem 0;
}
@media (max-width: 720px) {
  .entry-options,
  .question-layout {
    grid-template-columns: 1fr;
  }
  .entry-card {
    grid-template: auto / 30% 1fr;
  }
  .entry-card > img {
    height: 100%;
    min-height: 120px;
  }
  .entry-card > div {
    padding: 0.9rem;
  }
  .entry-card p {
    margin: 0.4rem 0 0.6rem;
  }
  .scene {
    display: flex;
    align-items: stretch;
  }
  .scene > img {
    width: 40%;
    height: 85px;
    object-fit: cover;
  }
  .scene-caption {
    flex: 1;
  }
  .speaker {
    width: 45px;
  }
  .entry-options {
    gap: 0.8rem;
  }
  .bar nav a[href="/guide?start=1"] {
    display: none;
  }
}
@media (max-width: 480px) {
  .answer-group {
    grid-template-columns: 1fr;
  }
  .entry-card h2 {
    font-size: 1.45rem;
  }
  .entry-card p {
    font-size: 0.95rem;
  }
  .bar nav {
    font-size: 0.85rem;
    gap: 0.5rem;
  }
  .bar {
    gap: 0.4rem;
  }
}
