/* =========================================================
   Jurnal di beranda: pil "Baru di jurnal", sorotan + daftar bergambar,
   dan Suara Pesisir sinematik (+ pemutar video)
   ========================================================= */

/* ---------- 1. pil di hero ---------- */
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  min-height: 44px; margin-top: 4px; padding: 9px 18px 9px 16px; border-radius: 999px;
  border: 1px solid rgba(46, 34, 16, .14); background: rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: var(--fs-ui); color: var(--ink); text-decoration: none;
  transition: border-color .25s, background .25s, transform .25s;
  opacity: 0; transform: translateY(8px); animation: pillIn .8s .9s cubic-bezier(.2, .8, .2, 1) forwards;
}
.hero-pill[hidden] { display: none; }
.hero-pill:hover { border-color: rgba(46, 34, 16, .4); background: rgba(255, 255, 255, .7); }
.hero-pill i { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.hero-pill i::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--amber); animation: ping 1.8s ease-out infinite; }
.hero-pill span { font-weight: 600; white-space: nowrap; }
.hero-pill b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; color: rgba(46, 34, 16, .75); }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
@keyframes pillIn { to { opacity: 1; transform: none; } }

/* ---------- 2. jurnal: satu sorotan besar + daftar bergambar ----------
   kiri  = tulisan terbaru sebagai "sampul majalah" (foto penuh, judul besar di atas foto)
   kanan = empat tulisan berikutnya, masing-masing dengan foto kecil
   Isinya otomatis dari konten/jurnal/daftar.json (lihat js/main.js). */
.s-jlist { padding: 12vh var(--pad) 14vh; position: relative; }
.s-jlist__head { max-width: 1240px; margin: 0 auto clamp(28px, 5vh, 48px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.s-jlist__head h2 { margin-top: 12px; font-size: clamp(38px, 5vw, 72px); font-weight: 800; letter-spacing: -.05em; line-height: .95; }
.link-more { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-ui); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--amber); white-space: nowrap; transition: color .25s, border-color .25s; }
.link-more:hover { color: var(--amber-2); border-color: var(--amber-2); }

.jbento { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(22px, 3.2vw, 48px); align-items: stretch; }
.jbento.is-single { grid-template-columns: minmax(0, 1fr); }

