/* ============================================
   LEMON DOJO — Article (Lemonade Notes posts)
   ============================================ */

.article {
  padding-bottom: 80px;
}

/* --- HERO --- */
.article-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 200px 24px 80px;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

/* Hero image sits BELOW the fixed nav so the menu always reads against
   the cream page background, never against a busy photo. */
.article-hero-image {
  position: absolute;
  top: 110px;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  /* Favour the upper portion of the photo so subjects (faces, heads,
     pets) at the top of the frame are not cropped out. */
  background-position: center 20%;
  z-index: -2;
  /* Soften the top edge of the image into the cream nav area instead
     of cutting hard. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28px, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 28px, #000 100%);
}

.article-hero-overlay {
  position: absolute;
  top: 110px;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(to bottom, rgba(251, 247, 238, 0.25) 0%, rgba(251, 247, 238, 0.05) 40%, rgba(251, 247, 238, 0.85) 92%, var(--bg) 100%);
  z-index: -1;
}

.article-hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.article-eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.article-tag {
  --tag-color: var(--lemon-gold);
  display: inline-block;
  padding: 5px 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--bg);
  background: var(--tag-color);
  border-radius: 3px;
}

.article-dot {
  opacity: 0.4;
}

.article-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
  text-shadow: 0 1px 24px rgba(251, 247, 238, 0.55);
}

.article-dek {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

/* --- BODY --- */
.article-body {
  padding-top: 72px;
  padding-bottom: 56px;
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text);
}

.article-body p {
  margin-bottom: 1.35em;
}

.article-lead {
  font-family: var(--font-headline);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  border-left: 2px solid var(--lemon-gold);
  padding-left: 22px;
  margin-bottom: 1.8em;
}

.article-body em {
  font-style: italic;
  color: var(--text);
}

.article-body strong {
  font-weight: 500;
  color: var(--forest);
}

.article-pull {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.35;
  color: var(--forest);
  text-align: center;
  margin: 2.2em auto;
  padding: 28px 0;
  border-top: 1px solid rgba(47, 58, 46, 0.15);
  border-bottom: 1px solid rgba(47, 58, 46, 0.15);
  max-width: 640px;
}

.article-figure {
  margin: 2.6em 0;
  border-radius: 6px;
  overflow: hidden;
}

.article-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.article-figure figcaption {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  padding: 0 24px;
}

.article-pillar {
  margin: 2.4em 0;
  padding-top: 1.6em;
  border-top: 1px solid rgba(47, 58, 46, 0.08);
}

.article-pillar:first-of-type {
  border-top: none;
  padding-top: 0;
}

.article-pillar h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: var(--forest);
  margin-bottom: 0.6em;
  letter-spacing: -0.01em;
}

.article-pillar h2::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--lemon-gold);
  margin-bottom: 18px;
}

.article-try {
  margin-top: 3em;
  padding: 40px 36px;
  background: rgba(196, 154, 46, 0.08);
  border: 1px solid rgba(196, 154, 46, 0.25);
  border-radius: 6px;
}

.article-try h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.6em;
  color: var(--forest);
  font-style: italic;
}

.article-close {
  font-family: var(--font-headline);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: var(--forest);
  text-align: center;
  margin-top: 2em;
}

/* --- FOOTER --- */
.article-footer {
  padding-top: 48px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(47, 58, 46, 0.1);
  margin-top: 48px;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(47, 58, 46, 0.1);
}

.article-byline-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.article-byline-name {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 2px;
}

.article-byline-bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.article-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.article-nav-next {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  background: rgba(47, 58, 46, 0.04);
  border-radius: 6px;
  width: 100%;
  transition: background 0.3s ease;
}

.article-nav-next:hover {
  background: rgba(196, 154, 46, 0.08);
  opacity: 1;
}

.article-nav-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 500;
}

.article-nav-title {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  color: var(--text);
}

.article-nav-back {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.article-nav-back:hover {
  color: var(--lemon-gold);
}

/* --- MOBILE --- */
@media (max-width: 768px) {
  .article-hero {
    min-height: 500px;
    padding: 150px 20px 60px;
  }

  .article-hero-image,
  .article-hero-overlay {
    top: 90px;
  }

  .article-body {
    padding-top: 52px;
  }

  .article-figure {
    margin: 2em 0;
  }

  .article-try {
    padding: 28px 22px;
  }

  .article-byline {
    flex-direction: column;
    text-align: center;
  }
}
