/* ================================================================
   KEMI KING — ARTICLE.CSS
   Shared article template. Layered on index.css.
   Merged: uploaded aesthetic upgrade + five functional additions
   + readability corrections throughout.
   ================================================================ */


/* ── ACTIVE NAV ──────────────────────────────────────────── */
.nav__link--active { color: var(--espresso); }
.nav__link--active::after { transform: scaleX(1); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}


/* ================================================================
   PAGE ATMOSPHERE
   Warm gradient reading environment. Subtle, not coloured.
   ================================================================ */
body {
  background: linear-gradient(180deg, #fbf8f3 0%, #f7f1e8 100%);
}


/* ================================================================
   READING PROGRESS BAR
   ================================================================ */
.art-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, var(--gold), var(--gold-dark));
  z-index: 300;
  transition: width .1s linear;
  pointer-events: none;
}


/* ================================================================
   ARTICLE HERO
   ================================================================ */
.art-hero {
  padding-top: var(--nav-h);
  background: linear-gradient(180deg, rgba(255,253,249,.98) 0%, rgba(248,241,232,.92) 100%);
  border-bottom: 1px solid rgba(32,25,21,.08);
}

.art-hero__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 5.5rem var(--pad-x) 4rem;
}

.art-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.art-hero__breadcrumb a {
  color: var(--muted-light);
  text-decoration: none;
  transition: color .18s ease;
}
.art-hero__breadcrumb a:hover { color: var(--gold-dark); }
.art-hero__breadcrumb-sep { color: var(--border); }

.art-hero__pillar {
  display: inline-block;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1.1rem;
}

/* READABILITY FIX: title stays full espresso — no opacity on display text */
.art-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--espresso);
  margin-bottom: 1.4rem;
  max-width: 11ch;
}

/* READABILITY FIX: subtitle uses sans (correct from upload) but opacity
   raised from .66 to .82 — still recessive but legible */
.art-hero__subtitle {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: .98rem;
  font-weight: 400;
  color: rgba(32,25,21,.82);
  line-height: 1.95;
  max-width: 42rem;
  margin-bottom: 2.2rem;
}

.art-hero__meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(32,25,21,.52);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(32,25,21,.08);
  flex-wrap: wrap;
}

.art-hero__meta-item {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.art-hero__meta-div {
  width: 1px;
  height: 14px;
  background: rgba(32,25,21,.10);
}


/* ================================================================
   HERO IMAGE — lifted off the page like a photograph
   ================================================================ */
.art-image {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  overflow: visible;
  background: transparent;
}

.art-image img {
  width: 100%;
  max-height: 78svh;
  min-height: 420px;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  filter: saturate(.94) contrast(1.01);
  box-shadow:
    0 20px 50px rgba(32,25,21,.08),
    0 1px 0 rgba(255,255,255,.7) inset;
}

.art-image__caption {
  max-width: 860px;
  margin: 0 auto;
  padding: .9rem var(--pad-x) 0;
  font-size: .68rem;
  color: var(--muted-light);
  letter-spacing: .1em;
  font-style: italic;
}


/* ================================================================
   ARTICLE LAYOUT — content + sidebar
   ================================================================ */
.art-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 300px;
  gap: 6rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 5rem var(--pad-x) 7rem;
  align-items: start;
}


/* ================================================================
   ARTICLE BODY
   ================================================================ */
.art-body {
  max-width: 720px;
}

/* Lead paragraph — large serif display, clearly distinct from body */
.art-body__lead {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--espresso);
  margin-bottom: 2.4rem;
  max-width: 18ch;
}

/* READABILITY FIX: body text opacity raised from .74 to .86
   — readable without competing with headlines */
.art-body p {
  font-size: 1rem;
  line-height: 2;
  color: rgba(32,25,21,.86);
  margin-bottom: 1.7rem;
}

/* READABILITY FIX: section headings — full espresso, no border-top
   (whitespace + larger size does the separation work) */
.art-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 400;
  color: var(--espresso);
  line-height: 1.14;
  margin: 4.2rem 0 1.2rem;
  max-width: 14ch;
}

.art-body h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--espresso);
  margin: 2.2rem 0 .8rem;
}

.art-body strong {
  color: var(--espresso);
}

/* Pull quote — floating horizontal bars, no left border */
.art-pullquote {
  margin: 3.2rem 0;
  padding: 2rem 2.2rem;
  border-left: none;
  border-top: 1px solid rgba(32,25,21,.09);
  border-bottom: 1px solid rgba(32,25,21,.09);
  background: transparent;
}

