As it moves away from the ridge , the crust becomes cooler and denser , while the sediment may build on top of it . As it moves away from the ridge , the lithosphere becomes cooler and denser , and sediment gradually builds on top of it .