I'm a div. My parent is an article. I should be blue.
I'm a div. My grandparent is an article, but my parent is not, so I should be crimson.
I'm a div. My older sibling is a div. I should be magenta.

I'm a paragraph. My parent is an article. I should be gold.

I'm a div. My adjacent sibling is a paragraph. I should be green.
I'm a div. My older sibling is a paragraph. I should be indigo.