/* || Universal Styling */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Site Colours & Font Styling*/

:root {
  --green: #44ffa1;
  --purple900: #24053e;
  --purple500: #584d62;
  --purple100: #fcf8ff;
  --white: #fff;
  --h1FontSize: 5em;
  --h2FontSize: 3.5em;
  --h3FontSize: 2em;
  --parFontSize: 1.125em;
  --par1LineHeight: 180%;
  --par2LineHeight: 150%;
}

/* || Mobile View */

/* Typography */

@font-face {
  font-family: "Fraunces";
  src: url(./assets/fonts/fraunces/static/Fraunces_144pt-SemiBold.ttf)
    format("truetype");
}

@font-face {
  font-family: "Manrope";
  src: url(./assets/fonts/manrope/Manrope-VariableFont_wght.ttf)
    format("truetype");
}

body {
  overflow-x: hidden;
}

/* Header */

header {
  position: relative;
  width: 100%;
  height: 35em;
  background-color: var(--purple900);
  padding: 2em 2em;
  border-bottom-left-radius: 100% 12%;
  border-bottom-right-radius: 100% 12%;
  margin-bottom: 12em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-img-1,
.hero-img-2 {
  position: absolute;
  display: none;
}

nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4em;
  width: 100%;
}

.hero-section {
  text-align: center;
}

.nav-link {
  color: var(--white);
  font-family: "Manrope", sans-serif, serif;
  font-weight: bold;
  font-size: var(--parFontSize);
  text-decoration-color: var(--green);
  text-decoration-thickness: 0.2em;
  text-underline-offset: 0.5em;
  transition: color 0.2s ease-in-out;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--green);
}

h1 {
  color: var(--white);
  font-family: "Fraunces", sans-serif, serif;
  font-size: var(--h2FontSize);
  font-weight: normal;
  margin-bottom: 1em;
  max-width: 10em;
}

span {
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-underline-offset: 0.2em;
}

button {
  background-color: var(--green);
  color: var(--purple900);
  border: none;
  padding: 1em 2em;
  font-size: var(--parFontSize);
  font-weight: bold;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

button:hover {
  background-color: var(--purple900);
  outline: 0.1em solid var(--green);
  color: var(--green);
}

.img-hero {
  position: absolute;
  width: 24em;
  height: auto;
  top: 80%;
  left: 50%;
  transform: translateX(-50%);
}

/* Features Section */

.features-section {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24em;
}

.features-section article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 80%;
}

.number {
  border-radius: 50%;
  border: 0.1em solid #000;
  margin-bottom: 2em;
  width: 3em;
  height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.number,
.features-section h3 {
  font-family: "Fraunces", sans-serif, serif;
}

.features-section h3 {
  margin-bottom: 1.5em;
  font-size: var(--h3FontSize);
  font-weight: lighter;
}

.article-text {
  font-family: "Manrope", sans-serif, serif;
  line-height: var(--par1LineHeight);
  margin-bottom: 2em;
  text-align: center;
}

.article-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.article-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Founder Section */

.founder-section {
  width: 100%;
  height: 30em;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.img-founder {
  position: absolute;
  top: -17em;
  left: 3em;
  height: auto;
  width: 20em;
  z-index: -1;
}

.author-article {
  background-color: var(--purple900);
  color: var(--white);
  text-align: center;
  padding: 2em 2.2em;
  width: 90%;
  position: relative;
  overflow: hidden;
}

.author-article h3 {
  font-family: "Fraunces", sans-serif, serif;
  font-size: var(--h3FontSize);
  font-weight: normal;
  margin-bottom: 1.8em;
}

.author-article p {
  font-family: "Manrope", sans-serif, serif;
  line-height: var(--par1LineHeight);
  font-size: 1.2em;
  margin-bottom: 2em;
}

.founder-img-1 {
  position: absolute;
  display: none;
}

/* Footer */

footer {
  width: 100%;
  height: 16em;
  padding: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-dark {
  margin-bottom: 4em;
}

.socials-container {
  display: flex;
  justify-content: space-between;
  width: 8em;
}

i {
  font-size: 1.8em;
  color: var(--purple500);
  transition: color 0.2s ease-in-out;
  cursor: pointer;
}

i:hover {
  color: var(--green);
}

/* ... */

/* || Tablet View */

@media screen and (min-width: 51.25em) {
  /* Hero Section */

  .hero-img-1 {
    display: block;
    top: 5em;
    left: -13em;
  }

  .hero-img-2 {
    display: block;
    top: 14em;
    right: -4em;
  }

  /* Features Section */

  .article-container {
    flex-direction: row;
  }

  .number {
    margin-right: 3em;
  }

  .article-content {
    width: 80%;
  }

  .article-content h3 {
    width: 100%;
    text-align: start;
  }

  .article-text {
    text-align: start;
  }

  .features-section {
    margin-bottom: 18em;
  }

  /* Founder Section */

  .founder-section {
    align-items: end;
    padding: 2em;
  }

  .author-article {
    width: 70%;
    text-align: left;
  }

  .img-founder {
    left: 15%;
    top: -40%;
    transform: translateX(-15%);
  }
}

/* || Desktop View */

@media screen and (min-width: 90em) {
  /* Hero Section */

  header {
    padding: 3em 8em;
  }

  .hero-img-1 {
    display: block;
    top: 5em;
    left: -8em;
  }

  .hero-img-2 {
    display: block;
    top: 14em;
    right: -4em;
  }

  .img-hero {
    width: 28em;
  }

  .features-section {
    flex-direction: row;
    align-items: start;
    width: 100%;
  }

  .number {
    margin: 0;
    margin-bottom: 1.5em;
  }

  .article-container {
    flex-direction: column;
    width: 20em;
  }

  .article-content {
    justify-content: center;
  }

  .article-content h3 {
    margin-bottom: 0.5em;
    text-align: center;
  }

  .article-text {
    text-align: center;
  }

  .img-founder {
    width: 30em;
    left: 4em;
    top: -10em;
  }

  .founder-section {
    align-items: center;
    margin-left: 10em;
  }

  .founder-img-1 {
    display: block;
    top: 60%;
    left: 55%;
    height: auto;
    z-index: 1;
  }

  .author-article {
    width: 50%;
  }
}

/* ... */

/* ... */
