/* ============================================
   FIVE PLANT FERTILIZERS YOU CAN MAKE YOURSELF
   Editorial Overrides · Gardening almanac feel
   Base styles: article-shared.css
   Page prefix: pft- (plant fertilizer)
   ============================================ */


/* ── Theme tokens (deep moss green signature) ── */
.pft-page {
  --pft-moss: #3a6b3f;
  --pft-moss-deep: #284c2c;
  --pft-moss-soft: rgba(58, 107, 63, 0.12);
  --pft-sage: #8c9d6a;
  --pft-cream: #f6f3ec;
  --pft-warm-white: #fbf9f6;
  --pft-rust: #b66a3c;
  --pft-rust-soft: rgba(182, 106, 60, 0.10);
  --pft-text-soft: #5a5a55;

  --art-accent: var(--pft-moss);
  --art-accent-dark: var(--pft-moss-deep);
  --art-accent-glow: rgba(58, 107, 63, 0.32);
  --art-accent-subtle: rgba(58, 107, 63, 0.06);
  --art-ornament: var(--pft-moss);
  --art-hero-accent-line: var(--pft-moss);
  /* Subtitle uses a soft warm-white so it reads against the green nettle hero. */
  --art-subtitle-color: rgba(251, 249, 246, 0.85);
}


/* ============================================
   HERO LEGIBILITY — pill + subtitle contrast
   The hero image is green (nettle macro), so the
   default green-on-green category pill and sage
   subtitle disappear. Force higher-contrast
   variants scoped to this page only.
   ============================================ */
.pft-page .art-hero__category {
  background: rgba(251, 249, 246, 0.95);
  color: var(--pft-moss-deep);
  letter-spacing: 0.22em;
  text-shadow: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.pft-page .art-hero__subtitle {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}


/* ============================================
   HERO — slow, calm Ken Burns
   ============================================ */
.pft-page .art-hero__media img {
  animation: pftHeroKB 30s ease-out forwards;
}

@keyframes pftHeroKB {
  0%   { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Slightly lifted overlay so the title sits over nettle macro */
.pft-page .art-hero__overlay {
  background: linear-gradient(
    180deg,
    rgba(20, 35, 22, 0.32) 0%,
    rgba(20, 35, 22, 0.10) 40%,
    rgba(20, 35, 22, 0.55) 100%
  );
}


/* ============================================
   LEAD — disable dropcap (lead opens with "Do
   you get a bit fed up…" — letter is fine, but
   we want the conversational tone, not a giant
   serif "D" dropcap).
   ============================================ */
.pft-page .art-lead::first-letter {
  initial-letter: 1;
  -webkit-initial-letter: 1;
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
  margin-right: 0;
  float: none;
  line-height: inherit;
}


/* ============================================
   ANCHOR SCROLLING
   ============================================ */
.pft-page {
  scroll-behavior: smooth;
}
.pft-page #related-articles {
  scroll-margin-top: 100px;
}


/* ============================================
   RECIPE SECTION — full-bleed banner + content
   Each fertilizer block: banner card (1200×630
   Canva PNG) leads, body text follows, plant
   chips at the bottom.
   ============================================ */
.pft-recipe {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--pft-warm-white);
  position: relative;
}

.pft-page .pft-recipe:nth-of-type(even-of(.pft-recipe)) {
  background: var(--pft-cream);
}

/* Even/odd background alternation — modern CSS */
.pft-recipe:nth-child(even) {
  background: var(--pft-cream);
}

.pft-recipe__banner {
  max-width: 880px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  padding: 0 var(--space-xl, 1.5rem);
}

.pft-recipe__banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl, 14px);
  box-shadow:
    0 14px 40px rgba(40, 76, 44, 0.16),
    0 0 0 1px rgba(40, 76, 44, 0.05);
}

.pft-recipe__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-xl, 1.5rem);
}

.pft-recipe__header {
  text-align: center;
  margin: 0 0 clamp(1.25rem, 2vw, 1.75rem);
  position: relative;
  padding-top: 1.25rem;
}

.pft-recipe__header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 1px;
  background: var(--pft-moss);
  opacity: 0.5;
}

.pft-recipe__title {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.85rem, 2.4vw + 0.85rem, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.18;
  color: var(--pft-moss-deep);
  margin: 0;
}

.pft-recipe__tagline {
  font-family: var(--font-body, 'Glacial Indifference', sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pft-sage);
  margin: 0.6rem 0 0;
}


/* ============================================
   CHIPS — pill tags for plant lists
   ============================================ */
