The ecology of beauty