The planet was slowly cooling for thousands of years until an unprecedented reversal in the 20th century.