.pft-chips {
  max-width: 720px;
  margin: clamp(1.5rem, 3vw, 2.25rem) auto clamp(1.75rem, 3.5vw, 2.5rem);
}

.pft-chips__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pft-text-soft);
  margin-bottom: 0.75rem;
  text-align: center;
}

.pft-chips__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.pft-chips__list li {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  font-family: var(--font-body, 'Glacial Indifference', sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  background: var(--pft-moss-soft);
  color: var(--pft-moss-deep);
  border: 1px solid rgba(58, 107, 63, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pft-chips--avoid .pft-chips__list li {
  background: var(--pft-rust-soft);
  color: #6b3c1e;
  border-color: rgba(182, 106, 60, 0.22);
}


/* ============================================
   LIKES / AVOID PAIR — two-column layout on
   desktop, stacked on mobile
   ============================================ */
.pft-likes-avoid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 880px;
  margin: clamp(1.5rem, 3vw, 2.25rem) auto clamp(1.75rem, 3.5vw, 2.5rem);
}

.pft-likes-avoid .pft-chips {
  margin: 0;
}

@media (max-width: 720px) {
  .pft-likes-avoid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}


/* ============================================
   GROUPS — keyed definition list for potato
   water (categories + plants within each)
   ============================================ */
.pft-groups {
  max-width: 640px;
  margin: clamp(1.5rem, 3vw, 2.25rem) auto clamp(1.75rem, 3.5vw, 2.5rem);
  padding: 1.5rem 1.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-xl, 12px);
  border: 1px solid rgba(58, 107, 63, 0.12);
}

.pft-groups .pft-chips__label {
  margin-bottom: 1rem;
}

.pft-groups__list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.pft-groups__row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed rgba(58, 107, 63, 0.16);
}

.pft-groups__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pft-groups__row dt {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.0625rem;
  font-style: italic;
  font-weight: 500;
  color: var(--pft-moss-deep);
  margin: 0;
}

.pft-groups__row dd {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--pft-text-soft);
  line-height: 1.5;
}

@media (max-width: 540px) {
  .pft-groups__row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}


/* ============================================
   CLOSING FIGURE — slightly tighter feel,
   square-ish closing image with rounded corners
   ============================================ */
.pft-closing-figure {
  margin: clamp(3rem, 6vw, 5rem) auto clamp(2.5rem, 5vw, 4rem);
}

.pft-closing-figure .art-figure__img-wrap {
  border-radius: 0;
  box-shadow:
    0 16px 50px rgba(40, 76, 44, 0.18),
    0 0 0 1px rgba(40, 76, 44, 0.04);
}


/* ============================================
   NB NOTE — the "soil matters most" callout
   Designed to feel like a margin note in an
   almanac: paper-warm, slightly indented label,
   sage-green accent stripe on the left edge.
   ============================================ */
.pft-note {
  max-width: 760px;
  margin: clamp(2rem, 5vw, 4rem) auto;
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.75rem, 4vw, 3rem);
  background: linear-gradient(
    180deg,
    rgba(140, 157, 106, 0.10) 0%,
    rgba(140, 157, 106, 0.04) 100%
  );
  border-left: 4px solid var(--pft-moss);
  border-radius: 0 var(--radius-xl, 12px) var(--radius-xl, 12px) 0;
  position: relative;
}

.pft-note__label {
  display: inline-block;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--pft-moss);
  margin-bottom: 0.6rem;
}

.pft-note__title {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.4rem, 1.8vw + 0.6rem, 1.85rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  color: var(--pft-moss-deep);
  margin: 0 0 1rem;
}

.pft-note__body p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--pft-text-soft);
  margin: 0 0 0.875rem;
}

.pft-note__body p:last-child {
  margin-bottom: 0;
}


/* ============================================
   CLOSING — green-tinted accent line
   ============================================ */
.pft-page .art-closing__text {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-style: italic;
}

.pft-page .art-closing::before {
  background: linear-gradient(90deg, var(--pft-sage), var(--pft-moss));
}


/* ============================================
   RESPONSIVE — chip sizing on small screens
   ============================================ */
@media (max-width: 480px) {
  .pft-recipe__banner {
    padding: 0 1rem;
  }
  .pft-recipe__inner {
    padding: 0 1.25rem;
  }
  .pft-chips__list li {
    font-size: 0.82rem;
    padding: 0.38rem 0.85rem;
  }
  .pft-note {
    padding: 1.75rem 1.5rem;
  }
}


/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .pft-page .art-hero__media img {
    animation: none;
    transform: none;
  }
}
