Another vote for Jonathan Strange and Mr. Norrell, as it is a magnificent story.
I will however warn you that it plays deliciously coy with the way magic works in that universe, coming close many times but (deliberately) never quite explaining how it really works. Makes for a lovely tale that keeps the magic, well, magical, but won't be of much help if you're looking for some sort of hard and fast rules inspiration.