/* ===== Borrowed Spice — custom theme additions ===== */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600&display=swap");

:root {
  --bs-bg: #fbfaf7;
  --bs-ink: #1c1c1c;
  --bs-ink-soft: #5a5854;
  --bs-rule: rgba(28, 28, 28, 0.10);
  --bs-rule-strong: rgba(28, 28, 28, 0.22);
  --bs-accent: #6b1f12;
  --bs-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --bs-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --background-color: var(--bs-bg);
}

html, body, .gh-viewport, .gh-main, .gh-container,
.gh-head, .gh-foot, .gh-feed { background-color: var(--bs-bg) !important; }
body { font-family: var(--bs-sans); color: var(--bs-ink); }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6,
.gh-article-title, .gh-feed-title, .gh-card-title,
.post-card-title, .post-full-title, .gh-head-logo {
  font-family: var(--bs-serif) !important;
  font-weight: 500;
  color: var(--bs-ink);
  letter-spacing: -0.012em;
  line-height: 1.08;
}
.gh-article-title { font-size: clamp(2.6rem, 6.2vw, 5.2rem) !important; margin-bottom: 1.5rem; }
.gh-canvas h2, .gh-content h2 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); margin: 2.5rem 0 0.6rem; font-weight: 600; }
.gh-canvas h3, .gh-content h3 { font-size: 1.25rem; margin: 1.8rem 0 0.4rem; font-weight: 600; }
p, li, blockquote { font-family: var(--bs-sans); font-size: 1.075rem; line-height: 1.75; color: var(--bs-ink); }
.gh-content > p:first-of-type { font-size: 1.2rem; line-height: 1.6; }
.gh-article-excerpt, .gh-card-excerpt, .post-card-excerpt {
  font-family: var(--bs-serif) !important; font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.55rem) !important; line-height: 1.4; color: var(--bs-ink-soft);
}

/* Metadata */
.gh-article-meta, .gh-card-meta, .post-card-meta, .gh-article-tag, .gh-byline {
  font-family: var(--bs-sans) !important;
  font-size: 0.72rem !important; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--bs-ink-soft) !important; font-weight: 500;
}

a, a:link { color: var(--bs-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gh-head a, .gh-foot a, .post-card-title a, .gh-card-title a { color: var(--bs-ink); text-decoration: none; }
.post-card-title a:hover, .gh-card-title a:hover { color: var(--bs-accent); }

/* Hide Powered by Ghost */
.gh-foot a[href*="ghost.org"], .gh-powered-by, footer a[href*="ghost.org"] { display: none !important; }

/* ===== Recipe-card system ===== */
.bs-recipe-meta { display: none; }

/* Jump-to-Recipe button */
.bs-jump {
  display: inline-block; margin: 1.5rem 0 0;
  background: var(--bs-ink); color: var(--bs-bg);
  padding: 0.7rem 1.4rem; border: none; border-radius: 0;
  font-family: var(--bs-sans); font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  cursor: pointer; text-decoration: none;
}
.bs-jump:hover { background: var(--bs-accent); color: var(--bs-bg); }

/* Recipe meta strip */
.bs-meta-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1rem 2rem;
  border-top: 1px solid var(--bs-ink);
  border-bottom: 1px solid var(--bs-ink);
  padding: 1.2rem 0;
  margin: 2.5rem 0 1.5rem;
}
.bs-meta-strip .bs-meta-item { display: flex; flex-direction: column; gap: 0.2rem; }
.bs-meta-strip .bs-meta-label {
  font-family: var(--bs-sans); font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--bs-ink-soft); font-weight: 500;
}
.bs-meta-strip .bs-meta-value {
  font-family: var(--bs-serif); font-size: 1.5rem; font-weight: 500; color: var(--bs-ink); line-height: 1;
}

