/* type scale
4.76rem
3.81rem
3.05rem
2.44rem
1.95rem
1.56rem
1.25rem
1rem
0.8rem
0.64rem
0.512rem
0.41rem
0.32rem
*/

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

:root {
  --lightest-colour: rgb(253, 252, 252);
  --pink-colour: rgb(241, 223, 223);
  --light-colour: rgb(236, 222, 209);
  --darkest-colour: rgb(39, 28, 28);
  --dark-colour: rgb(105, 86, 69);
  --dark-blue: #123143;

  --accent-colour: rgb(252, 107, 9);
  --accent-colour2: rgb(242, 155, 84, 1);
  --serif-font: "Playfair Display", serif;
  --serif-font2: "Caudex", serif;
  --sans-font2: "Manrope", sans-serif;
  --sans-font: "Assistant", sans-serif;
}

h1,
h2,
h3,
h4,
p,
a {
  font-family: var(--sans-font);
  color: var(--darkest-colour);
}

strong {
  font-family: var(--serif-font);
  font-style: italic;
  font-weight: 600;
  color: var(--darkest-colour);
}

body {
  background-color: var(--lightest-colour);
  overflow-x: hidden;
}

/* ////// NAV //////// */

#logo {
  height: 75px;
  align-self: flex-end;
  padding-bottom: 0.8rem;
  padding-top: 2.5rem;
}

#burger {
  width: 3%;
  min-width: 50px;
  position: absolute;
  top: 31.5px;
  right: 6rem;
}

#burger:hover {
  cursor: pointer;
}

#burger .line-3 {
  stroke-width: 5;
  opacity: 1;
  transition: opacity 0.9s;
}

#burger .line-1 {
  transform: translateY(-40px);
  transition: transform 0.9s;
}

#burger .line-2 {
  transform: translateY(-20px);
  transition: transform 0.9s;
}

#burger .line-1.close {
  transform: translateY(-12px) rotate(45deg) translateX(18px);
}

#burger .line-2.close {
  transform: translateY(32px) rotate(-45deg) translateX(-35px);
}

#burger .line-3.close {
  opacity: 0;
}

#logo .cls-1 {
  stroke: var(--accent-colour);
  stroke-width: 4px;
}

/* #burger .line-1 {translateY(-53px) rotate(45deg) translateX(52px);} */

nav {
  /* border-bottom: var(--darkest-colour) 4px solid; */
  background-color: var(--lightest-colour);
  display: flex;
  justify-content: space-between;
  padding: 0rem 6rem;
  position: relative;
  height: 100px;
  max-width: 1440px;
  margin: auto;
}

.nav_drop {
  position: absolute;
  width: 27vw;
  top: 19%;
  right: 2%;
  z-index: 4;
  padding-right: 4rem;
  background-color: var(--lightest-colour);
  max-height: 0;
  transition: max-height 0.9s;
  overflow: hidden;
}

.nav_drop ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 1rem;
}

.nav_drop.show {
  max-height: 250px;
}

.nav_drop ul li {
  padding: 0.8rem;
  color: var(--darkest-colour);
  font-family: var(--sans-font);
  border-bottom: solid 1px var(--accent-colour);
}

.nav_drop a {
  text-decoration: none;
}

/* 
nav::after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--darkest-colour);
  top: 100%;
  width: 80%;
} */

/*//////  HEADER   ////////*/
header {
  background-color: var(--lightest-colour);
  z-index: -2;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1915px;
  margin: auto;
}

#fonts_ui header {
  display: grid;
  grid-template-columns: 45% 1fr;
  z-index: 100;
  margin-bottom: 3rem;
}

#squiggle1 {
  width: 68vw;
  height: 26vh;
  justify-self: center;
  z-index: 1;
}
#squiggle1 path {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  transition: stroke-dashoffset 4s;
}
#squiggle1 path.loaded {
  stroke-dashoffset: 0;
}

/* .speckle {
  background: url("images/speckle3.png");
  filter: blur(0.1rem);
  background-repeat: no-repeat;
  background-size: contain;
  background-position-x: 200%;
  height: 100%;
  width: 95vw;
  position: absolute;
  top: -5%;
  z-index: -1;
  right: 0;
} */

.speckle {
  background: url(images/speckle3.webp);
  background-repeat: no-repeat;
  background-size: contain;
  width: 68vw;
  aspect-ratio: 1 /1;
  position: absolute;
  z-index: 0;
  right: 0;
}

header h1 {
  font-size: 3.05rem;
  padding: 3rem 0 0 3rem;
  line-height: 3.05rem;
  letter-spacing: 0.24rem;
  z-index: 1;
  font-weight: 600;
}

header h1 strong {
  letter-spacing: 0.26rem;
}

#fonts_ui h1 {
  grid-column: span 2;
}

.ley {
  color: var(--dark-colour);
  font-family: var(--sans-font);
  font-weight: 600;
  letter-spacing: 0.2px;
  font-style: normal;
}

header h2 {
  align-self: flex-end;
  position: relative;
  right: 30%;
  font-size: 2.44rem;
  margin-bottom: 1rem;
  line-height: 2.44rem;
  font-weight: 600;
  z-index: 1;
  letter-spacing: 0.21rem;
}

header h2 strong {
  letter-spacing: 0.24rem;
  z-index: 1;
}

#fonts_ui header h2 {
  position: unset;
  align-self: auto;
}

#fonts_ui .assignment_text img {
  width: 100%;
}

#fonts_ui header p {
  margin-bottom: 1rem;
}

