/*
  Base — resets, global typography, layout primitives.
  Depends on tokens.css being loaded first.
*/

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-soft); color: var(--ink); }

a { color: inherit; }

/*
  .wrap: only the properties identical across all three pages live here.
  max-width and padding-bottom differ per page (780/1080/820px,
  120/100/110px) — set those in the page-specific CSS file.
*/
.wrap {
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
