:root{
  --sage:#6B9E7E;
  --sage-dark:#4F8B6A;
  --sage-light:#9EC4B0;
  --coral:#D48A8A;
  --coral-dark:#C47070;
  --coral-light:#EAB5A0;
  --gold:#B87A2F;
  --gold-dark:#A06820;
  --gold-light:#D4A853;
  --bg:#FDFAF6;
  --ink:#2A2726;
  --ink-soft:#4E4A47;
  --muted:#7A7370;
  --muted-2:#9A9290;
  --muted-3:#B0ABA8;
  --line:rgba(107,158,126,.15);
}

*{box-sizing:border-box;margin:0;padding:0}
body{
  background:var(--bg);
  font-family:'Be Vietnam Pro',system-ui,-apple-system,sans-serif;
  color:var(--ink);
  line-height:1.6;
  padding-bottom:env(safe-area-inset-bottom);
  -webkit-font-smoothing:antialiased;
}

/* ========== NAV ========== */
.nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:.85rem 2rem;
  border-bottom:.5px solid var(--line);
  background:var(--bg);
  position:sticky;top:0;z-index:10;
  backdrop-filter:saturate(180%) blur(6px);
}
.logo{
  font-family:'Playfair Display',serif;
  font-size:18px;font-weight:600;letter-spacing:.2px;
  text-decoration:none;
}
.logo .lam{color:var(--sage)}
.logo .dot{color:var(--gold);margin:0 1px}
.logo .hy{color:var(--coral)}
.nav-links{display:flex;gap:1.25rem;font-size:12px;color:var(--muted-2)}
.nav-links a{
  text-decoration:none;color:var(--muted-2);
  transition:color .2s;
}
.nav-links a:hover{color:var(--sage)}

/* ========== HERO ========== */
.hero{
  padding:3rem 2rem 2.5rem;
  text-align:center;
  background:linear-gradient(160deg,#EAF3EE 0%,#FBF2EF 50%,#FEF7F0 100%);
}
.hero-badge{
  display:inline-flex;align-items:center;gap:6px;
  background:white;
  border:.5px solid rgba(180,140,120,.25);
  border-radius:50px;
  padding:5px 14px;
  font-size:11px;color:var(--gold);
  font-weight:600;letter-spacing:1px;text-transform:uppercase;
  margin-bottom:1.25rem;
}
.hero h1{
  font-family:'Playfair Display',serif;
  font-size:34px;line-height:1.25;
  color:var(--ink);
  margin-bottom:.6rem;font-weight:600;
}
.hero h1 em{color:var(--sage);font-style:italic;font-weight:600}
.hero-sub{
  font-size:13.5px;color:var(--muted);line-height:1.75;
  max-width:420px;margin:0 auto 1.5rem;font-weight:300;
}
.hero-kids{
  display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;
  margin-bottom:1.75rem;
}
.kid-chip{
  background:white;border:.5px solid;border-radius:12px;
  padding:.6rem 1rem;text-align:center;min-width:130px;
  transition:transform .2s;
}
.kid-chip:hover{transform:translateY(-2px)}
.kid-chip.lam{border-color:rgba(107,158,126,.3)}
.kid-chip.hy{border-color:rgba(212,138,138,.3)}
.kid-name{
  font-size:16px;font-weight:600;
  font-family:'Playfair Display',serif;
}
.kid-chip.lam .kid-name{color:var(--sage-dark)}
.kid-chip.hy .kid-name{color:var(--coral-dark)}
.kid-desc{
  font-size:11px;color:var(--muted-2);line-height:1.5;margin-top:3px;
}
.hero-quote{
  font-family:'Playfair Display',serif;font-style:italic;
  font-size:14px;color:var(--muted-2);
  max-width:360px;margin:0 auto;line-height:1.65;
}

/* ========== LAYOUT ========== */
.wrap{max-width:660px;margin:0 auto;padding:0 1.25rem}
.sec-label{
  display:flex;align-items:center;gap:10px;
  margin:2.5rem 0 1.25rem;
  font-size:10.5px;letter-spacing:2px;text-transform:uppercase;
  color:var(--muted-3);font-weight:600;
}
.sec-label::after{
  content:'';flex:1;height:.5px;background:rgba(107,158,126,.2);
}

/* ========== CARD ========== */
.card{
  background:white;
  border-radius:16px;
  border:.5px solid var(--line);
  overflow:hidden;margin-bottom:1.5rem;
  box-shadow:0 2px 12px rgba(107,158,126,.05);
  transition:box-shadow .3s,transform .3s;
}
.card:hover{box-shadow:0 6px 24px rgba(107,158,126,.12)}
.card-bar{height:5px}
.card-bar.green{background:linear-gradient(90deg,var(--sage),var(--sage-light))}
.card-bar.coral{background:linear-gradient(90deg,var(--coral),var(--coral-light))}
.card-bar.gold{background:linear-gradient(90deg,var(--gold),var(--gold-light))}

/* ========== IMAGES (cover + gallery) ========== */
.post-cover{
  display:block;width:100%;height:auto;max-width:100%;
  background:#F4EFE9;
}
/* Cover khi quá cao: cap max-height + crop, focus center */
.post-cover.tall{
  max-height:480px;object-fit:cover;object-position:center;
}
.post-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:10px;margin:1rem 0;
}
.post-gallery figure{
  margin:0;overflow:hidden;border-radius:10px;background:#F4EFE9;
  /* Giữ tỉ lệ ảnh gốc, không ép vuông */
}
.post-gallery figure.portrait{max-width:320px;margin:0 auto}
.post-gallery figure img{
  display:block;width:100%;height:auto;max-width:100%;
  transition:transform .3s ease;
}
.post-gallery figure:hover img{transform:scale(1.02)}
.post-gallery figcaption{
  font-size:11px;color:var(--muted);padding:6px 4px 0;
  line-height:1.4;text-align:center;
}

