/*
Theme Name:   karacooks
Theme URI:    https://karacooks.com
Description:  Custom child theme for karacooks.com. Built on Kadence. Implements the
              karacooks brand identity: Cinzel display, Jost body, forest/burgundy/gold
              palette on cream, hand-drawn pepper mark.
Author:       Kara
Author URI:   https://karacooks.com
Template:     kadence
Version:      1.0.2
Text Domain:  karacooks
*/

/* ════════════════════════════════════════════════════════════════════
   BRAND TOKENS
   These match the brand identity HTML. Update colors here and
   everything cascades.
   ════════════════════════════════════════════════════════════════════ */

:root {
  --kc-forest:   #1B4332;
  --kc-burgundy: #6B2D3E;
  --kc-gold:     #B8860B;
  --kc-cream:    #F5EDD6;
  --kc-teal:     #0D3D4A;

  --kc-font-display: 'Cinzel', Georgia, serif;
  --kc-font-body:    'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ════════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ════════════════════════════════════════════════════════════════════ */

body,
.entry-content {
  font-family: var(--kc-font-body);
  font-weight: 300;
  color: var(--kc-forest);
}

h1, h2, h3, h4,
.entry-title,
.site-title {
  font-family: var(--kc-font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--kc-forest);
}

/* H1: post titles, page titles */
.entry-title {
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* In-body headings should NOT be all caps — that's for display/structural */
.entry-content h2,
.entry-content h3 {
  text-transform: none;
  letter-spacing: 0.02em;
}

.entry-content h2 { font-size: 1.8rem; }
.entry-content h3 { font-size: 1.4rem; }

/* Body copy */
.entry-content p,
.entry-content li {
  font-family: var(--kc-font-body);
  font-weight: 400;
  font-size: 1.25rem;   /* ~19px */
  line-height: 1.7;
  color: var(--kc-forest);
}

/* Links */
a {
  color: var(--kc-burgundy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
a:hover {
  color: var(--kc-forest);
}

/* ════════════════════════════════════════════════════════════════════
   SITE HEADER
   The big stacked logo treatment from the brand identity.
   ════════════════════════════════════════════════════════════════════ */

body { background: var(--kc-cream); }

.site-header {
  background: var(--kc-cream);
}

/* If you're using Kadence's header builder, place the pepper mark image
   in a media element and the wordmark in the site title slot. The CSS
   below assumes default Kadence header structure but you'll likely
   override most of it via Kadence's customizer. */

.site-branding .site-title a {
  font-family: var(--kc-font-display);
  font-weight: 500;
  font-size: 2.5rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--kc-forest);
  text-decoration: none;
}

.site-description {
  font-family: var(--kc-font-body);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--kc-burgundy);
  margin-top: 8px;
}

/* ════════════════════════════════════════════════════════════════════
   PRIMARY NAVIGATION
   Small caps, tracked, restrained. Mirrors header.html exactly.
   ════════════════════════════════════════════════════════════════════ */

.main-navigation .menu > li > a,
.site-header-item .menu-item > a {
  font-family: var(--kc-font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--kc-forest);
  text-decoration: none;
}

.main-navigation .menu > li > a:hover {
  color: var(--kc-burgundy);
}

/* Dropdowns */
.sub-menu {
  background: var(--kc-cream);
  border: 1px solid rgba(27, 67, 50, 0.15);
  box-shadow: 0 12px 32px rgba(27, 67, 50, 0.08);
}

.sub-menu li a {
  font-family: var(--kc-font-body);
  font-size: 0.625rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--kc-forest);
}

.sub-menu li a:hover {
  color: var(--kc-burgundy);
}

/* ════════════════════════════════════════════════════════════════════
   POST META & CATEGORIES
   ════════════════════════════════════════════════════════════════════ */

.entry-meta,
.entry-meta a,
.post-meta,
.cat-links a,
.entry-categories a {
  font-family: var(--kc-font-body);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kc-burgundy);
  text-decoration: none;
}

/* ════════════════════════════════════════════════════════════════════
   RECIPE CARDS (WP Recipe Maker)
   These selectors target WP Recipe Maker's default output. Tighten or
   adjust as needed once you see how WPRM renders on your site.
   ════════════════════════════════════════════════════════════════════ */

.wprm-recipe {
  background: rgba(245, 237, 214, 0.5);
  border: 1px solid rgba(27, 67, 50, 0.15);
  padding: 32px;
  margin: 32px 0;
}

.wprm-recipe-name {
  font-family: var(--kc-font-display) !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--kc-forest) !important;
}

.wprm-recipe-ingredients-header,
.wprm-recipe-instructions-header,
.wprm-recipe-notes-header {
  font-family: var(--kc-font-display) !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--kc-forest) !important;
}

.wprm-recipe-print-button,
.wprm-recipe-pin-button {
  background: var(--kc-forest) !important;
  color: var(--kc-cream) !important;
  font-family: var(--kc-font-body) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
}

/* ════════════════════════════════════════════════════════════════════
   BLOCKQUOTES
   ════════════════════════════════════════════════════════════════════ */

blockquote {
  border-left: 3px solid var(--kc-burgundy);
  padding-left: 24px;
  margin: 32px 0;
  font-style: normal;
  color: var(--kc-burgundy);
}

blockquote p {
  font-family: var(--kc-font-display) !important;
  font-size: 1.2rem !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

/* ════════════════════════════════════════════════════════════════════
   POST CLOSER
   Thin forest rule with the pepper mark centered on it. Drop this
   markup in at the end of any post, just before the categories/tags:

   <div class="kc-post-closer" aria-hidden="true">
     <span class="kc-post-closer-rule"></span>
     <img src="/wp-content/uploads/pepper_mark_master.png"
          alt="" width="28" height="28">
     <span class="kc-post-closer-rule"></span>
   </div>

   Or wrap in a reusable Gutenberg block so it's one click to insert.
   ════════════════════════════════════════════════════════════════════ */

.kc-post-closer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2.4rem auto 1.6rem;
  max-width: 100%;
}

.kc-post-closer-rule {
  flex: 1;
  height: 1px;
  background: rgba(27, 67, 50, 0.25);
}

.kc-post-closer img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: none !important;       /* override the global in-post image border */
  border-radius: 0 !important;   /* override the global rounded corners */
  display: block;
}

/* ════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--kc-forest);
  color: var(--kc-cream);
  padding: 48px 0;
}

.site-footer,
.site-footer a {
  font-family: var(--kc-font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kc-cream);
}

.site-footer a:hover {
  color: var(--kc-gold);
}

/* ════════════════════════════════════════════════════════════════════
   IMAGES
   Match the locked karacooks image spec: rounded corners and thin
   black border on in-post images.
   ════════════════════════════════════════════════════════════════════ */

.entry-content img:not(.no-style):not(.wp-smiley):not(.emoji) {
  border-radius: 18px;
  border: 2px solid #000;
  max-width: 100%;
  height: auto;
}

/* ════════════════════════════════════════════════════════════════════
   PULL-QUOTES / EMPHASIS
   ════════════════════════════════════════════════════════════════════ */

.has-drop-cap:first-letter {
  font-family: var(--kc-font-display);
  color: var(--kc-burgundy);
  font-weight: 500;
}