Try this ...
It's obvious, but try and retrace your steps. Its very easy to switch a flag which has catastrophic effects.
Were you assigning permissions to groups? You can remove read permissions from admin for example! (I managed to remove log-in permissions to admin 😡 which took me aback).
Try logging in as an new user ~ anonymous permissions ~ will that work?
Have you lost everything or just the central core?