.blog-post-page {
  --post-ink: #3e3050;
  --post-purple: #a855f7;
  --post-lilac: #f5e8ff;
  --post-border: #e9d5ff;
  color: var(--post-ink);
  background: #fff;
}

.blog-post-page main {
  overflow: clip;
  background: #fff;
}

.blog-post-page section[id] {
  scroll-margin-top: 96px;
}

.blog-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px;
  padding: 9px 32px;
  border: 1px solid var(--post-border);
  border-radius: 999px;
  color: var(--post-ink);
  background: var(--post-lilac);
  font: 300 18px / 1.2 var(--sans);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.blog-section-head {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.blog-section-head .blog-pill {
  margin-right: auto;
  margin-left: auto;
}

.blog-section-head h2 {
  margin: 0 0 22px;
  color: var(--post-ink);
  font: 700 clamp(48px, 4vw, 60px) / 1.08 var(--serif);
  letter-spacing: -0.035em;
}

.blog-section-head > p:last-child {
  max-width: 780px;
  margin: 0 auto;
  color: var(--post-ink);
  font: 400 18px / 1.55 var(--sans);
  letter-spacing: -0.02em;
}

/* Hero */
.blog-post-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 48px 0 112px;
  background:
    radial-gradient(circle at 50% 12%, rgba(229, 205, 255, 0.32), transparent 34%),
    linear-gradient(180deg, #fffaff 0%, #fff7fd 100%);
}

.blog-post-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(233, 213, 255, 0.7);
}

.blog-post-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 48px));
  max-width: 1160px;
  text-align: center;
}

@media (min-width: 992px) {
  .blog-post-page .blog-post-hero .hero-wm__text {
    font-size: clamp(72px, 10vw, 150px);
  }
}

.blog-post-hero__eyebrow {
  margin-right: auto;
  margin-left: auto;
  padding-right: 26px;
  padding-left: 26px;
  text-transform: capitalize;
}

.blog-post-hero h1 {
  max-width: 1160px;
  margin: 0 auto 28px;
  color: var(--post-ink);
  font: 700 clamp(48px, 4.15vw, 64px) / 1.06 var(--serif);
  letter-spacing: -0.045em;
}

.blog-post-hero__summary,
.blog-post-hero__story p {
  max-width: 1132px;
  margin-right: auto;
  margin-left: auto;
  color: var(--post-ink);
  font: 400 18px / 1.65 var(--sans);
  letter-spacing: -0.02em;
}

.blog-post-hero__summary {
  margin-top: 0;
  margin-bottom: 0;
}

.blog-post-hero__prompt {
  max-width: 1080px;
  margin: 34px auto 18px;
  color: var(--post-ink);
  font: 600 18px / 1.55 var(--sans);
  letter-spacing: -0.02em;
}

.blog-post-hero__story {
  display: grid;
  gap: 18px;
}

.blog-post-hero__story p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Latest topic rows */
.latest-topics {
  padding: 100px 0 100px;
  background: #fff;
}

.latest-topics__head {
  margin-bottom: 76px;
}

.latest-topics__list {
  max-width: 1132px;
  margin: 0 auto;
}

.latest-topic {
  display: grid;
  grid-template-columns: 441px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  min-height: 367px;
  padding: 50px 0;
  border-top: 1px solid rgba(62, 48, 80, 0.13);
}

.latest-topic:last-child {
  border-bottom: 1px solid rgba(62, 48, 80, 0.13);
}

.latest-topic__media {
  height: 267px;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #e7e1ea;
}

.latest-topic__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.latest-topic:nth-child(1) .latest-topic__media img {
  object-position: center 38%;
}

.latest-topic:nth-child(2) .latest-topic__media img {
  object-position: center 50%;
}

.latest-topic:nth-child(3) .latest-topic__media img {
  object-position: center 45%;
}

.latest-topic:hover .latest-topic__media img {
  transform: scale(1.035);
}

.latest-topic__content {
  min-width: 0;
}

.latest-topic__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 17px;
  color: var(--post-ink);
  font: 300 13px / 1.25 var(--sans);
  letter-spacing: -0.02em;
}

