.blog-main {
  max-width: none;
  padding: 0;
}

.blog-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding-left: 28px;
  padding-right: 28px;
}

.blog-hero {
  background:
    radial-gradient(circle at 75% 30%, rgb(154 89 255 / 0.28), transparent 32%),
    radial-gradient(circle at 18% 68%, rgb(239 79 155 / 0.16), transparent 30%),
    var(--night);
  color: #fff;
  margin-top: -96px;
  overflow: hidden;
  padding: 196px 0 102px;
  position: relative;
}

.blog-page.has-resume-story .blog-hero {
  margin-top: 0;
  padding-top: 102px;
}

.blog-hero::before {
  background-image: radial-gradient(circle, rgb(255 255 255 / 0.46) 1px, transparent 1.5px);
  background-size: 68px 68px;
  content: "";
  inset: 0;
  opacity: 0.18;
  position: absolute;
}

.blog-hero__inner {
  position: relative;
  z-index: 1;
}

.blog-hero .section-kicker,
.blog-catalog .section-kicker,
.blog-article__footer .section-kicker {
  color: #c9adff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.blog-hero h1 {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: clamp(38px, 6vw, 72px);
  letter-spacing: -0.055em;
  line-height: 1.08;
  margin: 0;
  max-width: 990px;
}

.blog-hero h1 span {
  background: linear-gradient(90deg, #fff, #d4bcff 54%, #ffc5df);
  background-clip: text;
  color: transparent;
}

.blog-hero__inner > p:last-child {
  color: #c8bddb;
  font-size: 17px;
  line-height: 1.75;
  margin: 30px 0 0;
  max-width: 710px;
}

.blog-catalog {
  background: #faf8fc;
  padding: 82px 0 110px;
}

.blog-section-heading {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 36px;
}

.blog-section-heading .section-kicker {
  color: var(--accent);
  margin-bottom: 12px;
}

.blog-section-heading h2 {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: clamp(26px, 4vw, 39px);
  letter-spacing: -0.045em;
  line-height: 1.15;
  margin: 0;
}

.blog-section-heading > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding-bottom: 6px;
}

.blog-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
  background: #fff;
  border: 1px solid rgb(79 48 112 / 0.1);
  border-radius: 22px;
  box-shadow: 0 20px 55px rgb(47 23 76 / 0.07);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.blog-card:hover {
  box-shadow: 0 26px 70px rgb(47 23 76 / 0.13);
  transform: translateY(-4px);
}

.blog-card__media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e7def5, #f9e8f1);
  display: block;
  overflow: hidden;
}

.blog-card__media img {
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
  width: 100%;
}

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

.blog-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 24px 25px;
}

.blog-card time,
.blog-article__header time {
  color: #90879b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.blog-card h2 {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 18px;
  letter-spacing: -0.035em;
  line-height: 1.4;
  margin: 13px 0 12px;
}

.blog-card h2 a,
.blog-card__link {
  text-decoration: none;
}

.blog-card p {
  color: var(--muted);
  display: -webkit-box;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 24px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.blog-card__link {
  align-items: center;
  color: var(--accent);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  margin-top: auto;
}

.blog-pagination {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin-top: 44px;
}

.blog-pagination a:last-child {
  justify-self: end;
}

.blog-pagination a,
.blog-pagination span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.blog-empty {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 70px 28px;
  text-align: center;
}

.blog-empty > span {
  color: var(--accent);
  font-size: 24px;
}

.blog-empty h2 {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 25px;
  margin: 18px 0 12px;
}

.blog-empty p {
  color: var(--muted);
  margin: 0 auto 24px;
}

.blog-article {
  padding-bottom: 110px;
}

.blog-article__header {
  max-width: 900px;
  padding-bottom: 48px;
  padding-top: 88px;
}

.blog-back {
  color: var(--accent);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 50px;
  text-decoration: none;
}

.blog-article__header h1 {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: clamp(34px, 6vw, 62px);
  letter-spacing: -0.055em;
  line-height: 1.12;
  margin: 16px 0 24px;
}

.blog-article__header > p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
  margin: 0;
}

.blog-article__cover {
  margin-bottom: 70px;
  max-width: 1180px;
}

.blog-article__cover img {
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgb(38 18 61 / 0.15);
  display: block;
  object-fit: cover;
  width: 100%;
}

.blog-article__body {
  font-size: 17px;
  line-height: 1.85;
  margin: 0 auto;
  max-width: 760px;
  padding: 0 28px 70px;
}

.blog-article__body h2,
.blog-article__body h3 {
  font-family: "Unbounded", "Manrope", sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.blog-article__body h2 {
  font-size: clamp(24px, 4vw, 33px);
  margin: 58px 0 20px;
}

.blog-article__body h3 {
  font-size: 20px;
  margin: 38px 0 16px;
}

.blog-article__body p,
.blog-article__body ul,
.blog-article__body ol,
.blog-article__body blockquote {
  margin: 0 0 24px;
}

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

.blog-article__body blockquote {
  background: #f3eefb;
  border-left: 4px solid var(--accent);
  border-radius: 0 16px 16px 0;
  color: #4e3d63;
  font-size: 18px;
  padding: 22px 26px;
}

.blog-article__body img {
  border-radius: 20px;
  display: block;
  height: auto;
  margin: 40px -80px;
  max-width: calc(100% + 160px);
  width: calc(100% + 160px);
}

.blog-article__body a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.blog-article__footer {
  background: var(--night);
  border-radius: 30px;
  color: #fff;
  max-width: 960px;
  padding-bottom: 56px;
  padding-top: 56px;
  text-align: center;
}

.blog-article__footer h2 {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: clamp(24px, 4vw, 35px);
  letter-spacing: -0.045em;
  margin: 0 auto 14px;
  max-width: 700px;
}

.blog-article__footer > p:not(.section-kicker) {
  color: #c7bdd7;
  line-height: 1.7;
  margin: 0 auto 25px;
  max-width: 650px;
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-article__body img { margin-left: 0; margin-right: 0; max-width: 100%; width: 100%; }
}

@media (max-width: 640px) {
  .blog-shell { padding-left: 18px; padding-right: 18px; }
  .blog-hero { margin-top: -92px; padding: 166px 0 72px; }
  .blog-page.has-resume-story .blog-hero { margin-top: 0; padding-top: 72px; }
  .blog-hero h1 { font-size: 34px; }
  .blog-hero__inner > p:last-child { font-size: 15px; }
  .blog-catalog { padding: 58px 0 80px; }
  .blog-section-heading { align-items: flex-start; display: grid; gap: 14px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card__content { padding: 21px; }
  .blog-article__header { padding-top: 54px; }
  .blog-back { margin-bottom: 36px; }
  .blog-article__header > p { font-size: 16px; }
  .blog-article__cover { margin-bottom: 50px; }
  .blog-article__cover img { border-radius: 18px; }
  .blog-article__body { font-size: 16px; padding-left: 20px; padding-right: 20px; }
  .blog-article__footer { border-radius: 0; padding-left: 22px; padding-right: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card, .blog-card__media img { transition: none; }
}
