The surprising modernity of medieval minds