#squiggle2 {
  align-self: center;
  height: 24vh;
  width: 100%;
  z-index: 1;
}
#squiggle2 path {
  stroke-dashoffset: 700;
  stroke-dasharray: 700;
  transition: stroke-dashoffset 4s;
  transition-delay: 2s;
}
#squiggle2 path.loaded {
  stroke-dashoffset: 0;
}

#fonts_ui #squiggle3 {
  width: 66%;
  position: relative;
  left: 34%;
}

main {
  padding: 2rem 0 5rem 0;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  justify-content: center;
  align-items: center;
  background: linear-gradient(rgb(253, 252, 252), rgb(241, 223, 223)), url("noise.svg");
}

main a {
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  cursor: pointer;
}

#fonts_ui main {
  display: block;
}
#fonts_ui main h3 {
  padding: 1rem 3rem;
}

#fonts_ui .visuals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 1rem 3rem;
  gap: 3rem;
  max-width: 1915px;
  margin: auto;
}

#fonts_ui .visual_card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 2rem;
}

#fonts_ui .visuals .img {
  width: 100%;
  aspect-ratio: 1/0.65;
  background-repeat: no-repeat;
  background-size: cover;
}

#fonts_ui .visuals .img.mob-img {
  background-image: url(images/gernerockup_phone.png);
}

#fonts_ui .visuals .img.laptop-img {
  background-image: url(images/gernermockup.laptop2.png);
}

#fonts_ui .visuals .img.code-img {
  background-image: url(images/gernercode.png);
}

#fonts_ui .visuals .img.tablet-img {
  background-image: url(images/hogwartsmockup_tablet.png);
}

#fonts_ui .visuals .img.warning-img {
  background-image: url(images/hogwartmockup_warning.png);
}

#fonts_ui .visuals .img.data-img {
  background-image: url(images/hogwartsdata.png);
}

#fonts_ui .visuals .img.gameplay-img {
  background-image: url(images/gameplay_mockup.png);
}

#fonts_ui .visuals .img.assets-img {
  background-image: url(images/game-assets.png);
  background-position: center;
}

#fonts_ui .visuals .img.gamecode-img {
  background-image: url(images/game-code.png);
}

.main-text {
  margin-top: 3rem;
  max-width: 700px;
  margin: auto;
  z-index: 1;
}

main h3 {
  font-size: 1.95rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2rem;
  letter-spacing: 0.21rem;
}

.cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  justify-items: center;
  padding: 2rem;
  max-width: 1800px;
  z-index: 1;
}

.card {
  background-color: var(--lightest-colour);
  display: flex;
  flex-direction: column;
  padding: 0.8rem;
  border-radius: 4px;
  justify-content: space-between;
  box-shadow: 5px 4px 9px 2px rgb(22, 22, 22, 2%);
  max-width: 276px;
}

.card p {
  color: var(--dark-colour);
  margin-bottom: 1.2rem;
}

.card h4 {
  font-size: 1.53rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

button {
  font-family: var(--sans-font);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  background-color: var(--accent-colour2);
  width: 50%;
  border: none;
  color: var(--darkest-colour);
  padding: 0.32rem;
  border-radius: 2px;
  margin-bottom: 0.64rem;
  text-align: left;
}

button:hover {
  background-color: var(--accent-colour);
  cursor: pointer;
}

footer {
  display: flex;
  justify-content: space-between;
  background-color: var(--dark-blue);
  padding: 2rem;
}

footer .linked {
  fill: var(--light-colour);
  padding-bottom: 0.8rem;
}

.footer_text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

footer h4 {
  color: var(--lightest-colour);
  margin-bottom: 0.8rem;
}

footer a {
  color: var(--accent-colour);
}

footer a:hover {
  color: var(--accent-colour2);
}

footer #logo {
  align-self: center;
  padding: 0.8rem 0;
  padding: 0;
  height: 75px;
}

@media screen and (max-width: 1200px) {
  #squiggle1 {
    height: 15vh;
    width: 90%;
  }
}

@media screen and (max-width: 700px) {
  nav {
    padding: 0;
  }
  nav #logo {
    padding-left: 0.8rem;
  }

  #burger {
    right: 0.8rem;
  }
  header {
    padding: 0.8rem;
  }

  .nav_drop {
    padding: 0.8rem;
  }

  .nav_drop ul {
    padding: 0;
  }

  #fonts_ui header {
    display: flex;
    flex-direction: column;
  }

  #fonts_ui main h3 {
    padding: 0;
  }
  main {
    padding: 0.8rem 0.8rem 3rem 0.8rem;
  }

  main h3 {
    margin-bottom: 1rem;
  }
  .cards {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
  }

  header h1 {
    padding: 2rem 0;
    font-size: 2.44rem;
    line-height: 3.05rem;
    z-index: 1;
  }

  #fonts_ui header h1 {
    padding: 2rem 0 1rem 0;
  }

  header h2 {
    padding: 0;
    position: initial;
    font-size: 1.95rem;
    line-height: 2.44rem;
  }

  #fonts_ui header h2 {
    padding: 1rem 0;
  }

  #squiggle1 {
    width: 82vw;
    height: 13vh;
  }

  #squiggle2 {
    width: 82vw;
    height: 13vh;
  }

  #fonts_ui #squiggle3 {
    width: 46%;
    left: 9%;
    transform: rotate(8deg);
  }

  #fonts_ui .visuals {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
  }

  footer {
    flex-direction: column;
    gap: 1rem;
  }
}
