See how much of the night sky a town's lighting costs, and how to win it back.
The science
Model. Each lamp of flux Φ sends up Φ·(ULR + ρ(1−ULR)) lumens: direct upward spill plus ground reflection (ρ≈0.12). Skyglow at an observer distance d follows Walker's empirical law, I ∝ N · Φup · d−2.5, scaled so that 20 lamps of 8 klm at 10 km give about one extra natural sky (the constant K is illustrative).
Sky and stars. Sky surface brightness S = 22.0 − 2.5·log10(1 + R) mag/arcsec² (R = artificial/natural luminance). The faintest visible star follows Schaefer (1990): NELM = 7.93 − 5·log10(104.316 − S/5 + 1). The Bortle class is read from S.
Strategies that work. Shielding (ULR → 0), right-sizing flux, curfew dimming and warmer colour. The colour factor is a simple linear stand-in for increased blue scattering.
Honest simplification. Flat atmosphere, no clouds or aerosol model, one town as a point source, no glare, safety or ecological effects. The star field is a random sample that follows a realistic number-magnitude law.