A framework for effective long-term conservation in a changing climate