/* Support the site: the shirt, in a scanner frame. On the help sheet (index.html) and the
   About page (about.html), so it carries all its own type and spacing. */

.support {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(118px, 36%, 210px);
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  padding: 18px 18px 18px 20px;
  border: 1px solid var(--hb-line);
  border-radius: 10px;
  /* an orange edge down the left, like the playing bar on the strip */
  box-shadow: inset 3px 0 0 var(--hb-accent);
  /* a dot grid, lit orange behind the shirt */
  background:
    radial-gradient(circle at 82% 50%, rgb(255 107 53 / 0.2), transparent 55%),
    radial-gradient(circle, rgb(236 234 228 / 0.07) 1px, transparent 1.5px) 0 0 / 12px 12px,
    var(--hb-panel);
}
.support__copy {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.support .support__title {
  margin: 0;
  font: 500 10.5px/1 var(--hb-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hb-accent);
}
.support__copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--hb-ink-2);
}
.support .support__fine {
  font-size: 12.5px;
  color: var(--hb-ink-3);
}
.support__buy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--hb-accent);
  font: 600 12px/1 var(--hb-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--hb-accent-ink);
  white-space: nowrap;
  box-shadow: 0 0 0 0 rgb(255 107 53 / 0.5);
  transition: background 0.15s, box-shadow 0.25s, transform 0.15s;
}
.support__buy:hover {
  background: color-mix(in srgb, var(--hb-accent) 86%, white);
  box-shadow: 0 0 22px 2px rgb(255 107 53 / 0.45);
  transform: translateY(-1px);
}
.support__buy svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support__merch {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px 10px 10px;
  text-decoration: none;
  /* corner brackets, a viewfinder round the shirt */
  --corner: linear-gradient(var(--hb-accent), var(--hb-accent));
  background:
    var(--corner) top left / 12px 2px no-repeat,
    var(--corner) top left / 2px 12px no-repeat,
    var(--corner) top right / 12px 2px no-repeat,
    var(--corner) top right / 2px 12px no-repeat,
    var(--corner) bottom left / 12px 2px no-repeat,
    var(--corner) bottom left / 2px 12px no-repeat,
    var(--corner) bottom right / 12px 2px no-repeat,
    var(--corner) bottom right / 2px 12px no-repeat;
}
.support__tag {
  position: absolute;
  top: 6px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  font: 500 8.5px/1 var(--hb-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hb-ink-4);
}
.support__tag span {
  color: var(--hb-accent);
}
.support__merch img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgb(0 0 0 / 0.55)) drop-shadow(0 0 16px rgb(255 107 53 / 0.18));
  animation: hb-hover 5s ease-in-out infinite;
  transition: transform 0.35s var(--hb-ease), filter 0.35s;
}
.support__merch:hover img {
  transform: scale(1.05) rotate(-2deg);
  filter: drop-shadow(0 12px 20px rgb(0 0 0 / 0.6)) drop-shadow(0 0 26px rgb(255 107 53 / 0.4));
}
@keyframes hb-hover {
  50% {
    translate: 0 -5px;
  }
}
/* a scan line that sweeps down over the shirt */
.support__scan {
  position: absolute;
  top: 22px;
  left: 6px;
  right: 6px;
  z-index: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hb-accent), transparent);
  box-shadow: 0 0 12px 2px rgb(255 107 53 / 0.55);
  opacity: 0.8;
  pointer-events: none;
  animation: hb-scan 3.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes hb-scan {
  0% {
    top: 22px;
    opacity: 0;
  }
  10%,
  80% {
    opacity: 0.8;
  }
  100% {
    top: calc(100% - 20px);
    opacity: 0;
  }
}
/* sixteen steps under the shirt, a playhead running across them as on the logo */
.support__steps {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 2px;
  width: 100%;
}
.support__steps i {
  --cell: var(--hb-ink-5);
  height: 5px;
  background: var(--cell);
  animation: hb-step 2s steps(1) infinite;
  animation-delay: calc(var(--i) * 0.125s);
}
.support__steps i:nth-child(4n + 1) {
  --cell: var(--hb-ink-3);
}
@keyframes hb-step {
  0% {
    background: var(--hb-accent);
    box-shadow: 0 0 6px var(--hb-accent);
  }
  6.25%,
  100% {
    background: var(--cell);
    box-shadow: none;
  }
}
/* a phone: the shirt on top, the words under it */
@media (max-width: 480px) {
  .support {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 16px 16px 18px 18px;
    background:
      radial-gradient(circle at 50% 22%, rgb(255 107 53 / 0.2), transparent 50%),
      radial-gradient(circle, rgb(236 234 228 / 0.07) 1px, transparent 1.5px) 0 0 / 12px 12px,
      var(--hb-panel);
  }
  .support__merch {
    order: -1;
    justify-self: center;
    width: min(210px, 70%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .support__merch img,
  .support__scan,
  .support__steps i {
    animation: none;
  }
  .support__scan {
    display: none;
  }
}
