Ancient climate record preserved in prehistoric plants