/* ==========================================================================
   04-BLOG.CSS — Componentes específicos do blog
   --------------------------------------------------------------------------
   Hero, post cards, featured post, sidebar, CTA strip, footer.
   ========================================================================== */

/* === SECTION: HERO === */
.blog-hero {
  position: relative;
  padding: 120px 0 0px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--brand-tint) 0%, var(--bg) 100%);
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123, 0, 184, 0.10), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.10), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-hero .container {
  position: relative;
  z-index: 2;
}

/*
 * Headline do hero — Nunito 900 (black) é o peso máximo.
 * Combinado com line-height comprimido cria impacto visual imediato.
 */
.hero-title {
  font-family: var(--font-primary);
  font-weight: var(--fw-black);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: var(--ls-tight);
  margin: 1.2rem 0 1.5rem;
  color: var(--ink);
}

.hero-sub {
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 580px;
  line-height: var(--lh-relaxed);
  margin-bottom: 2rem;
}

/* === SECTION: CATEGORY PILLS WRAPPER === */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

/* === SECTION: FEATURED POST === */
.featured-section {
  padding: 4rem 0 2rem;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.featured-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.featured-img {
  position: relative;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: 0.08;
  mix-blend-mode: overlay;
}

.featured-img-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem;
}

.featured-img-content .icon-circle {
  width: 110px;
  height: 110px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
  backdrop-filter: blur(8px);
  font-size: 3rem;
}

.featured-img-content .label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: var(--accent);
  color: var(--ink);
  border-radius: var(--radius-pill);
}

.featured-body {
  padding: 3rem 2.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/*
 * Meta info — combina mono (cat) + Nunito light (timestamps).
 * O contraste de famílias deixa o card mais sofisticado.
 */
.featured-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-mute);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  font-weight: var(--fw-semibold);
}

.featured-meta .cat {
  color: var(--brand);
  font-weight: var(--fw-bold);
}

.featured-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-mute);
}

.featured-card h2 {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tight);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.featured-card h2 a {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}

.featured-card h2 a:hover {
  color: var(--brand);
}

.featured-card .excerpt {
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: var(--lh-relaxed);
  margin-bottom: 1.8rem;
}

/* === SECTION: AUTHOR ROW === */
.author-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  color: #fff;
  font-family: var(--font-primary);
  font-weight: var(--fw-extrabold);
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.author-name {
  font-family: var(--font-primary);
  font-weight: var(--fw-bold);
  font-size: 0.9rem;
  line-height: 1.2;
  color: var(--ink);
}

.author-role {
  font-size: 0.78rem;
  font-weight: var(--fw-regular);
  color: var(--ink-mute);
}

@media (max-width: 768px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-img { min-height: 280px; }
  .featured-body { padding: 2rem 1.5rem; }
}

/* === SECTION: POSTS GRID === */
.posts-section {
  padding: 2rem 0 5rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.section-heading h3 {
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tight);
  margin: 1rem 0 0;
}

.section-heading .link {
  color: var(--brand);
  font-weight: var(--fw-bold);
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-heading .link:hover { gap: 10px; }

/* === SECTION: POST CARD === */
.post-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  border-color: var(--brand);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.post-cover {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
}

.post-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: 0.08;
  mix-blend-mode: overlay;
}

.post-cover .icon { position: relative; z-index: 1; }

.post-cover .cat-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand);
  border-radius: var(--radius-pill);
}

/* Variantes de fundo do cover — referenciar pelo data attribute do post */
.post-cover.bg-brand        { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); }
.post-cover.bg-brand-soft   { background: linear-gradient(135deg, var(--brand-soft), var(--brand)); }
.post-cover.bg-dark         { background: linear-gradient(135deg, var(--ink), #3a1a52); }
.post-cover.bg-mix-1        { background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 130%); }
.post-cover.bg-mix-2        { background: linear-gradient(135deg, var(--brand-deep) 0%, #2a0540 100%); }
.post-cover.bg-mix-3        { background: linear-gradient(135deg, #4a1a72, var(--brand-soft)); }

.post-body {
  padding: 1.5rem 1.5rem 1.7rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.post-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-mute);
}

/*
 * Título do card — Nunito 800 (extrabold).
 * Em cards menores não precisamos do peso 900, 800 já tem presença suficiente
 * sem comprometer a respirabilidade.
 */
.post-card h4 {
  font-family: var(--font-primary);
  font-size: 1.18rem;
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 0.7rem;
  color: var(--ink);
}

.post-card .excerpt {
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: var(--lh-relaxed);
  margin-bottom: 1.2rem;
  flex: 1;
}

.post-footer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: var(--fw-semibold);
  color: var(--ink-mute);
}

.post-footer .author-mini {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  color: #fff;
  font-family: var(--font-primary);
  font-weight: var(--fw-extrabold);
  font-size: 0.7rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* === SECTION: SIDEBAR === */
.sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 30px);
}

.sidebar-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  margin-bottom: 1.5rem;
}

.sidebar-card h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.2rem;
}

