:root {
  --color-brown: #382921;
  --color-cream: #f7f3ed;
  --color-muted: #aaa5a0;
}

.article-page-preview {
  min-width: 320px;
  margin: 0;
  color: var(--color-brown);
  background: var(--color-cream);
  font-family: "Nunito", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.article-page-preview *,
.article-page-preview *::before,
.article-page-preview *::after {
  box-sizing: border-box;
}

.article-page-preview .oc-container {
  width: 100%;
  max-width: 1430px;
  margin: 0 auto;
  padding-right: 16px;
  padding-left: 16px;
}

/* Article +++ */

.blog-article {
  padding: 8px 0 68px;
  background: var(--color-cream);
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 10px;
  min-height: 24px;
  color: var(--color-muted);
  font-size: 13px;
}

.article-breadcrumbs a {
  color: var(--color-brown);
  text-decoration: none;
}

.article-breadcrumbs a:hover,
.article-breadcrumbs a:focus {
  opacity: .65;
}

.blog-article__header {
  padding: 29px 0 53px;
  text-align: center;
}

.blog-article__header h1 {
  margin: 0;
  color: var(--color-brown);
  font-family: "Playfair Display SC", Georgia, serif;
  font-size: clamp(34px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.02;
}

.blog-article__content {
  max-width: 1164px;
  margin: 0 auto;
}

.blog-article__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 7px;
  color: var(--color-muted);
  font-size: 12px;
}

.blog-article__hero-image {
  display: block;
  width: 100%;
  border-radius: 3px;
  background: #ded7cf;
  aspect-ratio: 2.28 / 1;
  object-fit: cover;
}

.blog-article__body {
  padding-top: 22px;
  color: #292522;
  font-size: 13px;
  line-height: 1.4;
}

.blog-article__body p {
  margin: 0 0 11px;
}

.blog-article__body h2 {
  margin: 23px 0 10px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

.blog-article__body h3 {
  margin: 13px 0 4px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.blog-article__body ul {
  margin: 6px 0 9px;
  padding-left: 18px;
}

.blog-article__body li + li {
  margin-top: 7px;
}

/* Article --- */

/* Related articles +++ */

.related-articles {
  padding: 40px 0 70px;
  background: var(--color-cream);
}

.related-articles .section-head__title {
  margin: 0;
  padding-bottom: 58px;
  color: var(--color-brown);
  font-family: "Playfair Display SC", Georgia, serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  line-height: 1;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.blog-card__image-link {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: #ded7cf;
  aspect-ratio: 1.82 / 1;
}

.blog-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.blog-card:hover .blog-card__image {
  transform: scale(1.025);
}

.blog-card__title {
  margin: 8px 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.blog-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  margin-top: auto;
  padding: 8px 20px;
  border: 1px solid #dfd4c6;
  border-radius: 2px;
  color: inherit;
  background: transparent;
  font-size: 16px;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.blog-card__button:hover,
.blog-card__button:focus {
  color: #fff;
  border-color: var(--color-brown);
  background: var(--color-brown);
}

.blog-card__arrow {
  font-size: 17px;
  line-height: 1;
}

.related-articles__all {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 40px;
  margin: 24px auto 0;
  padding: 8px 18px;
  border: 1px solid #bcb5ae;
  border-radius: 2px;
  color: var(--color-brown);
  background: transparent;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.related-articles__all:hover,
.related-articles__all:focus {
  color: #fff;
  border-color: var(--color-brown);
  background: var(--color-brown);
}

/* Related articles --- */

@media (max-width: 1199px) {
  .related-articles__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .related-articles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 16px;
  }
}

@media (max-width: 767px) {
  .blog-article {
    padding-bottom: 48px;
  }

  .blog-article__header {
    padding: 28px 0 40px;
  }

  .blog-article__header h1 {
    font-size: 32px;
  }

  .blog-article__hero-image {
    aspect-ratio: 1.6 / 1;
  }

  .related-articles {
    padding: 34px 0 58px;
  }

  .related-articles .section-head__title {
    padding-bottom: 38px;
  }

  .blog-card__title {
    font-size: 16px;
  }
}

@media (max-width: 575px) {
  .article-breadcrumbs {
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
  }

  .article-breadcrumbs span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .blog-article__header h1 {
    font-size: 28px;
  }

  .blog-article__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .blog-article__hero-image {
    aspect-ratio: 1.25 / 1;
  }

  .related-articles__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .related-articles .section-head__title {
    font-size: 26px;
  }
}
