/* ================================================================
   KEMI KING — JOURNAL.CSS
   Page-specific styles layered on top of index.css.
   ================================================================ */


/* ── ACTIVE NAV & UTILITIES ───────────────────────────────── */
.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;
}


/* ================================================================
   HERO
   ================================================================ */
.jnl-hero {
  padding-top: var(--nav-h);
  background: var(--cream);
  border-bottom: 1px solid var(--border-soft);
}

.jnl-hero__inner {
  padding-top: 4rem;
  padding-bottom: 0;
  max-width: var(--inner-w);
}

.jnl-hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--espresso);
  margin: .5rem 0 1rem;
}
.jnl-hero__headline em {
  font-style: italic;
  color: var(--gold-dark);
}

.jnl-hero__body {
  font-size: .94rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 40rem;
  margin-bottom: 2.4rem;
}


/* ── FILTER BAR ───────────────────────────────────────────── */
.jnl-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .4rem;
  padding: 1.2rem 0 1.4rem;
  border-top: 1px solid var(--border-soft);
}

.jnl-pill {
  padding: .42rem .9rem;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  background: transparent;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.jnl-pill:hover {
  background: var(--cream-deep);
  color: var(--espresso);
  border-color: var(--gold);
}
.jnl-pill--active {
  background: var(--espresso);
  color: var(--cream);
  border-color: var(--espresso);
}

.jnl-filter__search {
  margin-left: auto;
}
.jnl-search {
  padding: .42rem 1rem;
  border: 1px solid var(--border);
  background: var(--cream-deep);
  font-family: var(--font-sans);
  font-size: .78rem;
  color: var(--espresso);
  outline: none;
  width: 200px;
  transition: border-color .18s ease, width .25s ease, background .18s ease;
  border-radius: 0;
}
.jnl-search::placeholder { color: var(--muted-light); font-style: italic; }
.jnl-search:focus {
  border-color: var(--gold);
  background: #fff;
  width: 260px;
}


/* ================================================================
   TWO-COLUMN LAYOUT
   ================================================================ */
.jnl-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
  padding-top: 3rem;
  padding-bottom: 5rem;
}


/* ================================================================
   ARTICLE CARDS
   ================================================================ */
.jnl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: start;
}

.jnl-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-soft);
  background: var(--cream-deep);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.jnl-card:hover {
  box-shadow: 0 16px 44px rgba(30,25,22,.07);
  border-color: var(--border);
}

/* Image — fixed 4:3 ratio, always consistent */
.jnl-card__img-link { display: block; overflow: hidden; }
.jnl-card__img {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.jnl-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.9);
  transition: transform .65s var(--ease-smooth), filter .4s ease;
}
.jnl-card:hover .jnl-card__img img {
  transform: scale(1.04);
  filter: saturate(1);
}

/* Body */
.jnl-card__body {
  padding: 1.6rem 1.8rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.jnl-card__meta {
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: .5rem;
}

.jnl-card__title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: .55rem;
}
.jnl-card__title a {
  color: var(--espresso);
  text-decoration: none;
  transition: color .18s ease;
}
.jnl-card__title a:hover { color: var(--gold-dark); }

.jnl-card__excerpt {
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1rem;
}

.jnl-card__read {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  text-decoration: none;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: gap .2s ease, color .18s ease;
}
.jnl-card__read span {
  font-size: .5rem;
  transition: transform .2s ease;
}
.jnl-card:hover .jnl-card__read {
  gap: .6rem;
  color: var(--espresso);
}
.jnl-card:hover .jnl-card__read span {
  transform: rotate(90deg);
}

/* FEATURED CARD — spans full grid width, horizontal layout */
.jnl-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
  background: var(--cream);
  border-color: var(--border);
}

.jnl-card--featured .jnl-card__img-link {
  flex: 0 0 52%;
  max-width: 52%;
}

.jnl-card--featured .jnl-card__img {
  height: 100%;
  aspect-ratio: unset;
}

.jnl-card--featured .jnl-card__img img {
  height: 100%;
  min-height: 300px;
}

.jnl-card--featured .jnl-card__body {
  flex: 1;
  padding: 2.4rem 2.2rem 2.2rem;
  justify-content: center;
  gap: .6rem;
  display: flex;
  flex-direction: column;
}

.jnl-card--featured .jnl-card__title {
  font-size: 1.7rem;
  line-height: 1.2;
  margin-bottom: .7rem;
}

.jnl-card--featured .jnl-card__excerpt {
  font-size: .92rem;
  line-height: 1.85;
}

/* Featured label */
.jnl-card--featured .jnl-card__meta::before {
  content: "Featured ✦ ";
  color: var(--gold);
  font-weight: 500;
}

/* PAGINATION */
.jnl-pagination {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-content: center;
  padding-top: 1rem;
}

