/* ==========================================================================
   BUTTONS
   Jost Medium (brand book: "Medium for buttons"), near-square corners, and
   a confident colour shift on hover rather than a bounce.
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-block-size: 3.125rem;
  padding: 0.85rem 1.6rem;
  font-size: var(--step-small);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition:
    background-color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    transform var(--dur-fast) ease;
}

.btn:active {
  transform: translate3d(0, 1px, 0);
}

.btn--sm {
  min-block-size: 2.75rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.875rem;
}

/* Copper: the single highest-intent action. The fill is the deepened
   terracotta so its white label clears 4.5:1. */
.btn--copper {
  background-color: var(--copper-strong);
  border-color: var(--copper-strong);
  color: #fff;
}

.btn--copper:hover,
.btn--copper:focus-visible {
  background-color: #8E4623;
  border-color: #8E4623;
}

/* Cream: primary action on the forest ground. */
.btn--cream {
  background-color: var(--cream);
  border-color: var(--cream);
  color: var(--forest);
}

.btn--cream:hover,
.btn--cream:focus-visible {
  background-color: #fff;
  border-color: #fff;
}

/* Forest: primary action on cream. */
.btn--forest {
  background-color: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

.btn--forest:hover,
.btn--forest:focus-visible {
  background-color: var(--forest-deep);
  border-color: var(--forest-deep);
}

/* Ghost on cream. */
.btn--ghost {
  border-color: var(--forest);
  color: var(--forest);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background-color: var(--forest);
  color: var(--cream);
}

/* Ghost on forest. */
.btn--ghost-light {
  border-color: rgba(var(--cream-rgb), 0.55);
  color: var(--cream);
}

.btn--ghost-light:hover,
.btn--ghost-light:focus-visible {
  border-color: var(--cream);
  background-color: rgba(var(--cream-rgb), 0.08);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Mobile: actions centre, and stretch to a comfortable tap width. */
@media (max-width: 47.99rem) {
  .btn-row {
    justify-content: center;
  }
}
