A 37-year-old woman has unilateral throbbing headaches associated with nausea and photophobia occurring twice a month, lasting several hours and relieved by rest in a dark room. Neurological examination is normal. What is the most appropriate first-line acute treatment?