Text this: The optics of rays, wavefronts, and caustics