/* Rubik @font-face rules live in css/fonts.css. */

/* Base: styles/globals.css */
html,
body {
  padding: 0;
  margin: 0;
  font-family: 'Rubik', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

* {
  box-sizing: border-box;
}

/* Page wrapper: components/PageWrapper + assets/common/default-page-style */
.page-wrapper {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding-top: 128px;
  padding-bottom: 64px;
}

@media (max-width: 880px) {
  .page-wrapper {
    padding: 80px 8px 80px 8px;
  }
}

/* Heading: components/Heading */
.heading {
  margin: 0;
  padding: 0;
  font-style: normal;
  font-weight: 500;
}

/* Paragraph: components/Paragraph */
.paragraph {
  font-style: normal;
  font-weight: 300;
  font-size: 18px;
  line-height: 148%;
}

/* Links: assets/common/links.module.css */
.regular-link {
  color: #35b6ff;
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 22px;
}

.social-link {
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  text-transform: uppercase;
}

.social-link.github,
.social-link.unsplash {
  color: #000000;
}

.social-link.telegram {
  color: #32a8fe;
}

.social-link.twitter {
  color: #5cc4ff;
}

.social-link.instagram {
  color: #ff5d39;
}

.social-link.vk {
  color: #5cb1ff;
}

.social-link.soundcloud {
  color: #ff8139;
}

.social-link.youtube {
  color: #ff3939;
}

/* ProfileHead: components/ProfileHead */
.profile-head {
  display: flex;
  align-items: center;
}

.profile-head__photo-wrap {
  margin: 0 28px 0 0;
}

.profile-head__photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 10px solid #f2f2f2;
  background-image: url('../images/profile-photo.jpg');
  background-position: center;
  background-size: cover;
}

.profile-head__info .profile-head__name {
  font-style: normal;
  font-weight: normal;
  font-size: 28px;
  line-height: 34px;
  margin: 0;
  padding: 0;
}

.profile-head__info .profile-head__secondary {
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 22px;
  color: #6b6b6b;
}

/* About: components/About */
.about__links a + a {
  margin-left: 24px;
}

.about__social-links {
  margin-top: 28px;
}

/* Home page spacing: assets/home/style.module.css */
.photo-collection-box,
.posts-box,
.links-box {
  margin-top: 64px;
}

/* PhotoCollection: components/PhotoCollection */
.photo-collection .photos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.photo-collection .photos .photo {
  margin: 5px 0 5px 0;
  width: 210px;
  height: 120px;
  border-radius: 4px;
  background-color: #f6f6f6;
  background-position: center;
  background-size: cover;
}

.photo--1 {
  background-image: url('../images/photos/1.jpg');
}

.photo--2 {
  background-image: url('../images/photos/2.jpg');
}

.photo--3 {
  background-image: url('../images/photos/3.jpg');
}

.photo--4 {
  background-image: url('../images/photos/4.jpg');
}

.photo--5 {
  background-image: url('../images/photos/5.jpg');
}

.photo--6 {
  background-image: url('../images/photos/6.jpg');
}

.photo--7 {
  background-image: url('../images/photos/7.jpg');
}

.photo--8 {
  background-image: url('../images/photos/8.jpg');
}

.photo-collection .links {
  margin-top: 28px;
}

.photo-collection .links a + a {
  margin-left: 24px;
}

@media (max-width: 768px) {
  .photo-collection .photos {
    justify-content: center;
  }

  .photo-collection .photos .photo {
    width: 120px;
    height: 90px;
    margin: 5px;
  }
}

/* PostsOverview: components/PostsOverview */
.posts-overview .post {
  display: block;
}

.posts-overview .post:not(:first-child) {
  margin-top: 28px;
}

.posts-overview .post:hover {
  opacity: 0.7;
}

.posts-overview .post .post__continue-read {
  font-size: 80%;
  padding: 5px;
  opacity: 0.5;
}

.posts-overview .post .post__title {
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  margin-bottom: 8px;
}

.posts-overview .post .post__preview {
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 22px;
}

.posts-overview .pagination-button {
  margin: 14px 0 0 0;
  border: none;
  background: transparent;
  color: #35b6ff;
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 22px;
  padding: 8px 0;
  cursor: pointer;
}

.posts-overview .pagination-button:hover {
  opacity: 0.7;
}

/* Set by js/main.js; <noscript> in the page head reveals every post again. */
.posts-overview .post.is-hidden {
  display: none;
}

/* SocialLinks: components/SocialLinks */
.links-wrapper a:not(:first-child) {
  margin-left: 24px;
}

@media (max-width: 768px) {
  .links-wrapper a:not(:first-child) {
    margin-left: 0;
    margin-top: 24px;
  }

  .links-wrapper a {
    display: block;
    text-align: center;
  }
}

/* Tip: components/Tip */
.tip {
  all: unset;
  font-size: 14px;
  font-weight: 200;
  display: inline-block;
  padding: 8px;
  border-radius: 4px;
  background: gray;
}

.tip.red {
  background-color: #f34723;
  color: white;
}

.tip.yellow {
  background-color: #ffa333;
  color: #6b4405;
}

/* Software engineer page: assets/software-engineer/style.module.css */
.main-header-flex {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.main-header-flex .tip {
  margin-left: 8px;
}

@media (max-width: 375px) {
  .main-header-flex .tip {
    margin: 0;
  }
}

.about-box,
.timeline-box {
  margin-top: 64px;
}

ul.list li {
  font-style: normal;
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
}

strong.bold {
  font-weight: 500;
  color: #353535;
}

a.link {
  color: #55bcf6;
}

.header-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

.header-grid .contacts .row {
  display: flex;
}

.header-grid .contacts .row:not(:first-child) {
  margin-top: 8px;
}

.header-grid .contacts .col {
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 28px;
  color: #5a5a5a;
}

.header-grid .contacts .title {
  font-weight: 500;
  color: #000000;
  min-width: 100px;
}

.timeline-box .list {
  margin-top: 28px;
}

.timeline-box .timeline-item {
  display: flex;
}

.timeline-box .timeline-item:not(:first-child) {
  margin-top: 64px;
}

.timeline-box .timeline-item .range {
  min-width: 200px;
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 60px;
  margin-right: 64px;
}

.timeline-box .timeline-item .info h3.title {
  margin: 0;
  line-height: 60px;
  font-weight: bold;
  font-size: 28px;
}

.timeline-box .timeline-item .info .text {
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 24px;
}

@media (max-width: 768px) {
  .header-grid .contacts {
    margin-top: 28px;
  }
}

@media (max-width: 840px) {
  .timeline-box .timeline-item {
    flex-direction: column;
  }

  .timeline-box .timeline-item .range {
    line-height: 30px;
    margin-right: 0;
  }

  .timeline-box .timeline-item .title {
    line-height: 30px;
  }
}

/* 404 page: matches the default Next.js error screen */
.error-page {
  color: #000;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, Roboto, 'Segoe UI', 'Fira Sans', Avenir,
    'Helvetica Neue', 'Lucida Grande', sans-serif;
  height: 100vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-page__code {
  display: inline-block;
  margin: 0 20px 0 0;
  padding: 0 23px 0 0;
  font-size: 24px;
  font-weight: 500;
  vertical-align: top;
  line-height: 49px;
  border-right: 1px solid rgba(0, 0, 0, 0.3);
}

.error-page__desc {
  display: inline-block;
  text-align: left;
  line-height: 49px;
  height: 49px;
  font-size: 14px;
  font-weight: 400;
  vertical-align: middle;
}

.error-page__title {
  font-size: 14px;
  font-weight: 400;
  line-height: 49px;
  margin: 0;
}
