Water cycles in a Hadean CO2 atmosphere drive the evolution of long DNA