Strong ionic hydrogen bonding causes a spectral isotope effect in photoactive yellow protein.