(() => {
  // Theme switch
  const root = document.body;
  const themeSwitch = document.getElementById("mood");
  const themeData = root.getAttribute("data-theme");

  if (themeSwitch) {
    initTheme(localStorage.getItem("theme"));
    themeSwitch.addEventListener("click", () =>
      toggleTheme(localStorage.getItem("theme"))
    );

    function toggleTheme(state) {
      if (state === "dark") {
        localStorage.setItem("theme", "light");
        root.removeAttribute("data-theme");
      } else if (state === "light") {
        localStorage.setItem("theme", "dark");
        document.body.setAttribute("data-theme", "dark");
      } else {
        initTheme(state);
      }
    }

    function initTheme(state) {
      if (state === "dark") {
        document.body.setAttribute("data-theme", "dark");
      } else if (state === "light") {
        root.removeAttribute("data-theme");
      } else {
        localStorage.setItem("theme", themeData);
      }
    }
  }

  // Blur content when the menu is open
  const checkbox = document.getElementById("menu-trigger");
  const wrapper = document.getElementById("wrapper");

  checkbox.addEventListener("change", function() {
    if (this.checked) {
      wrapper.classList.add("trigger-wrapper");
    } else {
      wrapper.classList.remove("trigger-wrapper");
    }
  });
})();

@@ -28,20 +28,20 @@
   const 
-root
+body
  = docum
@@ -58,27 +58,20 @@
   const 
-themeSwitch
+lamp
  = docum
@@ -92,18 +92,18 @@
 ById(%22mo
-o
 d
+e
 %22);%0A  co
@@ -110,24 +110,19 @@
 nst 
-themeD
+d
 ata = 
-root
+body
 .get
@@ -153,139 +153,211 @@
 %0A%0A  
-if (themeSwitch) %7B%0A    initTheme(localStorage.getI
+const initTheme = (state) =%3E %7B%0A    if (state === %22dark%22) %7B%0A      body.setAttribu
 te
-m
 (%22
+data-
 theme%22
-));%0A    themeSwitch.addEventListener(%22click%22, () =%3E%0A      toggleTheme(
+, %22dark%22);%0A    %7D else if (state === %22light%22) %7B%0A      body.removeAttribute(%22data-theme%22);%0A    %7D else %7B%0A      
 loca
@@ -365,17 +365,17 @@
 Storage.
-g
+s
 etItem(%22
@@ -384,31 +384,36 @@
 eme%22
-))%0A    );%0A%0A    function
+, data);%0A    %7D%0A  %7D;%0A%0A  const
  tog
@@ -416,32 +416,35 @@
  toggleTheme
+ = 
 (state) 
 %7B%0A      if (
@@ -423,36 +423,37 @@
 Theme = (state) 
+=%3E 
 %7B%0A
-  
     if (state ==
@@ -460,26 +460,24 @@
 = %22dark%22) %7B%0A
-  
       localS
@@ -512,30 +512,28 @@
 ht%22);%0A      
-  root
+body
 .removeAttri
@@ -544,34 +544,32 @@
 (%22data-theme%22);%0A
-  
     %7D else if (s
@@ -584,26 +584,24 @@
  %22light%22) %7B%0A
-  
       localS
@@ -635,35 +635,24 @@
 rk%22);%0A      
-  document.
 body.setAttr
@@ -676,34 +676,32 @@
 %22, %22dark%22);%0A    
-  
 %7D else %7B%0A       
@@ -689,26 +689,24 @@
    %7D else %7B%0A
-  
       initTh
@@ -717,26 +717,24 @@
 state);%0A
-  
     %7D%0A  
   %7D%0A%0A   
@@ -729,238 +729,112 @@
 %7D%0A  
-  
 %7D
+;
 %0A%0A  
-  function initTheme(state) %7B%0A      if (state === %22dark%22) %7B%0A        document.body.setAttribu
+initTheme(localStorage.getI
 te
+m
 (%22
-data-
 theme%22
-, %22dark%22
+)
 );%0A
+%0A
   
-    %7D else if (state === %22light%22) %7B%0A        root.removeAttribute(%22data-theme%22);%0A      %7D else %7B%0A        
+lamp.addEventListener(%22click%22, () =%3E%0A    toggleTheme(
 loca
@@ -834,33 +834,33 @@
 me(localStorage.
-s
+g
 etItem(%22theme%22, 
@@ -861,39 +861,15 @@
 eme%22
-, themeData);%0A      %7D%0A    %7D%0A  %7D
+))%0A  );
 %0A%0A  
@@ -876,16 +876,20 @@
 // Blur 
+the 
 content 
@@ -919,20 +919,16 @@
  const c
-heck
 box = do
@@ -970,70 +970,12 @@
 %22);%0A
+%0A
   c
-onst wrapper = document.getElementById(%22wrapper%22);%0A%0A  check
 box.
@@ -1009,16 +1009,17 @@
 function
+ 
 () %7B%0A   
@@ -1019,20 +1019,69 @@
 ) %7B%0A    
-if (
+const area = document.querySelector(%22.wrapper%22);%0A    
 this.che
@@ -1088,25 +1088,21 @@
 cked
-) %7B
 %0A      
-wrapper
+? area
 .cla
@@ -1117,96 +1117,57 @@
 dd(%22
-trigger-wrapper
+blurry
 %22)
-;
 %0A    
-%7D else %7B%0A      wrapper.classList.remove(%22trigger-wrapper%22);%0A    %7D
+  : area.classList.remove(%22blurry%22);
 %0A  %7D

change to ternary operator