A 40-year-old woman is evaluated for a 6-month history of pain and swelling in her left thumb, left fifth finger, and left foot. She also has morning stiffness lasting 2 to 3 hours. She has a 4-year history of lumbar and thoracic back pain that is worse with bending and lifting and is better with rest. Naproxen is only mildly helpful for the pain.

On physical examination, vital signs are normal. Patches of erythema and scaling behind the right ear and on the scalp at the occiput are noted. Fusiform swelling of the left thumb and left fifth finger is present. Tenderness and swelling at the left third metatarsophalangeal joint are noted. There is mild lumbar tenderness, and full range of motion of the lumbar spine and cervical spine is noted. No other joint swelling or tenderness is present.

Nail findings are shown.

Laboratory studies, including complete blood count with differential, comprehensive metabolic panel, rheumatoid factor, and urinalysis, are normal; HLA-B27 testing is positive.

Which of the following is the most likely diagnosis?