Joey Logano won his third NASCAR Cup Series championship at Phoenix on Sunday by holding off his Team Penske teammate Ryan Blaney in the closing laps, but the result was foretold months earlier.