/* ──────────────────────────────────────────────
   Sejatwa Journal — editorial blog archive (BLUEPRINT §10.3)
   ────────────────────────────────────────────── */

/* Shared utilities */
.sej-journal { background: var(--sej-parchment); color: var(--sej-ink); }
.sej-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sej-eyebrow {
  font-family: var(--sej-font-body); text-transform: uppercase; letter-spacing: .22em;
  font-size: .72rem; font-weight: 700; color: var(--sej-gold-600); margin: 0 0 .6rem;
}

/* Hero */
.sej-journal__hero {
  text-align: center; padding: clamp(44px,6vw,84px) 0 clamp(28px,4vw,44px);
  background: radial-gradient(120% 90% at 50% 0%, rgba(197,135,26,.10), transparent 60%);
}
.sej-journal__hero h1 {
  font-family: var(--sej-font-display); font-weight: 600; font-size: clamp(2.2rem,4.6vw,3.4rem);
  line-height: 1.05; color: var(--sej-green); margin: 0 0 .8rem;
}
.sej-journal__lede { max-width: 40em; margin: 0 auto; color: #5b5343; line-height: 1.6; font-size: 1.05rem; }

.sej-journal__inner { padding-bottom: clamp(56px,8vw,96px); }

/* Category pills */
.sej-jpills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 clamp(28px,4vw,44px); }
.sej-jpill {
  padding: .5rem 1.2rem; border-radius: 999px; font-family: var(--sej-font-body); font-weight: 700; font-size: .85rem;
  text-decoration: none; color: var(--sej-green); background: var(--sej-cream); border: 1.5px solid var(--sej-line);
  transition: all .25s var(--sej-ease);
}
.sej-jpill:hover { border-color: var(--sej-gold); color: var(--sej-gold-600); transform: translateY(-1px); }
.sej-jpill.is-active { background: var(--sej-green); color: var(--sej-parchment); border-color: var(--sej-green); }

/* Shared meta + badges */
.sej-jmeta { font-size: .78rem; font-weight: 600; color: var(--sej-sage); letter-spacing: .02em; margin-bottom: 10px; }
.sej-jmeta__cat { color: var(--sej-gold-600); text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .72rem; }
.sej-jmeta__cat:hover { color: var(--sej-gold); }
.sej-jmeta__dot { margin: 0 7px; opacity: .6; }
.sej-jbadge { font-size: .74rem; font-weight: 700; color: var(--sej-green-700); }
.sej-jcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.sej-jcard__more { color: var(--sej-gold-600); font-weight: 700; text-decoration: none; font-size: .9rem; white-space: nowrap; }
.sej-jcard__more:hover { color: var(--sej-gold); }

