Paleoclimate of Mars as captured by the stratigraphic record in Gale Crater