What is causing the pitting edema of the ankles and jvd (jugular vein distention)?

Congestive failure. The findings you describe are highly suggestive of congestive heart failure or pericardial effusion (fluid around the heart).
Could . Also be venous insufiency. I suggest visit with pcp who may have you see a vascular doctor.