/* =========================================================
   SINGLE POST
   ========================================================= */

body.single-post {
  --color-bg: #d9d9d9;
  --color-surface: #dcdcdc;
  --color-border: rgba(0, 0, 0, 0.1);
  --color-text: #111111;
  --color-muted: #666666;
  background-color: var(--color-bg);
  color: var(--color-text);
}

body.single-post .site-logo img,
body.single-post .back-to-top svg {
  filter: invert(1);
}

@media (min-width: 1100px) {
  body.single-post .nav-menu {
    gap: 40px;
  }

  body.single-post .nav-menu a {
    font-size: 0.875rem;
    font-weight: 500;
  }
}

.single-post-main {
  padding: 0 0clamp (24px, 8vw, 100px);
}

.single-post-article {
  max-width: 100%;
}

/* HERO SECTION */
.post-hero {
  margin-bottom: clamp(32px, 8vw, 60px);
}

.post-hero .card-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background-color: var(--color-surface);
  aspect-ratio: 21 / 9; /* Wide hero like the screenshot */
}

.post-hero .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.post-hero .card-image-bg-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(5rem, 18vw, 15rem); /* Reduced min size */
  font-weight: 700;
  line-height: 1;
  color: #000;
  z-index: 1;
  pointer-events: none;
  letter-spacing: -0.05em;
  opacity: 0.15;
}

.post-hero .card-image-bg-text.left {
  left: 5%;
}

.post-hero .card-image-bg-text.right {
  right: 5%;
}

/* TITLE BLOCK */
.post-title-block {
  max-width: 800px;
  margin: 0 auto clamp(40px, 8vw, 60px);
}

.post-meta {
  font-size: 0.8125rem;
  color: #999;
  margin-bottom: 8px;
  font-weight: 400;
}

.post-title {
  font-size: clamp(1.75rem, 5vw, 3rem); /* More responsive and impactful */
  line-height: 1.1;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.03em;
  color: #111;
}

/* CONTENT AREA */
.post-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: clamp(1.5, 4vw, 1.6); /* Slightly tighter on small screens */
  color: #666666;
}

.post-content p:not(:first-child) {
  margin-top: 20px; /* Responsive paragraph spacing */
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin: 50px 0 0; /* Tighter heading margins */
  color: #111;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.post-content h2 {
  font-size: 32px;
}

.post-content ul,
.post-content ol {
  margin-top: 20px;
  list-style: initial;
}

.post-content ul{
  padding-left: 20px;
}

.post-content ol {
  list-style: decimal;
  list-style-position: inside;
}

.post-content img {
  border-radius: 16px;
  margin: 64px 0 20px;
  max-width: 100%;
  height: auto;
}

/* Specific to images in content */
.post-content .wp-block-image {
  margin: 16px 0;
}

.post-content .wp-block-image img {
  width: 100%;
  border-radius: 12px; /* Slightly smaller radius for mobile feel */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .post-hero .card-image {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }

  .post-title {
    font-size: 1.75rem;
  }

  .post-content {
    font-size: 0.9375rem;
  }
}
