L-functions and periods of adjoint motives