/* ═══════════════════════════════════════════════════════════════
   My Inner Foundation — Editorial pages (About, Insights, Essays)
   Matches the paper/ink palette of the legal modals & homepage.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --mf-paper:   #F4EDE0;
  --mf-paper-2: #EDE3D0;
  --mf-paper-3: #E0D3BC;
  --mf-card:    #FBF7EE;
  --mf-ink:     #1C1814;
  --mf-ink-2:   #3A342C;
  --mf-ink-3:   #6B5E50;
  --mf-muted:   #8F8271;
  --mf-rule:    #D6CBB5;
  --mf-accent:  #B8923A;
  --mf-serif:   'Cormorant Garamond', 'Fraunces', Georgia, serif;
  --mf-sans:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mf-mono:    'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

body.mf-editorial {
  margin: 0;
  background: var(--mf-paper);
  color: var(--mf-ink);
  font-family: var(--mf-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.mf-ed-page { max-width: 720px; margin: 0 auto; padding: 56px 28px 96px; }

.mf-ed-back {
  font-family: var(--mf-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--mf-muted);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 36px;
}
.mf-ed-back:hover { color: var(--mf-accent); }

.mf-ed-eyebrow {
  display: block;
  font-family: var(--mf-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mf-accent);
  margin-bottom: 18px;
}

.mf-ed-h1 {
  font-family: var(--mf-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--mf-ink);
  margin: 0 0 22px;
}

.mf-ed-lede {
  font-family: var(--mf-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.55;
  color: var(--mf-ink-2);
  margin: 0 0 12px;
}

.mf-ed-header { margin-bottom: 56px; padding-bottom: 36px; border-bottom: 1px solid var(--mf-rule); }

.mf-ed-h2 {
  font-family: var(--mf-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--mf-ink);
  margin: 56px 0 18px;
}

.mf-ed-h3 {
  font-family: var(--mf-serif);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--mf-ink);
  margin: 36px 0 10px;
}

.mf-ed-p {
  margin: 0 0 18px;
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--mf-ink-2);
}

.mf-ed-ul, .mf-ed-ol {
  margin: 0 0 22px;
  padding-left: 22px;
  color: var(--mf-ink-2);
}
.mf-ed-ul li, .mf-ed-ol li { margin-bottom: 10px; line-height: 1.72; }
.mf-ed-ul li strong { color: var(--mf-ink); font-weight: 600; }

.mf-ed-quote {
  margin: 32px 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--mf-accent);
  font-family: var(--mf-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--mf-ink);
}

.mf-ed-link {
  color: var(--mf-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(184,146,58,.35);
  transition: border-color .2s;
}
.mf-ed-link:hover { border-bottom-color: var(--mf-accent); }

.mf-ed-meta {
  font-family: var(--mf-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mf-muted);
}

.mf-ed-divider { height: 1px; background: var(--mf-rule); margin: 56px 0; border: 0; }

/* Insights index — list of essays */
.mf-ed-list { list-style: none; padding: 0; margin: 0; }
.mf-ed-list-item { padding: 32px 0; border-bottom: 1px solid var(--mf-rule); }
.mf-ed-list-item:first-child { padding-top: 0; }
.mf-ed-list-item:last-child { border-bottom: 0; }
.mf-ed-list-title {
  font-family: var(--mf-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 1.85rem);
  line-height: 1.18;
  margin: 8px 0 12px;
  letter-spacing: -.01em;
}
.mf-ed-list-title a { color: var(--mf-ink); text-decoration: none; }
.mf-ed-list-title a:hover { color: var(--mf-accent); }
.mf-ed-list-excerpt { color: var(--mf-ink-3); font-size: 1rem; line-height: 1.7; margin: 0 0 14px; }
.mf-ed-list-more {
  font-family: var(--mf-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mf-accent);
  text-decoration: none;
}
.mf-ed-list-more:hover { color: var(--mf-ink); }

/* Cards (CTA, related courses, lead capture) */
.mf-ed-card {
  background: var(--mf-card);
  border: 1px solid var(--mf-rule);
  border-radius: 14px;
  padding: 28px;
  margin: 40px 0;
}
.mf-ed-card .mf-ed-h2,
.mf-ed-card h2 { margin-top: 0; font-size: 1.5rem; }
.mf-ed-card p { color: var(--mf-ink-3); }

.mf-ed-btn {
  display: inline-block;
  background: var(--mf-ink);
  color: var(--mf-paper);
  font-family: var(--mf-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.mf-ed-btn:hover { background: var(--mf-accent); transform: translateY(-1px); }

/* Inline nav row (back/about/courses) */
.mf-ed-navrow {
  font-family: var(--mf-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--mf-muted);
  margin-top: 24px;
}
.mf-ed-navrow a { color: var(--mf-muted); text-decoration: none; border-bottom: 1px solid transparent; }
.mf-ed-navrow a:hover { color: var(--mf-accent); border-bottom-color: rgba(184,146,58,.4); }
.mf-ed-navrow .mf-ed-sep { margin: 0 12px; color: var(--mf-rule); }

/* FAQ */
.mf-ed-faq dt { font-family: var(--mf-serif); font-size: 1.2rem; color: var(--mf-ink); margin-bottom: 8px; font-weight: 500; }
.mf-ed-faq dd { margin: 0 0 28px; color: var(--mf-ink-3); line-height: 1.72; }

@media (max-width: 600px) {
  .mf-ed-page { padding: 36px 22px 72px; }
  .mf-ed-h1 { font-size: 2.1rem; }
  .mf-ed-lede { font-size: 1.1rem; }
}
