Lessons from vulnerable communities show how to adapt to climate-change