Like tree rings, these layered plates hold chemical clues to how the animals adapt to a changing world