Text this: Electromagnetic waves in stratified media