@import url('https://fonts.googleapis.com/css2?family=Jaro:opsz@6..72&family=Radio+Canada+Big:ital,wght@0,400..700;1,400..700&display=swap');

:root {
  --ff-heading: "Jaro", sans-serif;
  --ff-main: "Radio Canada Big", sans-serif;

  --black: #0a0908ff;
  --chocolate-cosmos: #49111cff;
  --white-smoke: #f2f4f3ff;
  --beaver: #a9927dff;
  --walnut-brown: #5e503fff;
  --rich-black: #04151fff;
  --dark-slate-gray: #183a37ff;
  --wheat: #efd6acff;
  --mahogany: #c44900ff;
  --dark-purple: #432534ff;
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  line-height: 1.5;
  font-family: var(--ff-main);
  background-color: var(--beaver);
}
input, button {
  font: inherit;
}
img {
  display: block;
  max-width: 100%;
}

/* UTILITIES */
.container {
  max-width: 1440px;
  width: 90%;
  margin-inline: auto;
}
.ff-heading {
  font-family: var(--ff-heading);
}
.flex {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.flex-center {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.flex-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.letter-space-one {
  letter-spacing: 1px;
}
.letter-space-two {
  letter-spacing: 2px;
}
.two-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 5rem 0;
}
.three-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 5rem 0;
}
.four-block {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 5rem 0;
}
.hidden {
  display: none
}
.visible {
  display: block;
}

/* HEADER STYLES */
#header {
  background-color: var(--chocolate-cosmos);
  padding: 0.4rem 0;
  position: fixed;
  width: 100%;
  z-index: 12;
}
.header-nav .flex {
  gap: 2rem;
}
.header-nav li {
  list-style: none;
}
.header-nav a {
  text-decoration: none;
  color: var(--white-smoke);
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  transition: all 0.1s ease;
  box-shadow: 0 2px 2 0 var(--chocolate-cosmos);
}
.header-nav a:hover {
  border-bottom: 4px solid var(--wheat);
  color: var(--wheat);
}
.hamburger {
  display: none;
  border: none;
  background-color: var(--chocolate-cosmos);
  color: var(--white-smoke);
  font-size: 1.4rem;
  cursor: pointer;
}
.mobile-nav {
  position: absolute;
  background-color: var(--chocolate-cosmos);
  top: 3.8rem;
  padding: 0.4rem 1.4rem;
  border-radius: 0.4rem;
  right: 1.4rem;
}
.mobile-nav li {
  list-style: none;
}
.mobile-nav a:hover {
  color: var(--wheat);
  border-bottom: 3px solid var(--wheat);
}
.mobile-nav a {
  text-decoration: none;
  color: var(--white-smoke);
  font-family: var(--ff-heading);
  letter-spacing: 2px;
  font-size: 1.4rem;
}

/* HEADER MEDIA QUERIES */
@media (max-width: 560px) {
  .header-nav {
    display: none;
  }
  .hamburger {
    display: block;
  }
}

/* HERO STYLES */
#hero {
  background-color: var(--black);
  color: var(--white-smoke);
  height: 80vh;
  padding-top: 2rem;
}
.hero-image {
  width: 70%;
  margin-left: 7rem;
  margin-top: 3rem;
  transition: transform 0.2s ease-in;
}
.hero-image:hover {
  transform: scale(1.04);
}
.hero-title h1 {
  font-size: 4.6rem;
  color: var(--wheat);
  line-height: 1.1;
}
.hero-title p {
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin: 1rem 0;
  line-height: 1.1;
}
.hero-title a {
  border: none;
  background-color: var(--dark-purple);
  color: var(--white-smoke);
  text-decoration: none;
  padding: 0.4rem 1rem;
  font-size: 1.4rem;
  border-radius: 0.4rem;
  transition: all 0.1s ease-in;
}
.hero-title i {
  margin-left: 0.4rem;
  font-size: 1.2rem;
}
.hero-title a:hover {
  background-color: var(--chocolate-cosmos);
  color: var(--white-smoke);
  transform: scale(1.04);
  box-shadow: 0 2px 0 2px var(--rich-black);
}
.hero-left-tilt {
  grid-column: span 2;
  height: 100px;
  width: 100%;
  transform: rotate(-4deg);
  right: 1rem;
}
.tilt {
  height: 20vh;
  overflow: hidden;
  position: relative;
  bottom: 13rem;
  z-index: 1;
  background-color: var(--black);
  z-index: -100;
}

