Spectral continuity for aperiodic quantum systems I. General theory