場所を表すatとinの違い(at school / in the school / at the school / in school)

場所を表している at school と in the school の違い、説明できますか?中学校で学ぶ表現ですが、実は奥が深いんです。at と in のコアイメージから、ニュアンスの違いを浮き彫りにします!

https://www.english-speaking.jp/difference-between-in-and-at-for-place/