Once the sun sets, one may not perform any activity that might distract him from lighting the Menorah. Therefore, one may not eat more than 57 grams of bread, drink alcoholic beverages, perform work, or even study Torah. Similarly, one should not begin these activities within the half-hour period prior to sunset, unless he appoints a Shomer (guardian) to remind him to light the Menorah at sunset. Nevertheless, one may learn during this time.
If, for whatever reason, one began these activities within the half-hour period prior to sunset, he may continue until sunset. At that time, he must immediately stop whatever he is doing.
One may begin these activities before the half-hour period prior to sunset and continue until sunset. [Technically, he may continue even after sunset and light the Menorah afterwards. Nevertheless, it is commendable to stop as soon as the sun sets in order to light the Menorah.]
One may not take a nap within the half-hour period before sunset, or afterwards, until he lights the Menorah.
All the above applies to all men and women, even if he or she will discharge their obligation through watching or participating in someone else’s lighting of the Menorah. [Nevertheless, there is room to be lenient for those who are not actually lighting the Menorah themselves.]