When white sunlight enters Earth's atmosphere, its photons collide with gas molecules much smaller than the light's wavelength.
At sunset, sunlight travels through a thicker slice of atmosphere, scattering away most blue light before it reaches your eyes and leaving warm reds and ambers.
