/* Base — resets and typography built on the tokens in tokens.css. No inline hex values below. */

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-family-base);
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0 0 var(--space-2) 0;
  color: var(--color-text);
  line-height: 1.25;
}

h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.375rem; font-weight: 700; }

p {
  margin: 0 0 var(--space-2) 0;
  color: var(--color-text-secondary);
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-border-strong);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

button {
  font-family: inherit;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
