/* ==========================================================================
   buttons.css
   Copper for the main action, glass for the second one.
   Reads every value from tokens.css.
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height);
  padding: 0 var(--space-5);
  border: 1px solid transparent; /* becomes visible in Windows high-contrast mode */
  border-radius: var(--radius-control);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-button);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--press-duration) var(--ease-out),
    background-color var(--press-duration) var(--ease-out),
    border-color var(--press-duration) var(--ease-out),
    filter var(--press-duration) var(--ease-out);
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button--primary {
  background: var(--copper-sheen);
  color: var(--color-night-deep);
  box-shadow: 0 14px 32px -16px var(--copper-glow);
}

.button--primary:hover {
  filter: brightness(1.06) saturate(1.05);
}

.button--secondary {
  background: var(--glass-fill);
  border-color: var(--glass-edge);
  color: var(--color-starlight);
}

.button--secondary:hover {
  background: var(--glass-fill-hover);
  border-color: var(--glass-edge-strong);
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }

  .button:active {
    transform: none;
  }
}
