Text this: The social politics of medieval diplomacy