A thin layer outside of something is called the crust.