* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--fs-strong); /* inherited document default, not a component size */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--on-dark); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* On ink (the rail, a dark card) an ink ring is invisible: use the light one. */
.rail :focus-visible, .dark-card :focus-visible, .dark-card:focus-visible { outline-color: var(--on-dark); }

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 38px);
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

/* --- Reduced motion ------------------------------------------------------
   The drawer slides in and cards cross-fade on hover. Both are decoration;
   honour a stated preference for less movement rather than animating anyway. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Role gating (docs/superpowers/specs/2026-10-15-per-user-logins-design.md).
   Cosmetic only: the Worker refuses anything this hides. */
:root[data-role="restricted"] .full-only { display: none !important; }
:root:not([data-role="admin"]) .admin-only { display: none !important; }