/* Recipe controls */
.bs-controls {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 0 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.bs-scaler {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--bs-sans); font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--bs-ink-soft);
}
.bs-scaler button {
  width: 2rem; height: 2rem; border: 1px solid var(--bs-rule-strong);
  background: transparent; cursor: pointer; font-family: var(--bs-serif);
  font-size: 1rem; font-weight: 500; color: var(--bs-ink);
  border-radius: 0; padding: 0;
}
.bs-scaler button.is-active { background: var(--bs-ink); color: var(--bs-bg); border-color: var(--bs-ink); }
.bs-print {
  background: transparent; border: 1px solid var(--bs-rule-strong);
  color: var(--bs-ink); padding: 0.5rem 1rem; cursor: pointer;
  font-family: var(--bs-sans); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.bs-print:hover { background: var(--bs-ink); color: var(--bs-bg); }

/* Ingredient lists (after a h2) */
.is-recipe .gh-content h2 + ul, .is-recipe .gh-content h3 + ul {
  list-style: none; padding-left: 0; margin: 1.2rem 0;
}
.is-recipe .gh-content h2 + ul li, .is-recipe .gh-content h3 + ul li {
  padding: 0.55rem 0 0.55rem 1.5rem; border-bottom: 1px solid var(--bs-rule);
  position: relative; margin: 0;
}
.is-recipe .gh-content h2 + ul li::before, .is-recipe .gh-content h3 + ul li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem; width: 6px; height: 6px;
  background: var(--bs-accent); border-radius: 50%;
}

/* Method (ordered list) */
.gh-content ol { padding-left: 0; list-style: none; counter-reset: step; }
.gh-content ol li {
  counter-increment: step; padding: 0.4rem 0 0.8rem 2.6rem;
  position: relative; margin: 0;
}
.gh-content ol li::before {
  content: counter(step); position: absolute; left: 0; top: 0.3rem;
  font-family: var(--bs-serif); font-size: 1.6rem; font-weight: 500;
  color: var(--bs-accent); line-height: 1; width: 2rem;
}

/* Notes */
.gh-content blockquote {
  border-left: 2px solid var(--bs-ink); padding: 0.2rem 0 0.2rem 1.5rem;
  margin: 2.5rem 0; font-family: var(--bs-serif); font-style: italic;
  font-size: 1.35rem; line-height: 1.4; color: var(--bs-ink);
}

/* Buttons */
.gh-form-button, .gh-newsletter-button, button[type="submit"],
.kg-signup-card-button, .gh-portal-btn-main, .gh-button {
  background: var(--bs-ink) !important; color: var(--bs-bg) !important;
  border: none !important; border-radius: 0 !important;
  font-family: var(--bs-sans) !important; letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 0.78rem !important;
  padding: 1rem 1.8rem !important; font-weight: 500 !important;
}

/* Header */
.gh-head { border-bottom: 1px solid var(--bs-rule); }
.gh-head-logo { font-size: 1.55rem; letter-spacing: 0.005em; font-weight: 500; }
.gh-head-menu, .gh-head-actions {
  font-family: var(--bs-sans); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase;
}

/* Feature image placeholder */
.gh-feature-image { background: var(--bs-rule); }

/* ===== Print ===== */
@media print {
  body { background: white !important; color: black !important; font-size: 11pt; }
  .gh-head, .gh-foot, .bs-jump, .bs-controls, .bs-print,
  .gh-newsletter, .gh-comments, .gh-related, nav,
  .gh-meta-share, .gh-byline, .gh-share, .gh-article-tag { display: none !important; }
  .gh-article-title { font-size: 24pt !important; margin: 0 0 0.5rem; }
  .gh-article-excerpt { font-size: 12pt !important; margin-bottom: 1rem; }
  .bs-meta-strip { border-color: black; padding: 0.5rem 0; margin: 1rem 0; page-break-inside: avoid; }
  .bs-meta-strip .bs-meta-value { font-size: 14pt; }
  .gh-content h2 { font-size: 14pt !important; margin: 1rem 0 0.4rem; page-break-after: avoid; }
  .gh-content ul, .gh-content ol { page-break-inside: avoid; }
  .gh-content ul li, .gh-content ol li { font-size: 10.5pt; line-height: 1.5; }
  .gh-content blockquote { font-size: 11pt; margin: 0.8rem 0; }
  a { color: black !important; text-decoration: none !important; }
  img { max-width: 100%; page-break-inside: avoid; }
}
