A Theory of Modernity