/* Reset, typography, focus, icons, wordmark. */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
input, textarea, select { font-size: max(16px, 1rem); }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; }
textarea { resize: none; }

::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

/* Wordmark: heavy "flexb0x" with the 0 drawn as a rounded-square outline. */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-weight: 850;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  white-space: nowrap;
  user-select: none;
}
.wordmark .wm-0 {
  display: inline-block;
  width: 0.5em;
  height: 0.71em;
  margin: 0 0.035em 0 0.03em;
  align-self: baseline;
  transform: translateY(0.01em);
}

.mono { font-family: var(--mono); }
.muted { color: var(--mute); }

/* Reduced motion: no movement-based transitions; spinners stop rotating and their labels pulse instead
   (components.css). Opacity pulses stay. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
