/*
  Global typography rules.
  Keep element-level text defaults here and page-specific text treatments in pages/.
*/

body {
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-spacing-base);
}

a {
  color: var(--color-primary);
  transition: color var(--transition-base);
}

a:hover,
a:focus {
  color: var(--color-accent-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: var(--space-0);
  margin-bottom: var(--space-4);
  color: var(--color-primary);
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
}

p {
  margin-top: var(--space-0);
  margin-bottom: var(--space-5);
}

small {
  font-size: var(--font-size-sm);
}
