/* How To — Figma Innerpages blog index. Single guides use the dark storefront. */

.site-main--how-to,
body.page-template-page-how-to {
  background: #fff;
  color: #000;
}

.site-main--guide,
body.single-post,
body.single-post.site-main--guide {
  background: #000;
  color: #fff;
}

.how-to-featured-wrap {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  margin-top: -78px;
  padding: 0 max(16px, calc((100% - 1224px) / 2));
}

.how-to-featured {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: min(1224px, 100%);
  min-height: 485px;
  background: #fff;
  box-shadow: 0 -26px 30px 2px rgba(35, 40, 88, 0.2);
}

.how-to-featured__media,
.how-to-featured__body {
  flex: 1 1 50%;
  width: 50%;
  min-width: 0;
}

.how-to-featured__media {
  display: block;
  height: 485px;
  overflow: hidden;
  background: #111;
}

.how-to-featured__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.how-to-featured__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  box-sizing: border-box;
  padding: 40px 32px 23px;
  gap: 16px;
}

.how-to-featured__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  flex-shrink: 0;
  margin: 0;
  padding: 8px;
  width: auto;
  min-width: 165px;
  height: 32px;
  background: #a78359;
  color: #000;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 16px;
  text-transform: uppercase;
  white-space: nowrap;
}

.how-to-featured__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  width: 100%;
  margin: 0;
  padding: 25px 0 0;
  gap: 16px;
}

.how-to-featured__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}

.how-to-featured__title {
  margin: 0;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  line-height: 24px;
  color: #000;
}

.how-to-featured__title a,
.how-to-card__title a {
  color: inherit;
  text-decoration: none;
}

.how-to-featured__title a:hover,
.how-to-card__title a:hover {
  color: #a78359;
}

.how-to-card__meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: rgba(0, 0, 0, 0.6);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  text-transform: uppercase;
}

.how-to-card__rule {
  display: block;
  width: 1px;
  height: 14px;
  background: #d9d9d9;
}

.how-to-featured__excerpt {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin: 0;
}

.how-to-featured__excerpt p {
  margin: 0;
  color: rgba(0, 0, 0, 0.75);
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 400;
  line-height: 25px;
}

.how-to-featured .how-to-card__more,
.how-to-card__more {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin: 0;
  padding-top: 24px;
  color: #a78359;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  text-decoration: none;
  text-transform: uppercase;
}

.how-to-card__more:hover {
  color: #8a6c3e;
}

.how-to-card__more img {
  display: block;
  width: 24px;
  height: 24px;
}

.how-to-list {
  box-sizing: border-box;
  width: 100%;
  padding: 88px 64px;
  background: #fff;
}

.how-to-grid {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.how-to-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 0;
  min-width: 0;
  background: #fff;
}

.how-to-card__media {
  display: block;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #111;
}

.how-to-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.how-to-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  gap: 16px;
  padding: 24px;
}

.how-to-card__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}

.how-to-card__title {
  margin: 0;
  min-height: 48px;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  color: #000;
}

.how-to-card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 76px;
  margin: 0;
  color: rgba(0, 0, 0, 0.75);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
}

.how-to-card .how-to-card__more {
  margin-top: auto;
}

.site-main--guide {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: calc(var(--header-height) + 48px) 64px 96px;
  background: #000;
  color: #fff;
}

.guide-article {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  color: #fff;
}

.guide-article__post {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.guide-article__back {
  margin: 0 0 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 20px;
  text-transform: uppercase;
}

.guide-article__back a {
  color: #a78359;
}

.guide-article__back a:hover {
  color: #c9a880;
}

.guide-article__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 0 32px;
  text-align: center;
}

.guide-article .page-header h1 {
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.guide-article .entry-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  color: #a78359;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 20px;
  text-transform: uppercase;
}

.guide-article__rule {
  display: block;
  width: 1px;
  height: 14px;
  background: rgba(167, 131, 89, 0.45);
}

.guide-article .entry-hero {
  width: 100%;
  margin: 0 0 40px;
}

.guide-article .entry-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.guide-article .entry-content {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 28px;
  text-align: left;
}

.guide-article .entry-content > *:first-child {
  margin-top: 0;
}

.guide-article .entry-content h2,
.guide-article .entry-content h3 {
  color: #fff;
  font-family: var(--font-sans);
}

.guide-article .entry-content a {
  color: #a78359;
}

.guide-article .entry-content a:hover {
  color: #c9a880;
}

.guide-article .entry-content p {
  margin: 0 0 1em;
}

@media (max-width: 1399px) {
  .how-to-featured-wrap {
    margin-top: -56px;
    padding: 0 24px;
  }

  .how-to-list {
    padding: 40px 24px 56px;
  }

  .site-main--guide {
    padding: calc(var(--header-height) + 32px) 24px 64px;
  }

  .guide-article .page-header h1 {
    font-size: 32px;
  }
}

@media (max-width: 1023px) {
  .how-to-featured {
    flex-direction: column;
    min-height: 0;
    height: auto;
  }

  .how-to-featured__media,
  .how-to-featured__body {
    flex: none;
    width: 100%;
    height: auto;
  }

  .how-to-featured__media {
    height: 240px;
  }

  .how-to-featured__body {
    justify-content: flex-start;
    min-height: 0;
    padding: 24px 24px 20px;
    gap: 12px;
  }

  .how-to-featured__copy {
    padding-top: 0;
    gap: 12px;
  }

  .how-to-featured__title {
    font-size: 22px;
    line-height: 26px;
  }

  .how-to-featured__excerpt p {
    font-size: 16px;
    line-height: 22px;
  }

  .how-to-featured .how-to-card__more {
    padding-top: 8px;
  }

  .how-to-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }
}

@media (max-width: 767px) {
  .how-to-featured-wrap {
    margin-top: -64px;
    padding: 0 16px;
  }

  .how-to-featured {
    box-shadow: 0 8px 24px rgba(35, 40, 88, 0.12);
  }

  .how-to-featured__media {
    height: 200px;
  }

  .how-to-featured__body {
    padding: 16px 16px 20px;
    gap: 10px;
  }

  .how-to-featured__title {
    font-size: 20px;
    line-height: 24px;
  }

  .how-to-card__meta {
    flex-wrap: wrap;
    font-size: 13px;
    line-height: 16px;
  }

  .how-to-list {
    padding: 24px 16px 40px;
  }

  .site-main--guide {
    padding: calc(var(--header-height) + 24px) 16px 48px;
  }

  .guide-article .entry-meta {
    flex-wrap: wrap;
    font-size: 13px;
  }

  .how-to-grid {
    grid-template-columns: 1fr;
  }

  .how-to-card__media {
    height: 200px;
  }

  .how-to-card__title {
    min-height: 0;
  }

  .how-to-card__excerpt {
    min-height: 0;
  }

  .how-to-card__body {
    padding: 16px;
  }
}
