h1 {
  font-size: 3rem;
  color: var(--text);
}

h2 {
  font-size: 2rem;
  color: var(--text);
}

h2 > em {
  font-size: 1rem;
  /* color: var(--sub-accent); */
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.44rem;
}

h5 {
  font-size: 1.15rem;
}

h6 {
  font-size: 0.96rem;
}

strong {
  font-weight: var(--heavy-font-weight);
  font-size: 1.5rem;
}

/* Prevent long strings from overflowing container */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: rem;
  overflow-wrap: break-word;
  text-align: justify;
}

/* Fix line height when title wraps */
h1,
h2,
h3 {
  line-height: 1.1;
  font-weight: var(--light-font-weight);
}
sup,
sub {
  vertical-align: baseline;
  position: relative;
}

sup {
  top: -0.4em;
}

sub {
  top: 0.3em;
}