/* ============================================================
   CAZMORE BRAND POLISH — global visual layer (mu-plugin)
   Premium Pinterest brand: warm ivory, forest green, subtle gold.
   Playfair Display headings + DM Sans body (self-hosted).
   Revert: delete wp-content/mu-plugins/cazmore-polish.php
   and the cazmore-assets folder. No theme files are touched.
   ============================================================ */

@font-face {
  font-family: 'Playfair Display';
  src: url('PlayfairDisplay.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('PlayfairDisplay-Italic.ttf') format('truetype');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('DMSans.ttf') format('truetype');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Kadence wiring: fonts, palette and article width follow the brand */
  --global-body-font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --global-heading-font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --global-content-narrow-width: 880px; /* single-article column: 842px -> 880px */
  --global-palette1: #1e4d38;  /* primary accent -> forest green (links, buttons) */
  --global-palette2: #143527;  /* accent hover -> deep forest */
  --global-palette3: #2e2a23;  /* strong text -> warm charcoal */
  --global-palette4: #3e382e;
  --global-palette5: #5c5546;
  --global-palette6: #8a8171;
  --global-palette7: #efe6d2;
  --global-palette8: #f5efe1;
  --global-palette9: #fffdf7;  /* card/paper surface -> warm paper */

  --caz-ivory: #faf6ee;
  --caz-paper: #fffdf7;
  --caz-green: #1e4d38;
  --caz-green-deep: #143527;
  --caz-gold: #b98a1f;
  --caz-gold-soft: #e7ce8f;
  --caz-ink: #2e2a23;
  --caz-line: #e7dcc4;
  --caz-shadow: 0 12px 32px rgba(30, 77, 56, 0.10);
}

/* ---------- Base ---------- */
body {
  background-color: var(--caz-ivory);
  color: var(--caz-ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .site-title, .widget-title {
  font-family: var(--global-heading-font-family);
  color: var(--caz-green);
  letter-spacing: 0.01em;
}

/* ---------- Header / footer ---------- */
.site-header,
.site-main-header-wrap .site-header-row-container-inner,
.site-mobile-header-wrap .site-header-row-container-inner {
  background-color: var(--caz-paper);
}
.site-header {
  border-bottom: 1px solid var(--caz-line);
}
.site-footer {
  background-color: var(--caz-green-deep);
  color: #f3ecdb;
}
.site-footer .site-footer-row-container-inner,
.site-footer .site-footer-wrap {
  background: transparent;
}
.site-footer h1, .site-footer h2, .site-footer h3,
.site-footer h4, .site-footer h5, .site-footer h6,
.site-footer .widget-title {
  color: var(--caz-ivory);
}
.site-footer a { color: var(--caz-gold-soft); }
.site-footer a:hover { color: #ffffff; }

/* ---------- Article readability ---------- */
.content-style-boxed .entry,
.content-style-boxed article.entry {
  background-color: var(--caz-paper);
  border-radius: 18px;
  box-shadow: var(--caz-shadow);
}
.entry-content {
  line-height: 1.75;
  font-size: 1.05rem;
}
.entry-content p { margin-bottom: 1.45em; }
.entry-content h2 {
  margin-top: 2.1em;
  margin-bottom: 0.55em;
  line-height: 1.25;
}
.entry-content h3 {
  margin-top: 1.7em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}
.entry-content a { text-decoration-color: rgba(185, 138, 31, 0.55); text-underline-offset: 3px; }
.entry-content a:hover { color: var(--caz-gold); }
.entry-content ul, .entry-content ol { margin-bottom: 1.45em; }
.entry-content li { margin-bottom: 0.35em; }

/* ---------- Images ---------- */
.single-post .post-thumbnail img,
.entry-content img {
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(30, 77, 56, 0.13);
}
.wprm-recipe img { box-shadow: none; } /* recipe card keeps its own clean look */

/* ---------- Recipe card (WP Recipe Maker, Meadow) harmonised ---------- */
.wprm-recipe-template-meadow {
  background-color: var(--caz-paper);
  border: 1px solid var(--caz-line);
  border-top: 3px solid var(--caz-gold);
  border-radius: 18px;
  box-shadow: var(--caz-shadow);
}
.wprm-recipe-template-meadow .wprm-recipe-name,
.wprm-recipe-template-meadow h2,
.wprm-recipe-template-meadow h3,
.wprm-recipe-template-meadow h4 {
  font-family: var(--global-heading-font-family);
  color: var(--caz-green);
}
.wprm-recipe-template-meadow a { color: var(--caz-green); }
.wprm-recipe-template-meadow a:hover { color: var(--caz-gold); }

/* ---------- Related recipes (mu-plugin cards) ---------- */
.caz-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--caz-line);
}
.caz-related-title {
  text-align: center;
  margin: 0 0 0.35em;
}
.caz-related-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 2px;
  background: var(--caz-gold);
  margin: 0.55em auto 1.4em;
}
.caz-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.caz-card {
  display: flex;
  flex-direction: column;
  background: var(--caz-paper);
  border: 1px solid var(--caz-line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(30, 77, 56, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.caz-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(30, 77, 56, 0.14);
}
.caz-card-media { display: block; line-height: 0; }
.caz-card-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}
.caz-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.95rem 1.05rem 1.1rem;
}
.caz-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--caz-gold);
}
.caz-card-name {
  font-family: var(--global-heading-font-family);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--caz-green);
}
.caz-card:hover .caz-card-name { color: var(--caz-gold); }

/* ---------- Mobile (Pinterest traffic first) ---------- */
@media (max-width: 860px) {
  .caz-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .caz-related-grid { grid-template-columns: 1fr; }
  .caz-card-media img { aspect-ratio: 16 / 9; }
  .entry-content { font-size: 1.02rem; line-height: 1.72; }
  .single-post .post-thumbnail img,
  .entry-content img { border-radius: 12px; }
}
