Spectrally derived algebraic geometry