/* ═══════════════════════════════════════════════════════════════
   hp-post — Single Journal Post (single.php)
   ═══════════════════════════════════════════════════════════════ */

/* ── Back link ──────────────────────────────────────────────── */
.hp-post__back {
  padding: clamp(20px, 3vw, 32px) clamp(32px, 8vw, 120px) 0;
}

.hp-post__back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  text-decoration: none;
  transition: color 0.25s ease;
}

.hp-post__back-link:hover {
  color: #1a1008;
}

/* ── Post header ─────────────────────────────────────────────── */
.hp-post__header {
  padding: clamp(24px, 4vw, 48px) clamp(32px, 8vw, 120px) clamp(20px, 3vw, 32px);
}

.hp-post__date {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 12px;
}

.hp-post__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 400;
  color: #1a1008;
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

/* ── Featured image ──────────────────────────────────────────── */
.hp-post__featured-img {
  padding: 0 clamp(32px, 8vw, 120px);
  margin-bottom: clamp(32px, 5vw, 64px);
}

.hp-post__featured-img-el {
  width: 100%;
  height: clamp(300px, 45vw, 600px);
  object-fit: cover;
  display: block;
}

/* ── Content ─────────────────────────────────────────────────── */
.hp-post__content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(32px, 8vw, 120px) clamp(48px, 8vw, 96px);
}

/* Lead paragraph — first <p> after featured image */
.hp-post__content > p:first-child,
.hp-post__content .wp-block-paragraph:first-child p,
.hp-post__content > .wp-block-paragraph:first-of-type {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: #1a1008;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.hp-post__content p {
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  line-height: 1.9;
  color: #3a3028;
  margin: 0 0 clamp(16px, 2.5vw, 24px);
}

.hp-post__content h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #1a1008;
  margin: clamp(32px, 4vw, 48px) 0 16px;
}

.hp-post__content h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #1a1008;
  margin: clamp(24px, 3vw, 36px) 0 12px;
}

.hp-post__content img {
  width: 100%;
  height: auto;
  display: block;
  margin: clamp(24px, 4vw, 40px) 0;
}

.hp-post__content ul,
.hp-post__content ol {
  padding-left: 1.5em;
  margin: 0 0 clamp(16px, 2.5vw, 24px);
  color: #3a3028;
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  line-height: 1.9;
}

.hp-post__content li {
  margin-bottom: 8px;
}

.hp-post__content blockquote {
  border-left: 2px solid #8b1a2c;
  margin: clamp(24px, 4vw, 40px) 0;
  padding: 8px 0 8px 24px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-style: italic;
  color: #1a1008;
}

/* ── Related posts ───────────────────────────────────────────── */
.hp-post__related {
  background: #faf9f7;
  padding: clamp(56px, 8vw, 96px) clamp(32px, 8vw, 120px);
  text-align: center;
}

.hp-post__related-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 400;
  color: #1a1008;
  margin: 0 0 clamp(32px, 5vw, 56px);
}

.hp-post__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
  text-align: left;
}

.hp-post__related-card {
  display: flex;
  flex-direction: column;
}

.hp-post__related-card-img-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #1a1008;
  margin-bottom: 20px;
}

.hp-post__related-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hp-post__related-card:hover .hp-post__related-card-img {
  transform: scale(1.04);
}

.hp-post__related-card-placeholder {
  width: 100%;
  height: 100%;
  background: #2a2018;
}

.hp-post__related-card-date {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 6px;
}

.hp-post__related-card-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1a1008;
  margin: 0 0 10px;
  line-height: 1.3;

  a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;

    &:hover {
      opacity: 0.7;
    }
  }
}

.hp-post__related-card-excerpt {
  font-size: clamp(0.75rem, 0.9vw, 0.82rem);
  line-height: 1.75;
  color: #666;
  margin: 0 0 16px;
  flex: 1;
}

.hp-post__related-card-link {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1a1008;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  align-self: flex-start;

  &::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0.5);
    transform-origin: left;
    transition: transform 0.3s ease;
  }

  &:hover::after {
    transform: scaleX(1);
  }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hp-post__featured-img {
    padding: 0;
  }

  .hp-post__content {
    padding-left: clamp(20px, 5vw, 48px);
    padding-right: clamp(20px, 5vw, 48px);
  }

  .hp-post__related-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hp-post__related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
