/* Reset and the small set of base rules for each page. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* 100dvh follows the browser toolbars on a phone. 100vh is the fallback. */
body { margin: 0; min-height: 100vh; min-height: 100dvh; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
/* Lines of equal length in a heading, and no single word on the last line of a paragraph. */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
canvas { display: block; }
button, input { font: inherit; color: inherit; }

:root {
  /* The browser draws its own parts (ex. scrollbars, form controls) for a dark page. */
  color-scheme: dark;
  /* System fonts only. Bahnschrift is the DIN typeface that ships with Windows. */
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --din: Bahnschrift, "DIN Alternate", "Roboto Condensed", "Arial Narrow", sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, Menlo, monospace;
}

/* Motion is an addition. A user who asks for reduced motion gets none of these. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.dragging { cursor: grabbing; }
.no-gpu {
  position: absolute; left: 24px; bottom: 64px; z-index: 5; max-width: 44ch; padding: 12px 14px;
  font: 0.8125rem var(--mono); color: #fff; background: #b3261e; border-radius: 4px;
}
