:root {
  --ticket-banner-height: 52px;
}

.ticket-banner {
  position: relative;
  z-index: 20;
  height: var(--ticket-banner-height);
  overflow: hidden;
  background: var(--acid);
  color: var(--ink);
}

.ticket-banner-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 clamp(20px, 3vw, 46px);
  gap: clamp(20px, 4vw, 68px);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.ticket-banner-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticket-pulse {
  position: relative;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.ticket-pulse::after {
  position: absolute;
  inset: 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  animation: ticket-pulse 2.4s ease-out infinite;
  content: "";
}

@keyframes ticket-pulse {
  0% {
    opacity: 0.72;
    transform: scale(1);
  }

  55%,
  100% {
    opacity: 0;
    transform: scale(2.7);
  }
}

.ticket-banner-event {
  justify-self: center;
  opacity: 0.76;
}

.ticket-banner-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 3px;
  border-bottom: 2px solid currentColor;
}

.ticket-banner-cta span {
  font-size: 16px;
  transition: transform 160ms ease;
}

.ticket-banner-link:hover .ticket-banner-cta span,
.ticket-banner-link:focus-visible .ticket-banner-cta span {
  transform: translate(3px, -3px);
}

.ticket-banner-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: -5px;
}

.ticket-banner + .hero {
  min-height: calc(100svh - var(--ticket-banner-height));
}

@media (max-width: 760px) {
  :root {
    --ticket-banner-height: 70px;
  }

  .ticket-banner-link {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 5px 18px;
    padding-inline: 20px;
    font-size: 10px;
  }

  .ticket-banner-kicker {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
  }

  .ticket-pulse {
    width: 6px;
    height: 6px;
  }

  .ticket-banner-event {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    justify-self: start;
    letter-spacing: 0.07em;
  }

  .ticket-banner-cta {
    grid-column: 2;
    grid-row: 1 / span 2;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticket-banner-cta span {
    transition: none;
  }
}
