Assessment wanted for CSS accessibility 2 skill test

Question link - https://developer.mozilla.org/en-US/docs/Learn/Accessibility/CSS_and_JavaScript/Test_your_skills:_CSS_and_JavaScript_accessibility#css_accessibility_2

Code link - https://codesandbox.io/s/css-accessibility-2-9vccfm?file=/index.html

What i have tried

Change color of h1,h2,p to #000000 to meet AA and AAA color contrast specification using WCAG Contrast checker chrome extension.

removed font-size for p and h2 tag.

**What i would like you guys to do **

Suggest me wether i need additional changes, to meet the question requirements.