Continued fractions: a geometric perspective