Reconciling agricultural productivity and climate change