The foundations of beauty