It's the tilt, not the distance. Here's how it works.
Many people think summer happens when Earth is closer to the Sun. It doesn't. The real reason is a tilt, and once you see it, it's hard to unsee.
Earth spins on an axis that leans over by about twenty three and a half degrees. As it travels around the Sun, that axis keeps pointing the same way in space.
When your half of Earth leans toward the Sun, sunlight hits it more directly and days are longer. That's summer. When it leans away, light arrives at a slant and spreads thin. That's winter.
The tilt sets some famous lines on the globe. The tropics, at twenty three and a half degrees, are as far as the overhead Sun ever reaches. The polar circles mark where you can get a whole day of darkness.
Because the two halves lean in opposite directions, their seasons are opposite. When it's summer in London, it's winter in Sydney.