Geologic history of seawater: A MAGic approach to carbon chemistry and ocean ventilation