Towards a theory of landscapes