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

/* ── Back link ──────────────────────────────────────────────── */
.hp-post__back {
  margin-top: 95px;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 2.85vw, 41px)
    clamp(20px, 3vw, 32px);
}

.hp-post__back-link {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  color: #111111;
  text-decoration: none;
  transition: color 0.25s ease;
}

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

/* ── Post header ─────────────────────────────────────────────── */
.hp-post__header {
  max-width: 1440px;
  margin: 0 auto;

  padding: clamp(24px, 4vw, 48px) clamp(32px, 8vw, 120px) clamp(20px, 3vw, 32px);
  padding-bottom: clamp(8px, 2vw, 10px);
}

.hp-post__date {
  display: block;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111111;
  margin-bottom: 12px;
}

.hp-post__title {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 3.33vw, 3rem);
  line-height: 1.29;
  letter-spacing: 0;
  color: #111111;
  margin: 0;
}

/* ── 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: 1440px;
  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: #111111;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.hp-post__content p {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.375;
  letter-spacing: 0;
  color: #111111;
  margin: 0 0 clamp(16px, 2.5vw, 24px);
}

.hp-post__content a:hover {
  color: #8b1a2c;
}

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

.hp-post__content h3 {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #111111;
  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: "Libre Caslon Text", Georgia, serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-style: italic;
  color: #111111;
}

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

.hp-post__related-title {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.25rem, 1.94vw, 1.75rem);
  line-height: 1;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  color: #111111;
  margin: 0 0 clamp(36px, 5vw, 80px);
}

.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: #111111;
  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 {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111111;
  opacity: 0.9;
  margin-bottom: 8px;
  display: block;
}

.hp-post__related-card-title {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.53vw, 1.375rem);
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #111111;
  margin: 0 0 25px;

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

    &:hover {
      opacity: 0.7;
    }
  }
}

.hp-post__related-card-excerpt {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.286;
  letter-spacing: 0;
  color: #111111;
  margin: 0 0 20px;
  flex: 1;
  margin: 0 0 16px;
}

.hp-post__related-card-link {
  display: inline-block;
  position: relative;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #111111;
  text-decoration: none;
  padding-bottom: 5px;
  align-self: flex-start;
  opacity: 0.9;

  &::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 {
    color: #8b1a2c;
  }

  &:hover::after {
    color: #8b1a2c;
    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);
  }
}