/* ░░ Featured lead article ░░ */
.sej-journal__feature-wrap { margin-bottom: clamp(28px,4vw,44px); }
.sej-jfeature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; overflow: hidden;
  background: var(--sej-cream); border: 1px solid var(--sej-line); border-radius: 22px; box-shadow: var(--sej-shadow);
}
.sej-jfeature__media { display: block; overflow: hidden; background: linear-gradient(160deg,#fbf8f1,#eadfca); }
.sej-jfeature__media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16/11; transition: transform .5s var(--sej-ease); }
.sej-jfeature:hover .sej-jfeature__media img { transform: scale(1.03); }
.sej-jfeature__body { padding: clamp(28px,3.5vw,48px); display: flex; flex-direction: column; }
.sej-jfeature__title { font-family: var(--sej-font-display); font-size: clamp(1.6rem,2.8vw,2.3rem); line-height: 1.12; margin: 0 0 .7rem; }
.sej-jfeature__title a { color: var(--sej-green); text-decoration: none; }
.sej-jfeature__title a:hover { color: var(--sej-gold-600); }
.sej-jfeature__excerpt { color: #5b5343; line-height: 1.65; margin: 0 0 1rem; font-size: 1.02rem; }

/* ░░ Card grid ░░ */
.sej-journal__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.sej-jcard {
  display: flex; flex-direction: column; background: var(--sej-cream); border: 1px solid var(--sej-line);
  border-radius: 18px; overflow: hidden; transition: transform .35s var(--sej-ease), box-shadow .35s var(--sej-ease);
}
.sej-jcard:hover { transform: translateY(-5px); box-shadow: var(--sej-shadow-lg); }
.sej-jcard__media { display: block; overflow: hidden; aspect-ratio: 16/10; background: linear-gradient(160deg,#fbf8f1,#eadfca); }
.sej-jcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--sej-ease); }
.sej-jcard:hover .sej-jcard__media img { transform: scale(1.04); }
.sej-jcard__body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.sej-jcard__title { font-family: var(--sej-font-display); font-size: 1.3rem; line-height: 1.18; margin: 0 0 .5rem; }
.sej-jcard__title a { color: var(--sej-green); text-decoration: none; }
.sej-jcard__title a:hover { color: var(--sej-gold-600); }
.sej-jcard__excerpt { color: #5b5343; line-height: 1.55; font-size: .92rem; margin: 0; }

/* ░░ Pagination ░░ */
.sej-journal__pagination { margin-top: clamp(36px,5vw,56px); text-align: center; }
.sej-journal__pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; margin: 0 3px;
  border-radius: 10px; border: 1.5px solid var(--sej-line); background: var(--sej-cream);
  color: var(--sej-green); text-decoration: none; font-weight: 700; font-size: .9rem;
}
.sej-journal__pagination .page-numbers.current { background: var(--sej-green); color: var(--sej-parchment); border-color: var(--sej-green); }
.sej-journal__pagination .page-numbers:hover { border-color: var(--sej-gold); }
.sej-journal__empty { text-align: center; color: var(--sej-sage); padding: 40px 0; }

/* ──────────────────────────────────────────────
   Single article
   ────────────────────────────────────────────── */
.sej-post { background: var(--sej-parchment); color: var(--sej-ink); }
.sej-post__hero {
  text-align: center; padding: clamp(40px,6vw,76px) 0 clamp(20px,3vw,32px);
  background: radial-gradient(120% 90% at 50% 0%, rgba(197,135,26,.10), transparent 60%);
}
.sej-post__head { max-width: 760px; }
.sej-post__back { display: inline-block; color: var(--sej-sage); font-weight: 700; font-size: .85rem; text-decoration: none; margin-bottom: 14px; }
.sej-post__back:hover { color: var(--sej-green); }
.sej-post__cat {
  display: inline-block; margin: 0 0 14px; padding: .35rem .9rem; border-radius: 999px;
  background: rgba(197,135,26,.12); color: var(--sej-gold-600); text-transform: uppercase;
  letter-spacing: .14em; font-size: .7rem; font-weight: 800; text-decoration: none;
}
.sej-post__cat:hover { background: var(--sej-gold); color: #fff; }
.sej-post__title {
  font-family: var(--sej-font-display); font-weight: 600; font-size: clamp(2rem,4.4vw,3.2rem);
  line-height: 1.08; color: var(--sej-green); margin: 6px 0 16px;
}
.sej-post__meta { font-size: .88rem; color: var(--sej-sage); font-weight: 600; }

.sej-post__cover { max-width: 920px; margin: clamp(8px,2vw,20px) auto clamp(28px,4vw,44px); }
.sej-post__cover img { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--sej-shadow-lg); display: block; }

/* Prose */
.sej-prose { max-width: 720px; margin: 0 auto; }
.sej-prose > * { margin-top: 0; }
.sej-prose h2 { font-family: var(--sej-font-display); color: var(--sej-green); font-size: clamp(1.5rem,2.6vw,2rem); line-height: 1.2; margin: 2.2rem 0 .9rem; }
.sej-prose h3 { font-family: var(--sej-font-display); color: var(--sej-green); font-size: 1.3rem; margin: 1.8rem 0 .7rem; }
.sej-prose p { font-size: 1.1rem; line-height: 1.78; color: #423c2e; margin: 0 0 1.35rem; }
.sej-prose ul, .sej-prose ol { margin: 0 0 1.5rem; padding-left: 1.3em; }
.sej-prose li { font-size: 1.08rem; line-height: 1.7; color: #423c2e; margin-bottom: .55rem; }
.sej-prose li::marker { color: var(--sej-gold-600); }
.sej-prose a { color: var(--sej-gold-600); text-decoration: underline; text-underline-offset: 2px; }
.sej-prose a:hover { color: var(--sej-gold); }
.sej-prose strong { color: var(--sej-ink); }
.sej-prose blockquote {
  border-left: 4px solid var(--sej-gold); padding: 4px 0 4px 20px; margin: 1.6rem 0;
  font-family: var(--sej-font-display); font-style: italic; color: var(--sej-green); font-size: 1.3rem; line-height: 1.4;
}

/* Author box */
.sej-author {
  max-width: 720px; margin: clamp(36px,5vw,52px) auto 0; display: flex; gap: 20px; align-items: center;
  background: var(--sej-cream); border: 1px solid var(--sej-line); border-radius: 18px; padding: 24px 26px;
}
.sej-author__photo { flex: none; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; border: 2px solid var(--sej-gold); }
.sej-author__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; display: block; }
.sej-author__role { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sej-green-700); }
.sej-author__body strong { font-family: var(--sej-font-display); color: var(--sej-green); font-size: 1.2rem; display: block; margin: 2px 0 6px; }
.sej-author__body p { color: #5b5343; line-height: 1.55; font-size: .92rem; margin: 0; }
.sej-author__body a { color: var(--sej-gold-600); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Related */
.sej-related { background: var(--sej-cream); border-top: 1px solid var(--sej-line); margin-top: clamp(48px,7vw,80px); padding: clamp(48px,7vw,80px) 0; }
.sej-related .sej-shead { text-align: center; margin-bottom: clamp(28px,4vw,40px); }
.sej-related .sej-shead h2 { font-family: var(--sej-font-display); font-size: clamp(1.7rem,3vw,2.4rem); color: var(--sej-green); margin: 0; }
.sej-related .sej-jcard { background: var(--sej-parchment); }

/* ░░ Responsive ░░ */
@media (max-width: 900px) {
  .sej-journal__grid { grid-template-columns: repeat(2,1fr); }
  .sej-jfeature { grid-template-columns: 1fr; }
  .sej-jfeature__media img { aspect-ratio: 16/9; }
}
@media (max-width: 560px) {
  .sej-journal__grid { grid-template-columns: 1fr; }
  .sej-author { flex-direction: column; text-align: center; }
}
