The human body runs on an internal clock that does not naturally keep exactly twenty-four hours. Light is the signal that corrects it, and the timing of that light matters more than its total amount.
The clock runs slightly slow
The master timekeeper sits in a small region of the hypothalamus and generates a rhythm through a self-sustaining cycle of gene activity.
Left without external signals, that cycle typically runs a little longer than a day. Someone isolated from light cues drifts progressively later.
The drift is small, but it accumulates. Without a daily correction, sleep timing would move steadily around the clock over a matter of weeks.
Specialised eye cells carry the timing signal
The correction arrives through the eye, but not through the cells used for vision. A separate class of retinal cell contains a pigment tuned towards the blue end of the spectrum.
These cells project directly to the clock rather than to the visual cortex. Their output reports overall light intensity rather than forming an image.
This is why people with severe visual impairment may retain normal circadian entrainment, and why the effect of light does not depend on looking at anything in particular.
The same light has opposite effects at different hours
Light in the early morning advances the clock, shifting the whole rhythm earlier. Light in the late evening delays it.
The size of the shift depends on where in the cycle the exposure falls, which is why a fixed recommendation about screen time is less useful than the timing of the exposure.
Indoor lighting is far dimmer than daylight, so an ordinary day spent inside provides a weaker correcting signal than a few minutes outdoors.
The clock controls more than sleep
Body temperature, cortisol release, digestive activity and alertness all follow the same rhythm rather than responding independently to sleep.
Melatonin release is the most visible output, beginning in the evening as ambient light falls and acting as an internal signal that biological night has started.
Because these outputs are coordinated, a shifted clock produces effects well beyond difficulty sleeping, including altered appetite and mood at unusual hours.
Why misalignment produces symptoms
Problems arise when the internal clock and the imposed schedule disagree. The body is prompting sleep at a time the calendar demands alertness.
Jet lag is the temporary version. Shift work and consistently late light exposure produce a longer-running version of the same mismatch.
Persistent difficulty aligning sleep with a required schedule is a recognised clinical problem rather than a matter of discipline, and is worth raising with a clinician.