/* =====================================================
   REDE SUPRIMENTOS · Blog (editorial)
   ===================================================== */

:root {
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --paper: #FCFBF7;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --line: rgba(0,0,0,0.08);
  --tag-bg: #e9f6ee;
}

body.blog-page {
  background: var(--paper);
  color: var(--ink);
}

/* Reset header bg for blog (it remains dark but on light page) */
.blog-page .site-header.is-scrolled,
.blog-page .site-header { background: rgba(17,17,17,0.92); }

/* =====================================================
   BLOG HERO (top intro)
   ===================================================== */
.blog-hero {
  padding: 160px 0 60px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.blog-hero .eyebrow {
  color: var(--verde-darker);
}
.blog-hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px auto 18px;
  max-width: 16ch;
  color: var(--ink);
}
.blog-hero h1 em {
  font-style: italic;
  color: var(--verde-darker);
  font-weight: 500;
}
.blog-hero p {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* =====================================================
   CATEGORY FILTER CHIPS
   ===================================================== */
.cat-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 32px 0 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 70px;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(252,251,247,0.92);
}
.cat-filter-inner {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 var(--gutter) 24px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.cat-chip {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.cat-chip:hover {
  border-color: var(--verde);
  color: var(--verde-darker);
}
.cat-chip.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* =====================================================
   FEATURED POST
   ===================================================== */
.featured-wrap {
  padding: 72px 0 40px;
  background: var(--paper);
}
.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.featured-post .post-cover {
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: var(--ink);
}
.featured-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--verde-darker);
  font-weight: 600;
  margin-bottom: 16px;
}
.featured-meta::before {
  content: "EM DESTAQUE";
  background: var(--ink);
  color: #fff;
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 0.1em;
}
.featured-post h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 18px;
}
.featured-post:hover h2 {
  color: var(--verde-darker);
}
.featured-post p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 22px;
}
.featured-post .post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-soft);
}
.featured-post .post-meta .author-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--verde);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =====================================================
   POST GRID
   ===================================================== */
.posts-section {
  padding: 40px 0 100px;
  background: var(--paper);
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 48px);
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform .25s var(--ease);
}
.post-card:hover { transform: translateY(-4px); }
.post-card .post-cover {
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink);
  position: relative;
}
.post-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.post-card:hover h3 { color: var(--verde-darker); }
.post-card .cat-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--verde-darker);
}
.post-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.post-card .post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: auto;
  padding-top: 8px;
}
.post-meta .dot-sep {
  width: 3px; height: 3px;
  background: var(--ink-soft);
  border-radius: 50%;
  opacity: 0.5;
}

/* =====================================================
   COVER ARTWORK (SVG placeholders)
   ===================================================== */
.cover-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.cover-art-label {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.4);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* =====================================================
   NEWSLETTER STRIP
   ===================================================== */
.newsletter {
  background: var(--ink);
  color: #fff;
  padding: clamp(60px, 8vw, 100px) 0;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(11,161,75,0.25), transparent 65%);
  pointer-events: none;
}
.newsletter-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.newsletter h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
.newsletter h2 em {
  font-style: italic;
  color: var(--verde-light);
  font-weight: 500;
}
.newsletter p {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 50ch;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  flex-direction: column;
}
.newsletter-form .input-row {
  display: flex;
  gap: 8px;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s var(--ease);
}
.newsletter-form input:focus { border-color: var(--verde-light); }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form button {
  padding: 14px 24px;
  background: var(--verde);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: background .2s var(--ease);
}
.newsletter-form button:hover { background: var(--verde-dark); }
.newsletter-form small {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  padding: 0 8px;
}

/* =====================================================
   SINGLE POST PAGE
   ===================================================== */
.post-hero {
  padding: 130px 0 50px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 32px;
  transition: color .2s var(--ease);
}
.post-back:hover { color: var(--verde-darker); }
.post-back svg { width: 16px; height: 16px; }

.post-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.post-hero .cat-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--verde-darker);
  display: inline-block;
  margin-bottom: 18px;
}
.post-hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 22px;
  text-wrap: balance;
}
.post-hero .subtitle {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 36px;
  font-weight: 400;
  text-wrap: pretty;
}
.post-hero .post-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}
.post-hero .author-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--verde);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-hero .author-name {
  font-weight: 600;
  color: var(--ink);
}

.post-cover-large {
  margin: 60px auto 0;
  max-width: 1100px;
  aspect-ratio: 21/9;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

/* Article body */
.post-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 70px var(--gutter) 100px;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
}
.post-body > * + * { margin-top: 1.2em; }
.post-body p { margin: 0; }
.post-body h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 2.2em 0 0.6em;
  color: var(--ink);
}
.post-body h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
  margin: 1.8em 0 0.5em;
  color: var(--ink);
}
.post-body ul, .post-body ol {
  padding-left: 1.5em;
  list-style: revert;
}
.post-body ul li, .post-body ol li {
  margin-bottom: 0.6em;
}
.post-body strong { font-weight: 600; color: var(--ink); }
.post-body em { font-style: italic; }
.post-body a {
  color: var(--verde-darker);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.post-body a:hover { color: var(--verde); }
.post-body blockquote {
  margin: 2em -20px;
  padding: 30px 36px;
  border-left: 3px solid var(--verde);
  background: var(--tag-bg);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  border-radius: 0 4px 4px 0;
}
.post-body blockquote p { margin: 0; }
.post-body figure {
  margin: 2.5em -40px;
}
.post-body figure .post-figure-img {
  aspect-ratio: 16/9;
  background: var(--ink);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.post-body figcaption {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}
.post-body .key-stat {
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 1.1;
  color: var(--verde-darker);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.post-body hr {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 3em 0;
}

/* Share bar */
.share-bar {
  max-width: 700px;
  margin: 60px auto 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.share-bar h5 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}
.share-buttons { display: flex; gap: 8px; }
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s var(--ease);
}
.share-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.share-btn svg { width: 16px; height: 16px; }

/* Related posts */
.related-section {
  background: var(--paper);
  padding: 80px 0 100px;
  border-top: 1px solid var(--line);
}
.related-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 40px;
  text-align: center;
}
.related-section h2 em { font-style: italic; color: var(--verde-darker); font-weight: 500; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .featured-post { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-inner { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .post-body { font-size: 17px; padding: 50px var(--gutter) 60px; }
  .post-body blockquote { margin: 2em 0; padding: 24px 20px; font-size: 19px; }
  .post-body figure { margin: 2em 0; }
  .cat-filter { top: 60px; }
  .blog-hero { padding-top: 130px; }
}
