Study unlocks history of the seas