@font-face {
  font-family: "Inktrap";
  src: url(./font/WhyteInktrap-Regular.ttf);
  font-display: fallback;
}


:root{
  font-size: 62.5%; /* 62.5% of 16px = 10px */
  --bp-sm: 375px;
  --bp-large: 1280px;
  font-family: "Avenir Next", "futura-pt", sans-serif;
  overflow-x: clip;
  scroll-behavior: smooth;
}

*{
  background-color: rgb(255, 255, 255);
}

body {
  overflow-x: clip;
}

article {
  display: grid;
  /* 1.6rem is margin-inline */
  grid-template-columns:0.8rem repeat(5, 1fr) 0.8rem;
  gap: 0.8rem;
}

article > *{
  grid-column: 2/7;
}

h1 {
  margin-block-start: 8rem;
  font-family: Inktrap;
}

h1 > p:first-child{
  font-size: 6rem;
  line-height: 1;
  padding-inline-start: 2rem;
  padding-inline-end: 3rem;
  white-space: pre-line;
  text-transform: uppercase;
}

h1 > p:first-child::after{
  content: "";
  display: block;
  background-color: black;
  height: 0.6rem;
  width: 150%;
  margin-block: 1rem;
  margin-inline-start: -10rem;
}

h1 > p:nth-child(2){
  font-size: 3rem;
  line-height: 1.2;
  /* padding-block: 1rem ; */
  white-space: pre-line;
  padding-inline-start: 2rem;
  padding-inline-end: 2rem;
}

h1 > p:nth-child(2)::after{
  content: "";
  display: block;
  background-color: black;
  height: 0.6rem;
  width: 150%;
  margin-block: 1rem;
  margin-inline-start: -10rem;
}

header {
  /* transform-origin: right top; */
  transform: rotate(10deg) translate(3.5rem) ;
  position: relative;
}

header::after {
  content: "";
  display: block;
  background-color: black;
  height: 70rem;
  width: 0.6rem;
  margin-inline-end: 1rem;
  position:absolute;
  top: 0;
}

input#menu-toggle {
  display: none;
}


.menu {
  background-color: black;
  height: 5rem;
  width: 5rem;
  position: fixed;
  top: 2rem;
  right: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  text-transform: uppercase;
  font-family: "Avenir Next", "futura-pt", sans-serif;
  z-index: 4;
}

.menu-content {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 100vh;
  right: 100vw;
  font-size: 2rem;
  font-family: "Inktrap", "Avenir Next", "futura-pt", sans-serif;
  padding-inline: 3rem 8rem;
  padding-block: 12rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 3rem;
  z-index: 3;
  transition: all 0.2s ease-in-out;
  transform: rotate(10deg) translateX(5rem);
  background-color: unset;
}

.menu-content::before {
  content: "";
  position: absolute;
  background-color: rgba(255, 255, 255, 0.819);
  z-index: -1;
  top: -10vh;      
  left: -30vw;    
  width: 130vw;    
  height: 120vh; 
  transform: rotate(-10deg) translateX(-5rem);
  backdrop-filter: blur(1rem);
}

.menu-content::after{
  content: "";
  position: absolute;
  background-color: black;
  width: 0.6rem;
  height: 130vh;
  margin-inline-end: 4rem;
  top:0
}

.menu-content *{
  background-color: unset;
}

.menu-content > P{
  font-size: 6rem;
  text-transform: uppercase;
  margin-inline-start: 2rem;
}

.menu-content > P::after{
  content: "";
  display: block;
  background-color: black;
  height: 0.4rem;
  width: 150vw;
  margin-block: 1rem;
  margin-inline-start: -15rem;
}

.menu-content > ul{
  display: flex;
  flex-direction: column;
  gap: 3rem;
  line-height: 1.3;
  margin-inline-start: 2rem;
}

.menu-content > ul > li::after{
  content: "";
  display: block;
  background-color: black;
  height: 0.4rem;
  width: 150vw;
  margin-block: 1rem;
  margin-inline-start: -15rem;
  position: absolute;
}

#menu-toggle:checked ~ .menu-content {
  top: 0;
  right: 0;
}

.date-author {
  font-size: 1.6rem; 
  margin-block-start: 7rem;
}

.intro{
  font-size: 2.2rem;
  line-height: 1.3;
}

section.intro > p{
  margin-block: 1.8rem;
  line-height: 1.4;
  
}

h2 {
  font-family: Inktrap;
  position: relative; 
  transform: rotate(15deg) translateX(2rem);
  background-color: white;
  position: sticky ;
  top:5rem ;
  margin-block: 15rem 5rem;
  hyphens: auto;
  z-index:2;
  /* the white space on the top */
  box-shadow: -5rem -10rem 0 2rem white; 

}
/* White space beside the H2 */
h2::before {
  content: "";
  position: absolute;
  background-color: white;
  z-index: -1;
  width: 100vw;
  height: 100%;
  top: 0;
  left: -100%;
}

