The logic of the social