QCD and proton structure at HERA