Specializing varieties and their cohomology from characteristic 0 to characteristic 𝑝