Begin the great exodus, moving media queries

Starting the process of moving them into more logical places alongside
the code that they modify.