Light travels in straight lines, so when something blocks it the light simply can't reach the floor behind — that dark patch is the shadow.
What's actually happening
Light is the straightest thing in the universe. It does not flow around obstacles the way water or sound does — if a straight line from the light source to the floor passes through your body, that bit of floor goes dark. A shadow is just the full map of all the blocked straight lines.
The interesting part is the edge. A truly point-sized light source draws razor-sharp shadows: every spot on the floor either sees the source or it doesn't. But real sources — the sun, a lamp, a window — have width. Spots near the shadow's edge can see part of the source, so they are only partly dark. That part-shadow fringe is the penumbra; the fully-dark core is the umbra. The bigger the light source looks from where the shadow falls, the softer and fuzzier the edge.
Solar eclipses are this exact picture at planetary scale. The Moon casts an umbra a few hundred kilometres wide that races across Earth — stand inside it and the sun is fully blocked; stand in the vast penumbra around it and you get a partial eclipse. Same physics as your hand over a lamp, scaled up a billion times.
- 1In a dark room, hold your hand a few centimetres above a table and light it with a phone torch from high up — the shadow has crisp edges.
- 2Now tape a sheet of baking paper just in front of the torch to spread the light. The same hand now casts a soft, fuzzy-edged shadow.
- 3Move your hand toward and away from the table and watch the fuzzy penumbra grow and shrink. You are resizing the light source as seen from the shadow.