:root {
  --yellow: #ffc609;
  --ink: #111111;
  --paper: #ffffff;
  --muted: #666666;
  --muted-light: #999999;
  --border: #e6e6e2;
  --bg: #faf9f7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

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

.container { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
header.blog-header {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}
.blog-header .header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.blog-header .logo { height: 32px; width: auto; }
.blog-header nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  margin-left: 1.75rem;
}
.blog-header nav a:hover { color: #a88400; }

/* Botão / CTA */
.btn-yellow {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
}
.btn-yellow:hover { background: #e6b400; }

/* Listagem do blog */
.blog-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}
.blog-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.blog-hero p {
  color: var(--muted);
  font-weight: 300;
}

/* Cover gráfico (substitui foto: preto + chama amarela + título) */
.post-cover {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  color: #fff;
  isolation: isolate;
}
.post-cover .cover-flame {
  position: absolute;
  right: -3%;
  bottom: -12%;
  width: 46%;
  max-width: 220px;
  opacity: 0.9;
  z-index: 0;
}
.post-cover .post-tag { background: var(--yellow); }
.post-cover-inner { position: relative; z-index: 1; }
.post-cover h1, .post-cover h2 {
  color: #fff;
  margin-bottom: 0;
}

.featured-post {
  display: block;
  text-decoration: none;
  margin-bottom: 2.5rem;
}
.featured-post .post-cover { padding: 3rem 2.25rem; }
.featured-post h2 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0.8rem 0 0.6rem;
  max-width: 80%;
}
.featured-post p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  max-width: 70%;
}
.featured-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-light);
  margin-bottom: 1rem;
}

.post-list { padding: 0 0 4rem; }
.post-card {
  display: block;
  text-decoration: none;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.post-card:first-child { padding-top: 0; }
.post-tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.7rem;
}
.post-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.post-card p {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 300;
}
.post-card .post-date {
  display: block;
  font-size: 0.8rem;
  color: var(--muted-light);
  margin-top: 0.6rem;
}

/* Artigo */
article.post {
  padding: 3rem 0 2rem;
}
article.post .post-tag { margin-bottom: 1rem; }
article.post h1 {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.7rem;
}
article.post .post-meta {
  color: var(--muted-light);
  font-size: 0.85rem;
  margin-top: 1.25rem;
  margin-bottom: 2.2rem;
}
article.post h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2.2rem 0 0.8rem;
}
article.post h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.6rem 0 0.5rem;
}
article.post p {
  margin-bottom: 1.1rem;
  font-weight: 300;
}
article.post ul {
  margin: 0 0 1.1rem 1.3rem;
}
article.post li {
  margin-bottom: 0.5rem;
  font-weight: 300;
}
article.post strong { font-weight: 600; }

.callout {
  background: #fff8e1;
  border-left: 3px solid var(--yellow);
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.callout p:last-child { margin-bottom: 0; }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}
.post-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  max-width: 45%;
}
.post-nav a:hover { color: #a88400; }
.post-nav .label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-light);
  font-weight: 400;
  margin-bottom: 0.25rem;
}

/* Faixa CTA no fim */
.blog-cta {
  background: var(--ink);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
  margin-top: 2rem;
}
.blog-cta h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.blog-cta p {
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

/* Footer */
footer.blog-footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--muted-light);
  font-size: 0.85rem;
}
footer.blog-footer a { text-decoration: none; color: var(--muted); }
footer.blog-footer a:hover { color: var(--ink); }

@media (max-width: 640px) {
  article.post h1, .blog-hero h1 { font-size: 1.5rem; }
  .blog-header nav a { margin-left: 1rem; font-size: 0.82rem; }
  .featured-post h2, .featured-post p { max-width: 100%; }
  .post-cover .cover-flame { width: 34%; }
}
