A Darwinian theory of beauty