Local gravity and large-scale structure