Caffeine can significantly heighten anxiety levels, making it harder to transition into a restful state necessary for sleep. Its long half-life means that even afternoon coffee can linger into the night, disrupting sleep patterns and leading to fragile, unstable rest. As anxiety builds in the darkness, it often leads to rumination and catastrophizing, compounding the difficulty of achieving a good night's sleep.