/* =========================================================================
   SHARPER HUMAN — Individual ingredient page styles
   ========================================================================= */

/* ---------- INGREDIENT HERO ---------- */
.ingredient-hero {
  padding: 160px 0 clamp(64px, 8vw, 110px);
  background: var(--black);
  border-bottom: 1px solid var(--rule-dark);
  position: relative;
}
.ingredient-hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.ingredient-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 36px;
}
.ingredient-hero__breadcrumb a { transition: color 0.2s; }
.ingredient-hero__breadcrumb a:hover { color: var(--tan); opacity: 1; }
.ingredient-hero__breadcrumb .sep { opacity: 0.4; }

.ingredient-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.ingredient-hero__eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}
.ingredient-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  max-width: 14ch;
}
.ingredient-hero h1 em { color: var(--tan); font-style: italic; font-weight: 300; }
.ingredient-hero__lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  font-weight: 300;
  opacity: 0.72;
  max-width: 540px;
  margin-bottom: 36px;
}
.ingredient-hero__image {
  background: linear-gradient(160deg, #1c1a17 0%, #0e0d0c 100%);
  border: 1px solid var(--rule-dark);
  padding: clamp(28px, 4vw, 64px);
  position: relative;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ingredient-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.5));
}

@media (max-width: 880px) {
  .ingredient-hero__inner { grid-template-columns: 1fr; }
  .ingredient-hero__image { aspect-ratio: 1/0.85; max-width: 480px; margin: 0 auto; }
}

/* ---------- FACTS STRIP ---------- */
.facts-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule-dark);
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}
.facts-strip > div {
  background: var(--black);
  padding: 28px clamp(20px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.facts-strip .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.5;
}
.facts-strip .value {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.facts-strip .value small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  font-family: var(--font-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
  opacity: 0.8;
  margin-top: 6px;
}

@media (max-width: 720px) {
  .facts-strip { grid-template-columns: 1fr 1fr; }
}

/* ---------- LONGFORM CONTENT ---------- */
.longform {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(40px, 5vw, 88px);
  padding-top: clamp(64px, 8vw, 110px);
  padding-bottom: clamp(64px, 8vw, 110px);
  align-items: start;
}
.longform__toc {
  position: sticky;
  top: 100px;
  padding-top: 8px;
}
.longform__toc-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 18px;
}
.longform__toc ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 1px solid var(--rule-dark);
  padding-left: 18px;
}
.longform__toc a {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.62;
  transition: opacity 0.2s, color 0.2s;
  line-height: 1.4;
  display: block;
}
.longform__toc a:hover { opacity: 1; color: var(--tan); }

.longform__body { max-width: 760px; }
.longform__section {
  margin-bottom: clamp(48px, 5vw, 80px);
  scroll-margin-top: 90px;
}
.longform__section:last-child { margin-bottom: 0; }
.longform__section-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 14px;
}
.longform h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  max-width: 22ch;
}
.longform h2 em { color: var(--tan); font-style: italic; font-weight: 300; }
.longform p {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  opacity: 0.78;
  margin: 0 0 18px;
}
.longform p:last-child { margin-bottom: 0; }
.longform strong { color: var(--bone); font-weight: 500; opacity: 1; }
.longform em { font-style: italic; }

/* numbered/bulleted lists — use absolute-positioned markers so li content stays inline */
.longform ol, .longform ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  counter-reset: lf;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.longform ol > li, .longform ul > li {
  position: relative;
  padding-left: 48px;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  opacity: 0.82;
}
.longform ol > li { counter-increment: lf; }
.longform ol > li::before {
  content: counter(lf, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--tan);
  opacity: 0.9;
}
.longform ul > li::before {
  content: '◆';
  position: absolute;
  left: 14px;
  top: 9px;
  font-size: 7px;
  color: var(--tan);
  opacity: 0.9;
}
.longform li b, .longform li strong {
  color: var(--bone);
  font-weight: 500;
  opacity: 1;
}
.longform .cite {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--tan);
  vertical-align: super;
  line-height: 0;
  padding: 0 2px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.longform .cite:hover { border-color: var(--tan); }

.longform__callout {
  border-left: 1px solid var(--tan);
  padding: 4px 0 4px 24px;
  margin: 8px 0 18px;
}
.longform__callout .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tan);
  display: block;
  margin-bottom: 10px;
}
.longform__callout p { font-size: 15px; opacity: 0.78; }

@media (max-width: 980px) {
  .longform { grid-template-columns: 1fr; }
  .longform__toc { position: static; padding-top: 0; margin-bottom: 32px; }
  .longform__toc ul { flex-direction: row; flex-wrap: wrap; border-left: none; padding-left: 0; gap: 14px 24px; }
}

/* ---------- INGREDIENT NEXT / BACK ---------- */
.ingredient-nav-strip {
  border-top: 1px solid var(--rule-dark);
  padding: clamp(48px, 6vw, 88px) 0;
}
.ingredient-nav-strip__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}
.ingredient-nav-strip__back {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: color 0.2s, opacity 0.2s;
}
.ingredient-nav-strip__back:hover { opacity: 1; color: var(--tan); }

/* ---------- INGREDIENT CTA ---------- */
.ing-cta-section {
  border-top: 1px solid var(--rule-dark);
  padding: clamp(72px, 8vw, 120px) 0;
  background: var(--black);
}
.ing-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.ing-cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 20ch;
}
.ing-cta-title em { color: var(--tan); font-style: italic; font-weight: 300; }
.ing-cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

@media (max-width: 720px) {
  .ing-cta-inner, .ingredient-nav-strip__inner { grid-template-columns: 1fr; }
}
