The outermost layer of a terrestrial planet