/* --- Buttons ------------------------------------------------------------ */

/* Sizing follows the touch-target guidance both platform vendors publish: 44px
 * minimum (Apple HIG), 48px preferred (Material). `min-height` rather than a
 * fixed height so a label that wraps grows the button instead of spilling out
 * of it. Horizontal padding is roughly twice the font size, which is the
 * conventional ratio for a button that reads as pressable rather than cramped. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-8);
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
/* Motion is decoration here; the colour and shadow changes carry the same
 * information for anyone who has asked the OS to stop moving things. */
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: box-shadow 0.18s ease, background-color 0.18s ease;
  }
  .btn:hover,
  .btn:active {
    transform: none;
  }
}

/* White on her pink clears AA at this weight and size; the pink is a fill here,
 * not text. The shadow is tinted with the brand hue rather than neutral grey —
 * a grey drop shadow under a pink button is what makes it look pasted on. */
.btn-primary {
  background: var(--pink);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(255, 111, 174, 0.4);
}
.btn-primary:hover {
  background: #ff5aa1;
  box-shadow: 0 8px 22px rgba(255, 111, 174, 0.48);
}

.btn-secondary {
  background: var(--white);
  color: var(--teal-text);
  border-color: var(--teal);
}
.btn-secondary:hover {
  background: var(--mint);
  box-shadow: 0 6px 18px rgba(46, 196, 199, 0.24);
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
