.survey-flyer {
  display: block;
  position: relative;
  width: min(100%, 370px);
  margin-top: 32px;
  overflow: hidden;
  border: 2px solid var(--gold);
  background: #000;
  box-shadow: 10px 10px 0 var(--pink);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.survey-flyer:hover {
  transform: translateY(-4px);
  box-shadow: 10px 14px 0 var(--pink);
}

.survey-flyer:focus-visible {
  outline: 4px solid #fff;
  outline-offset: 4px;
}

.survey-flyer img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 983;
  object-fit: contain;
}

.survey-flyer span {
  display: block;
  padding: 11px 14px;
  background: var(--gold);
  color: var(--plum);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-align: center;
}

legend {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
}

legend span {
  margin-right: 0;
}

legend b {
  display: block;
  min-width: 0;
  font: inherit;
  text-align: left;
}

@media (max-width: 980px) {
  .survey-flyer {
    width: min(100%, 460px);
    margin: 32px auto 0;
  }
}

@media (max-width: 620px) {
  .survey-flyer {
    width: 100%;
    margin-top: 26px;
    box-shadow: 7px 7px 0 var(--pink);
  }

  legend {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    max-width: 100%;
  }

  legend span {
    width: 34px;
    height: 34px;
  }
}
