/* Adapted from Uiverse.io by Navarog21: brand colors and reusable classes. */
.button {
  --button-edge: #ef238b;
  --button-light: #ff80c0;
  --button-glow: #ef238b33;
  --button-active: #e5c586;
  position: relative;
  isolation: isolate;
  justify-content: center;
  gap: 0;
  min-height: 56px;
  padding: 17px 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f2eee9;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .025em;
  text-align: center;
  transition: transform .18s ease, color .18s ease;
  backdrop-filter: none;
}
.hero-buttons .button { border-radius: 0; }
.button-outline {
  --button-edge: #c5a46d;
  --button-light: #f0d49d;
  --button-glow: #c5a46d26;
  --button-active: #ff80c0;
  color: #f0d49d;
}
.button .button-frame {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  overflow: hidden;
  border: 4px double var(--button-edge);
  background: #101014c9;
  box-shadow: inset 0 0 18px var(--button-glow);
  clip-path: polygon(12% 0, 88% 0, 100% 30%, 100% 70%, 88% 100%, 12% 100%, 0 70%, 0 30%);
  transition: border-color .2s, box-shadow .3s;
}
.button .button-corner {
  position: absolute;
  display: block;
  width: 42px;
  height: 42px;
  background: var(--button-edge);
  box-shadow: inset 1px 1px 8px var(--button-light);
  transform: rotate(45deg);
  transition: transform .2s, background .2s;
}
.corner-top-left { left: -26px; top: -24px; }
.corner-top-right { right: -26px; top: -24px; }
.corner-bottom-right { right: -26px; bottom: -24px; }
.corner-bottom-left { left: -26px; bottom: -24px; }
.button .button-arrow {
  position: absolute;
  top: calc(50% - 8px);
  width: 12px;
  height: 16px;
  background: var(--button-edge);
  pointer-events: none;
  transition: left .3s ease, right .3s ease, background .2s;
}
.arrow-left { left: -5px; clip-path: polygon(100% 0, 100% 100%, 0 50%); }
.arrow-right { right: -5px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.button:hover, .button:focus-visible {
  background: transparent;
  color: #fff;
  transform: translateY(-1px);
}
.button:is(:hover, :focus-visible) .button-frame {
  border-color: var(--button-active);
  box-shadow: inset 0 0 28px var(--button-glow);
}
.button:is(:hover, :focus-visible) .button-corner {
  background: var(--button-active);
  transform: scale(1.2) rotate(45deg);
  animation: ky-corner-light .5s ease both;
}
.button:is(:hover, :focus-visible) .corner-top-right { animation-delay: .08s; }
.button:is(:hover, :focus-visible) .corner-bottom-right { animation-delay: .16s; }
.button:is(:hover, :focus-visible) .corner-bottom-left { animation-delay: .24s; }
.button:is(:hover, :focus-visible) .button-arrow { background: var(--button-active); }
.button:is(:hover, :focus-visible) .arrow-left { left: calc(100% - 7px); }
.button:is(:hover, :focus-visible) .arrow-right { right: calc(100% - 7px); }
.button:active { transform: scale(.98); }
.button:focus-visible { outline: 2px solid var(--button-active); outline-offset: 5px; }
@keyframes ky-corner-light {
  0% { box-shadow: 0 0 1px var(--button-light); }
  50% { box-shadow: 0 0 14px var(--button-active); }
  100% { box-shadow: inset 1px 1px 8px var(--button-light); }
}
@media (max-width: 700px) {
  .hero-buttons > .button { min-height: 54px; padding-inline: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .button * { animation: none !important; transition: none !important; }
  .button:hover, .button:active, .button:focus-visible { transform: none; }
}
