/* =========================================================
   Blog page
   ========================================================= */
.blog-layout{
  padding:20px var(--gutter) 140px;
  max-width:1440px; margin:0 auto;
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:56px;
  align-items:start;
}
.blog-empty{ color:var(--ink-soft); font-size:14px; padding:20px 0; }

/* ---------- Featured post ---------- */
.blog-featured{
  border-radius:var(--radius-lg);
  overflow:hidden;
  background:var(--card);
  box-shadow:0 24px 60px -30px rgba(47,41,69,.22);
}
.blog-featured-media{ aspect-ratio:16/9; width:100%; }
.blog-featured-body{ padding:36px 40px 40px; }
.blog-post-date{ font-size:11.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:12px; }
.blog-featured-title{ font-family:var(--serif); font-size:clamp(26px,3vw,36px); line-height:1.2; margin-bottom:16px; }
.blog-featured-excerpt{ font-size:15px; line-height:1.75; color:var(--ink-soft); max-width:600px; margin-bottom:24px; }
.blog-read-btn{ background:none; border:1px solid rgba(47,41,69,.14); }

/* ---------- Previous posts ---------- */
.blog-previous-head{
  display:flex; align-items:center; justify-content:space-between;
  margin-top:52px; margin-bottom:20px;
}
.blog-prev-nav{ display:flex; gap:8px; }
.blog-prev-nav .carousel-nav{ width:34px; height:34px; }
.blog-prev-nav .carousel-nav:disabled{ cursor:default; }
.blog-previous-list{ display:flex; flex-direction:column; }
.blog-prev-item{
  padding:20px 0;
  border-bottom:1px solid rgba(47,41,69,.08);
  cursor:pointer;
  transition:opacity .3s var(--ease-soft);
}
.blog-previous-list .blog-prev-item:last-child{ border-bottom:none; }
.blog-prev-item:hover{ opacity:.7; }
.blog-prev-title{ font-family:var(--serif); font-size:19px; margin:4px 0 6px; }
.blog-prev-excerpt{ font-size:13px; line-height:1.6; color:var(--ink-soft); max-width:560px; }

/* ---------- Favorites sidebar (medium prominence: dimmer than
   the featured post, brighter than the plain previous-posts list) ---------- */
.blog-favorites-col{ position:sticky; top:110px; }
.blog-favorites-list{ display:flex; flex-direction:column; gap:4px; margin-top:16px; }
.blog-fav-item{
  display:flex; align-items:center; gap:12px;
  padding:12px;
  border-radius:var(--radius-sm);
  background:var(--surface);
  opacity:.8;
  cursor:pointer;
  transition:opacity .3s var(--ease-soft), background .3s var(--ease-soft);
}
.blog-fav-item:hover{ opacity:1; background:#fff; }
.blog-fav-media{ width:44px; height:44px; border-radius:8px; flex-shrink:0; }
.blog-fav-title{ font-size:13px; font-weight:600; line-height:1.35; margin-bottom:4px; }
.blog-fav-item .blog-post-date{ margin-bottom:0; font-size:10px; }

@media (max-width:980px){
  .blog-layout{ grid-template-columns:1fr; }
  .blog-favorites-col{ position:static; }
}

/* ---------- Read More popup ---------- */
.blog-read-dialog{ max-width:720px; overflow:hidden; }
.blog-read-media{
  /* NOTE: this sits inside .dialog-scroll-inner, which has its own
     asymmetric margins (60/5/24/44) AND overflow-x:hidden/overflow-y:auto
     — a negative-margin "bleed to the dialog's edge" trick simply gets
     clipped by that scroll container's own box, which is what caused
     the uneven/overflowing look. Keeping this as a normal, fully
     contained block with rounded corners on all sides is what actually
     renders consistently here. */
  width:100%; margin:0 0 28px 0;
  aspect-ratio:16/9;
  background-size:cover; background-position:center;
  border-radius:var(--radius-lg);
}
.blog-read-title{ margin:8px 0 24px; }
.blog-mood-badge{ font-size:16px; margin-left:6px; vertical-align:middle; }
.blog-read-content p{ font-size:15px; line-height:1.85; color:var(--ink-soft); margin-bottom:18px; }

/* ---------- Homepage "Recent Posts" teaser ---------- */
.blog-teaser{
  padding:0 var(--gutter) 110px;
  max-width:1440px; margin:0 auto;
}
.blog-teaser-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  margin-bottom:28px; gap:24px; flex-wrap:wrap;
}
.blog-teaser-grid{ display:block; }
.blog-teaser-card{
  display:flex; align-items:center; gap:16px;
  padding:12px;
  border-radius:var(--radius-md);
  cursor:pointer;
  transition:background .35s var(--ease-soft);
}
.blog-teaser-card:hover{ background:var(--surface); }
.blog-teaser-media{ width:56px; height:56px; flex-shrink:0; border-radius:10px; }
.blog-teaser-body{ padding:0; min-width:0; }
.blog-teaser-body h3{ font-size:14px; font-weight:600; margin:2px 0 3px; font-family:var(--sans); line-height:1.3; }
.blog-teaser-body p{ display:none; }
.blog-teaser-body .blog-post-date{ margin-bottom:0; font-size:10px; }
.blog-teaser-read{ display:none; }

.blog-teaser-single{
  align-items:stretch;
  gap:0;
  padding:0;
  background:transparent;
  border:1px solid rgba(47,41,69,.12);
  border-radius:var(--radius-lg);
  overflow:hidden;
  min-height:300px;
}
.blog-teaser-single:hover{ background:transparent; }
.blog-teaser-single .blog-teaser-media{
  position:relative;
  width:50%; height:auto; min-height:0;
  border-radius:0;
  flex-shrink:0;
}
.blog-teaser-single .blog-teaser-body{
  position:relative;
  display:flex; flex-direction:column; justify-content:center;
  padding:40px 48px;
  flex:1;
  min-width:0;
}
.blog-teaser-single .blog-teaser-body h3{
  font-family:var(--serif); font-size:24px; font-weight:500;
  margin:8px 0 10px;
}
.blog-teaser-single .blog-teaser-body p{
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:14px; line-height:1.7; color:var(--ink-soft);
  max-width:560px; margin-bottom:0;
}
.blog-teaser-single .blog-teaser-read{
  display:inline-flex; align-items:center; gap:6px;
  color:var(--accent);
  font-size:12.5px; font-weight:600;
  margin-top:28px;
}

@media (max-width:700px){
  .blog-teaser-single{ flex-direction:column; }
  .blog-teaser-single .blog-teaser-media{ width:100%; aspect-ratio:16/9; min-height:0; }
}
