The 3D structure of sunspots has been extensively studied for the last two decades. A recent advancement of the Stokes inversion technique prompts us to revisit the problem. We investigate the global depth-dependent thermal, velocity and magnetic properties of a sunspot, as well as the interconnection between various local properties. High quality Stokes profiles of a disk centered, regular sunspot acquired by the SOT/SP (Hinode) are analyzed. To obtain the depth-dependent stratification of the physical parameters, we use the spatially coupled version of the SPINOR code. The vertical temperature gradient in the lower to mid-photosphere is smallest in the umbra, it is considerably larger in the penumbra and still somewhat larger in the spots surroundings. The azimuthally averaged field becomes more horizontal with radial distance from the center of the spot, but more vertical with height. At tau=1, the LOS velocity shows an average upflow of 300 ms-1 in the inner penumbra and an average downflow of 1300 ms-1 in the outer penumbra. The downflow continues outside the visible penumbral boundary. The sunspot shows a moderate negative twist of < 5^0 at tau=1, which increases with height. The sunspot umbra and the spines of the penumbra show considerable similarity in their physical properties albeit with some quantitative differences. The temperature shows a general anticorrelation with the field strength, with the exception of the heads of penumbral filaments, where a weak positive correlation is found. The dependence of the physical parameters on each other over the full sunspot shows a qualitative similarity to that of a standard penumbral filament and its surrounding spines. Our results suggest that the spines in the penumbra are basically the outward extension of the umbra. The spines and the penumbral filaments are together the basic elements forming a sunspot penumbra.