A light changing mediums from lower to the higher index of refraction will bend towards the normal (become more like perpendicular to the surface), i.e. the angle is going to decrease.
So if x is the angle of incidence for the 1st layer, its angle of refraction is going to be y, and y<x.
From the 1st layer light enters an even denser 2nd layer, so the ray bends even more toward the normal and the angle of refraction z<y. If there were a lot of layers, getting denser as you go down, the light would eventually be traveling almost vertically downwards. The largest angle of refraction is the top layer because of this.