/* HERO MEDIA QUERIES */
@media (max-width: 560px) {
  .hero-image {
    display: none;
  }
  #hero {
    height: 100vh;
  }
  #hero .two-block {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
  .hero-title h1 {
    font-size: 3rem;
  }
  .hero-title p {
    margin: 1rem 0;
  }
}

/* INTRODUCTION */
#introduction {
  margin-top: 8rem;
}
#introduction .container {
  gap: 4rem;
  /* align-items: baseline; */
}
.introduction-heading {
  grid-column: span 3;
}
.introduction-heading h1 {
  font-size: 4.8rem;
  /* letter-spacing: 6px; */
}
.introduction-heading p {
  margin-top: 2rem;
  font-size: 1.1rem;
  letter-spacing: 1px;
}
.introduction-quotes blockquote {
  border: 4px solid var(--black);
  margin-bottom: 1rem;
  padding: 0.8rem 1.2rem;
  font-style: italic;
  background-color: var(--dark-purple);
  color: var(--white-smoke);
  border-radius: 0.4rem;
}
.introduction-quotes blockquote footer {
  margin-top: 0.2rem;
}
.introduction-quotes blockquote:hover {
  color: var(--white-smoke);
  background-color: var(--rich-black);
  border: 4px solid var(--wheat);
}
.introduction-images {
  margin-top: 1rem;
  width: 100%;
  height: 140px;
  overflow: hidden;
}
.introduction-images .img {
  flex: 1;
  border-radius: 0.2rem;
  overflow: hidden;
  transition: transform 0.2s ease-in;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
}

/* INTRODUCTION MEDIA QUERIES */
@media (max-width: 560px) {
  #introduction .container {
    display: block;
    padding-top: 0;
  }
  .introduction-heading h1 {
    font-size: 3.2rem;
    line-height: 1.1;
  }
  .introduction-heading p {
    font-size: 1rem;
  }
  .introduction-quotes {
    margin-top: 3rem;
  }
  .introduction-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2rem;
  }
}

/* ABOUT STYLES */
#about {
  background-color: var(--dark-purple);
  color: var(--white-smoke);
}
#about .flex-center img {
  width: 60%;
  margin: 0 auto;
  border-radius: 0.4rem;
  transition: transform 0.1s ease-in;
  z-index: 1;
}
#about .flex-center img:hover {
  transform: scale(1.03);
}
.about-built-desc h2,
.about-mechanism-desc h2,
.about-solved-desc h2 {
  font-size: 5rem;
  line-height: 1;
}
.about-built-desc p,
.about-mechanism-desc p,
.about-solved-desc p {
  letter-spacing: 2px;
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
  line-height: 1.2;
}
.about-mechanism-image {
  width: 70%;
  border-radius: 0.4rem;
  overflow: hidden;
  margin-top: 3rem;
}
.about-mechanism-desc {
  position: relative;
  right: 10rem;
}
.about-solved-desc {
  margin-top: 3rem;
}
#about .two-block {
  gap: 4rem;
}
.about-solved-image img {
  width: 690px;
  margin: 0 auto;
  border-radius: 0.4rem;
}
.about-solved-image,
.about-mechanism-image {
  transition: transform 0.1s ease-in;
}
.about-solved-image:hover,
.about-mechanism-image:hover {
  transform: scale(1.03);
}

/* ABOUT MEDIA QUERIES */
@media (max-width: 560px) {
  #about .two-block {
    display: block;
  }
  #about .two-block > * h2 {
    font-size: 3.6rem;
    margin-bottom: 1rem;
  }
  .about-built-image,
  .about-mechanism-image,
  .about-solved-image {
    display: none;
  }
  .about-solved-desc,
  .about-mechanism-desc {
    margin-top: 4rem;
  }
  .about-mechanism-desc {
    position: static;
  }
}

/* EVOLUTION STYLES */
#evolution {
  background-color: var(--black);
  color: var(--white-smoke);
  line-height: 1.2;
}
#evolution h1 {
  text-align: center;
  padding-top: 5rem;
  font-size: 4.4rem;
  letter-spacing: 5px;
  font-weight: 500;
  color: var(--white-smoke);
  font-family: var(--ff-heading);
}
#evolution .two-block {
  gap: 4rem;
}
.evolution-card {
  border: 4px solid var(--beaver);
  color: var(--beaver);
  height: 100%;
  padding: 1rem 1.6rem;
  border-radius: 0.4rem;
  transition: transform 0.2s ease-in;
}
.evolution-card:hover {
  transform: scale(1.02);
}
.evolution-card h2 {
  font-size: 2.1rem;
  color: var(--beaver);
  margin-bottom: 1.6rem;
}
.evolution-card h2 i {
  margin-right: 0.4rem;
}
.evolution-card p {
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* EVOLUTION MEDIA QUERIES */
@media (max-width: 560px) {
  #evolution .two-block {
    display: block;
  }
  #evolution h1 {
    line-height: 1;
  }
  .evolution-card {
    margin-top: 2em;
  }
}

