/* journal.css */

body.page--journal{
  background: #f5f2e8;
}

/* ===== HERO ===== */
.jl-hero{
  position: relative;
  width: 100%;
  margin: 0;
}

.jl-hero__media{
  display: block;
  width: 100%;
  height: auto;
}

.jl-hero__media img{
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.jl-hero__overlay{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.jl-hero__inner{
  text-align: center;
  padding: 0 18px;
  max-width: 920px;
}

.jl-hero__title{
  font-size: 24px;
  letter-spacing: .18em;
  color: rgba(255,255,255,.92);
}

.jl-hero__subtitle{
  margin-top: 20px;
  font-size: 16px;
  letter-spacing: .06em;
  color: rgba(255,255,255,.75);
}

/* ===== WRAP / GRID ===== */
.jl-wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 22px 80px;
}

.jl-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 36px;
}

/* ===== CARD ===== */
.jl-card{
  background: transparent;
}

.jl-card__link{
  display: block;
  text-decoration: none;
  color: inherit;
}

.jl-card__media{
  background: rgba(0,0,0,.02);
  position:relative;
  overflow:hidden;
  aspect-ratio: 4 / 3;
}

.jl-card__media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transform: scale(1);
  transition: transform .6s ease;
}

.jl-card__meta{
  padding-top: 24px;
}

.jl-card__title{
  margin: 0;
  font-size: 16px;
  letter-spacing: .02em;
  color: #2b2b2a;
  opacity: .92;
  line-height: 180%;
}

.jl-card__desc{
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(43,43,42,.70);
}

.jl-card__more{
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: .02em;
  color: #bfa77a;
}

/* hover (only on hover devices) */
@media (hover:hover) and (pointer:fine){
  .jl-card__link:hover .jl-card__more{
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

/* ===== BOTTOM ===== */
.jl-bottom{
  margin-top: 64px;
  text-align: center;
}

.jl-count{
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(43,43,42,.70);
}

.jl-moreBtn{
  margin-top: 16px;
  border: 1px solid rgba(0,0,0,.18);
  background: transparent;
  color: #2b2b2a;
  padding: 14px 22px;
  font-size: 12px;
  letter-spacing: .06em;
  cursor: pointer;
  min-width: 260px;
}

/* 列表页：header 不加背景、不加下边线（覆盖我之前的 sticky 背景方案） */
body.page--list .site-header{
  background: transparent !important;
  backdrop-filter: none !important;
  border-bottom: 0 !important;
}

/* 如果你 header.css 里有 sticky/absolute 之类导致颜色块出现，也一起清掉 */
body.page--list .site-header .nav-wrap{
  background: transparent !important;
  border-bottom: 0 !important;
}

@media (hover:hover) and (pointer:fine){
  .jl-moreBtn:hover{
    border-color: rgba(0,0,0,.28);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px){
  .jl-hero__media img{
    height: 260px;
  }
  .jl-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 22px;
  }
}

@media (max-width: 640px){
  .jl-wrap{
    padding: 28px 18px 64px;
  }
  .jl-hero__media img{
    height: 220px;
  }
  .jl-grid{
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .jl-moreBtn{
    width: 100%;
    min-width: 0;
  }
}
