/**
 * Radixia components — the shared, brand-carrying primitives.
 *
 * Depends on `tokens.css` and assumes `base.css` for typography.
 *
 * The button is the piece most often reimplemented and most often got wrong, so
 * it is here in full: the button radius (`--radius-btn`/3px, against `--radius`/
 * 10px for cards — deliberately different), the 7px leading dot, the 44px
 * minimum touch target, and the theme-independent CTA background that keeps
 * white text above AA in dark mode.
 */

/* ---------- Buttons ---------- */
/* Label/status/button register (Brand Guidelines v1.7, p.26): Inter SemiBold,
   uppercase, tracking +20. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  padding: 0.78em 1.5em;
  border-radius: var(--radius-btn);
  /* guarantees a 44px touch target on every button/CTA (WCAG 2.5.5) */
  min-height: 44px;
  box-sizing: border-box;
  /* --accent-btn, not --accent: white on --accent drops to 4.08:1 in dark
     mode, under AA. This token is theme-independent for exactly that reason. */
  background: var(--accent-btn);
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background var(--dur-1) var(--ease-out),
    color var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-out);
}
.btn:active {
  transform: translateY(1px);
}
/* The leading dot — the signature detail that makes a Radixia button
   recognisable. `currentColor` so it inherits through every variant. */
.btn::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
  flex: none;
}
.btn:hover {
  background: var(--accent-btn-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  border-radius: var(--radius-btn);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--onDark {
  background: var(--accent-btn);
}
.btn--onDark:hover {
  background: var(--accent-btn-hover);
}
