Jonathan Philips’s engaging biography redraws the achievements, shortcomings and weaknesses Saladin exhibited during his historic reign