/* ============================================================
   BASE — Pavel Presnov Design System
   Minimal, opinionated-but-light resets so consumers get
   sensible brand defaults the moment they link styles.css.
   ============================================================ */

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--lh-relaxed);
  color: var(--text-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-serif);
  color: var(--text-primary);
  margin: 0;
}

p { margin: 0; }

a { color: var(--text-link); text-decoration: none; }

::selection { background: var(--sage-200); color: var(--ink-900); }

/* Respect users who ask for less motion — neutralize transitions & animations. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
