It feels backwards: the thing that decides how well you sleep tonight isn't what you do at bedtime — it's what you do in the first hour after you wake up.
Inside your brain sits a small cluster of cells that acts as your body's master clock. It takes its cues almost entirely from light landing on your eyes. When bright morning light arrives, that clock does two useful things at once: it switches off the sleep hormone melatonin, so the morning fog lifts faster, and it quietly starts a timer. Roughly fourteen to sixteen hours later, melatonin returns — and if your clock is well-set, it returns right around the time you want to be drifting off.
Skip the morning light and that timer drifts. Melatonin shows up late, you lie awake wondering why, and the whole rhythm slips a little further each day.
The fix is almost too simple. Within the first hour of waking, get your eyes on bright light — ideally daylight. Step outside with your coffee. Eat breakfast by a window. Walk to the corner and back. Even on an overcast day, outdoor light is far brighter than anything indoors, and ten to thirty minutes is enough to send the signal. You don't need to stare at the sun; you just need to be out in it.
If your mornings are dark — winter, an early start, a north-facing flat — a sunrise alarm can stand in. Instead of jolting you awake with sound, it brightens gradually, so your clock gets its light cue and your body wakes the way it was built to: gently, into light, not panic.
Then comes the other half, the part most people miss. A clock set by morning light only keeps good time if the evening stays dim. Bright overhead lights and late screens tell that same clock it's still daytime, and melatonin holds back. So as the night winds down, drop the lighting, soften the room, and when it's time to sleep, make it properly dark — curtains, or a silk mask that blocks the last of it.
Light in the morning, darkness at night. It's the oldest rhythm there is, and your body still keeps it. Give it the cue and better nights tend to follow on their own.