:root {
  box-sizing: border-box;
  --vb-single-bg: #f7f4f1;
  --vb-single-surface: #ffffff;
  --vb-single-text: rgba(75, 63, 59, 1);
  --vb-single-muted: rgba(125, 109, 103, 1);
  --vb-single-accent: rgba(205, 174, 162, 1);
  --vb-single-accent-soft: rgba(205, 174, 162, 1);
  --vb-single-border: #e9dfd8;
  --vb-single-hero: #7f6252;
  --vb-single-max-width: 1240px;
}

html {
  scroll-behavior: smooth;
}

.vb-single-post {
  background: var(--vb-single-bg);
  color: var(--vb-single-text);
}

.vb-single-post__article {
  margin: 0 auto;
  background: var(--vb-single-surface);
}

.vb-single-post__hero {
  display: grid;
  min-height: 385px;
  background: var(--vb-single-hero);
  grid-template-columns: 40% minmax(0, 1fr);
}

.vb-single-post__hero-media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.vb-single-post__hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      0deg,
      rgba(142, 113, 98, 0.2) 0%,
      rgba(142, 113, 98, 0.2) 100%
    ),
    linear-gradient(
      90deg,
      rgba(220, 194, 183, 0.6) 0%,
      rgba(127, 98, 82, 0.6) 100%
    );
  pointer-events: none;
  z-index: 1;
}

.vb-single-post__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 0;
}

.vb-single-post__hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 70px 64px;
  color: #fff;
}

.vb-single-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 16px;
  line-height: 110%;
  leading-trim: both;
  text-edge: cap;
  color: #eeeae1;
}

.vb-single-post__meta span,
.vb-single-post__meta a {
  position: relative;
}

.vb-single-post__meta span:not(:last-child)::after,
.vb-single-post__meta a:not(:last-child)::after {
  content: "•";
  margin-left: 12px;
}

.vb-single-post__meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vb-single-post__title {
  margin: 0;
  color: rgba(255, 255, 255, 1);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 500;
  line-height: 0.95;
  max-width: 21ch;
}

.vb-single-post__excerpt {
  max-width: 560px;
  margin-top: 46px;
  font-size: 16px;
  line-height: 150%;
  color: rgba(238, 234, 225, 1);
}

.vb-single-post__excerpt p {
  margin: 0;
}

.vb-single-post__body {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  padding: 120px 20px 60px;
  max-width: 1240px;
  margin: 0 auto;
}

.vb-single-post__toc {
  position: relative;
}

.vb-single-post__toc-nav {
  position: sticky;
  top: 32px;
}

.vb-single-post__toc-title {
  margin: 0 0 32px;
  font-size: 48px;
  font-weight: 500;
  line-height: 100%;
}

.vb-single-post__toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.vb-single-post__toc-item--level-3 {
  padding-left: 10px;
}

.vb-single-post__toc-link {
  display: inline-block;
  color: var(--vb-single-text);
  text-decoration: none;
  font-size: 20px;
  line-height: 100%;
  transition: color 0.2s ease;
}

.vb-single-post__toc-link.is-active,
.vb-single-post__toc-link:hover,
.vb-single-post__toc-link:focus-visible {
  color: var(--vb-single-accent-soft);
}

.vb-single-post__content {
  min-width: 0;
  font-size: 16px;
  line-height: 1.7;
  padding-top: 60px;
}

.vb-single-post__content > *:first-child {
  margin-top: 0;
}

.vb-single-post__content h2,
.vb-single-post__content h3 {
  margin: 0 0 16px;
  scroll-margin-top: 32px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 100%;
}

.vb-single-post__content p,
.vb-single-post__content ul,
.vb-single-post__content ol,
.vb-single-post__content blockquote {
  margin: 0 0 40px;
}

.vb-single-post__content ul,
.vb-single-post__content ol {
  padding-left: 22px;
}

.vb-single-post__content a {
  color: var(--vb-single-accent);
}

.vb-single-post__content figure,
.vb-single-post__content .wp-block-image {
  margin: 28px 0 34px;
}

.vb-single-post__content .wp-block-gallery {
  margin: 28px 0 34px;
}

.vb-single-post__content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.vb-single-post__content .wp-block-gallery.has-nested-images {
  gap: 24px;
}

.vb-single-post__content
  .wp-block-gallery.has-nested-images
  figure.wp-block-image {
  margin: 0;
}

.vb-single-post__content .wp-block-gallery.has-nested-images img {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
}

.vb-single-post__content > h2:not(:first-child),
.vb-single-post__content > h3:not(:first-child),
.vb-single-post__content > .wp-block-heading:not(:first-child) {
  margin-top: 34px;
}

@media (max-width: 1024px) {
  .vb-single-post__hero-content {
    padding: 48px 40px;
  }

  .vb-single-post__body {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 20px 64px;
  }

  .vb-single-post__toc-nav {
    position: static;
  }
}

@media (max-width: 767px) {
  .vb-single-post__article {
    background: transparent;
  }

  .vb-single-post__hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .vb-single-post__hero-media {
    order: 2;
    min-height: 250px;
  }

  .vb-single-post__hero-content {
    order: 1;
    align-items: center;
    text-align: center;
    padding: 32px 20px 32px;
  }

  .vb-single-post__meta {
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 11px;
  }

  .vb-single-post__meta span:not(:last-child)::after,
  .vb-single-post__meta a:not(:last-child)::after {
    margin-left: 10px;
  }

  .vb-single-post__title {
    max-width: none;
    font-size: 34px;
    line-height: 1.02;
  }

  .vb-single-post__excerpt {
    margin-top: 32px;
    font-size: 16px;
    line-height: 150%;
    /* max-width: 32ch; */
  }

  .vb-single-post__body {
    gap: 24px;
    padding: 32px 20px 64px;
    background: var(--vb-single-surface);
  }

  .vb-single-post__toc-title {
    margin-bottom: 20px;
    font-size: 28px;
  }

  .vb-single-post__toc-list {
    gap: 10px;
  }

  .vb-single-post__toc-link {
    font-size: 20px;
  }

  .vb-single-post__content {
    font-size: 16px;
    line-height: 1.6;
    padding-top: 0px;
  }

  .vb-single-post__content h2 {
    margin-bottom: 16px;
    font-size: 26px;
    line-height: 1.05;
  }

  .vb-single-post__content h3 {
    margin-bottom: 14px;
    font-size: 22px;
    line-height: 1.08;
  }

  .vb-single-post__content p,
  .vb-single-post__content ul,
  .vb-single-post__content ol,
  .vb-single-post__content blockquote {
    margin-bottom: 18px;
  }

  .vb-single-post__content figure,
  .vb-single-post__content .wp-block-image,
  .vb-single-post__content .wp-block-gallery {
    margin: 20px 0 24px;
  }

  .vb-single-post__content .wp-block-gallery.has-nested-images {
    gap: 8px;
  }
}