.latest-topic__tag {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  padding: 6px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-transform: uppercase;
}

.latest-topic__tag--1 {
  border-color: #e9d5ff;
  background: #f5e8ff;
}

.latest-topic__tag--2 {
  border-color: #bae6fd;
  background: #e0f2fe;
}

.latest-topic__tag--3 {
  border-color: #fbcfe8;
  background: #fce7f3;
}

.latest-topic h3 {
  margin: 0 0 18px;
  color: var(--post-ink);
  font: 700 30px / 1.18 var(--serif);
  letter-spacing: -0.02em;
}

.latest-topic__content > p {
  margin: 0 0 25px;
  color: var(--post-ink);
  font: 400 18px / 1.55 var(--sans);
  letter-spacing: -0.02em;
}

.latest-topic__link {
  display: inline-flex;
  color: var(--post-purple);
  font: 500 16px / 1.2 var(--sans);
  letter-spacing: -0.02em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, color 180ms ease;
}

.latest-topic__link--2 {
  color: #0284c7;
}

.latest-topic__link--3 {
  color: #ec4b9e;
}

.latest-topic__link:hover,
.latest-topic__link:focus-visible {
  color: #7c3aed;
  transform: translateX(4px);
}

/* Discovery cards */
.blog-discovery {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 100px 0 110px;
  background: linear-gradient(180deg, rgba(255, 234, 250, 0.52) 0%, rgba(224, 242, 254, 0.58) 100%);
}

.blog-discovery[data-show-bg-color="false"] {
  background: none;
}

.blog-discovery__texture {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("../img/blog-post/blog-grid-background.png") center / cover no-repeat;
  opacity: 0.035;
  pointer-events: none;
}

.blog-discovery[data-show-bg-image="false"] .blog-discovery__texture {
  display: none;
}

.blog-discovery__head {
  margin-bottom: 64px;
}

