/* =========================================================
FOOD OVER MEDICINE — EDITORIAL CORE (FINAL)
Stable foundation only — NO hero scale logic
========================================================= */

/* ---------------------------------------------------------
ROOT TOKENS
--------------------------------------------------------- */
:root {
  --sage: #7F9C86;
  --warm: #F6F2EA;
  --sand: #E3D9C8;
  --charcoal: #2D3142;
  --ink: #1F2937;

  --content-width: 820px;
  --content-width-wide: 1040px;
}

/* ---------------------------------------------------------
GLOBAL RESET
--------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: #ffffff;
}

/* ---------------------------------------------------------
UTILITY
--------------------------------------------------------- */
.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.bg-warm { background: var(--warm); }
.bg-sand { background: var(--sand); }
.bg-charcoal { background: var(--charcoal); }

.font-serif { font-family: "Crimson Pro", serif; }

/* =========================================================
GHOST KOENIG REQUIRED WIDTH CLASSES
========================================================= */
.kg-width-wide {
  max-width: var(--content-width-wide);
  margin-inline: auto;
}

.kg-width-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.kg-width-wide img,
.kg-width-full img,
.kg-width-wide iframe,
.kg-width-full iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------------------------------------------------------
PAGE → CONTENT SPACING
--------------------------------------------------------- */
.editorial-shell {
  padding-top: 3rem;
  padding-bottom: 4.5rem;
}

@media (max-width: 768px) {
  .editorial-shell {
    padding-top: 2.25rem;
    padding-bottom: 3.25rem;
  }
}

/* =====================================================
CTA BUTTONS — SINGLE SYSTEM
===================================================== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2.1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
}

.cta-btn.primary {
  background: var(--sage);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(127,156,134,.25);
}

.cta-btn.primary:hover {
  background: #6f8f79;
  transform: translateY(-1px);
}

.cta-btn.secondary {
  background: transparent;
  border: 1px solid #374151;
  color: #374151;
}

.cta-btn.secondary:hover {
  background: rgba(55,65,81,.05);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .cta-btn {
    width: 100%;
    padding: 1rem 1.75rem;
  }
}

/* =========================================================
EDITORIAL LINKS
========================================================= */
.editorial-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sage);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.editorial-text-link:hover {
  color: #6f8f79;
  transform: translateX(2px);
}

/* =========================================================
LOGO + HEADER
========================================================= */
.site-header .fa-leaf {
  font-size: 1.05rem;
  line-height: 1;
  position: relative;
  top: 1px;
  color: var(--sage) !important;
}

.site-header a[href="/"] {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-script {
  font-family: "Great Vibes", cursive;
  letter-spacing: 0.02em;
}

/* =========================================================
EDITORIAL CARDS — SYSTEM
========================================================= */
.editorial-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.editorial-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow:
    0 1px 2px rgba(0,0,0,.04),
    0 8px 24px rgba(0,0,0,.06);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.editorial-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 10px rgba(0,0,0,.06),
    0 18px 40px rgba(0,0,0,.1);
  border-color: rgba(0,0,0,.12);
}

.editorial-card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.editorial-card-body {
  padding: 1.25rem 1.4rem 1.5rem;
}

.editorial-card-eyebrow {
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .4rem;
}

.editorial-card-title {
  font-family: "Crimson Pro", serif;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--charcoal);
  margin-bottom: .5rem;
}

.editorial-card-excerpt {
  font-size: .9rem;
  line-height: 1.55;
  color: #4b5563;
}

/* =========================================================
FEATURED / MEMBERS LOCK
========================================================= */
.featured-ribbon {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: #ffffff;
  border: 1px solid var(--sand);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem .6rem;
  color: #6b7280;
  z-index: 2;
}

.editorial-lock {
  position: absolute;
  top: .75rem;
  right: .75rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem .6rem;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.1);
  color: #4b5563;
  z-index: 3;
}

/* =========================================================
DETAIL HERO — IMAGE LED (KEEP)
========================================================= */
.detail-hero {
  background: var(--warm);
  padding: 3.5rem 0 3rem;
}

.detail-hero-inner {
  max-width: 48rem;
  margin: 0 auto;
}

.detail-hero-image {
  margin-bottom: 2rem;
}

.detail-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.detail-hero-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.detail-hero-title {
  font-family: "Crimson Pro", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.detail-hero-excerpt {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4b5563;
}

/* =========================================================
FORMS
========================================================= */
input[type="search"],
input[type="email"],
input[type="text"] {
  font-family: inherit;
  padding: .75rem 1rem;
  border-radius: .75rem;
  border: 1px solid var(--sand);
}

input:focus {
  outline: none;
  border-color: var(--sage);
}

/* =========================================================
MISC SAFETY
========================================================= */
.elfsight-app,
.elfsight-app * {
  font-family: inherit !important;
}

.pillar-icon {
  font-size: 1.6rem;
  color: var(--sage);
}
