The indentation is weird, but other than that it’s pretty straightforward: every h1 element, every .h1 class and every direct child of a .h1 class has the first set of style properties.
Then every h2 element, .h2 class and direct child of a .h2 class has the second set of properties.