/* --- sorotan (kartu foto besar; teks selalu terang karena berada di atas foto) --- */
.jfeat {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(440px, 68vh, 640px); border-radius: 22px; overflow: hidden;
  text-decoration: none; color: #ECE6D8; background: #3A2A12;
  box-shadow: 0 30px 70px -30px rgba(26, 19, 8, .55);
}
.jfeat__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.jfeat::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(26, 19, 8, .34) 0%, rgba(26, 19, 8, 0) 28%, rgba(26, 19, 8, .5) 60%, rgba(26, 19, 8, .93) 100%);
}
.jfeat:hover .jfeat__img, .jfeat:focus-visible .jfeat__img { transform: scale(1.05); }
.jfeat:focus-visible, .jitem a:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 4px; }
.jfeat__top { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.jfeat__flag {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 12px; border-radius: 999px; background: #ECE6D8; color: #2E2210;
  font-size: var(--fs-mikro); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.jfeat__flag i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #4E5B33; }
.jfeat__flag i::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid #4E5B33; animation: ping 1.8s ease-out infinite; }
.jfeat__go {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(236, 230, 216, .55); background: rgba(26, 19, 8, .28); font-size: 20px; line-height: 1;
  transition: background .3s, color .3s, border-color .3s, transform .5s cubic-bezier(.2, .8, .2, 1);
}
.jfeat:hover .jfeat__go { background: #ECE6D8; border-color: #ECE6D8; color: #2E2210; transform: rotate(45deg); }
.jfeat__body { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.6vw, 38px); }
.jfeat__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(236, 230, 216, .78); }
.jfeat__meta b { font-weight: 700; color: #C9D2A0; }
.jfeat__title { font-size: clamp(28px, 3.1vw, 46px); font-weight: 800; letter-spacing: -.04em; line-height: 1.03; text-wrap: balance; }
.jfeat__sum {
  max-width: 54ch; font-size: var(--fs-isi); line-height: 1.6; color: rgba(236, 230, 216, .84);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* --- daftar bergambar --- */
.jside { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: 1fr; border-top: 1px solid var(--line-d); }
.jitem { border-bottom: 1px solid var(--line-d); }
.jitem.reveal:nth-child(2) { transition-delay: .08s; }
.jitem.reveal:nth-child(3) { transition-delay: .16s; }
.jitem.reveal:nth-child(4) { transition-delay: .24s; }
.jitem a {
  height: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(14px, 1.7vw, 24px);
  padding: 16px 4px; text-decoration: none; color: var(--white);
}
.jitem__thumb { position: relative; width: clamp(96px, 9.6vw, 144px); aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--choco); }
.jitem__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.jitem a:hover .jitem__thumb img { transform: scale(1.08); }
/* tanda "ada video" di pojok foto */
.jitem__play { position: absolute; left: 8px; bottom: 8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(26, 19, 8, .78); }
.jitem__play::before { content: ''; margin-left: 2px; border-left: 8px solid #ECE6D8; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.jitem__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.jitem__meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: var(--fs-label); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-d); }
.jitem__meta b { font-weight: 700; color: var(--amber-2); }
.jitem__title { font-size: clamp(19px, 1.7vw, 25px); font-weight: 700; letter-spacing: -.03em; line-height: 1.14; text-wrap: balance; transition: color .3s; }
.jitem a:hover .jitem__title { color: var(--amber-2); }
.jitem__arrow {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-d); font-size: 17px; line-height: 1;
  transition: background .3s, color .3s, border-color .3s, transform .4s cubic-bezier(.2, .8, .2, 1);
}
.jitem a:hover .jitem__arrow { background: var(--amber); border-color: var(--amber); color: var(--on-amber); transform: translateX(4px); }

/* ---------- 3. Dari pendiri (dulu "Suara Pesisir"), sinematik ---------- */
.s-voicefull .s-cinema__frame { height: 92vh; justify-content: flex-start; align-items: flex-end; }
/* gradasi gelap yang halus di belakang tulisan (kiri & bawah), agar teks tidak bentrok dengan foto
   apa pun; sisi kanan foto tetap terang supaya wajah pemilik terlihat */
.s-voicefull .s-cinema__frame::after {
  background:
    linear-gradient(90deg, rgba(26, 19, 8, .92) 0%, rgba(26, 19, 8, .72) 30%, rgba(26, 19, 8, .28) 58%, rgba(26, 19, 8, 0) 82%),
    linear-gradient(0deg, rgba(26, 19, 8, .85) 0%, rgba(26, 19, 8, .35) 38%, rgba(26, 19, 8, 0) 62%);
}
/* titik fokus foto pemilik: wajah agak ke kanan (menjauh dari kutipan) dan topi tidak terpotong.
   Ganti foto? Sesuaikan dua angka ini (persen kiri-kanan, persen atas-bawah). */
.s-voicefull .s-cinema__img { object-position: 74% 40%; }
/* nama pemilik tebal & jelas, jabatan kecil di bawahnya */
.voice__nama { display: block; font-family: var(--font-judul); font-weight: 700; font-size: clamp(19px, 1.7vw, 24px); letter-spacing: -.01em; color: #ECE6D8; }
.voice__peran { display: block; margin-top: 5px; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(236, 230, 216, .6); }
.voice__content { position: relative; z-index: 1; max-width: 760px; padding: clamp(28px, 5vw, 72px); display: flex; flex-direction: column; gap: 18px; }
.voice__content blockquote { margin: 0; font-size: clamp(30px, 4.4vw, 64px); font-weight: 700; letter-spacing: -.04em; line-height: 1.04; }
.voice__content cite { font-style: normal; font-size: var(--fs-isi); color: var(--muted-d); }
.voice__content .btn { align-self: flex-start; margin-top: 10px; gap: 12px; }
.voice__content .btn::before { content: ''; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* pemutar video (modal) */

/* laptop kecil & tablet mendatar: kolom daftar sempit → panah disembunyikan agar judul lega */
@media (max-width: 1100px) {
  .jitem a { grid-template-columns: auto minmax(0, 1fr); }
  .jitem__arrow { display: none; }
}
/* ---------- tablet & HP ---------- */
@media (max-width: 860px) {
  .s-jlist { padding: 10vh var(--pad) 11vh; }
  .jbento { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .jfeat { min-height: min(480px, 74vh); border-radius: 18px; }
  .jfeat__top { top: 14px; left: 14px; right: 14px; }
  .jfeat__go { width: 46px; height: 46px; }
  .jfeat__title { font-size: clamp(27px, 7.6vw, 36px); }
  .jside { grid-auto-rows: auto; border-top: 0; }
  .jitem a { grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 16px 0; }
  .jitem__thumb { width: 104px; }
  .jitem__arrow { display: none; }
  .jitem__title { font-size: 19px; }
  .s-voicefull .s-cinema__frame { height: auto; min-height: 80vh; }
  .s-voicefull .s-cinema__img { object-position: 50% 0%; }   /* foto versi HP (tegak): mulai dari atas */
  /* HP: tulisan memenuhi bagian bawah → gradasi dari bawah ke atas, bagian atas foto (wajah) tetap terang */
  .s-voicefull .s-cinema__frame::after {
    background: linear-gradient(0deg, rgba(26, 19, 8, .95) 0%, rgba(26, 19, 8, .82) 34%, rgba(26, 19, 8, .35) 60%, rgba(26, 19, 8, 0) 80%);
  }
  .hero-pill { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .jfeat__img, .jitem__thumb img, .jfeat__go, .jitem__arrow { transition: none; }
  .jfeat__flag i::after, .hero-pill i::after { animation: none; }
}

.voice__content .btn.no-play::before { display: none; }

/* hero selalu berlatar krem: titik penanda pakai hijau zaitun */
.hero-pill i { background: var(--olive); }
.hero-pill i::after { border-color: var(--olive); }
