/* Blog — Consciência Emocional. Cores e fontes iguais às do site principal. */
:root {
  --background: oklch(97.7% .012 77);
  --foreground: oklch(25.5% .02 70);
  --card: oklch(100% 0 0);
  --primary: oklch(54% .076 243);
  --primary-dark: oklch(41% .065 242);
  --primary-soft: oklch(93.6% .025 244);
  --primary-foreground: oklch(99% .004 85);
  --muted: oklch(94.1% .021 75);
  --muted-foreground: oklch(47.5% .021 67);
  --accent: oklch(68% .105 55);
  --border: oklch(89.7% .022 75);
  --radius: 1.25rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Work Sans", system-ui, sans-serif;
  --shadow-soft: 0 18px 50px -24px oklch(41% .065 242 / .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--foreground); letter-spacing: -.01em; }

.container { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 46rem; }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.eyebrow {
  display: inline-block;
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .2em;
  color: var(--primary); text-decoration: none; margin: 0;
}
.lead { font-size: 1.125rem; color: var(--muted-foreground); line-height: 1.7; }
.meta { font-size: .875rem; color: var(--muted-foreground); margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.75rem; padding: 0 1.5rem; border-radius: 999px;
  font: 500 .875rem var(--font-sans); text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s; cursor: pointer;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 1px 3px oklch(0% 0 0 / .12); }
.btn-primary:hover { background: color-mix(in oklch, var(--primary) 90%, black); }
.btn-ghost { border: 1px solid var(--border); color: var(--primary-dark); background: var(--card); }
.btn-ghost:hover { border-color: var(--primary); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--background) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 5rem; position: relative; }
.brand { text-decoration: none; }
.brand-name { display: block; font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; line-height: 1; color: var(--primary-dark); }
.brand-sub { display: block; margin-top: .25rem; font-size: .67rem; font-weight: 500; text-transform: uppercase; letter-spacing: .18em; color: var(--muted-foreground); }
.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav a:not(.btn) { font-size: .875rem; font-weight: 500; color: var(--muted-foreground); text-decoration: none; padding: .5rem 0; transition: color .2s; }
.main-nav a:not(.btn):hover, .main-nav a.is-active { color: var(--primary-dark); }
.main-nav a.is-active { box-shadow: inset 0 -2px 0 var(--primary); }
.menu-toggle { display: none; }
.menu-button { display: none; width: 2.75rem; height: 2.75rem; place-items: center; border-radius: 999px; color: var(--primary-dark); cursor: pointer; }

@media (max-width: 767px) {
  .menu-button { display: grid; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--background); border-bottom: 1px solid var(--border);
    padding: .5rem 1.25rem 1.25rem; box-shadow: var(--shadow-soft);
  }
  .main-nav a:not(.btn) { padding: .75rem 0; color: var(--primary-dark); box-shadow: none !important; }
  .main-nav .btn { margin-top: 1rem; }
  .menu-toggle:checked ~ .main-nav { display: flex; }
}

/* ---------- Topo da listagem ---------- */
.blog-hero { padding: 4.5rem 0 2.5rem; text-align: center; }
.blog-hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin: 1rem 0 0; }
.blog-hero .lead { margin: 1.25rem auto 0; max-width: 38rem; }
@media (min-width: 1024px) { .blog-hero { padding: 6rem 0 3rem; } }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.tags a {
  font-size: .875rem; text-decoration: none; color: var(--muted-foreground);
  padding: .4rem 1rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card);
  transition: all .2s;
}
.tags a:hover { border-color: var(--primary); color: var(--primary-dark); }
.tags a.is-active { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--primary-foreground); }

/* ---------- Cards ---------- */
.blog-list { padding-bottom: 3rem; }
.grid { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--primary-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-placeholder {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-family: var(--font-display); font-size: 4rem; color: var(--primary);
  background: linear-gradient(135deg, var(--primary-soft), var(--muted));
}
.card-body { display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; flex: 1; }
.card-title { font-size: 1.35rem; margin: 0; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--primary-dark); }
.card-excerpt { margin: 0; color: var(--muted-foreground); font-size: .95rem; flex: 1; }

.empty {
  text-align: center; padding: 3.5rem 1.5rem; max-width: 36rem; margin: 0 auto;
  background: var(--card); border: 1px dashed var(--border); border-radius: var(--radius);
}
.empty h2 { margin-top: 0; font-size: 1.75rem; }
.empty p { color: var(--muted-foreground); margin-bottom: 1.5rem; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 3rem; font-size: .9rem; color: var(--muted-foreground); }
.pagination a { font-weight: 500; text-decoration: none; }

