/* ============================================================
   KHADIZA DREAMS — blog.css
   Used only by: blog.html
   Depends on: styles.css (tokens, buttons, footer, drawers)
   ============================================================ */


/* ============================================================
   1. BREADCRUMBS
   ============================================================ */
.crumbs{
  padding-block:24px;
  font-size:10.5px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
}
.crumbs a{ transition:color .3s; }
.crumbs a:hover{ color:var(--ink); }
.crumbs span{ margin-inline:9px; opacity:.45; }


/* ============================================================
   2. PAGE HEAD
   ============================================================ */
.journal-head{
  padding-block:clamp(36px, 4.6vw, 64px) clamp(28px, 3.4vw, 44px);
  text-align:center;
  border-bottom:1px solid var(--line);
}

.journal-head__eyebrow{
  font-size:10.5px;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:14px;
}

.journal-head__title{
  font-size:clamp(34px, 5vw, 64px);
  font-weight:300;
  line-height:1.04;
  margin:0 auto 18px;
  max-width:18ch;
}

.journal-head__title em{
  font-style:italic;
  color:var(--gold);
}

.journal-head__text{
  max-width:52ch;
  margin:0 auto;
  font-size:15px;
  font-weight:300;
  line-height:1.75;
  color:var(--ink-soft);
}


/* ============================================================
   3. FILTER TABS
   ============================================================ */
.journal-tabs{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(14px, 2vw, 30px);
  padding-block:clamp(22px, 2.8vw, 34px);
  overflow-x:auto;
  scrollbar-width:none;
}
.journal-tabs::-webkit-scrollbar{ display:none; }

.jtab{
  position:relative;
  padding:8px 0;
  font-size:10.5px;
  font-weight:400;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--muted);
  white-space:nowrap;
  transition:color .3s;
  cursor:pointer;
}

.jtab::after{
  content:'';
  position:absolute;
  left:0;
  bottom:0;
  width:0;
  height:1px;
  background:currentColor;
  transition:width .45s var(--ease-out);
}

.jtab:hover{ color:var(--ink); }
.jtab.is-active{ color:var(--ink); }
.jtab.is-active::after{ width:100%; }


/* ============================================================
   4. FEATURED POST
   ============================================================ */
.featured{
  display:grid;
  grid-template-columns:minmax(0, 1.15fr) minmax(0, 1fr);
  align-items:stretch;
  background:var(--soft);
  border-radius:var(--radius);
  overflow:hidden;
  margin-bottom:clamp(40px, 5vw, 72px);
}

.featured__media{
  position:relative;
  overflow:hidden;
  min-height:clamp(340px, 46vw, 560px);
}

.featured__media img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:grayscale(.4) contrast(1.03);
  transition:transform 1.3s var(--ease-out);
}
.featured:hover .featured__media img{
  transform:scale(1.04);
}

.featured__badge{
  position:absolute;
  top:20px;
  left:20px;
  z-index:2;
  padding:7px 13px;
  background:var(--ink);
  color:var(--paper);
  font-size:9px;
  letter-spacing:.18em;
  text-transform:uppercase;
  line-height:1;
}

.featured__body{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:16px;
  padding:clamp(28px, 4vw, 64px);
}

.featured__meta{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  font-size:10.5px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
}
.featured__meta-dot{
  width:3px;
  height:3px;
  border-radius:50%;
  background:currentColor;
  opacity:.5;
}

.featured__title{
  font-size:clamp(26px, 3.4vw, 42px);
  font-weight:300;
  line-height:1.12;
  max-width:18ch;
}
.featured__title a{
  transition:color .3s;
}
.featured__title a:hover{ color:var(--gold); }

.featured__text{
  max-width:48ch;
  font-size:14.5px;
  font-weight:300;
  line-height:1.85;
  color:var(--ink-soft);
}

