Question: is goodnight one word or two?
Answer: To recap, if you're going to write a farewell to someone at night or address a farewell to someone in writing, use the two-word variant: good night. But if you're talking about the noun or noun adjective, use the one-word form, goodnight.