Light-matter interaction in one-dimensional continuum: Waveguide QED