Is there a way to enjoy drinks without sacrificing sleep quality?

I’m a athletic person and I track my recovery closely like most of us here. Last night after running 8k, I had just two glasses of wine and noticed a significant drop in my sleep score. I woke up feeling tired and not fully recovered.

Is there a smart way or “hack” to enjoy a drink socially without it ruining sleep quality? Do any of you manage to go out, have a drink with friends, and still wake up feeling rested?

Thanks in advance!