Air molecules scatter short wavelengths far more than long ones (intensity proportional to 1/λ4). Scattered light fills the sky blue; the beam that is left over turns orange and red when it has to cross a long slant path.
The science
Rayleigh scattering. For particles much smaller than the wavelength, the scattering coefficient is βR(λ) = 8π3(n2-1)2 / (3 N λ4), so blue (440 nm) is scattered (680/440)4 = 5.7 times more than red (680 nm). The phase function is P(θ) = 3/(16π) (1 + cos2θ).
Attenuation. Density falls exponentially, ρ(h) = ρ0 e-h/H with HR = 8 km (aerosols: HM = 1.2 km). The direct beam is reduced by T = exp(-∫(βRρR + βMρM) ds) along the slant path.
Single scattering model. The sky shader marches 16 samples along each view ray and 8 toward the Sun, on a spherical Earth (R = 6371 km, atmosphere top 100 km): L = Isun ∑ T(sun,p) T(p,eye) (βRPRρR + βMPMρM) ds, with the Henyey-Greenstein phase function (g = 0.76) for aerosols.
Honest simplifications. Multiple scattering, polarisation and the real solar spectrum are ignored; ozone is only a Chappuis-band absorption term proportional to air mass (it keeps the twilight zenith blue); colour is computed at three wavelengths (680, 550, 440 nm). Why not violet? The Sun emits less of it, ozone and the upper atmosphere absorb it, and the eye is less sensitive to it.
Models. The meadow, cabin, pines, fence, bench and rocks were modelled in Blender with baked PBR textures (named parts, Draco GLB).
Atmosphere: Nishita-style single scattering. Controls: drag = look around.