A combinatorial theory of orthogonal polynomials and continued fractions