Rem full moon

by jonahe

HTML

<article>
  <img src="https://www.theargus.co.uk/resources/images/10270557.jpg?display=1&htype=0&type=responsive-gallery" />
  <h1>
    This h1 headline is important and may break into several lines
  </h1>
  <h2>
    This h2 is also important and may break into several lines </h2>
  <p> 
    this long is a paragraph this long is a paragraph this long is a paragraph  this long is a paragraph  this long is a paragraph
  </p>
  <p>
    this is a short paragraph
  </p>
  
   <h3>
     this is a h3
   </h3>
   
   <p>
    this is a paragraph
  </p>
  <p>
    this is a paragraph
  </p>
  
</article>

CSS

html {
  font-size: 16px;
}

h1 {
  font-size: 4.5rem;
  margin: 0.4rem 0;
  line-height: 1;
}

h2 {
  font-size: 2.4rem;
  margin: 0.1rem 0;
  line-height: 1;
}

h3 {
  font-size: 2rem;
  margin: 0.2rem 0;
  line-height: 1;
}

p {
  font-size: 16px;
  margin: 0.2rem 0;
  line-height: 1;
  margin-bottom: 0.5rem;
}

body {
  max-width: 600px;
  border: 1px solid black;
  padding: 0.5rem;
}
img {
  box-sizing: border-box;
  width: calc(100% + 1rem);
  margin: 0 -0.5rem;
}


@media screen and (max-width: 600px) { 
  html { font-size: 85%; color: teal; }
}
@media screen and (max-width: 450px) { 
  html { font-size: 70%; color: magenta; }
}

@media screen and (max-width: 350px) { 
  html { font-size: 50%; color: black; }
}


article {
  background-color: snow;
}