/* Basecoat 1.1.0, Nova outline button. Shared by the homepage and catalog. */
:root {
  --btn-face: #fff;
  --btn-ink: #171717;
  --btn-edge: #e5e5e5;
  --btn-hover: #f5f5f5;
  --btn-ring: #a3a3a3;
  --action-accent: #4338aa;
  --action-tint: #efedff;
  --action-edge: #aaa2e0;
}
:root.dark {
  --btn-face: rgb(255 255 255 / 4.5%);
  --btn-ink: #fafafa;
  --btn-edge: rgb(255 255 255 / 15%);
  --btn-hover: rgb(255 255 255 / 8%);
  --btn-ring: #737373;
  --action-accent: #d8d3ff;
  --action-tint: #302c45;
  --action-edge: #776e9f;
}
.ui-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  height: 2rem;
  padding: 0 .625rem;
  border: 1px solid var(--btn-edge);
  border-radius: .625rem;
  background: var(--btn-face) padding-box;
  color: var(--btn-ink);
  font-family: inherit;
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out,
    background-color 160ms, color 160ms, border-color 160ms;
}
.ui-btn.icon { width: 2rem; padding: 0; flex-shrink: 0; }
.ui-btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.ui-btn[aria-pressed="true"] {
  color: var(--action-accent);
  background-color: var(--action-tint);
  border-color: var(--action-edge);
}
@media (hover: hover) and (pointer: fine) {
  .ui-btn:where(:not(:disabled)):hover {
    border-color: var(--action-edge);
    color: var(--action-accent);
    box-shadow: 0 3px 7px rgb(30 22 75 / 12%);
    transform: translateY(-1px);
  }
}
.ui-btn:focus-visible {
  outline: 2px solid transparent;
  border-color: var(--btn-ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--btn-ring) 50%, transparent);
}
.ui-btn:not(:disabled):active {
  transform: translateY(1px) scale(.96);
  background-color: var(--action-tint);
  border-color: var(--action-edge);
  transition-duration: 65ms;
}
.ui-btn:disabled { opacity: .5; cursor: default; }
@media (prefers-reduced-motion: reduce) { .ui-btn, .ui-btn:hover, .ui-btn:not(:disabled):active { transition: none; transform: none; } }
