/* Shared button system. Button appearance belongs here; page styles only arrange buttons. */
:root {
  --button-height: 3.6rem;
  --button-radius: .5rem;
  --button-font-size: 1rem;
  --button-padding-inline: 1.5rem;
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--button-height);
  margin: 0;
  padding: 0 var(--button-padding-inline);
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  background: linear-gradient(135deg, #35113d, #55205a);
  color: #fff;
  box-shadow: 0 10px 22px rgba(71, 29, 77, .16);
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--button-font-size);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  box-shadow: 0 12px 26px rgba(71, 29, 77, .21);
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 3px solid rgba(63, 126, 232, .34);
  outline-offset: 3px;
}

.button:active {
  box-shadow: 0 6px 14px rgba(71, 29, 77, .16);
  transform: translateY(0);
}

.button--secondary {
  border-color: rgba(18, 20, 28, .17);
  background: transparent;
  color: #303643;
  box-shadow: none;
}

.button--secondary:hover {
  border-color: rgba(18, 20, 28, .3);
  background: rgba(255, 255, 255, .62);
  box-shadow: none;
}

.button--tertiary {
  border-color: transparent;
  background: rgba(16, 23, 34, .07);
  color: #24364a;
  box-shadow: none;
}

.button--tertiary:hover {
  background: rgba(16, 23, 34, .11);
  box-shadow: none;
}

.button--light {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .95);
  color: #101722;
  box-shadow: 0 12px 28px rgba(7, 10, 16, .2);
}

.button--light:hover {
  background: #fff;
  box-shadow: 0 14px 32px rgba(7, 10, 16, .24);
}

.button--danger {
  background: #8a184f;
  color: #fff;
  box-shadow: 0 10px 22px rgba(112, 20, 65, .18);
}

.button--compact {
  --button-height: 2rem;
  --button-font-size: .8rem;
  --button-padding-inline: .7rem;
  --button-radius: .4rem;
}

.button--block {
  width: 100%;
}

.button--fit {
  justify-self: start;
}

.button:disabled,
.button[aria-disabled="true"] {
  border-color: rgba(99, 111, 124, .12);
  background: rgba(99, 111, 124, .1);
  color: rgba(36, 54, 74, .56);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

@media (max-width: 640px) {
  :root {
    --button-height: 3.5rem;
    --button-padding-inline: 1.3rem;
  }
}
