Landscape adaptation can reduce impacts of climate change