/* Base resets + body defaults.
   Loaded last so it can use everything above. */

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  color: var(--text-strong);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-normal);
  margin: 0;
}

p { margin: 0; text-wrap: pretty; }

button { font-family: inherit; }

a {
  color: inherit;
  text-decoration-color: var(--border);
  text-underline-offset: 0.18em;
}
