Input (grade 11): As more and more of the atmosphere moves away from the star, deeper and deeper layers at higher and higher temperatures are exposed.
Output (grade 9): As more and more of the gas moves away from the star, deeper and deeper layers at higher and higher temperatures are sent out.