/* === SECTION: NEWSLETTER CARD === */
.newsletter-card {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  border: 0;
  position: relative;
  overflow: hidden;
}

.newsletter-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.newsletter-card > * { position: relative; z-index: 2; }

.newsletter-card .icon-bubble {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.newsletter-card h4 {
  font-family: var(--font-primary);
  font-weight: var(--fw-extrabold);
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: var(--ls-tight);
  margin-bottom: 0.6rem;
  color: #fff;
}

.newsletter-card p {
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: var(--lh-relaxed);
  margin-bottom: 1.2rem;
}

.newsletter-card .form-control {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.1rem;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: var(--fw-regular);
}

.newsletter-card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.newsletter-card .form-control:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.15);
  color: #fff;
}

.newsletter-card .btn-accent {
  width: 100%;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
}

/* === SECTION: POPULAR LIST === */
.popular-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popular-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.popular-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.popular-list li:first-child { padding-top: 0; }

/* O número grande usa o serif decorativo — único caso fora de headlines */
.popular-list .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--brand);
  line-height: 1;
  font-weight: var(--fw-regular);
}

.popular-list a {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: var(--fw-bold);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
  display: block;
  margin-bottom: 4px;
  transition: color var(--t-fast);
}

.popular-list a:hover { color: var(--brand); }

.popular-list .meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: var(--fw-semibold);
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* === SECTION: TAG CLOUD === */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-cloud a {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: all var(--t-fast);
  border: 1px solid var(--line-soft);
}

.tag-cloud a:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* === SECTION: PAGINATION WRAPPER === */
.pagination-wrap {
  display: flex;
  justify-content: center;
  padding: 2rem 0 0;
}

/* === SECTION: CTA STRIP === */
.cta-strip {
  padding: 5rem 0;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(123, 0, 184, 0.4), transparent 60%);
  border-radius: 50%;
}

.cta-strip .container {
  position: relative;
  z-index: 2;
}

.cta-strip h3 {
  font-family: var(--font-primary);
  font-weight: var(--fw-extrabold);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: var(--ls-tight);
  line-height: 1.05;
  margin-bottom: 1rem;
  color: #fff;
}

.cta-strip h3 .serif {
  color: var(--accent);
}

.cta-strip p {
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  max-width: 540px;
}

/* === SECTION: FOOTER === */
.blog-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 4rem 0 2rem;
}

.blog-footer img {
  height: 32px;
  margin-bottom: 1rem;
}

.blog-footer h6 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.2rem;
}

.blog-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-footer ul li {
  margin-bottom: 0.6rem;
}

.blog-footer a {
  font-family: var(--font-primary);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: var(--fw-semibold);
  transition: color var(--t-fast);
}

.blog-footer a:hover { color: var(--brand); }

.footer-brand p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: var(--fw-regular);
  max-width: 320px;
  line-height: var(--lh-relaxed);
}

.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: all var(--t-fast);
  background: var(--bg);
}

.footer-social a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: var(--fw-regular);
  color: var(--ink-mute);
}

/* ==========================================================================
   POST CONTENT (PROSE) — estilos do corpo de um artigo
   --------------------------------------------------------------------------
   Aplique estas classes na página post.html dentro do <article>:
   - .post-prose          → wrapper do conteúdo
   - tudo que vier dentro herda os estilos automaticamente
   ========================================================================== */

.post-header {
  padding: 130px 0 30px;
  background: linear-gradient(180deg, var(--brand-tint) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.post-header::before {
  content: '';
  position: absolute;
  top: -100px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(123, 0, 184, 0.08), transparent 60%);
  border-radius: 50%; pointer-events: none;
}

.post-header .container { position: relative; z-index: 2; }

.post-cat-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1rem;
  transition: gap var(--t-fast);
}

.post-cat-link:hover { gap: 10px; color: var(--brand-deep); }

.post-title {
  font-family: var(--font-primary);
  font-weight: var(--fw-black);
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: var(--ls-tight);
  color: var(--ink);
  margin: 0 0 1.5rem;
}

