The initiation and thermal diversity of granite magmatism