.blog-page {
  color: #172033;
  background: #fff;
  min-height: 100%;
}

.blog-page__shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.blog-page__hero {
  overflow: hidden;
  padding: 96px 0 88px;
  text-align: center;
  border-bottom: 1px solid #e8e4ef;
  background:
    radial-gradient(circle at 9% 38%, rgba(179, 129, 255, .18), transparent 30%),
    radial-gradient(circle at 90% 88%, rgba(255, 159, 87, .16), transparent 30%),
    linear-gradient(135deg, #fbf9ff, #fff 52%, #fffaf6);
}

.blog-page__eyebrow,
.blog-page__meta {
  margin: 0;
  color: #7c3aed;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.blog-page__hero h1,
.blog-page__section-heading h2,
.blog-article h1 {
  margin: 22px 0 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.03;
  letter-spacing: -.055em;
  font-weight: 800;
}

.blog-page h1 span,
.blog-page h2 span {
  background: linear-gradient(90deg, #7c3aed, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.blog-page__rule {
  width: 64px;
  height: 1px;
  margin: 48px auto 30px;
  background: linear-gradient(90deg, #7c3aed, #f97316);
}

.blog-page__quote {
  max-width: 650px;
  margin: 0 auto;
  color: #27334a;
  font-family: Georgia, serif;
  font-size: clamp(24px, 3.3vw, 38px);
  font-style: italic;
  line-height: 1.32;
}

.blog-page__quote span { color: #7c3aed; font-style: normal; }

.blog-page__featured,
.blog-page__recent { padding: 88px 0; }
.blog-page__recent { background: #faf9fc; border-block: 1px solid #ece8f2; }

.blog-page__section-heading { text-align: center; margin-bottom: 44px; }
.blog-page__section-heading h2 { margin-top: 13px; font-size: clamp(31px, 4vw, 50px); }

.blog-featured-card {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(0, 3fr);
  gap: 44px;
  padding: 40px;
  color: inherit;
  text-decoration: none;
  border: 1px solid #e7e3ee;
  border-radius: 26px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.blog-featured-card:hover,
.blog-entry-card:hover { border-color: #c4b5fd; box-shadow: 0 16px 36px rgba(69, 35, 116, .12); transform: translateY(-2px); }

.blog-featured-card__image,
.blog-entry-card__image {
  display: grid;
  overflow: hidden;
  min-height: 170px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #eee6ff, #fff1e5);
  color: #9b6af0;
  font-size: 58px;
}

.blog-featured-card__image img,
.blog-entry-card__image img,
.blog-article__hero-image { width: 100%; height: 100%; object-fit: cover; }

.blog-featured-card__body { display: flex; flex-direction: column; align-items: flex-start; }
.blog-page__meta { color: #64748b; letter-spacing: .16em; }
.blog-page__meta strong { color: #7c3aed; }
.blog-page__meta span { color: #94a3b8; }
.blog-featured-card h3,
.blog-entry-card h3 { margin: 17px 0 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.16; letter-spacing: -.035em; }
.blog-featured-card__excerpt { margin: 20px 0 0; color: #64748b; line-height: 1.65; }
.blog-featured-card footer { display: flex; width: 100%; justify-content: space-between; gap: 16px; margin-top: 28px; color: #64748b; font-size: 14px; }
.blog-featured-card footer span:last-child { color: #243047; font-weight: 650; }

.blog-entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.blog-entry-card { display: flex; flex-direction: column; padding: 0 24px 24px; color: inherit; text-decoration: none; border: 1px solid #e7e3ee; border-radius: 18px; background: #fff; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.blog-entry-card__image { min-height: 150px; margin: 0 -24px 22px; border-radius: 0; }
.blog-entry-card h3 { font-size: 20px; }
.blog-entry-card > p:not(.blog-page__meta) { margin: 14px 0 0; color: #64748b; font-size: 14px; line-height: 1.6; }
.blog-entry-card__link { margin-top: 20px; color: #243047; font-size: 14px; font-weight: 650; }

.blog-page__empty { padding: 96px 0; text-align: center; }
.blog-page__empty h1,
.blog-page__empty h2 { margin: 0; font-size: 32px; letter-spacing: -.035em; }
.blog-page__empty p { color: #64748b; }
.blog-page__empty a { color: #6d28d9; font-weight: 650; }

.blog-article { padding: 78px 0 110px; background: linear-gradient(180deg, #fbfaff, #fff 35%); }
.blog-article__shell { max-width: 780px; }
.blog-article__back { display: inline-block; margin-bottom: 42px; color: #6d28d9; font-size: 14px; font-weight: 650; text-decoration: none; }
.blog-article h1 { margin-top: 18px; font-size: clamp(38px, 5.8vw, 64px); }
.blog-article__deck { margin: 25px 0 0; color: #556277; font-size: 21px; line-height: 1.55; }
.blog-article__byline { margin-top: 28px; color: #64748b; font-size: 14px; }
.blog-article__byline span { margin: 0 8px; color: #c2bbcc; }
.blog-article__hero-image { max-height: 470px; margin-top: 42px; border-radius: 22px; }
.blog-article__body {
  margin-top: 48px;
  color: #2f3b50;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
}

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

.blog-article__body h2,
.blog-article__body h3 {
  margin: 35px 0 14px;
  color: #172033;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.18;
}

.blog-article__body h2 { font-size: 29px; }
.blog-article__body h3 { font-size: 23px; }

.blog-article__body ul {
  margin: 0 0 22px;
  padding-left: 1.6em;
  list-style-position: outside;
}

.blog-article__body li {
  padding-left: .2em;
  margin: 5px 0;
}

.blog-article__body a { color: #6d28d9; }

@media (max-width: 760px) {
  .blog-page__shell { width: min(100% - 32px, 1120px); }
  .blog-page__hero { padding: 72px 0 64px; }
  .blog-page__featured, .blog-page__recent { padding: 62px 0; }
  .blog-featured-card { grid-template-columns: 1fr; gap: 26px; padding: 24px; }
  .blog-entry-grid { grid-template-columns: 1fr; }
  .blog-article { padding: 54px 0 78px; }
}


/* Small dependency-free editor used by BlogEntry's Content tab. */
.blog-entry-wysiwyg {
  width: min(100%, 900px);
  margin: 8px 0;
  border: 1px solid #cfc7da;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(32, 20, 49, .07);
  overflow: hidden;
}

.blog-entry-wysiwyg__toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-bottom: 1px solid #ddd6e7;
  background: #faf9fc;
}

.blog-entry-wysiwyg__toolbar button {
  min-width: 34px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #344057;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}

.blog-entry-wysiwyg__toolbar button:hover,
.blog-entry-wysiwyg__toolbar button:focus-visible {
  border-color: #c4b5fd;
  background: #f1edff;
  color: #5b21b6;
  outline: none;
}

.blog-entry-wysiwyg__toolbar button.is-active {
  border-color: #8b5cf6;
  background: #ede9fe;
  color: #5b21b6;
  box-shadow: inset 0 0 0 1px rgba(91, 33, 182, .08);
}

.blog-entry-wysiwyg__divider {
  width: 1px;
  height: 22px;
  margin: 0 3px;
  background: #ded8e6;
}

.blog-entry-wysiwyg__editor {
  box-sizing: border-box;
  min-height: 430px;
  max-height: 620px;
  overflow-y: auto;
  padding: 30px 34px;
  color: #2f3b50;
  background: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  outline: none;
}

.blog-entry-wysiwyg__editor:focus {
  box-shadow: inset 0 0 0 2px rgba(124, 58, 237, .18);
}

.blog-entry-wysiwyg__editor p {
  margin: 0 0 18px;
}

.blog-entry-wysiwyg__editor h2,
.blog-entry-wysiwyg__editor h3 {
  margin: 35px 0 14px;
  color: #172033;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.blog-entry-wysiwyg__editor h2 { font-size: 29px; }
.blog-entry-wysiwyg__editor h3 { font-size: 23px; }

.blog-entry-wysiwyg__editor ul {
  margin: 0 0 22px;
  padding-left: 1.6em;
  list-style-position: outside;
}

.blog-entry-wysiwyg__editor li {
  padding-left: .2em;
  margin: 5px 0;
}

@media (max-width: 640px) {
  .blog-entry-wysiwyg__editor {
    min-height: 340px;
    padding: 22px;
    font-size: 16px;
  }
}