/* ---------- Artigo ---------- */
.post-header { padding: 3.5rem 1.25rem 2rem; }
.breadcrumb { font-size: .85rem; color: var(--muted-foreground); margin-bottom: 1.75rem; }
.breadcrumb a { color: var(--muted-foreground); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb span { margin: 0 .35rem; opacity: .6; }
.post-tags { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0 0 1rem; }
.post-header h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 1.25rem; }
.post-header .lead { margin: 0 0 1.5rem; }
.post-cover { max-width: 64rem; margin-bottom: 2.5rem; }
.post-cover img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }

.prose { font-size: 1.1rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.25em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose pre { margin-bottom: 0; }
.prose h2 { font-size: 1.85rem; margin-top: 2.2em; margin-bottom: 0; scroll-margin-top: 6rem; }
.prose h3 { font-size: 1.4rem; margin-top: 1.8em; margin-bottom: 0; scroll-margin-top: 6rem; }
.prose h4 { font-size: 1.15rem; margin-top: 1.5em; margin-bottom: 0; }
.prose a { text-decoration-color: color-mix(in oklch, var(--primary) 45%, transparent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--primary); }
.prose strong { font-weight: 600; color: var(--foreground); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--primary); }
.prose blockquote {
  margin-left: 0; margin-right: 0; padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent); background: var(--muted); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display); font-size: 1.2rem; font-style: italic; color: var(--primary-dark);
}
.prose blockquote p { margin: 0; }
.prose blockquote p + p { margin-top: .75em; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figure img { border-radius: calc(var(--radius) * .75); width: 100%; }
.prose figcaption { font-size: .85rem; color: var(--muted-foreground); text-align: center; margin-top: .6rem; }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 2.5em 0; }
.prose code { font-size: .9em; background: var(--muted); padding: .15em .4em; border-radius: .35em; }
.prose pre { background: var(--foreground); color: var(--background); padding: 1.25rem; border-radius: calc(var(--radius) * .6); overflow-x: auto; font-size: .9rem; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: calc(var(--radius) * .75); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: .6rem .5rem; text-align: left; }
.prose .destaque {
  background: var(--primary-soft); border-radius: var(--radius); padding: 1.25rem 1.5rem; color: var(--primary-dark);
}

.share {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  margin: 3rem 0 2rem; padding-top: 1.75rem; border-top: 1px solid var(--border); font-size: .875rem;
}
.share span { color: var(--muted-foreground); margin-right: .25rem; }
.share a, .share button {
  font: 500 .85rem var(--font-sans); color: var(--primary-dark); text-decoration: none; cursor: pointer;
  padding: .4rem .9rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card);
}
.share a:hover, .share button:hover { border-color: var(--primary); }

.author-box {
  display: flex; gap: 1.25rem; align-items: center;
  padding: 1.5rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.author-box img { width: 4.5rem; height: 4.5rem; border-radius: 999px; object-fit: cover; object-position: top; flex-shrink: 0; background: var(--primary-soft); }
.author-box p { margin: .3rem 0 0; font-size: .95rem; color: var(--muted-foreground); }
.author-box strong { color: var(--foreground); }
@media (max-width: 480px) { .author-box { flex-direction: column; align-items: flex-start; } }

.cta {
  display: flex; flex-direction: column; gap: 1.5rem;
  margin: 2.5rem 0 4rem; padding: 2rem; border-radius: var(--radius);
  background: var(--primary-soft);
}
.cta h2 { font-size: 1.75rem; margin: .6rem 0 .5rem; }
.cta p:not(.eyebrow) { margin: 0; color: var(--muted-foreground); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 768px) { .cta { padding: 2.5rem; } }

.related { padding: 1rem 1.25rem 5rem; }
.related h2 { font-size: 2rem; margin: 0 0 1.75rem; }
@media (min-width: 1024px) { .related { padding-left: 2rem; padding-right: 2rem; } }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--primary-dark); color: var(--primary-foreground); padding: 4rem 0 0; }
.footer-top { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
.site-footer h2 { color: var(--primary-foreground); font-size: 1.875rem; margin: 0; }
.site-footer p { margin: .75rem 0 0; font-size: .875rem; color: color-mix(in oklch, var(--primary-foreground) 70%, transparent); max-width: 28rem; line-height: 1.5rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-nav a { color: color-mix(in oklch, var(--primary-foreground) 80%, transparent); text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: var(--primary-foreground); }
.footer-bottom {
  margin-top: 3.5rem; padding-top: 1.75rem; padding-bottom: 4rem;
  border-top: 1px solid color-mix(in oklch, var(--primary-foreground) 20%, transparent);
  font-size: .875rem; color: color-mix(in oklch, var(--primary-foreground) 60%, transparent);
}
@media (min-width: 768px) { .footer-top { flex-direction: row; align-items: flex-end; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
