:root {
  --main-background-color: #fdfdfd;
  --main-title-color: #323c4e;
  --main-accent-color: #664438;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--main-background-color);
  font-family: "Source Sans 3", sans-serif;
  font-optical-sizing: auto;
}

.container {
  max-width: 960px;
  min-width: 360px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.header {
  margin: 20px 0;
}

@media (min-width: 768px) {
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.name {
  color: var(--main-title-color);
  text-transform: lowercase;
  margin: 0px;
  font-size: 40px;
  font-weight: 700;
}

.title {
  font-weight: 400;
  font-style: italic;
  font-size: 22px;
  margin: 0;
}

.lastname {
  color: var(--main-accent-color);
}

.section-preview {
  width: 100%;
  height: 80vw;
  background: url(preview.png) no-repeat;
  background-size: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.section-preview .text {
  z-index: 5;
  font-size: 18px;
  width: 80%;
  text-align: center;
}

@media (min-width: 768px) {
  .section-preview {
    height: 711px;
  }
  .section-preview .text {
    font-size: 22px;
  }
}

.section-preview .text p {
  margin: 0;
}

.section-preview .icon {
  height: 18px;
  width: auto;
}

.section-preview .link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--main-title-color);
  font-weight: bold;
  margin-left: 6px;
  padding-bottom: -2px;
  border-bottom: 1px dotted transparent;
  transition: 0.2s all linear;
}

.section-preview .link:hover {
  border-bottom-color: var(--main-title-color);
}

.image-preview {
  max-width: 100%;
}

.social-links {
  margin: 50px 0;
  padding: 0;
  gap: 36px;
  display: flex;
  justify-content: center;
}

.social-links li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-links img {
  width: auto;
  height: 32px;
}

.divisor {
  background:
    linear-gradient(90deg, var(--main-background-color) 20px, transparent 1%)
      center,
    linear-gradient(var(--main-background-color) 20px, transparent 1%) center,
    var(--main-title-color);
  background-size: 22px 22px;
  width: 100%;
  height: 120px;
  margin: 40px 0;
}
