/* ==========================================================================
   COMPONENTS · BUTTON — restrained, letterpress. The primary action is SOLID
   INK on paper, not the rubric: the sacred spot stays reserved for identity and
   links, so a CTA is premium-by-restraint, pressed into the stock rather than
   glowing. Grotesque label; the active state debosses.
   ========================================================================== */

.op-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.6em 1.15em;
  font-family: var(--font-furniture);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  line-height: 1;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition-ink), transform var(--duration-instant) var(--ease-standard);
  -webkit-tap-highlight-color: transparent;
}
.op-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.op-btn:active { transform: translateY(0.5px); }

/* — Primary: solid ink — */
.op-btn--primary {
  background: var(--surface-inverse);
  color: var(--text-inverse);
  border-color: var(--surface-inverse);
}
.op-btn--primary:hover { background: var(--surface-inverse-hover); border-color: transparent; }
.op-btn--primary:active { box-shadow: var(--shadow-deboss); }

/* — Secondary: paper field, ink hairline — */
.op-btn--secondary {
  background: var(--surface-raised);
  color: var(--text);
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-emboss);
}
.op-btn--secondary:hover { border-color: var(--text); background: var(--surface-raised); }
.op-btn--secondary:active { box-shadow: var(--shadow-deboss); }

/* — Quiet / ghost: text with an underline-on-hover — */
.op-btn--quiet {
  padding-inline: 0.4em;
  color: var(--text-secondary);
}
.op-btn--quiet:hover { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.18em; }

/* — Sizes — */
.op-btn--sm { padding: 0.42em 0.8em; font-size: var(--text-xs); }
.op-btn--lg { padding: 0.78em 1.5em; font-size: var(--text-base); }

.op-btn--block { display: flex; inline-size: 100%; }

.op-btn:disabled,
.op-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

/* A trailing mono affordance (price, count) inside a button */
.op-btn__meta {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums lining-nums;
  opacity: 0.85;
}
