The spin of an electron or a nucleus in a semiconductor [1] naturally implements the unit of quantum information -- the qubit -- while providing a technological link to the established electronics industry [2]. The solid-state environment, however, may provide deleterious interactions between the qubit and the nuclear spins of surrounding atoms [3], or charge and spin fluctuators in defects, oxides and interfaces [4]. For group IV materials such as silicon, enrichment of the spin-zero 28-Si isotope drastically reduces spin-bath decoherence [5]. Experiments on bulk spin ensembles in 28-Si crystals have indeed demonstrated extraordinary coherence times [6-8]. However, it remained unclear whether these would persist at the single-spin level, in gated nanostructures near amorphous interfaces. Here we present the coherent operation of individual 31-P electron and nuclear spin qubits in a top-gated nanostructure, fabricated on an isotopically engineered 28-Si substrate. We report new benchmarks for coherence time (> 30 seconds) and control fidelity (> 99.99%) of any single qubit in solid state, and perform a detailed noise spectroscopy [9] to demonstrate that -- contrary to widespread belief -- the coherence is not limited by the proximity to an interface. Our results represent a fundamental advance in control and understanding of spin qubits in nanostructures.