Ice ages and ecological transitions on temperate coasts