/* Element defaults. Kept deliberately small — components carry their own styling. */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body-m);
  line-height: var(--leading-body-m);
  font-weight: var(--weight-regular);
  font-feature-settings: var(--font-features);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  hyphens: auto;
  word-break: normal;
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  text-wrap: balance;
}

p { margin: 0; }

a {
  color: var(--text-link);
  text-decoration: none;
  transition: var(--transition-color);
}
a:hover { color: var(--text-link-hover); text-decoration: underline; text-underline-offset: 3px; }
a:active { color: var(--brand-blue-active); }

:where(.on-dark) a, a.on-dark { color: var(--text-link-on-dark); }
:where(.on-dark) a:hover, a.on-dark:hover { color: var(--neutral-0); }

:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  border-radius: var(--radius-xs);
}

code, pre, kbd, samp {
  font-family: var(--font-mono);
  font-size: var(--text-code);
  line-height: var(--leading-code);
}

hr { border: 0; border-top: var(--border-width) solid var(--border-subtle); margin: var(--space-8) 0; }

img, svg { display: block; max-width: 100%; }

::selection { background: var(--tint-lavender); color: var(--brand-navy); }
