/* =============================================================================
   Modern reset — minimal, opinionated, post-Meyer.
   ============================================================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Honor system safe areas on mobile (notches, home indicator). */
  padding-inline: env(safe-area-inset-left, 0) env(safe-area-inset-right, 0);
}

/* Global motion kill — disables every transition, animation, and view
   transition across the app. Single source of truth so per-page styles
   inherit the same policy without further edits. */
*, *::before, *::after {
  transition: none !important;
  animation: none !important;
}

body {
  min-height: 100svh;
  line-height: var(--leading-normal);
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--surface-canvas);
  font-feature-settings: "kern", "liga", "ss01", "cv11";
  font-variant-numeric: oldstyle-nums proportional-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Better default text wrapping (Chrome 114+/Safari 17.4+; ignored elsewhere). */
:where(p, li, dd, dt, blockquote, figcaption) {
  text-wrap: pretty;
}
:where(h1, h2, h3, h4, h5, h6) {
  text-wrap: balance;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* Tabular numerics where it matters. */
:where(td, th, .num, .stat-value, .timer, code, pre) {
  font-variant-numeric: tabular-nums;
}

/* A clear, single-source focus ring used everywhere. */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Reasonable selection color — quiet, on-brand. */
::selection {
  background: var(--navy-100);
  color: var(--navy-900);
}
