/* ============================================================
   KELKOOKS SITE-WIDE POLISH
   Broma-style hero photos, typography, spacing, animations

   PASTE LOCATION:
   WP Admin → Appearance → Customize → Additional CSS
   (OR your theme's Custom CSS panel)
   ============================================================ */

/* --- Typography reset for recipe posts --- */
.single-post .entry-content,
.single .entry-content {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #2a2a2a;
  max-width: 760px;
  margin: 0 auto;
}

.single-post .entry-content p,
.single .entry-content p {
  margin-bottom: 1.4em;
}

/* --- Post title: Broma-level drama --- */
.single-post .entry-title,
.single .entry-title,
.single-post h1.post-title,
.single h1.post-title {
  font-family: 'ABeeZee', 'Playfair Display', Georgia, serif !important;
  font-size: clamp(2.2rem, 5vw, 3.4rem) !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
  color: #0f0f0f !important;
  text-align: center !important;
  max-width: 820px;
  margin: 24px auto 20px !important;
  padding: 0 20px;
}

/* --- Featured image: hero treatment --- */
.single-post .wp-post-image,
.single .wp-post-image,
.single-post .post-thumbnail img,
.single .post-thumbnail img {
  width: 100% !important;
  max-width: 1100px !important;
  height: auto !important;
  max-height: 680px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  margin: 0 auto 40px !important;
  display: block !important;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.15);
}

/* --- H2/H3 in body copy --- */
.single-post .entry-content h2,
.single .entry-content h2 {
  font-family: 'ABeeZee', 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #0f0f0f;
  margin: 2.2em 0 0.7em;
  letter-spacing: -0.01em;
  line-height: 1.2;
  position: relative;
  padding-left: 20px;
}

.single-post .entry-content h2::before,
.single .entry-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 4px;
  background: #c18c5d;
  border-radius: 2px;
}

.single-post .entry-content h3,
.single .entry-content h3 {
  font-family: 'ABeeZee', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 1.6em 0 0.5em;
}

/* --- Lists in body copy --- */
.single-post .entry-content ul,
.single .entry-content ul,
.single-post .entry-content ol,
.single .entry-content ol {
  padding-left: 1.3em;
  margin-bottom: 1.4em;
}

.single-post .entry-content li,
.single .entry-content li {
  margin-bottom: 0.6em;
  line-height: 1.7;
}

.single-post .entry-content ul li::marker,
.single .entry-content ul li::marker {
  color: #c18c5d;
}

/* --- Intro paragraph special treatment --- */
.single-post .entry-content .kk-intro,
.single .entry-content .kk-intro {
  font-size: 1.18rem;
  line-height: 1.7;
  color: #2a2a2a;
  font-weight: 400;
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: left;
}

.single-post .entry-content .kk-intro strong,
.single .entry-content .kk-intro strong {
  font-family: 'ABeeZee', Georgia, serif;
  font-weight: 700;
  color: #0f0f0f;
}

/* --- Links in body --- */
.single-post .entry-content a,
.single .entry-content a {
  color: #c18c5d;
  text-decoration: none;
  border-bottom: 2px solid rgba(193,140,93,0.3);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.single-post .entry-content a:hover,
.single .entry-content a:hover {
  color: #0f0f0f;
  border-bottom-color: #0f0f0f;
}

/* --- Final CTA block --- */
.kk-final-cta {
  font-family: 'ABeeZee', Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f7f3ea;
  border-radius: 16px;
  padding: 32px 28px;
  margin: 48px auto;
  max-width: 640px;
  text-align: center;
}

/* --- Fade-in animations on scroll --- */
@keyframes kkFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.single-post .entry-content > *,
.single .entry-content > *,
.wprm-recipe-container {
  animation: kkFadeUp 0.7s ease both;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
}

@supports not (animation-timeline: view()) {
  .single-post .entry-content > *,
  .single .entry-content > *,
  .wprm-recipe-container {
    animation: kkFadeUp 0.6s ease both;
  }
}

/* --- Mobile refinements --- */
@media (max-width: 720px) {
  .single-post .entry-title,
  .single .entry-title {
    font-size: 1.9rem !important;
    padding: 0 16px;
  }
  .single-post .wp-post-image,
  .single .wp-post-image,
  .single-post .post-thumbnail img,
  .single .post-thumbnail img {
    border-radius: 0 !important;
    margin-bottom: 28px !important;
  }
  .single-post .entry-content,
  .single .entry-content {
    padding: 0 20px;
    font-size: 1.02rem;
  }
  .kk-final-cta {
    margin: 36px 0;
    padding: 26px 22px;
    border-radius: 0;
  }
}

/* --- Category / Archive / Home: masonry feel --- */
.archive .post,
.home .post,
.blog .post {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.archive .post:hover,
.home .post:hover,
.blog .post:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.18);
}

.archive .post img,
.home .post img,
.blog .post img {
  transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1);
}

.archive .post:hover img,
.home .post:hover img,
.blog .post:hover img {
  transform: scale(1.04);
}

/* --- Buttons, global (KelKooks black pill) --- */
.wp-block-button__link,
.wp-element-button {
  border-radius: 999px !important;
  padding: 14px 28px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-size: 0.82rem !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.kk-jump-btn .wp-block-button__link {
  background: #0f0f0f !important;
  color: #fff !important;
}

.kk-jump-btn .wp-block-button__link:hover {
  background: #c18c5d !important;
}

/* --- Smooth scroll everywhere --- */
html { scroll-behavior: smooth; }

/* --- Subtle body bg for warmth --- */
body.single-post,
body.single {
  background: #fdfcf8;
}
