* { 
   box-sizing: border-box; 
}

body { 
   margin: 0; 
   padding: 36px 20px 80px; 
   min-height: 100vh; 
   background: linear-gradient(#191625 70%, #363447 70%);  /* both stops at 70% = a hard edge between the sky and the ground */
   color: #efd3c2; 
   font-family: Georgia, serif; 
   text-align: center; 
   isolation: isolate;  /* gives the page its own stacking context, so the chimney's z-index: -1 can't slip behind the body background */
}

h1 { 
   font-size: 2.2rem; 
   margin-bottom: 0; 
}

p { 
   color: #b8a7c9; 
   letter-spacing: 3px; 
   margin-bottom: 100px; 
}

#house { 
   position: relative;  /* makes #house the positioning parent for its absolutely placed pieces */
   width: 500px; 
   height: 400px; 
   border: 6px solid #302333; 
   background-color: #bb8473; 
   margin: 0 auto; 
   background-image: repeating-linear-gradient(0deg, transparent 0 29px, #a77265 29px 31px);  /* repeating-linear-gradient repeats the stripe: 29px clear, then a 2px line, over and over */
   box-shadow: 0 18px 0 #1c1925; 
}

#house > div { 
   position: absolute; 
}

#chimney { 
   width: 64px; 
   height: 110px; 
   border: 5px solid #302333; 
   background-color: #8d697b; 
   top: -110px; 
   right: 65px; 
   z-index: -1;  /* a negative z-index puts the chimney behind the house */
   background-image: repeating-linear-gradient(0deg, transparent 0 22px, #302333 22px 26px); 
}

#roof { 
   width: 488px; height: 105px; 
   border: 5px solid #302333; 
   background-color: #6d597e; 
   top: 0; 
   left: 0; 
   border-radius: 80px 80px 0 0; 
   background-image: repeating-linear-gradient(0deg, transparent 0 22px, #564461 22px 25px); 
}

#window-1, #window-2 { 
   width: 100px; 
   height: 100px; 
   border: 7px solid #302333; 
   background-color: #f4ca86; 
   top: 150px; 
   box-shadow: 0 0 24px #efbe7c55; 
}

#window-1 { 
   left: 40px; 
}

#window-2 { 
   right: 40px; 
}

#window-1::before, 
#window-2::before { 
   content: ''; 
   position: absolute; 
   width: 6px; 
   height: 100%; 
   left: calc(50% - 3px);  /* calc() does the math: halfway across, minus half the bar's width, centers the bar */
   background: #302333; 
}

#window-1::after, 
#window-2::after { 
   content: ''; position: 
   absolute; height: 
   6px; width: 100%; 
   top: calc(50% - 3px); 
   left: 0; 
   background: #302333; 
}

#door { 
   width: 100px; 
   height: 160px; 
   border: 6px solid #302333; 
   background-color: #625075; 
   bottom: 0; left: 194px; 
   border-radius: 45px 45px 0 0; 
}

#door::after { 
   content: ''; 
   position: absolute; 
   width: 10px; 
   height: 10px; 
   border-radius: 50%; 
   background: #f4ca86; 
   right: 12px; 
   top: 85px; 
}
