:root {
  --blog-ink: #c1b2ee;
}
.blog-page {
  padding-top: 130px;
}
.blog-hero {
  padding-top: 64px;
  padding-bottom: 60px;
}
.blog-hero h1 {
  max-width: 1120px;
  font-size: clamp(42px, 7.2vw, 102px);
  line-height: 1.04;
  letter-spacing: -0.065em;
  font-weight: 400;
  margin: 28px 0 35px;
}
.blog-hero h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--blog-ink);
}
.blog-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  border-top: 1px solid #ffffff25;
  padding-top: 28px;
}
.blog-intro p {
  font-size: 22px;
  max-width: 420px;
}
.blog-intro span,
.blog-meta {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #c1b9ca;
}
.blog-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px 40px;
  padding-bottom: 100px;
}
.blog-card {
  min-width: 0;
  border-top: 1px solid #ffffff30;
  padding-top: 24px;
}
.blog-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 42px;
  align-items: center;
}
.blog-card-image {
  display: block;
  overflow: hidden;
  background: #211b2c;
}
.blog-card-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  transition: transform 0.65s ease;
}
.blog-card-image:hover img {
  transform: scale(1.025);
}
.blog-card-copy {
  padding-top: 24px;
}
.blog-card h2 {
  font-weight: 400;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.13;
  letter-spacing: -0.04em;
  margin: 20px 0;
}
.blog-card h2 a {
  color: inherit;
  text-decoration: none;
}
.blog-card h2 a:hover {
  color: var(--blog-ink);
}
.blog-card-copy > p:not(.blog-meta) {
  color: #beb8c8;
  line-height: 1.75;
}
.blog-read {
  display: inline-flex;
  gap: 32px;
  align-items: center;
  color: var(--blog-ink);
  border-bottom: 1px solid currentColor;
  padding: 18px 0 12px;
  font-size: 14px;
  text-decoration: none;
}
.blog-read span {
  font-size: 24px;
}
.blog-cover {
  padding-bottom: 80px;
}
.blog-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: contain;
  background: #211b2c;
}
.blog-reading {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: clamp(30px, 6vw, 100px);
  justify-content: space-between;
  align-items: start;
  padding-bottom: 100px;
}
.blog-toc {
  position: sticky;
  top: 135px;
  border-top: 1px solid #ffffff35;
  padding-top: 24px;
}
.blog-toc nav {
  display: grid;
  margin-top: 25px;
  gap: 20px;
}
.blog-toc nav a {
  color: #bcb5c7;
  text-decoration: none;
  line-height: 1.5;
  font-size: 14px;
  border-left: 1px solid #635373;
  padding-left: 15px;
}
.blog-toc nav a:hover,
.blog-toc nav a[aria-current] {
  color: #f6f3ee;
  border-color: #ec039f;
}
.blog-back {
  display: block;
  color: var(--blog-ink);
  margin-top: 35px;
  font-size: 12px;
}
.blog-article-body {
  min-width: 0;
  font-size: 18px;
  line-height: 1.85;
  color: #d6d0df;
  overflow-wrap: anywhere;
}
.blog-article-body p {
  margin: 0 0 26px;
}
.blog-article-body strong {
  color: #f6f3ee;
}
.blog-article-body h2 {
  margin: 70px 0 28px;
  color: #f6f3ee;
  font-size: clamp(29px, 3.6vw, 44px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.035em;
  scroll-margin-top: 140px;
}
.blog-article-body a {
  color: var(--blog-ink);
  text-underline-offset: 5px;
}
.blog-article-body img {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0 38px;
  border: 1px solid #635373;
  background: #fff;
}
.blog-article-body iframe {
  border: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
}
.blog-article-body iframe:not([src]) {
  display: none;
}
.blog-video {
  border: 1px solid #756887;
  background: #211b2c;
  padding: 25px;
  margin: 30px 0;
}
.blog-video p {
  font-size: 13px;
  line-height: 1.6;
  margin: 16px 0;
}
.blog-video button {
  min-height: 48px;
  background: #c1b2ee;
  color: #101014;
  padding: 14px 20px;
  border: 0;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.blog-video a {
  font-size: 12px;
}
.blog-video [hidden] {
  display: none;
}
.blog-end {
  background: #c1b2ee;
  color: #101014;
  padding-top: 65px;
  padding-bottom: 65px;
}
.blog-end > a:not(.blog-read) {
  display: block;
  color: inherit;
  font-size: clamp(28px, 4vw, 55px);
  text-decoration: none;
  line-height: 1.15;
  letter-spacing: -0.04em;
  max-width: 1000px;
}
.blog-end .blog-read {
  color: inherit;
}
.blog-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 100;
  background: linear-gradient(90deg, #ec039f, #a212da, #3b4ef4);
  transform-origin: left;
  transform: scaleX(0);
}
.blog-card.is-entering {
  animation: blog-enter 0.7s both;
}
@keyframes blog-enter {
  from {
    opacity: 0.35;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 800px) {
  .blog-page {
    padding-top: 100px;
  }
  .blog-hero {
    padding-top: 40px;
  }
  .blog-reading {
    grid-template-columns: 1fr;
  }
  .blog-toc {
    position: static;
  }
  .blog-toc nav {
    gap: 12px;
  }
  .blog-list {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .blog-card:first-child {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .blog-intro {
    align-items: start;
    flex-direction: column;
  }
  .blog-cover {
    padding-bottom: 40px;
  }
  .blog-article-body {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .blog-card.is-entering {
    animation: none;
  }
  .blog-card-image img {
    transition: none;
  }
}

.blog-card[hidden],
[data-blog-empty][hidden] {
  display: none;
}
.blog-filters {
  padding-bottom: 30px;
}
.blog-filters form {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: end;
  padding: 28px 0;
  border-top: 1px solid #ffffff30;
  border-bottom: 1px solid #ffffff30;
}
.blog-filters label {
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: #c1b2ee;
}
.blog-filters input,
.blog-filters select,
.blog-filters button {
  min-height: 46px;
  padding: 10px 14px;
  background: #211b2c;
  border: 1px solid #807191;
  color: #f6f3ee;
  font: inherit;
  color-scheme: dark;
}
.blog-filters button {
  cursor: pointer;
}
.blog-filters [role='status'] {
  padding-top: 15px;
  font-size: 13px;
}
.lightbox-open {
  overflow: hidden;
}
.blog-lightbox {
  width: min(1440px, 96vw);
  max-width: none;
  height: 94dvh;
  max-height: none;
  padding: 20px;
  background: #101014;
  border: 1px solid #807191;
  color: #f6f3ee;
  overflow: auto;
}
.blog-lightbox::backdrop {
  background: #07060bea;
}
.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.blog-lightbox button {
  min-width: 48px;
  min-height: 48px;
  background: #211b2c;
  border: 1px solid #807191;
  color: #f6f3ee;
  padding: 10px 18px;
  cursor: pointer;
  font: inherit;
}
.lightbox-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.lightbox-stage img {
  width: 100%;
  height: calc(94dvh - 185px);
  object-fit: contain;
}
.lightbox-caption {
  text-align: center;
  font-size: 14px;
}
.lightbox-original {
  display: block;
  text-align: center;
  color: #c1b2ee;
  font-size: 13px;
}
@media (max-width: 600px) {
  .blog-lightbox {
    padding: 12px;
  }
  .lightbox-stage {
    gap: 6px;
  }
  .blog-lightbox button {
    padding: 8px;
  }
  .blog-filters label {
    flex: 1 1 140px;
  }
}

.blog-next {
  padding-top: 50px;
  padding-bottom: 65px;
  border-top: 1px solid #ffffff30;
}

/* New article blocks; imported article markup remains unchanged. */
.blog-article-body h3 {
  margin: 32px 0 16px;
  font-size: 24px;
}
.blog-article-body blockquote {
  margin: 28px 0;
  padding: 8px 24px;
  border-left: 3px solid #c1b2ee;
}
.blog-article-body pre {
  overflow-x: auto;
  padding: 24px;
  background: #1b1925;
  border: 1px solid #ffffff25;
  border-radius: 8px;
}
.blog-article-body code {
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.blog-article-body .text-left {
  text-align: left;
}
.blog-article-body .text-center {
  text-align: center;
}
.blog-article-body .text-right {
  text-align: right;
}
.blog-next > a {
  display: block;
  color: #c1b2ee;
  font-size: 24px;
  line-height: 1.4;
}
