/* Reset, typography and small utilities. */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.5;
}

button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
svg { flex-shrink: 0; vertical-align: middle; }
[hidden] { display: none !important; }

h1, h2, h3 { color: var(--text); }
pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 300px; overflow: auto; font-size: var(--text-xs); font-family: var(--font-mono); }
code { font-family: var(--font-mono); font-size: 11px; overflow-wrap: anywhere; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

.icon { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.subtle { color: var(--text-3); }
.footnote { font-size: var(--text-xs); color: var(--text-4); margin-top: 20px; }
.error { font-size: var(--text-xs); color: var(--danger); margin: 8px 0; }
.pad { padding: 14px 16px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row-between strong { overflow-wrap: anywhere; }
.section-title { font-size: var(--text-lg); margin: 28px 0 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.working { cursor: progress; }
.working button { pointer-events: none; opacity: 0.65; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
