Structure, dynamics and superconducting correlations in layered solids