Oxygen, facies, and secular controls on the appearance of