help
Distance Light Travels in a Year in Space

Question:
I’m aware that the speed of light in a vacuum is constant. Space has lots of stuff in it, dust, gravitational fields vast enough to bend light, and things we are not aware of, and not a vacuum. Yet we measure distance in light years – what am I missing ?
Appreciate your help, this has been bothering me for a while !
Answer:
It is true that matter in a medium through which light propagates will increase the length of a light year relative to that in a vacuum. Since space is very close to a perfect vacuum, with just a few hydrogen atoms per cubic meter, the length of a light year in space is very close to its vacuum value.