Extremal variety as the foundation of a cosmological quantum theory