phase 1 of css tidying complete

the end of one horrific chapter, the beginning of another, slightly
less horrific chapter