.blog-discovery__grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.blog-discovery__grid > div {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

.discovery-card {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 20px;
  color: var(--post-ink);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.discovery-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 46px rgba(62, 48, 80, 0.12);
}

.discovery-card--1 {
  border-color: #ddd6fe;
  background: #ede9fe;
}

.discovery-card--2 {
  border-color: #fbcfe8;
  background: #fce7f3;
}

.discovery-card--3 {
  border-color: #bae6fd;
  background: #e0f2fe;
}

.discovery-card__media {
  position: relative;
  height: 276px;
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  background: #e6e0e8;
}

.discovery-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.discovery-card--1 .discovery-card__media img {
  object-position: center 38%;
}

.discovery-card--2 .discovery-card__media img {
  object-position: center 34%;
}

.discovery-card--3 .discovery-card__media img {
  object-position: center;
}

.discovery-card:hover .discovery-card__media img {
  transform: scale(1.035);
}

.discovery-card__body {
  display: flex;
  min-height: 312px;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 20px 19px 22px;
}

.discovery-card__date {
  margin: 0 0 8px;
  font: 300 13px / 1.25 var(--sans);
  letter-spacing: -0.02em;
}

.discovery-card h3 {
  margin: 0 0 12px;
  color: var(--post-ink);
  font: 700 30px / 1.18 var(--serif);
  letter-spacing: -0.02em;
}

.discovery-card__excerpt {
  margin: 0 0 22px;
  font: 400 18px / 1.45 var(--sans);
  letter-spacing: -0.02em;
}

.discovery-card__author {
  display: grid;
  gap: 3px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(62, 48, 80, 0.18);
}

.discovery-card__author strong {
  font: 600 18px / 1.3 var(--sans);
}

.discovery-card__author span {
  font: 300 13px / 1.3 var(--sans);
}

.blog-discovery__action {
  display: flex;
  justify-content: center;
  margin-top: 52px;
}

.blog-discovery__button {
  min-height: 48px;
  padding: 12px 28px;
  font-size: 14px;
  text-transform: uppercase;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px auto 80px;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--post-border);
  border-radius: 999px;
  color: var(--post-ink);
  background: var(--post-lilac);
  font: 500 14px / 1 var(--sans);
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.blog-pagination a:hover {
  background: var(--post-purple);
  border-color: var(--post-purple);
  color: #fff;
}

.blog-pagination .is-current {
  background: var(--post-purple);
  border-color: var(--post-purple);
  color: #fff;
}

/* Shared FAQ and contact are reused, with Blog Post-specific Figma sizing. */
.blog-post-page .faq {
  padding: 100px 0 108px;
  background: #fff;
}

.blog-post-page .faq__intro {
  max-width: 1000px;
  margin-bottom: 48px;
}

.blog-post-page .faq__intro > .eyebrow,
.blog-post-page .contact__copy > .eyebrow {
  min-height: 42px;
  padding-right: 32px;
  padding-left: 32px;
}

.blog-post-page .faq__intro > .eyebrow::after,
.blog-post-page .contact__copy > .eyebrow::after {
  content: attr(data-label);
}

.blog-post-page .faq__intro > .eyebrow {
  color: var(--post-ink);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.blog-post-page .faq__intro > .eyebrow::after {
  display: none;
}

.blog-post-page .faq__intro h2 {
  margin-bottom: 18px;
  font-size: clamp(48px, 4vw, 60px);
  font-weight: 700;
}

.blog-post-page .faq__lede {
  color: var(--post-ink);
  font-size: 18px;
}

.blog-post-page .faq__list {
  max-width: 1132px;
}

.blog-post-page .contact {
  min-height: 849px;
  display: flex;
  align-items: center;
  padding: 92px 0 100px;
  background: linear-gradient(110deg, #dea2f8 0%, #c895f7 48%, #8f83f4 100%);
}

.blog-post-page .contact__grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.blog-post-page .contact__grid > div {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

.blog-post-page .contact__copy > .eyebrow {
  color: var(--post-ink);
  background: #fff;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.blog-post-page .contact__copy > .eyebrow::after {
  display: none;
}

.blog-post-page .contact__copy h2 {
  max-width: 670px;
  margin-bottom: 22px;
  font-size: clamp(48px, 4vw, 60px);
  font-weight: 700;
  line-height: 1.08;
}

.blog-post-page .contact__lede {
  max-width: 610px;
  font-size: 17px;
  line-height: 1.58;
}

.blog-post-page .contact__lede--strong {
  font-weight: 600;
}

.blog-post-page .contact-form {
  max-width: 646px;
  margin-left: auto;
  padding: 36px;
  border-radius: 20px;
}

.blog-post-page .contact-form > .row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 !important;
}

.blog-post-page .contact-form > .row > .col-md-6,
.blog-post-page .contact-form > .row > .col-12 {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

.blog-post-page .contact-form > .row > .col-12 {
  grid-column: 1 / -1;
}

@media (max-width: 1199.98px) {
  .blog-pill,
  .blog-post-page .faq__intro > .eyebrow,
  .blog-post-page .contact__copy > .eyebrow {
    min-height: 40px;
    padding: 8px 26px;
    font-size: 16px;
  }

  .blog-post-hero__summary,
  .blog-post-hero__story p {
    font-size: 18px;
  }

  .latest-topic {
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 36px;
  }

  .latest-topic h3,
  .discovery-card h3 {
    font-size: 27px;
  }

  .latest-topic__content > p,
  .discovery-card__excerpt {
    font-size: 16px;
  }
}

@media (max-width: 991.98px) {
  .blog-post-hero h1 {
    font-size: clamp(44px, 7vw, 58px);
  }

  .latest-topics,
  .blog-discovery,
  .blog-post-page .faq {
    padding-top: 78px;
    padding-bottom: 86px;
  }

  .latest-topics__head,
  .blog-discovery__head {
    margin-bottom: 48px;
  }

  .latest-topic {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    min-height: 320px;
    padding: 38px 0;
  }

  .latest-topic__media {
    height: 230px;
  }

  .latest-topic h3 {
    font-size: 25px;
  }

  .latest-topic__content > p {
    margin-bottom: 18px;
    font-size: 15px;
  }

  .latest-topic__meta {
    margin-bottom: 13px;
  }

  .blog-post-page .contact {
    min-height: 0;
    padding-top: 78px;
    padding-bottom: 86px;
  }

  .blog-post-page .contact__grid {
    grid-template-columns: 1fr;
  }

  .blog-post-page .contact__copy h2,
  .blog-post-page .contact__lede {
    margin-right: auto;
    margin-left: auto;
  }

  .blog-post-page .contact-form {
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 1199.98px) and (min-width: 768px) {
  .blog-discovery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .blog-pill,
  .blog-post-page .faq__intro > .eyebrow,
  .blog-post-page .contact__copy > .eyebrow {
    min-height: 36px;
    margin-bottom: 16px;
    padding: 7px 20px;
    font-size: 15px;
  }

  .blog-section-head h2,
  .blog-post-page .faq__intro h2,
  .blog-post-page .contact__copy h2 {
    font-size: clamp(38px, 9vw, 46px);
  }

  .blog-section-head > p:last-child,
  .blog-post-page .faq__lede {
    font-size: 15px;
  }

  .blog-post-hero {
    padding: 32px 0 70px;
  }

  .blog-post-hero h1 {
    margin-bottom: 22px;
    font-size: clamp(34px, 9vw, 46px);
    line-height: 1.08;
  }

  .blog-post-hero h1 br {
    display: none;
  }

  .blog-post-hero__summary,
  .blog-post-hero__story p,
  .blog-post-hero__prompt {
    font-size: 15px;
    line-height: 1.62;
  }

  .blog-post-hero__summary {
    margin-bottom: 0;
  }

  .blog-post-hero__prompt {
    margin-top: 26px;
    margin-bottom: 18px;
  }

  .blog-post-hero__story {
    gap: 16px;
  }

  .latest-topics,
  .blog-discovery,
  .blog-post-page .faq {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .latest-topic {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px 0 40px;
  }

  .latest-topic__media {
    height: auto;
    aspect-ratio: 1.65 / 1;
  }

  .latest-topic h3 {
    font-size: 27px;
  }

  .latest-topic__content > p {
    font-size: 15px;
    line-height: 1.6;
  }

  .discovery-card__media {
    height: auto;
    aspect-ratio: 1.58 / 1;
  }

  .discovery-card__body {
    min-height: 0;
  }

  .blog-discovery__action {
    margin-top: 38px;
  }

  .blog-discovery__grid {
    grid-template-columns: 1fr;
  }

  .blog-post-page .faq__intro {
    margin-bottom: 34px;
  }

  .blog-post-page .contact {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .blog-post-page .contact__lede {
    font-size: 15px;
  }

  .blog-post-page .contact-form {
    padding: 24px 20px;
  }
}

@media (max-width: 575.98px) {
  .blog-post-hero__inner {
    width: calc(100% - 28px);
  }

  .blog-pill,
  .blog-post-page .faq__intro > .eyebrow,
  .blog-post-page .contact__copy > .eyebrow {
    min-height: 34px;
    padding: 7px 15px;
    font-size: 14px;
  }

  .blog-post-hero h1 {
    font-size: clamp(34px, 9vw, 46px);
  }

  .latest-topic__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .latest-topic__tag {
    min-height: 29px;
    padding: 5px 16px;
    font-size: 11px;
  }

  .latest-topic h3,
  .discovery-card h3 {
    font-size: 25px;
  }

  .latest-topic__link {
    font-size: 13px;
  }

  .discovery-card__body {
    padding: 18px 17px 20px;
  }

  .discovery-card__date,
  .discovery-card__author span {
    font-size: 12px;
  }

  .discovery-card__author strong {
    font-size: 16px;
  }

  .blog-discovery__button {
    width: 100%;
    max-width: 320px;
  }

  .blog-post-page .contact-form {
    padding: 22px 16px;
  }

  .blog-post-page .contact-form > .row {
    grid-template-columns: 1fr;
  }

  .blog-post-page .contact-form > .row > .col-md-6,
  .blog-post-page .contact-form > .row > .col-12 {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .latest-topic__media img,
  .latest-topic__link,
  .discovery-card,
  .discovery-card__media img {
    transition: none !important;
  }
}