/* Pull quote text */
.art-pullquote blockquote {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 300;
  color: var(--espresso);
  line-height: 1.38;
  margin: 0;
  max-width: 17ch;
}

/* Gold-tinted variant */
.art-pullquote--pink {
  border-top-color: rgba(193,154,107,.35);
  border-bottom-color: rgba(193,154,107,.35);
  background: transparent;
}

/* Ornament divider */
.art-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 4rem 0;
  color: rgba(193,154,107,.85);
  font-size: .7rem;
  letter-spacing: .28em;
}
.art-divider::before,
.art-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(32,25,21,.08);
}

/* Closing note */
/* CLOSING NOTE — editorial signed statement, constrained and precise */
.art-closing-note {
  margin-top: 4.5rem;
  padding: 0;
  background: none;
  border: none;
  border-top: 1px solid rgba(193,154,107,.3);
  padding-top: 2.4rem;
  max-width: 28ch;
}

.art-closing-note p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 300;
  color: var(--espresso);
  margin: 0;
  line-height: 1.6;
}

.art-closing-note__sign {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: .65rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* Share row */
.art-share {
  margin-top: 3.4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(32,25,21,.08);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.art-share__label {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.art-share__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid rgba(32,25,21,.10);
  background: rgba(255,253,249,.75);
  padding: .5rem .85rem;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.art-share__link:hover {
  border-color: var(--gold);
  color: var(--espresso);
  background: rgba(255,253,249,.95);
}


/* ================================================================
   MID-ARTICLE IMAGE
   ================================================================ */
.art-mid-image {
  margin: 3rem 0;
  overflow: hidden;
  background: var(--cream-deep);
  box-shadow: 0 12px 32px rgba(32,25,21,.06);
}

.art-mid-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: saturate(.92) contrast(1.01);
}

.art-mid-image__caption {
  padding: .6rem 0 0;
  font-size: .68rem;
  color: var(--muted-light);
  font-style: italic;
  letter-spacing: .08em;
}


/* ================================================================
   KEY POSITIONS — summary section
   ================================================================ */
.art-key-positions {
  margin: 3.5rem 0;
  padding: 2rem 2.2rem;
  border: 1px solid rgba(32,25,21,.08);
  background: rgba(255,253,249,.7);
}

.art-key-positions__heading {
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1.2rem;
}

.art-key-positions__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

/* READABILITY FIX: key positions text opacity raised to .86 */
.art-key-positions__list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .94rem;
  color: rgba(32,25,21,.86);
  line-height: 1.75;
}

.art-key-positions__list li::before {
  content: "✦";
  font-size: .5rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: .55rem;
}


/* ================================================================
   INLINE CTA — after emotional peak
   ================================================================ */
.art-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.8rem;
  background: linear-gradient(135deg, #1e1916 0%, #2b231e 100%);
  margin: 3.2rem 0;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(32,25,21,.10);
}

/* READABILITY FIX: inline CTA text opacity raised from .75 to .88 */
.art-inline-cta__text {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 1rem;
  color: rgba(255,253,249,.88);
  line-height: 1.5;
}

.art-inline-cta__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .18s ease;
  border-bottom: 1px solid rgba(193,154,107,.35);
  padding-bottom: 2px;
}
.art-inline-cta__link:hover { color: var(--cream); border-color: rgba(255,253,249,.4); }


/* ================================================================
   SIDEBAR
   ================================================================ */
.art-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.art-sidebar-card {
  border: 1px solid rgba(32,25,21,.08);
  background: rgba(255,253,249,.72);
  padding: 1.4rem 1.35rem;
  box-shadow: 0 10px 30px rgba(32,25,21,.035);
}

.art-sidebar-card__title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--espresso);
  margin-bottom: .35rem;
}

/* READABILITY FIX: sidebar note opacity raised from .58 to .72 */
.art-sidebar-card__note {
  font-size: .76rem;
  color: rgba(32,25,21,.72);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Related articles */
.art-related-list {
  list-style: none;
  padding: 0;
}

.art-related-item {
  padding: .8rem 0;
  border-bottom: 1px solid rgba(32,25,21,.07);
}
.art-related-item:last-child { border-bottom: none; }

.art-related-item__pillar {
  font-size: .56rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: block;
  margin-bottom: .28rem;
}

.art-related-item a {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--espresso);
  text-decoration: none;
  line-height: 1.34;
  transition: color .18s ease;
}
.art-related-item a:hover { color: var(--gold-dark); }

