:root {
  --main-color: #fef30a;
  --text-color: #232020;
  --font-title: 'Archivo', sans-serif;
  --font-code: 'PT Mono', monospace;
}

::selection {
  background: var(--main-color);
  color: var(--text-color);
}

::-moz-selection {
  background: var(--main-color);
  color: var(--text-color);
}

* {
  box-sizing: inherit;
}

html {
  font-size: 10px;
  box-sizing: border-box;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  background: #fff;
  height: 100%;
  color: var(--text-color);
  cursor: default;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.fork-button {
  display: block;
  position: absolute;
  width: 30em;
  padding: .5em 0;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-color);
  background: var(--main-color);
  transform: rotate(45deg);
  top: 5em;
  right: -9em;
  z-index: 10;
}

/* Header */
.header {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-top: 5px solid var(--main-color);
  padding: 1em 2em 0;
}

.header-top {
  display: flex;
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}

.header-column {
  flex: 1;
}

.header-column--menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header-logo img {
  max-width: 200px;
}

/* Menu */
.header-menu-list {
  list-style: none;
  margin: 0;
  padding: 1.2em 0 0 0;
  display: flex;
}

.header-menu-list li:not(:first-child) {
  margin-left: 5em;
}

.header-menu-list a {
  position: relative;
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-color);
  padding: .6em 0;
  border-radius: 3px;
  transition: background .5s ease;
}

.header-menu-list a:after {
  content: "";
  bottom: 0;
  display: block;
  height: 2px;
  left: 50%;
  position: absolute;
  background: var(--main-color);
  transition: width .3s ease 0s, left .3s ease 0s;
  width: 0;
}

.header-menu-list a:hover:after {
  width: 100%;
  left: 0;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.header-main-content {
  max-width: 800px;
  margin: -6em auto 0;
  text-align: center;
}

.header-main-title {
  font-family: var(--font-title);
  font-size: 4.3rem;
  color: #222;
  line-height: 1.3;
}

code {
  font-family: var(--font-code);
  font-size: 1.8rem;
  display: inline-block;
  border: 2px solid var(--main-color);
  padding: 1em 2em;
}

#scroll-indicator {
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  height: 50px;
  width: 30px;
  bottom: 40px;
  border: 2px solid var(--text-color);
  border-radius: 20px;
  opacity: .2;
  transition: opacity 1s ease;
}

#scroll-indicator:before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background-color: var(--text-color);
  border-radius: 100%;
  animation: scroll-down 2s infinite;
}

#scroll-indicator.hide {
  opacity: 0;
}

/* Section: Features */
.section-features-content {
  margin: 0 auto;
  max-width: 1040px;
  padding: 0 2em 10em;
}

.section-features-content-item {
  display: flex;
  padding: 5em 0 10em;
}

.section-features-column__image {
  position: relative;
  text-align: right;
}

.section-features-column__image:before {
  content: '';
  display: block;
  width: 50%;
  height: 100px;
  position: absolute;
  left: 5em;
  top: 50%;
  margin-top: -50px;
  background: var(--main-color);
  z-index: -1;
}

.section-features-content-item:last-child .section-features-column__image:before {
  width: 60%;
  left: 0;
}

.section-features-content-item:last-child .section-features-column__text {
  text-align: right;
}

.section-features-content-item:last-child .section-feature-description {
  padding-right: 0;
  padding-left: 5em;
}

.section-features-column__image img {
  max-width: 85%;
  mix-blend-mode: darken;
}

.section-features-column__text {
  flex: 1;
}

.section-feature-title {
  font-size: 3rem;
  color: var(--text-color);
  margin: 0;
  padding: 1em 0 .8em;
  font-family: var(--font-title);
}

.section-feature-description {
  margin: 0;
  padding: 0;
  font-size: 1.6rem;
  color: #333;
  line-height: 2;
  padding-right: 5em;
}

.section-feature-description a {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
  padding: 0 2px;
  font-weight: bold;
}

.section-feature-description a:before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 3px;
  bottom: 3px;
  background: var(--main-color);
  z-index: -1;
  transition: height .3s cubic-bezier(0.67, 0.04, 0, 1.21);
}

.section-feature-description a:hover:before  {
  height: 78%;
}

/* Section: Get Started */
.section-started {
  background: var(--main-color);
  overflow: hidden;
}

.get-started-image {
  position: absolute;
  right: 0;
  top: 10em;
  max-width: 420px;
  mix-blend-mode: darken;
  transform: rotate(-15deg);
}

.section-started-content {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 8em 2em 2em 2em;
}

.section-started-title {
  font-family: var(--font-title);
  font-size: 4.3rem;
  margin: 0;
  padding: 0 0 1.3em 0;
}

.section-started-subtitle {
  font-family: var(--font-title);
  font-size: 2.4rem;
  margin: 0;
  padding: 0 0 1em 0;
}

.started-steps {
  list-style: none;
  margin: 0;
  padding: 1em 0 5em 0;
}

.started-steps li {
  font-size: 1.8rem;
  margin-bottom: 1.4em;
  line-height: 1.6;
}

.started-steps li p {
  margin: 0 0 1.2em 0;
  padding: 0;
}

.started-steps li span {
  padding: 0 1em;
}

.started-steps li code {
  background: #fff;
  font-size: 1.6rem;
  padding: 1em 1.2em;
  margin-bottom: .5em;
}

/* Footer */
.footer {
  background: var(--text-color);
  padding: 4em 0;
}

.footer-content {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 2em;
}

.footer-content p {
  color: #eee;
  margin: 0;
  padding: 0;
  font-size: 1.4rem;
}

.footer-content p a {
  color: inherit;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid #333;
  transition: border .5s ease;
}

.footer-content p a:hover {
  color: #fff;
  border-bottom-color: var(--main-color);
}

.footer-content p img {
  max-width: 18px;
  display: inline-block;
  vertical-align: middle;
  margin: -3px .3em 0;
}

.footer-image {
  position: absolute;
  max-width: 80px;
  top: -.8em;
  right: 2em;
}

/* Breakpoints */
@media (max-width: 1200px) {
  .header-menu {
    padding-right: 10em;
  }
}

@media (max-width: 800px) {
  .fork-button {
    display: none;
  }

  .header-menu {
    padding-right: 0;
  }

  .section-features-content {
    padding-bottom: 0;
  }

  .section-features-content-item {
    flex-direction: column;
  }

  .section-features-content-item:first-child {
    flex-direction: column-reverse;
  }

  .section-features-column__image {
    text-align: left;
  }

  .section-features-column__image img {
    max-width: 100%;
  }

  .section-features-column__image:before {
    left: 0;
  }

  .section-feature-description {
    padding-right: 1em;
  }

  .section-features-content-item:last-child .section-features-column__text {
    text-align: left;
  }

  .section-features-content-item:last-child .section-feature-description {
    padding-left: 0;
    padding-right: 1em;
  }
}

@media (max-width: 580px) {
  .header-menu,
  .get-started-image,
  #scroll-indicator {
    display: none;
  }

  .fork-button {
    display: block;
    top: 4em;
    right: -10em;
    font-size: 1em;
    font-weight: bold;
    padding: .7em 0;
  }

  .header {
    height: 550px;
  }

  .header-logo {
    margin-left: -5px;
  }

  .header-main-content {
    text-align: left;
  }

  .header-main-title {
    font-size: 3.5rem;
  }

  .section-started-content {
    padding-top: 6em;
  }
}

/* Animations */
@keyframes scroll-down {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  80% {
    transform: translate(0, 20px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