.jnl-page {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  font-size: .78rem;
  color: var(--muted);
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.jnl-page:hover {
  background: var(--cream-deep);
  border-color: var(--gold);
  color: var(--espresso);
}
.jnl-page--active {
  background: var(--espresso);
  color: var(--cream);
  border-color: var(--espresso);
}
.jnl-page--next { width: auto; padding: 0 .75rem; }


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

.jnl-sidebar-card {
  border: 1px solid var(--border);
  background: var(--cream);
  padding: 1.6rem 1.5rem 1.5rem;
  position: relative;
}

/* Picks card gets cream-deep to distinguish from pillar card */
.jnl-sidebar-card:nth-child(2) {
  background: var(--cream-deep);
}

/* Gold top accent on letter card */
.jnl-sidebar-card--letter::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
}

.jnl-sidebar-card__ornament {
  font-size: .7rem;
  color: var(--gold);
  margin-bottom: .75rem;
  display: block;
}

.jnl-sidebar-card__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--espresso);
  margin-bottom: .4rem;
}

.jnl-sidebar-card__note {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Pillar list */
.jnl-pillar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.jnl-pillar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: .84rem;
  color: var(--espresso);
  text-decoration: none;
  transition: color .18s ease, padding-left .18s ease;
}
.jnl-pillar-list li:last-child .jnl-pillar-link { border-bottom: none; }
.jnl-pillar-link:hover {
  color: var(--gold-dark);
  padding-left: .3rem;
}

.jnl-pillar-badge {
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border: 1px solid var(--border);
  color: var(--muted-light);
  background: var(--cream-deep);
  white-space: nowrap;
}
.jnl-pillar-badge--new  { border-color: rgba(193,154,107,.5); color: var(--gold-dark); background: rgba(193,154,107,.06); }
.jnl-pillar-badge--feat { border-color: #F2C4CE; color: #b07080; background: rgba(242,196,206,.08); }

/* Editor's picks */
.jnl-picks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.jnl-pick {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-soft);
}
.jnl-picks .jnl-pick:last-child { border-bottom: none; padding-bottom: 0; }

.jnl-pick__title {
  font-family: var(--font-serif);
  font-size: .98rem;
  font-weight: 500;
  color: var(--espresso);
  line-height: 1.35;
  margin-bottom: .35rem;
}

.jnl-pick__link {
  font-size: .66rem;
}

/* Newsletter in sidebar */
.jnl-newsletter {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: .5rem;
}

.jnl-newsletter__input {
  padding: .65rem .85rem;
  border: 1px solid var(--border);
  background: var(--cream-deep);
  font-family: var(--font-sans);
  font-size: .82rem;
  color: var(--espresso);
  outline: none;
  border-radius: 0;
  transition: border-color .18s ease;
}
.jnl-newsletter__input::placeholder { color: var(--muted-light); font-style: italic; }
.jnl-newsletter__input:focus { border-color: var(--gold); background: #fff; }

.jnl-newsletter__btn {
  padding: .65rem 1rem;
  background: var(--espresso);
  color: var(--cream);
  border: 1px solid var(--espresso);
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: none;
  border-radius: 0;
  transition: background .18s ease;
}
.jnl-newsletter__btn:hover { background: var(--espresso-mid); }

.jnl-newsletter__note {
  font-size: .68rem;
  color: var(--muted-light);
  line-height: 1.5;
}

/* Apply CTA block */
.jnl-sidebar-apply {
  padding: 1.6rem 1.5rem;
  background: linear-gradient(135deg, #1e1916 0%, #2d2520 100%);
  position: relative;
}
.jnl-sidebar-apply::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}

.jnl-sidebar-apply .kicker { color: var(--gold); margin-bottom: .5rem; }

.jnl-sidebar-apply__body {
  font-size: .84rem;
  color: rgba(255,253,249,.6);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.jnl-sidebar-apply__btn {
  width: 100%;
  justify-content: center;
  font-size: .68rem;
}
.jnl-sidebar-apply__btn:hover svg { transform: translateX(4px); }
.jnl-sidebar-apply__btn svg { transition: transform .22s var(--ease-smooth); }


/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1100px) {
  .jnl-layout {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    gap: 2.4rem;
  }
}

@media (max-width: 900px) {
  .jnl-layout {
    grid-template-columns: 1fr;
  }
  .jnl-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
  .jnl-sidebar-apply { grid-column: 1 / -1; }
  .jnl-card--featured {
    flex-direction: column;
  }
  .jnl-card--featured .jnl-card__img-link {
    flex: none;
    max-width: none;
  }
  .jnl-card--featured .jnl-card__img {
    aspect-ratio: 16 / 9;
    height: auto;
  }
  .jnl-card--featured .jnl-card__img img {
    min-height: unset;
  }
  .jnl-card--featured .jnl-card__body {
    padding: 1.6rem 1.8rem 1.8rem;
  }
  .jnl-card--featured .jnl-card__title {
    font-size: 1.4rem;
  }
}

@media (max-width: 720px) {
  .jnl-grid { grid-template-columns: 1fr; }
  .jnl-sidebar { grid-template-columns: 1fr; }
  .jnl-filter { gap: .4rem; }
  .jnl-filter__search { margin-left: 0; width: 100%; }
  .jnl-search { width: 100%; }
  .jnl-search:focus { width: 100%; }
}