/* CULTURE STYLES */
#culture {
  background-color: var(--dark-purple);
  color: var(--white-smoke);
}
#culture .three-block {
  gap: 3.3rem;
}
#culture p {
  line-height: 1.2;
}
.culture-desc {
  grid-column: span 2;
}
.culture-desc p:not(:first-child) {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  letter-spacing: 1px;
}
.culture-desc h2 {
  font-size: 3rem;
  background: linear-gradient(270deg, var(--white-smoke), var(--beaver));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.culture-appearances {
  padding: 0.6rem 1rem;
}
.culture-appearances h2 {
  font-size: 1.3rem;
  color: var(--beaver);
  margin-bottom: 0.6rem;
}
.culture-appearances > * {
  width: 80%;
  margin: 0 auto;
}
.culture-appearances > *:not(:first-child) {
  margin-top: 2rem;
}

/* CULTURE MEDIA QUERIES */
@media (max-width: 560px) {
  #culture .three-block {
    display: block;
  }
  .culture-desc h2 {
    line-height: 1;
    margin-bottom: 0.6rem;
  }
  .culture-appearances .culture-appearance-card:first-child {
    position: relative;
    right: 3rem;
  }
  .culture-appearances .culture-appearance-card:last-child {
    position: relative;
    left: 3rem;
  }
}

/* SPEEDCUBING STYLES */
#speedcubing {
  background-color: var(--walnut-brown);
  color: var(--wheat);
}
#speedcubing .four-block div {
  overflow: hidden;
  height: 200px;
}
#speedcubing .four-block img {
  width: 100%;
}
#speedcubing h1 {
  text-align: center;
  font-size: 5.2rem;
  padding-top: 5rem;
  font-family: var(--ff-heading);
  letter-spacing: 6px;
  font-weight: 500;
}
#speedcubing .two-block {
  gap: 3rem;
}
#speedcubing .two-block p {
  line-height: 1.2;
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: 1.4rem;
}
#speedcubing .two-block {
  padding-bottom: 0;
  align-items: flex-start;
}
#speedcubing h2 {
  font-size: 2rem;
  color: var(--white-smoke);
}
.highlight {
  font-size: 1.4rem;
  color: var(--white-smoke);
}

/* SPEEDCUBING MEDIA QUERIES */
@media (max-width: 560px) {
  #speedcubing .two-block {
    display: block;
    padding-bottom: 3rem;
  }
  #speedcubing .four-block {
    display: none;
  }
  #speedcubing h1 {
    font-size: 4rem;
  }
}

/* FUN FACTS STYLES */
#funFacts {
  background-color: var(--beaver);
}
#funFacts .container {
  gap: 2rem;
}
#funFacts h1 {
  font-size: 4.2rem;
  padding-top: 5rem;
  font-family: var(--ff-heading);
  letter-spacing: 5px;
  color: var(--rich-black);
  text-align: center;
}
.fun-fact-card {
  height: 100%;
}
.fun-fact-card h2 {
  font-size: 1.6rem;
  color: var(--rich-black);
  line-height: 1;
  margin: 1rem 0;
}
.fun-fact-card p {
  font-size: 1.02rem;
}
.fun-fact-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}
.fun-fact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* FUN FACTS MEDIA QUERIES */
@media (max-width: 560px) {
  #funFacts .three-block {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

/* FOOTER STYLES  */
#footer {
  background-color: var(--black);
  color: var(--walnut-brown);
}
#footer .four-block {
  padding: 1rem 0 2rem;
}
.footer-navigations {
  height: 100%;
}
.footer-navigations ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-navigations ul li {
  list-style: none;
}
.footer-navigations ul li a {
  text-decoration: none;
  color: var(--walnut-brown);
}
.footer-navigations ul li a:hover {
  color: var(--white-smoke);
}

/* FOOTER MEDIA QUERIES */
@media (max-width: 560px) {
  #footer .four-block {
    grid-template-columns: 1fr;
    padding: 3rem 0;
  }
  #footer .four-block div:first-child {
    margin-bottom: 3rem;
  }
  #footer .four-block div:last-child p {
    margin-top: 1.4rem;
    font-size: 1.2rem;
  }
}