@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: #353732;
}

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

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  padding: 0 16px;
}

/* header */

.header {
  padding: 20px 0;
  background: #ffffff;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand__logo {
  width: 78px;
  height: 40px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__item {
  font-family: Georgia, serif;
  color: #353732;
  font-size: 15px;
  line-height: 16px;
}

/* hero */

.hero {
  padding-top: 80px;
  padding-bottom: 100px;
  background: #ffffff;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero__logo-box {
  width: 94px;
  height: 48px;
}

.hero__logo {
  width: 94px;
  height: 48px;
  object-fit: contain;
}

.hero__title {
  max-width: 768px;
  margin: 0;
  font-family: "Palatino Linotype", Georgia, serif;
  font-size: 36px;
  line-height: 40px;
  color: #353732;
}

/* posts */

.posts {
  padding-top: 110px;
  padding-bottom: 40px;
  background: #fafafa;
}

.posts .container {
  display: grid;
  grid-template-columns: 507px 245px;
  column-gap: 16px;
  row-gap: 16px;
  align-items: start;
}

.posts__right-column {
  display: grid;
  row-gap: 16px;
}

.posts__row-top {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 376px 376px;
  column-gap: 16px;
}

.posts__row-bottom {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 245px 245px 245px;
  column-gap: 16px;
}

.card-big,
.card-small,
.card-medium,
.card-review {
  background: #ffffff;
}

.card-big {
  width: 507px;
}

.card-small {
  width: 245px;
}

.card-medium {
  width: 376px;
}

.card-review {
  width: 245px;
}

.card-big__image {
  width: 507px;
  height: 284px;
  object-fit: cover;
}

.card-small__image {
  width: 245px;
  height: 137px;
  object-fit: cover;
}

.card-medium__image {
  width: 376px;
  height: 210px;
  object-fit: cover;
}

.card-review__image {
  width: 245px;
  height: 150px;
  object-fit: cover;
}

.card-big__content,
.card-small__content,
.card-medium__content,
.card-review__content {
  padding: 20px;
}

.card-big__category,
.card-small__category,
.card-medium__category,
.card-review__category {
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 12px;
  letter-spacing: 2px;
  color: #353732;
  font-family: "Poppins", sans-serif;
}

.card-big__title,
.card-small__title,
.card-medium__title,
.card-review__title {
  margin: 0 0 8px;
  color: #45525b;
  font-family: "Palatino Linotype", Georgia, serif;
}

.card-big__title {
  font-size: 25px;
  line-height: 33.6px;
}

.card-small__title,
.card-medium__title,
.card-review__title {
  font-size: 18px;
  line-height: 21.6px;
}

.card-big__text {
  margin: 0 0 34px;
  font-size: 14px;
  line-height: 22.4px;
  color: #45525b;
  font-family: Georgia, "Times New Roman", serif;
}

.card-big__date,
.card-small__date,
.card-medium__date,
.card-review__date {
  font-size: 11px;
  line-height: 16.8px;
  color: #45525b;
  font-family: Georgia, "Times New Roman", serif;
}

/* subscribe */

.subscribe {
  padding: 100px 0;
  background-color: #ffffff;
}

.subscribe__content {
  display: grid;
  grid-template-columns: 376px 376px;
  column-gap: 16px;
  align-items: start;
}

.subscribe__info h2 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 38.4px;
  font-weight: 400;
  color: #353732;
  font-family: "Palatino Linotype", Georgia, serif;
}

.subscribe__info p {
  margin: 0;
  max-width: 373px;
  font-size: 16px;
  line-height: 22.4px;
  color: #353732;
  font-family: Georgia, serif;
}

.subscribe__form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.subscribe__form input {
  width: 376px;
  height: 38px;
  margin-bottom: 16px;
  padding: 0 12px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  font-size: 14px;
  font-family: Georgia, serif;
  background-color: transparent;
}

.subscribe__form button {
  width: 82px;
  height: 38px;
  border: none;
  border-radius: 4px;
  background-color: #353735;
  cursor: pointer;
}

/* list */

.list {
  padding: 40px 0 80px;
  background: #fafafa;
}

.list__item {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.list__item img {
  width: 200px;
  height: 132px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.list__content h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 24px;
  color: #45525b;
  font-family: "Palatino Linotype", Georgia, serif;
}

.list__content p {
  margin: 0 0 8px;
  line-height: 22.4px;
  font-size: 16px;
  color: #45525b;
  font-family: Georgia, "Times New Roman", serif;
}

.list__content span {
  font-size: 11px;
  line-height: 16.8px;
  color: #45525b;
  font-family: Georgia, "Times New Roman", serif;
}

/* archive */

.archive {
  display: flex;
  justify-content: center;
  padding: 20px 0 60px;
}

.archive__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  color: #575445;
  font-size: 15px;
  line-height: 22.4px;
}

/* footer */

.footer {
  padding: 100px 0;
  background: #ffffff;
}

.footer__top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.footer__logo {
  width: 78px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer__text {
  max-width: 491px;
  margin: 0;
  font-size: 14px;
  line-height: 22.4px;
  color: #353732;
  font-family: Georgia, serif;
}

.footer__links {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 13px;
  line-height: 22.4px;
  color: #45525b;
  font-family: Georgia, serif;
}

/* mobile */

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .header__inner,
  .nav,
  .list__item,
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    gap: 12px;
    margin-top: 12px;
  }

  .hero {
    padding-top: 50px;
    padding-bottom: 60px;
  }

  .hero__title {
    font-size: 28px;
    line-height: 34px;
  }

  .posts {
    padding-top: 60px;
  }

  .posts .container,
  .posts__row-top,
  .posts__row-bottom,
  .subscribe__content {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .card-big,
  .card-small,
  .card-medium,
  .card-review,
  .card-big__image,
  .card-small__image,
  .card-medium__image,
  .card-review__image,
  .subscribe__form input {
    width: 100%;
  }

  .card-big__image,
  .card-small__image,
  .card-medium__image,
  .card-review__image {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .list__item img {
    width: 100%;
    height: auto;
  }

  .list__content h3 {
    font-size: 16px;
    line-height: 22px;
  }

  .list__content p {
    font-size: 14px;
    line-height: 20px;
  }

  .subscribe {
    padding: 60px 0;
  }

  .footer {
    padding: 60px 0;
  }
}