.card-body{padding:1.4rem 1.6rem}
.meta{
  display:flex;align-items:center;gap:8px;
  margin-bottom:.65rem;flex-wrap:wrap;
}
.cat{
  border-radius:50px;padding:2px 10px;
  font-size:10.5px;font-weight:600;
}
.cat.green{background:#EAF3EE;color:var(--sage-dark)}
.cat.coral{background:#FAEEEE;color:#C06060}
.cat.gold{background:#FEF5E8;color:var(--gold-dark)}
.date{font-size:12px;color:var(--muted-3)}

.story-title{
  font-family:'Playfair Display',serif;
  font-size:21px;line-height:1.3;
  color:var(--ink);margin-bottom:.75rem;font-weight:600;
}

.story-text{
  font-size:13.5px;line-height:1.85;
  color:var(--ink-soft);font-weight:400;
}
.story-text p{margin-bottom:.85rem}
.story-text em{font-style:italic;color:var(--ink)}

.highlight{
  background:#F6FBF8;
  border-left:3px solid var(--sage);
  border-radius:0 8px 8px 0;
  padding:.7rem 1rem;margin:1rem 0;
  font-size:13px;color:var(--sage-dark);
  font-style:italic;line-height:1.6;
}
.highlight.coral{background:#FBF4F4;border-left-color:var(--coral);color:#A05050}
.highlight.gold{background:#FEF9F2;border-left-color:var(--gold);color:#8A5818}

.product-wrap{
  background:var(--bg);
  border:.5px solid rgba(180,150,120,.2);
  border-radius:12px;
  padding:1rem 1.1rem;margin:1.1rem 0;
  display:flex;gap:11px;align-items:flex-start;
}
.prod-icon{
  width:38px;height:38px;border-radius:10px;
  flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  font-size:18px;
}
.prod-icon.green{background:#EAF3EE;color:var(--sage-dark)}
.prod-icon.coral{background:#FAEEEE;color:#C06060}
.prod-icon.gold{background:#FEF5E8;color:var(--gold-dark)}
.prod-body{flex:1;min-width:0}
.prod-eyebrow{
  font-size:9.5px;letter-spacing:1.5px;text-transform:uppercase;
  font-weight:700;margin-bottom:3px;
}
.prod-eyebrow.green{color:var(--sage-dark)}
.prod-eyebrow.coral{color:#C06060}
.prod-eyebrow.gold{color:var(--gold-dark)}
.prod-name{font-size:13.5px;font-weight:600;color:var(--ink);margin-bottom:4px}
.prod-note{
  font-size:12px;color:var(--muted);line-height:1.55;margin-bottom:8px;
}
.prod-btn{
  display:inline-flex;align-items:center;gap:5px;
  padding:5px 13px;border-radius:50px;
  font-size:11.5px;font-weight:500;
  text-decoration:none;color:white;
  transition:opacity .2s,transform .2s;
  cursor:pointer;border:none;font-family:inherit;
}
.prod-btn:hover{opacity:.85;transform:translateY(-1px)}
.prod-btn:active{transform:translateY(0)}
.prod-btn.green{background:var(--sage)}
.prod-btn.coral{background:var(--coral-dark)}
.prod-btn.gold{background:var(--gold)}

.card-foot{
  border-top:.5px solid rgba(107,158,126,.12);
  padding:.75rem 1.6rem;
  background:var(--bg);
  display:flex;justify-content:space-between;align-items:center;
  flex-wrap:wrap;gap:.5rem;
}
.author{display:flex;align-items:center;gap:7px}
.avatar{
  width:26px;height:26px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:10px;font-weight:700;color:white;
  background:linear-gradient(135deg,var(--sage),var(--coral));
  flex-shrink:0;
}
.author-text{font-size:11.5px;color:var(--muted-2)}
.author-text strong{color:var(--ink);font-weight:600}
.readtime{
  font-size:11px;color:var(--muted-3);
  display:flex;align-items:center;gap:3px;
}

/* ========== FOOTER ========== */
.footer-note{
  text-align:center;
  padding:2rem 1.5rem 3rem;
  border-top:.5px solid var(--line);
  margin-top:2rem;
}
.footer-note p{font-size:12px;color:var(--muted-3);line-height:1.7}
.footer-note strong{color:var(--sage)}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
  .hero{padding:2rem 1.25rem 1.75rem}
  .hero h1{font-size:26px}
  .hero-sub{font-size:13px}
  .kid-chip{min-width:140px;flex:1}
  .card-body{padding:1.2rem 1.25rem}
  .card-foot{padding:.75rem 1.25rem}
  .story-title{font-size:19px}
  .product-wrap{flex-direction:column;align-items:flex-start;gap:.75rem}
  .prod-icon{margin-bottom:.25rem}
  .nav{padding:.75rem 1.25rem}
  .nav-links{gap:1rem}
}
