Record of climate-driven morphological changes in 376 Ma Devonian fossils