Archetypes of social institutions