Text this: Modern Theory of Gratings