body.blog-page {
  background: var(--background);
}

.blog-main {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 54px var(--gutter) 92px;
}

.blog-hero {
  position: relative;
  min-height: 340px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: 42px;
  overflow: hidden;
  margin-bottom: 48px;
  padding: 48px 54px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 230, 109, 0.32));
  box-shadow: var(--soft-shadow);
}

.blog-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 340px;
  height: 260px;
  border-radius: 50%;
  background: rgba(191, 233, 247, 0.72);
  filter: blur(6px);
  transform: rotate(-12deg);
}

.blog-hero-copy,
.blog-hero-art {
  position: relative;
  z-index: 1;
}

.blog-hero-copy {
  max-width: 620px;
}

.blog-hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.blog-hero p {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.blog-hero-art {
  min-height: 248px;
  display: grid;
  place-items: center;
}

.blog-hero-art img {
  position: relative;
  z-index: 2;
  width: min(100%, 300px);
  filter: drop-shadow(0 22px 20px rgba(21, 21, 21, 0.14));
  transform: rotate(3deg);
}

.blog-hero-sun {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.78;
  box-shadow: 0 24px 60px rgba(255, 90, 122, 0.24);
}

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

.blog-card {
  min-width: 0;
  height: 100%;
}

.blog-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.blog-card-link:hover,
.blog-card-link:focus-visible {
  border-color: rgba(255, 90, 122, 0.36);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.blog-card-link:focus-visible,
.blog-related-link:focus-visible,
.blog-back-link:focus-visible,
.blog-breadcrumbs a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.blog-card-image {
  position: relative;
  aspect-ratio: 1.85;
  overflow: hidden;
  background: var(--cyan);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.blog-card-meta,
.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.blog-card-meta span:first-child,
.blog-post-meta span:first-child {
  color: var(--text);
}

.blog-card h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.blog-card p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.blog-card-footer > span {
  color: var(--text);
}

.blog-empty {
  min-height: 280px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: 36px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.54);
}

.blog-empty-mark {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(191, 233, 247, 0.58);
}

.blog-empty-mark img {
  width: 140px;
  transform: rotate(-4deg);
}

.blog-empty h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.blog-empty p {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.blog-article-shell {
  max-width: 820px;
  margin: 0 auto;
}

.blog-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.blog-breadcrumbs a:hover {
  color: var(--text);
}

.blog-post {
  min-width: 0;
}

.blog-post-header {
  display: grid;
  gap: 20px;
}

.blog-post-header h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.blog-post-excerpt {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.55;
}

.blog-post-cover-frame {
  position: relative;
  margin-top: 14px;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.blog-post-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1.9;
  object-fit: cover;
}

.blog-prose {
  margin-top: 48px;
  color: #2a2529;
  font-size: 18px;
  line-height: 1.78;
}

.blog-prose > :first-child {
  margin-top: 0;
}

.blog-prose h2,
.blog-prose h3 {
  margin: 2.2em 0 0.65em;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.blog-prose h2 {
  font-size: 32px;
}

.blog-prose h3 {
  font-size: 24px;
}

.blog-prose p,
.blog-prose ul,
.blog-prose ol,
.blog-prose blockquote,
.blog-prose table,
.blog-prose pre {
  margin: 1.1em 0;
}

.blog-prose ul,
.blog-prose ol {
  padding-left: 1.35em;
}

.blog-prose li + li {
  margin-top: 0.45em;
}

.blog-prose a {
  color: #b51d43;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blog-prose blockquote {
  margin-inline: 0;
  padding: 18px 22px;
  border-left: 5px solid var(--primary);
  border-radius: 0 18px 18px 0;
  background: rgba(255, 90, 122, 0.08);
  color: var(--text);
  font-size: 21px;
  font-weight: 780;
}

.blog-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.blog-prose th,
.blog-prose td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-strong);
  text-align: left;
  vertical-align: top;
}

.blog-prose th {
  color: var(--text);
  font-weight: 900;
}

.blog-prose code {
  padding: 0.12em 0.35em;
  border-radius: 6px;
  background: rgba(21, 21, 21, 0.08);
  font-size: 0.88em;
}

.blog-prose pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: 18px;
  background: #24182f;
  color: #fff;
  font-size: 14px;
}

.blog-prose pre code {
  padding: 0;
  background: transparent;
}

.blog-sources,
.blog-related,
.blog-cta {
  margin-top: 48px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.68);
}

.blog-sources h2,
.blog-related h2,
.blog-cta h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.blog-sources ol {
  margin: 16px 0 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.blog-sources li + li {
  margin-top: 8px;
}

.blog-sources a {
  color: var(--text);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-sources span {
  color: var(--muted);
}

.blog-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-color: rgba(255, 90, 122, 0.22);
  background: linear-gradient(135deg, rgba(255, 90, 122, 0.12), rgba(191, 233, 247, 0.28));
}

.blog-cta p {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.blog-cta .button {
  flex: 0 0 auto;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.blog-related-link {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  transition: transform 180ms ease, border-color 180ms ease;
}

.blog-related-link:hover {
  border-color: rgba(255, 90, 122, 0.36);
  transform: translateY(-2px);
}

.blog-related-link span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.blog-related-link strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}

.blog-related-link small {
  overflow: hidden;
  display: -webkit-box;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.blog-back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 28px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .blog-main {
    padding-top: 40px;
  }

  .blog-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 42px 38px 30px;
  }

  .blog-hero-art {
    min-height: 210px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .blog-main {
    padding: 30px var(--gutter) 64px;
  }

  .blog-hero {
    gap: 12px;
    margin-bottom: 30px;
    padding: 30px 24px 18px;
    border-radius: 28px;
  }

  .blog-hero h1 {
    font-size: 48px;
  }

  .blog-hero p {
    margin-top: 18px;
    font-size: 17px;
  }

  .blog-hero-art {
    min-height: 178px;
  }

  .blog-hero-art img {
    width: 220px;
  }

  .blog-hero-sun {
    width: 140px;
    height: 140px;
  }

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

  .blog-card-content {
    padding: 20px;
  }

  .blog-empty {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px;
    text-align: center;
  }

  .blog-empty-mark {
    width: 126px;
    height: 126px;
    margin: 0 auto;
  }

  .blog-empty-mark img {
    width: 112px;
  }

  .blog-empty p {
    font-size: 16px;
  }

  .blog-post-header h1 {
    font-size: 46px;
  }

  .blog-post-excerpt {
    font-size: 18px;
  }

  .blog-prose {
    margin-top: 34px;
    font-size: 17px;
  }

  .blog-prose h2 {
    font-size: 28px;
  }

  .blog-prose h3 {
    font-size: 22px;
  }

  .blog-prose table {
    display: block;
    overflow-x: auto;
  }

  .blog-sources,
  .blog-related,
  .blog-cta {
    margin-top: 34px;
    padding: 22px;
    border-radius: 24px;
  }

  .blog-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-cta .button {
    width: 100%;
  }
}

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