The usual reference here is Serre's *Algebraic Groups and Class Fields*. But it still felt to me like there was a lot of magic left over after I read this.