/* ============================================
   RENZO BLOG — shared styles
   Palette: Ghost #F7F7FB / Midnight #1E1E2E
            Teal #00C9A7 / Amber #F59E0B / UV #7C3AED
            Steel #374151
   Type: Trebuchet MS (display) / Calibri Light (body)
   ============================================ */

:root{
  --ghost:#F7F7FB;
  --midnight:#1E1E2E;
  --teal:#00C9A7;
  --white:#FFFFFF;
  --steel:#374151;
  --amber:#F59E0B;
  --uv:#7C3AED;
  --red:#EF4444;
  --nav-h:68px;
  --pad:clamp(24px,6vw,80px);
  --content-w:700px;
}

*{margin:0;padding:0;box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  font-family:'Calibri Light',Calibri,'Segoe UI',sans-serif;
  background:var(--ghost);
  color:var(--midnight);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

a{color:inherit;text-decoration:none}

img{max-width:100%;display:block}

/* ── NAV ─────────────────────────────────────── */
#nav{
  position:sticky;top:0;left:0;right:0;height:var(--nav-h);z-index:500;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 var(--pad);
  background:var(--midnight);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.nav-logo{font-family:'Trebuchet MS',sans-serif;font-size:1.6rem;font-weight:900;color:var(--teal);letter-spacing:-.05em}
.nav-logo b{color:var(--amber)}
.nav-links{display:flex;gap:2.2rem;align-items:center}
.nav-links a{font-family:'Trebuchet MS',sans-serif;font-size:.85rem;color:rgba(247,247,251,.65);letter-spacing:.02em;transition:color .2s}
.nav-links a:hover{color:var(--teal)}
.nav-cta{background:var(--amber)!important;color:var(--midnight)!important;padding:.5rem 1.3rem;border-radius:6px;font-weight:700}
@media (max-width:760px){
  .nav-links a:not(.nav-cta){display:none}
}

/* ── BLOG HEADER (index page) ──────────────────── */
.blog-header{
  background:var(--midnight);color:var(--ghost);
  padding:80px var(--pad) 60px;
}
.blog-eyebrow{
  display:inline-flex;align-items:center;gap:.6rem;
  font-family:'Trebuchet MS',sans-serif;font-size:.72rem;font-weight:700;
  letter-spacing:.18em;text-transform:uppercase;color:var(--teal);
  margin-bottom:1rem;
}
.blog-eyebrow::before{content:'';display:block;width:28px;height:2px;background:var(--teal)}
.blog-title{
  font-family:'Trebuchet MS',sans-serif;font-weight:900;
  font-size:clamp(2.4rem,6vw,4rem);line-height:1.05;letter-spacing:-.01em;
  max-width:14ch;
}
.blog-title .accent{color:var(--teal)}
.blog-sub{
  margin-top:1.1rem;font-size:1.05rem;color:rgba(247,247,251,.6);max-width:46ch;
}

/* ── CATEGORY TAGS ──────────────────────────────── */
.tag{
  display:inline-flex;align-items:center;
  font-family:'Trebuchet MS',sans-serif;font-size:.68rem;font-weight:700;
  letter-spacing:.06em;text-transform:uppercase;
  padding:.32rem .7rem;border-radius:6px;
}
.tag-career{background:rgba(124,58,237,.12);color:var(--uv)}
.tag-industry{background:rgba(0,201,167,.12);color:#00876e}
.tag-updates{background:rgba(245,158,11,.14);color:#92600a}
.tag-trades{background:rgba(239,68,68,.1);color:var(--red)}

/* dark-bg variants (used on post hero) */
.tag-on-dark.tag-career{background:rgba(124,58,237,.18);color:#b794f6}
.tag-on-dark.tag-industry{background:rgba(0,201,167,.18);color:var(--teal)}
.tag-on-dark.tag-updates{background:rgba(245,158,11,.18);color:var(--amber)}
.tag-on-dark.tag-trades{background:rgba(239,68,68,.18);color:#fca5a5}

/* ── POST GRID (index page) ─────────────────────── */
.blog-grid-wrap{padding:50px var(--pad) 100px;max-width:1280px;margin:0 auto}
.blog-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2rem;
}
@media (max-width:980px){.blog-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.blog-grid{grid-template-columns:1fr}}

.post-card{
  display:flex;flex-direction:column;
  background:var(--white);
  border:1px solid rgba(30,30,46,.06);
  border-radius:14px;
  overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease;
}
.post-card:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 40px rgba(30,30,46,.08);
}
.post-card-img{
  width:100%;aspect-ratio:16/10;object-fit:cover;
  background:linear-gradient(135deg,var(--midnight),#2d2d44);
}
.post-card-body{padding:1.4rem 1.5rem 1.6rem;display:flex;flex-direction:column;gap:.7rem;flex:1}
.post-card-meta{display:flex;align-items:center;justify-content:space-between;gap:.6rem}
.post-card-date{font-family:'Trebuchet MS',sans-serif;font-size:.72rem;color:rgba(30,30,46,.4);letter-spacing:.04em}
.post-card-title{
  font-family:'Trebuchet MS',sans-serif;font-weight:900;font-size:1.18rem;line-height:1.3;
  color:var(--midnight);
}
.post-card-excerpt{font-size:.92rem;color:var(--steel);flex:1}
.post-card-readmore{
  font-family:'Trebuchet MS',sans-serif;font-size:.8rem;font-weight:700;color:var(--teal);
  display:inline-flex;align-items:center;gap:.4rem;margin-top:.2rem;
}
.post-card:hover .post-card-readmore{gap:.6rem}
.post-card-readmore span{transition:transform .25s ease}
.post-card:hover .post-card-readmore span{transform:translateX(2px)}

/* featured (first) post — spans full width on index */
.post-card.featured{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:1.1fr 1fr;
}
.post-card.featured .post-card-img{aspect-ratio:auto;height:100%;min-height:280px}
.post-card.featured .post-card-body{padding:2rem 2.4rem;justify-content:center}
.post-card.featured .post-card-title{font-size:1.7rem}
.post-card.featured .post-card-excerpt{font-size:1rem}
@media (max-width:760px){
  .post-card.featured{grid-template-columns:1fr}
  .post-card.featured .post-card-img{min-height:200px}
}

/* ── EMPTY STATE ─────────────────────────────────── */
.blog-empty{
  grid-column:1/-1;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;gap:.6rem;
  padding:5rem 2rem;
  border:1px dashed rgba(30,30,46,.15);border-radius:14px;
  background:rgba(30,30,46,.02);
}
.blog-empty-icon{font-size:2.4rem;margin-bottom:.4rem;opacity:.6}
.blog-empty h2{font-family:'Trebuchet MS',sans-serif;font-weight:900;font-size:1.3rem;color:var(--midnight)}
.blog-empty p{color:var(--steel);font-size:.95rem;max-width:40ch}

/* ── ARTICLE PAGE ────────────────────────────────── */
.post-hero{
  background:var(--midnight);color:var(--ghost);
  padding:60px var(--pad) 0;
}
.post-hero-inner{max-width:var(--content-w);margin:0 auto;padding-bottom:48px}
.post-back{
  display:inline-flex;align-items:center;gap:.5rem;
  font-family:'Trebuchet MS',sans-serif;font-size:.8rem;font-weight:700;
  color:rgba(247,247,251,.5);margin-bottom:1.6rem;transition:color .2s;
}
.post-back:hover{color:var(--teal)}
.post-hero-meta{display:flex;align-items:center;gap:.8rem;margin-bottom:1.2rem;flex-wrap:wrap}
.post-hero-date{font-family:'Trebuchet MS',sans-serif;font-size:.75rem;color:rgba(247,247,251,.4);letter-spacing:.04em}
.post-hero-title{
  font-family:'Trebuchet MS',sans-serif;font-weight:900;
  font-size:clamp(2rem,5vw,3.2rem);line-height:1.12;letter-spacing:-.01em;
  margin-bottom:1rem;
}
.post-hero-byline{font-size:.95rem;color:rgba(247,247,251,.5)}
.post-hero-byline b{color:var(--ghost);font-weight:700}

.post-hero-img-wrap{
  max-width:980px;margin:0 auto;padding:0 var(--pad) 0;
}
.post-hero-img{
  width:100%;aspect-ratio:16/8;object-fit:cover;border-radius:14px 14px 0 0;
  background:linear-gradient(135deg,#2d2d44,var(--midnight));
}

.post-body-wrap{background:var(--ghost);padding:0 var(--pad) 100px}
.post-body{
  max-width:var(--content-w);margin:0 auto;padding-top:3rem;
  font-size:1.08rem;color:#2b2b3a;
}
.post-body h2{
  font-family:'Trebuchet MS',sans-serif;font-weight:900;color:var(--midnight);
  font-size:1.5rem;margin:2.4rem 0 1rem;line-height:1.3;
}
.post-body h3{
  font-family:'Trebuchet MS',sans-serif;font-weight:700;color:var(--midnight);
  font-size:1.18rem;margin:2rem 0 .8rem;
}
.post-body p{margin-bottom:1.3rem}
.post-body ul,.post-body ol{margin:0 0 1.3rem 1.4rem}
.post-body li{margin-bottom:.5rem}
.post-body a{color:var(--teal);text-decoration:underline;text-decoration-color:rgba(0,201,167,.3)}
.post-body a:hover{text-decoration-color:var(--teal)}
.post-body blockquote{
  border-left:3px solid var(--teal);
  padding:.2rem 0 .2rem 1.3rem;margin:1.6rem 0;
  font-style:italic;color:var(--steel);
}
.post-body img{border-radius:10px;margin:1.6rem 0}
.post-body strong{color:var(--midnight)}
.post-body hr{border:none;border-top:1px solid rgba(30,30,46,.1);margin:2.4rem 0}

/* ── CTA STRIP (bottom of post) ─────────────────── */
.post-cta{
  max-width:var(--content-w);margin:3rem auto 0;
  background:var(--midnight);color:var(--ghost);
  border-radius:16px;padding:2.4rem 2.4rem;
  display:flex;flex-direction:column;align-items:flex-start;gap:1rem;
}
.post-cta h3{font-family:'Trebuchet MS',sans-serif;font-weight:900;font-size:1.4rem}
.post-cta p{color:rgba(247,247,251,.6);max-width:42ch}
.post-cta-btn{
  background:var(--amber);color:var(--midnight);
  font-family:'Trebuchet MS',sans-serif;font-weight:700;font-size:.9rem;
  padding:.7rem 1.6rem;border-radius:6px;
  display:inline-flex;align-items:center;gap:.5rem;
}

/* ── FOOTER ──────────────────────────────────────── */
.blog-footer{
  background:var(--midnight);color:rgba(247,247,251,.4);
  padding:2.4rem var(--pad);text-align:center;
  font-size:.8rem;font-family:'Trebuchet MS',sans-serif;
  border-top:1px solid rgba(255,255,255,.06);
}
.blog-footer a{color:var(--teal)}
