Early Earth was a hellscape of molten lava and barren rock, bombarded by meteors, with no atmosphere at all. How did our familiar blue sky – the thin, life-giving band of gasses protecting our planet – come to be?