Chiral two- and three-nucleon forces along medium-mass isotope chains