Text this: Thermodynamics of the Earth and planets