.post-lead {
  font-family: var(--font-primary);
  font-size: 1.18rem;
  font-weight: var(--fw-regular);
  color: var(--ink-soft);
  line-height: var(--lh-relaxed);
  max-width: 760px;
  margin-bottom: 2rem;
}

.post-meta-row {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  color: var(--ink-mute);
  font-weight: var(--fw-semibold);
}

.post-meta-row .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.post-meta-row .meta-item i {
  color: var(--brand);
  font-size: 1rem;
}

.post-share {
  display: inline-flex; gap: 6px;
  margin-left: auto;
}

.post-share a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--bg);
  transition: all var(--t-fast);
  font-size: 0.95rem;
}

.post-share a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

/* Capa grande do post (opcional) */
.post-cover-hero {
  height: 400px;
  margin: -2rem 0 3rem;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  display: grid; place-items: center;
  color: #fff;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.post-cover-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: 0.08;
  mix-blend-mode: overlay;
}

@media (max-width: 768px) {
  .post-cover-hero { height: 240px; font-size: 3rem; }
}

/* === SECTION: PROSE — conteúdo formatado do post === */
.post-prose {
  font-family: var(--font-primary);
  font-size: 1.08rem;
  font-weight: var(--fw-regular);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 760px;
  margin-inline: auto;
}

.post-prose > * + * { margin-top: 1.4rem; }

.post-prose h2 {
  font-family: var(--font-primary);
  font-weight: var(--fw-extrabold);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: var(--ls-tight);
  color: var(--ink);
  margin-top: 3rem;
}

.post-prose h3 {
  font-family: var(--font-primary);
  font-weight: var(--fw-bold);
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 2.5rem;
}

.post-prose h4 {
  font-family: var(--font-primary);
  font-weight: var(--fw-bold);
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: 2rem;
}

.post-prose p { margin-bottom: 0; }

.post-prose strong { color: var(--ink); font-weight: var(--fw-bold); }

.post-prose a {
  color: var(--brand);
  font-weight: var(--fw-bold);
  text-decoration: underline;
  text-decoration-color: rgba(123, 0, 184, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--t-fast);
}

.post-prose a:hover {
  text-decoration-color: var(--brand);
}

.post-prose ul,
.post-prose ol {
  padding-left: 1.5rem;
}

.post-prose li {
  margin-bottom: 0.6rem;
}

.post-prose li::marker {
  color: var(--brand);
  font-weight: var(--fw-bold);
}

.post-prose blockquote {
  border-left: 4px solid var(--brand);
  padding: 0.8rem 0 0.8rem 1.8rem;
  margin: 2.5rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-regular);
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--ink);
  background: var(--brand-tint);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.post-prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--brand-pale);
  color: var(--brand-deep);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: var(--fw-semibold);
}

.post-prose pre {
  background: var(--ink);
  color: #fff;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 0.92rem;
}

.post-prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.post-prose img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 2rem 0;
}

.post-prose hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 3rem 0;
}

.post-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.post-prose th,
.post-prose td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}

.post-prose th {
  font-family: var(--font-primary);
  font-weight: var(--fw-bold);
  color: var(--ink);
  background: var(--bg-soft);
}

/* === SECTION: TOC (Table of Contents) sticky === */
.post-toc {
  position: sticky;
  top: calc(var(--nav-height) + 30px);
  font-family: var(--font-primary);
  padding: 1.4rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.post-toc h6 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1rem;
}

.post-toc ol {
  list-style: none;
  padding: 0; margin: 0;
  counter-reset: toc;
}

.post-toc li {
  counter-increment: toc;
  margin-bottom: 0.6rem;
}

.post-toc a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: var(--fw-semibold);
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1.35;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all var(--t-fast);
}

.post-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-mute);
  font-weight: var(--fw-regular);
}

.post-toc a:hover,
.post-toc a.active {
  background: var(--brand-pale);
  color: var(--brand);
}

.post-toc a.active::before { color: var(--brand); }

/* === SECTION: AUTOR BOX (após o conteúdo) === */
.author-box {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-top: 3rem;
}

.author-box .author-avatar { width: 64px; height: 64px; font-size: 1.2rem; }
.author-box .author-bio h4 {
  font-family: var(--font-primary);
  font-weight: var(--fw-bold);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.author-box .author-bio p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .author-box { flex-direction: column; text-align: center; }
}

/* === SECTION: RELATED POSTS === */
.related-section {
  padding: 4rem 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.related-section h3 {
  font-family: var(--font-primary);
  font-weight: var(--fw-extrabold);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  letter-spacing: var(--ls-tight);
  margin-bottom: 2rem;
}