/* Apply CTA in sidebar */
.art-sidebar-apply {
  padding: 1.6rem 1.4rem;
  background: linear-gradient(160deg, #1e1916 0%, #2b231e 100%);
  position: relative;
  box-shadow: 0 12px 28px rgba(32,25,21,.12);
}
.art-sidebar-apply::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}
.art-sidebar-apply .kicker { color: var(--gold); margin-bottom: .5rem; }

/* READABILITY FIX: sidebar apply body opacity raised from .6 to .78 */
.art-sidebar-apply__body {
  font-size: .82rem;
  color: rgba(255,253,249,.78);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.art-sidebar-apply__btn {
  width: 100%;
  justify-content: center;
  font-size: .68rem;
}
.art-sidebar-apply__btn svg { transition: transform .22s var(--ease-smooth); }
.art-sidebar-apply__btn:hover svg { transform: translateX(4px); }


/* ================================================================
   NEXT ARTICLE — upgraded two-column with thumbnail
   ================================================================ */
.art-next {
  background: linear-gradient(180deg, #f4eee5 0%, #f7f1e8 100%);
  border-top: 1px solid rgba(32,25,21,.08);
  padding: 0;
}

.art-next__inner {
  max-width: var(--inner-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 240px;
  align-items: stretch;
  gap: 0;
}

.art-next__content {
  padding: 2.8rem 3rem 2.8rem 0;
  border-right: 1px solid rgba(32,25,21,.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.art-next__label {
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .6rem;
}

.art-next__pillar {
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: .5rem;
}

.art-next__title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 300;
  color: var(--espresso);
  text-decoration: none;
  line-height: 1.2;
  transition: color .18s ease;
  display: block;
  margin-bottom: .8rem;
}
.art-next__title:hover { color: var(--gold-dark); }

/* READABILITY FIX: next article excerpt opacity raised to .78 */
.art-next__excerpt {
  font-size: .84rem;
  color: rgba(32,25,21,.78);
  line-height: 1.6;
}

.art-next__thumb {
  overflow: hidden;
  background: var(--cream-mid);
  position: relative;
}

.art-next__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  filter: saturate(.88);
  transition: transform .6s var(--ease-smooth), filter .4s ease;
}
.art-next:hover .art-next__thumb img {
  transform: scale(1.04);
  filter: saturate(1);
}


/* ================================================================
   MOBILE FIXED CTA BAR
   ================================================================ */
.art-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--espresso);
  padding: 1rem var(--pad-x);
  z-index: 200;
  border-top: 1px solid rgba(193,154,107,.2);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transform: translateY(100%);
  transition: transform .35s var(--ease-smooth);
}
.art-mobile-cta.is-visible { transform: translateY(0); }

/* READABILITY FIX: mobile CTA text opacity raised from .6 to .82 */
.art-mobile-cta__text {
  font-size: .78rem;
  color: rgba(255,253,249,.82);
  line-height: 1.4;
}

.art-mobile-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.2rem;
  background: var(--gold);
  color: var(--espresso);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .18s ease;
}
.art-mobile-cta__btn:hover { background: var(--gold-dark); color: var(--cream); }



/* ================================================================
   TESTIMONIAL — near closing CTA
   ================================================================ */
.art-testimonial {
  margin: 3rem 0 0;
  padding: 1.8rem 2rem;
  background: rgba(193,154,107,.06);
  border-left: 2px solid var(--gold);
  position: relative;
}

.art-testimonial__quote {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  color: var(--espresso);
  line-height: 1.7;
  margin-bottom: .9rem;
}

.art-testimonial__attr {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.art-testimonial__mark {
  position: absolute;
  top: 1rem;
  right: 1.4rem;
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: rgba(193,154,107,.2);
  font-weight: 300;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .art-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .art-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
  .art-sidebar-apply { grid-column: 1 / -1; }
  .art-body { max-width: none; }
  .art-next__inner { grid-template-columns: 1fr; }
  .art-next__content { border-right: none; padding: 2.4rem 0; }
  .art-next__thumb { height: 220px; }
  .art-mobile-cta { display: flex; }
}

@media (max-width: 720px) {
  .art-hero__inner {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .art-hero__title {
    font-size: 2.7rem;
    line-height: 1.02;
    max-width: 100%;
  }
  .art-hero__subtitle,
  .art-body p {
    font-size: .96rem;
  }
  .art-image img {
    min-height: 280px;
    max-height: 52svh;
  }
  .art-layout {
    padding: 3.5rem var(--pad-x) 5rem;
  }
  .art-sidebar {
    grid-template-columns: 1fr;
  }
  .art-pullquote {
    padding: 1.4rem 1.2rem;
  }
  .art-next__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem var(--pad-x);
  }
  .art-body p { margin-bottom: 2rem; }
}