had to research this one myself but: add a black fill, set the opacity to 0%, select the type (top level) in the appearance panel, go to transparency and check knockout group. the transparent black fill should mask any appearances under it in the stack.
the line i'm not sure about, tried a negative offset path but that doesn't look quite right.