h2 > * {
  padding-inline-start: 2rem;
  padding-inline-end: 2rem;
}

h2 > .section-number {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

h2 > .section-number > div:first-child {
  display: inline-block;
  line-height: 1;
  padding-block-start: 2rem;
  height: fit-content;
  font-size: 4.2rem;
  text-decoration-color: rgba(0, 0, 0, 0);
  position: relative;
}


h2 > .section-number > div:nth-child(2) {
  background-color: rgb(0, 0, 0);
  flex-shrink: 0;
  height: 2rem;
  width: 2rem;
  border-radius: 50%; 
}

h2 > .section-number::after {
  content: "";
  display: block;
  background-color: black;
  height: 0.4rem;
  width: 120%;
  margin-inline-start: -10rem;
  position: absolute;
  top: 0;
}

h2>span:first-child{
  display: block;
  position: relative;
}


h2 > span {
  display: block;
  line-height: 1.3;
  font-size: 2.2rem; 
  text-transform: uppercase;
  /* text-decoration: underline; */
  text-underline-offset: 0.7rem;
}

h2 > span::after {
  content: "";
  display: block;
  background-color: black;
  height: 0.4rem;
  width: 150%;
  margin-block-start: 1rem;
  margin-inline-start: -10rem;
}

h2::after{
  content: "";
  display: block;
  background-color: rgb(0, 0, 0);
  height: 70rem;
  width: 0.4rem;
  margin-inline-end: 1rem;
  position:absolute;
  top: 0;
}

section.bodytext {
  display: grid;
  grid-template-columns:repeat(5, 1fr);
  gap: 0.8rem;
}

section.bodytext > * {
  grid-column: 1/6;
  font-size: 1.8rem; 
  line-height: 1.45;

}

section.bodytext > p { 
  font-size: 1.8rem; 
  line-height: 1.45;
  margin-block: 1rem;

}

section.bodytext > p.quote {
  display: block;
  grid-column: 2/6;
  font-size: 1.8rem; 
  line-height: 1.45;
  margin-block: 2rem 3rem;
  padding-inline-start: 1rem;
  /* border-left: 0.4rem solid black; */
  /* text-decoration: underline;
  text-decoration-thickness: 0.2em;
  text-underline-offset: 0.3em; */
  border-left: 0.4rem solid black;
  transform: rotate(5deg);
}

span.outlink{
  display: inline-block;
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.3em;
  transform: rotate(2deg);
}

span.noBreak
{ white-space: nowrap; } 

footer{
  /* background-color: rgb(204, 204, 204); */
  /* padding: 4rem 2rem; */
  padding-inline: 3rem 5rem;
  transform: rotate(-15deg) translateX(2rem);
  margin-block-start: 5rem;
}

footer > p:first-child{
  font-family: "Inktrap";
  font-size: 4.5rem;
  line-height: 1.2;
  text-transform: uppercase;
  position: relative;
  padding-block-start: 2rem ;
}

footer > p:first-child::after{
  content: "";
  display: block;
  width: 120vw;
  height: 0.6rem;
  background-color: black;
  position: absolute;
  top: 0;
  left: 0;
  margin-inline-start: -6rem;
}

footer > p:last-child{
  font-family: "Inktrap";
  font-size: 1.8rem;
  line-height: 1.2;
  position: relative;
  padding-block-start: 2rem ;
}
footer > p:last-child::after{
  content: "";
  display: block;
  width: 120vw;
  height: 0.6rem;
  background-color: black;
  position: absolute;
  top: 0;
  left: 0;
  margin-inline-start: -10rem;
}

footer > p {
  color: rgb(0, 0, 0);
  margin-inline: 1rem;
  font-size: 1.6rem;
}
footer::after {
  content: "";
  display: block;
  background-color: black;
  height: 130%;
  width: 0.6rem;
  margin-inline-end: 1rem;
  position:absolute;
  top: 0;
  right: 4rem;
}





/* Media Queries for BigScreen */


@media screen and (min-width: 700px) {

  body{
    margin-inline: 6rem;
  }
  
  h1{
    font-size: 6rem;
  }

  .intro{
    font-size: 3rem;
  }

  h2{
    font-size: 3.6rem;
    margin-block: 7rem 4rem;
  }

  section.bodytext p {
    font-size: 2.4rem;
  }

  footer > p{
    margin-inline: 8rem;
    font-size: 2.8rem;
    line-height: 1.4;
  }
  
}

@media screen and (min-width: 1080px) {

  body{
    margin-inline: 10rem;
  }
  
  h1{
    font-size: 8rem;
  }

  .intro{
    font-size: 3.5rem;
  }

  h2{
    font-size: 4.8rem;
    margin-block: 9rem 6rem;
  }

  section.bodytext p {
    font-size: 3rem;
  
}
}
