I removed this CSS as the logic was making it remove the top margin from lists and probably other elements too.

If someone has a clue about CSS and know how to implement this, I'd accept a PR. The idea is to remove the top margin from H1 and other elements when they are on top of the page (because there's already a margin there).