Adapting to sea-level rise