Community resilience in the face of climate change