@import url("./reset.css");
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap");

* {
  box-sizing: border-box;
}

:root {
  --white: #fff;
  --grey-900: #48556a;
  --grey-500: #6e8098;
  --grey-400: #9daec2;
  --grey-200: #ecf2f8;

  font-size: 13px;
}

body {
  font-family: "Manrope", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
}

.text-preset-1 {
  font-weight: 700;
  font-size: 1.538rem;
  line-height: 1.3;
  letter-spacing: 0.25px;
}
.text-preset-2-medium {
  font-weight: 500;
  letter-spacing: 0.12%;
}
.text-preset-2-bold {
  font-weight: 700;
  letter-spacing: 0.12%;
}
.text-preset-3 {
  letter-spacing: 3.25px;
}
.layout {
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background-color: var(--grey-200);
}
.component {
  width: 327px;
  border-radius: 10px;
  position: relative;
}
.component__image {
  width: 100%;
  height: 200px;
}
.component__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container {
  padding: 32px 30px 18px;
  background-color: var(--white);
}
.component__title {
  color: var(--grey-900);
  margin-bottom: 24px;
}
.component__main-text {
  color: var(--grey-500);
  margin-bottom: 48px;
}
.component__author-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.component__author-info-wrapper {
  display: flex;
  align-items: center;
}
.component__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 16px;
}

.component__author-name {
  color: var(--grey-900);
}
.component__post-date {
  color: var(--grey-400);
}
.component__button {
  width: 32px;
  height: 32px;
  background-color: var(--grey-200);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}
.component__button-icon {
  background-image: url("/images/icon-share.svg");
  width: 15px;
  height: 13px;
}
.component__button.active {
  background-color: var(--grey-500);
}
.component__button-icon.active {
  background-image: url("/images/icon-share-active.svg");
}

.component__share-links a img {
  display: block;
}
.component__share-links {
  width: 100%;
  height: 76px;
  background-color: var(--grey-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 126px 22px 30px;
  position: absolute;
  right: 0;
  bottom: 0;
}
.link1 {
  text-transform: uppercase;
  color: var(--grey-400);
  text-decoration: none;
}

.hidden {
  visibility: hidden;
}

@media (min-width: 768px) {
  .component {
    display: flex;
    height: 346px;
    width: 608px;
  }
  .component__image {
    width: 229px;
    height: 100%;
    background-size: cover;
    background-position: center;
  }
  .container {
    padding: 41px 36px 41px 32px;
    height: 346px;
    width: 379px;
  }
  .component__main-text {
    margin-bottom: 24px;
  }
  .component__share-links {
    width: 248px;
    height: 55px;
    padding: 18px 39px;
    bottom: 106px;
    right: -72px;
    border-radius: 10px;
  }
  .component__share-links::after {
    content: "";
    position: absolute;
    bottom: -11px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-top: 24px solid var(--grey-900);
  }
}
@media (min-width: 1440px) {
  .component {
    display: flex;
    height: 280px;
    width: 730px;
  }
  .component__image {
    width: 285px;
    height: 100%;
    background-size: cover;
  }
  .container {
    padding: 30px 40px;
    height: 100%;
    width: 445px;
  }
  .component__main-text {
    margin-bottom: 24px;
  }
  .component__share-links {
    bottom: 96px;
    right: -68px;
  }
}
