Pātuhitia tēnei: Thermodynamics of the Earth and planets