/* Eloxy · blog. Carregado depois de home.css, que traz cores, menu, botões, rodapé e cookies. */

.nav-links a[aria-current="page"] {
  opacity: 1;
  font-weight: 600;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}
.crumbs a {
  color: var(--muted);
}
.crumbs a:hover {
  color: var(--ink);
}

/* ---------- Índice ---------- */
.blog-hero {
  padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 64px);
}
.blog-hero .crumbs {
  margin-bottom: 28px;
}
.blog-hero .eyebrow {
  margin-bottom: 12px;
}
.blog-hero h1 {
  max-width: 820px;
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.blog-hero .lead {
  max-width: 680px;
  margin-top: 22px;
}

.posts {
  padding-bottom: var(--section-y);
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  color: var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--line-soft), 0 24px 48px -24px rgba(15, 14, 20, 0.25);
}
.post-card:focus-visible {
  outline-offset: 4px;
}
.post-card.is-featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.post-card.is-featured .tile {
  flex: 0 0 52%;
  aspect-ratio: auto;
  min-height: 360px;
}
.post-card.is-featured .post-card-body {
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
}
.post-card.is-featured h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

/* Imagem de capa feita só com CSS e um ícone */
.tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  color: #fff;
}
.tile svg {
  width: clamp(64px, 9vw, 96px);
  height: auto;
  opacity: 0.95;
}
.tile-label {
  display: none;
  position: absolute;
  left: 20px;
  bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
}
.tile-violet {
  background: radial-gradient(120% 120% at 20% 10%, #7b6ad1 0%, #5b4bb7 45%, #2c2363 100%);
}
.tile-dark {
  background: radial-gradient(120% 120% at 80% 0%, #3a3550 0%, #15131d 60%, #0f0e14 100%);
  color: var(--gold);
}
.tile-gold {
  background: radial-gradient(120% 120% at 15% 0%, #f3dd8f 0%, #d4af37 50%, #8a6d12 100%);
  color: #1d1d1f;
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
}
.post-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.post-card h2,
.post-card h3 {
  font-size: 24px;
  line-height: 1.15;
}
.post-card p {
  color: var(--muted);
}
.post-meta {
  margin-top: auto;
  padding-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* Faixa de chamada no fim */
.blog-band {
  padding: var(--section-y) 0;
  background: var(--dark);
  color: var(--dark-ink);
  text-align: center;
}
.blog-band h2 {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(2rem, 5vw, 3.25rem);
}
.blog-band p {
  max-width: 600px;
  margin: 18px auto 32px;
  color: var(--dark-muted);
  font-size: 19px;
}

/* ---------- Artigo ---------- */
.post {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 22px clamp(56px, 8vw, 96px);
}
.post-head {
  margin: 28px 0 40px;
}
.post-head h1 {
  margin-top: 12px;
  font-size: clamp(2.25rem, 5.6vw, 3.5rem);
  letter-spacing: -0.03em;
}
.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 15px;
}
.byline-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}
.byline strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.post-head .post-kicker {
  display: block;
}
.post > p {
  margin-top: 22px;
  color: #333336;
  font-size: 19px;
  line-height: 1.65;
}
.post > ul {
  margin: 18px 0 0;
  padding-left: 22px;
  color: #333336;
  font-size: 19px;
  line-height: 1.65;
}
.post > ul li + li {
  margin-top: 8px;
}
.post-updated {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}
.review-note {
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--gold-soft);
  border-radius: 12px;
  color: #5c4708;
  font-size: 14px;
  font-weight: 600;
}
.formula {
  margin-top: 22px;
  padding: 20px 22px;
  background: var(--bg-alt);
  border-radius: 16px;
  font-size: 17px;
  line-height: 1.6;
}
.formula strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--muted);
}
.formula code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  color: var(--ink);
  white-space: normal;
  overflow-wrap: anywhere;
}
.post > ol {
  margin: 18px 0 0;
  padding-left: 24px;
  color: #333336;
  font-size: 19px;
  line-height: 1.65;
}
.post > ol li + li {
  margin-top: 8px;
}
.sources {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 15px;
}
.sources h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.sources ol {
  margin: 12px 0 0;
  padding-left: 20px;
}
.sources li + li {
  margin-top: 8px;
}
.post > .coluna-lide {
  margin-top: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.4vw, 1.4375rem);
  line-height: 1.5;
  font-weight: 500;
}
.post > p a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.post > h2 {
  margin-top: 56px;
  font-size: clamp(1.625rem, 3.2vw, 2rem);
  line-height: 1.15;
}
.coluna-cita {
  margin: 48px 0;
  padding: 0;
  color: var(--ink);
  font-size: clamp(1.5rem, 3.6vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.coluna-cita::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: 20px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), #8e7cc3);
}

.faq.post-faq {
  max-width: none;
  margin-top: 72px;
}
.post-faq h2 {
  margin-bottom: 16px;
  font-size: 28px;
}
.post-faq details p {
  font-size: 17px;
}

.post-author {
  margin-top: 56px;
  padding: 28px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.post-author h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-author p {
  margin-top: 12px;
  color: #333336;
}

.post-cta {
  margin-top: 32px;
  padding: clamp(28px, 5vw, 44px);
  background: var(--dark);
  color: var(--dark-ink);
  border-radius: 28px;
  text-align: center;
}
.post-cta h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
}
.post-cta p {
  margin: 12px auto 24px;
  max-width: 480px;
  color: var(--dark-muted);
}

.related {
  padding: clamp(64px, 9vw, 112px) 0;
  background: var(--bg-alt);
}
.related h2 {
  margin-bottom: 32px;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
}

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .post-card.is-featured {
    flex-direction: column;
  }
  .post-card.is-featured .tile {
    flex: none;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}
@media (max-width: 680px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
  .post > p {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .post-card,
  .post-card:hover {
    transition: none;
    transform: none;
  }
}
