
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}


.btn,
button.primary, button.ghost, summary.ghost, .primary-link {
  font: inherit;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.2;
  cursor: pointer;
  border-radius: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              box-shadow .18s var(--ease), transform .12s var(--ease), opacity .18s var(--ease);
}

.btn-primary,
button.primary {
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover,
button.primary:hover:not(:disabled) {
  background: var(--accent-strong);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:active,
button.primary:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
button.primary:disabled {
  background: var(--fill);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-ghost,
button.ghost, summary.ghost {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
}
.btn-ghost:hover,
button.ghost:hover, summary.ghost:hover { border-color: var(--muted); background: var(--sunk); }
.btn-ghost:active,
button.ghost:active { transform: translateY(1px); }

.primary-link { border-color: transparent; background: var(--ink); color: var(--paper); }
.primary-link:hover { background: var(--ink-lift); box-shadow: var(--shadow); }
.primary-link:active { transform: translateY(1px); box-shadow: none; }
