@font-face {
  font-family: 'Comic Sans';
  src: url('./assets/comic-sans.woff');
}

html,
body,
h1,
h2,
p {
  margin: 0;
}

body {
  font-family: 'Comic Sans', sans-serif;
  letter-spacing: 0.05em;
  font-size: 22px;
  line-height: 1.7;
  font-weight: 500;
}

.root {
  margin: 0 auto;
  max-width: 1440px;
  padding: 200px 80px;
}

.logo {
  margin-bottom: 120px;
}

.logo img {
  display: inline-block;
  width: 10%;
}

.text-flex {
  display: flex;
  align-items: center;
}

.arrow-next {
  margin: 80px auto 40px;
  display: block;
  width: 60%;
}

.arrow-down {
  margin: 80px auto 40px;
  display: block;
  width: 15%;
}

.section {
  display: flex;
  align-items: center;
}

.section:last-child {
  border-radius: 20px;
  background-color: #f0f0f0;
  padding: 40px;
}

.reverse {
  flex-direction: row-reverse;
}

.photo {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  flex: 4;
  width: 1%;
}

.content {
  flex: 3;
}

.photo + .content {
  margin-left: 80px;
}

.content + .photo {
  margin-left: 80px;
}

.label {
  position: relative;
  display: inline-block;
}

.label::after {
  content: ' ';
  display: block;
  position: absolute;
  top: -8px;
  left: -12px;
  bottom: -8px;
  right: -12px;
  z-index: -1;
  background: no-repeat center center;
  background-size: contain;
}

.label-green::after {
  background-image: url('./assets/label-green.svg');
}

.label-pink::after {
  background-image: url('./assets/label-pink.svg');
}

.label-yellow::after {
  background-image: url('./assets/label-yellow.svg');
}
.label-red::after {
  background-image: url('./assets/label-red.svg');
}

.button {
  display: inline-block;
  background: no-repeat center center;
  background-size: contain;
}

.button:hover {
  opacity: 0.8;
}

.button-linkedin {
  width: 260px;
  aspect-ratio: 380 / 100;
  background-image: url('./assets/button-linkedin.svg');
}

.button-tinyfrontend {
  width: 280px;
  aspect-ratio: 435 / 100;
  background-image: url('./assets/button-tinyfrontend.svg');
}

h1,
h2 {
  font-family: 'Lilita One', sans-serif;
  font-weight: 400;
}

h1 {
  font-size: 64px;
}

h2 {
  font-size: 44px;
}

p {
  margin-top: 24px;
}

.text-comment {
  color: #999;
  font-size: 80%;
}

@media screen and (max-width: 799px) {
  body {
    font-size: 18px;
  }
  .root {
    padding: 160px 20px;
  }
  .section {
    flex-direction: column;
  }

  .section:last-child {
    padding: 20px;
  }

  .section:nth-of-type(2n + 1) {
    flex-direction: column-reverse;
  }

  .logo {
    width: 30%;
  }

  .photo {
    margin-top: 40px;
    width: 100%;
    flex: auto;
  }

  .content + .photo,
  .photo + .content {
    margin-left: 0;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

  .text-flex {
    flex-direction: column;
  }

  .arrow-next,
  .arrow-down {
    margin: 40px auto 20px;
  }

  .button {
    margin: 0 auto;
    display: block;
  }
}