.featured__read{
  display:inline-flex;
  align-items:center;
  gap:9px;
  align-self:flex-start;
  margin-top:8px;
  font-size:10.5px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--ink);
  padding-bottom:3px;
  border-bottom:1px solid var(--line-dark);
  transition:border-color .3s;
}
.featured__read:hover{ border-bottom-color:var(--ink); }
.featured__read::after{
  content:'→';
  font-size:14px;
  letter-spacing:0;
  transition:transform .35s var(--ease);
}
.featured__read:hover::after{
  transform:translateX(3px);
}


/* ============================================================
   5. POST GRID
   ============================================================ */
.journal-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:clamp(24px, 3.2vw, 48px) clamp(16px, 2.4vw, 32px);
  padding-bottom:clamp(48px, 6vw, 88px);
}


/* ---------- Post card ---------- */
.post{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.post__media{
  position:relative;
  overflow:hidden;
  aspect-ratio:4 / 3;
  background:var(--soft);
  border-radius:var(--radius);
}
.post__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:grayscale(.5) contrast(1.03);
  transition:transform 1.2s var(--ease-out), filter .6s var(--ease);
}
.post:hover .post__media img{
  transform:scale(1.05);
  filter:grayscale(.05) contrast(1.03);
}

.post__category{
  position:absolute;
  top:14px;
  left:14px;
  z-index:2;
  padding:6px 11px;
  background:rgba(255,253,251,.94);
  color:var(--ink);
  font-size:9px;
  letter-spacing:.16em;
  text-transform:uppercase;
  line-height:1;
  border-radius:2px;
  backdrop-filter:blur(4px);
}

.post__body{
  display:flex;
  flex-direction:column;
  gap:9px;
}

.post__meta{
  display:flex;
  align-items:center;
  gap:11px;
  font-size:10.5px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--muted);
}
.post__meta-dot{
  width:3px;
  height:3px;
  border-radius:50%;
  background:currentColor;
  opacity:.5;
}

.post__title{
  font-family:var(--font-display);
  font-size:clamp(19px, 1.8vw, 22px);
  font-weight:400;
  line-height:1.25;
  color:var(--ink);
}
.post__title a{
  transition:color .3s;
}
.post__title a:hover{ color:var(--gold); }

.post__excerpt{
  font-size:13px;
  font-weight:300;
  line-height:1.75;
  color:var(--muted);
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
}

.post__read{
  display:inline-flex;
  align-items:center;
  gap:8px;
  align-self:flex-start;
  margin-top:4px;
  font-size:10px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--ink);
  padding-bottom:2px;
  border-bottom:1px solid transparent;
  transition:border-color .3s;
}
.post__read:hover{ border-bottom-color:var(--ink); }
.post__read::after{
  content:'→';
  font-size:13px;
  letter-spacing:0;
  transition:transform .35s var(--ease);
}
.post__read:hover::after{
  transform:translateX(3px);
}


/* ============================================================
   6. LOAD MORE
   ============================================================ */
.load-more{
  display:flex;
  justify-content:center;
  padding-bottom:clamp(48px, 6vw, 88px);
}


/* ============================================================
   7. NEWSLETTER (already in styles.css, override is small)
   ============================================================ */
.blog-newsletter-note{
  max-width:52ch;
  margin:0 auto;
  font-size:11.5px;
  color:rgba(255,253,251,.42);
  margin-top:18px;
}


/* ============================================================
   8. RESPONSIVE
   ============================================================ */
@media (max-width:1024px){
  .featured{ grid-template-columns:1fr; }
  .featured__media{ min-height:56vw; }
  .featured__body{ padding:clamp(28px, 5vw, 48px) var(--gutter); }

  .journal-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

@media (max-width:640px){
  .journal-head__title{
    font-size:clamp(28px, 8vw, 42px);
  }
  .journal-grid{ grid-template-columns:1fr; gap:36px; }

  .featured__badge{
    top:14px;
    left:14px;
    font-size:8.5px;
    padding:6px 10px;
  }

  .post__media{ aspect-ratio:16 / 10; }
}