move tweaks to media queries so they only happen when they're needed