I framed this into 2d. If you draw two circles, get the common direct tangents, then you need to find the angle between the two intersection points for the two lines and the bigger circle. Except I never figured it out.
Maybe someone could show me a different approach? Something I missed?
Thanks
Let
Consider the figure below:
$A$ is the centre of the earth.
($B$ is only an artifact of the construction and won't be used.)
$C$ is the centre of the moon.
$D$ is the intersection between the tangent and the line formed by the centers of the earth and moon.
$E,F$ are the intersection points for the common tangent.
By construction it immediately follows that $\angle DEA=\angle DFC=90^{\circ}$. Also, $DEA\sim DFC$. Our task is to find $\angle DAE$, which is the maximum angle wherefrom one can observe the moon. We can also find the latitudes from which the moon is visible if we tack on the precession of the equinoxes. Anyhow,
$$\frac{AE}{FC}=\frac{R}{r}=\frac{AD}{CD}=\frac{d+CD}{CD}$$
$$\therefore CD=\frac{d}{R/r-1}$$
$$\angle DAE = \textrm{arccos}\left(\frac{AE}{AD}\right)=\textrm{arccos}\left(\frac{R}{d+CD}\right)$$
$$=\textrm{arccos}\left(\frac{R}{d+d/(R/r-1)}\right)$$
$$\approx 89.3^{\circ}$$