Climbing the cosmic distance ladder