1: \begin{abstract}
2: We study stability and distortions of liquid crystal nematic order
3: in a cell with a random heterogeneous substrate. Modeling this
4: system as a bulk $xy$ model with quenched disorder confined to a {\em
5: surface}, we find that nematic order is marginally unstable to
6: such surface pinning. We compute the length scale beyond which
7: nematic distortions become large, and calculate orientational
8: correlation functions using the functional renormalization group and
9: matching methods, finding universal logarithmic and
10: double-logarithmic distortions in two and three dimensions,
11: respectively. We extend these results to a finite-thickness
12: liquid crystal cell with a second homogeneous substrate, detailing
13: crossovers as a function of random pinning strength and cell
14: thickness. We conclude with analysis of experimental signatures of
15: these distortions in a conventional crossed-polarizer-analyzer light
16: microscopy.
17: \end{abstract}