Is it warmer farther from the sun?

Do it

It is cooler further away from the heat source. So how can it be that in winter we are actually closer to the Sun than in summer?