Terrestrial aftermath of the Moon-forming impact