/*
Theme Name: Growth Log Conteúdo
Description: Tema editorial do blog da Growth Log — fundo ivory, manchetes serifadas, cards minimalistas.
Version: 1.0.0
Author: Growth Log
Text Domain: growthlog-conteudo
*/

:root {
  --bg: #FAF9F5;
  --bg-card: #FFFFFF;
  --ink: #141413;
  --muted: #6B6A63;
  --line: #E6E4DD;
  --accent: #047857;
  --accent-strong: #10B981;
  --navy: #06131b;
  --serif: "Source Serif 4", Georgia, serif;
  --display: "Roboto", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-brand { display: flex; align-items: center; }
.site-brand img { height: 14px; width: auto; }
.site-brand .brand-sep { color: var(--line); }
.site-brand .brand-blog {
  font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--muted);
}
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; }
.site-nav a { color: var(--muted); transition: color .15s; }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-login { color: var(--ink); font-weight: 600; }
.brand-blog:hover { color: var(--ink); }
.site-nav .nav-cta {
  color: var(--navy); background: var(--accent-strong); border-radius: 999px;
  padding: 9px 20px; font-weight: 600; transition: filter .15s; white-space: nowrap;
}
.site-nav .cta-short { display: none; }
.site-nav .nav-cta:hover { filter: brightness(1.06); }


/* Listagem */
.page-hero { padding: 64px 0 40px; }
.page-hero .eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.page-hero h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(44px, 6.5vw, 72px);
  letter-spacing: -0.02em; line-height: 1.02;
}
.hero-sub { color: var(--muted); font-size: 17px; }

.kicker {
  font-size: 12px; color: var(--muted); display: flex; gap: 10px; align-items: center;
  text-transform: uppercase; letter-spacing: .14em; font-weight: 600;
}
.kicker .cat { color: var(--accent); font-weight: 600; }

.featured {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px;
  align-items: center; padding-bottom: 56px; margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.featured h2 {
  font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.8vw, 46px);
  letter-spacing: -0.015em; line-height: 1.1; margin: 16px 0 14px;
}
.featured h2 a:hover { color: var(--accent); }
.featured .excerpt { color: var(--muted); font-size: 17px; line-height: 1.6; }
.featured-link {
  display: inline-block; margin-top: 22px; font-size: 15px; font-weight: 500;
  border-bottom: 1px solid var(--ink); padding-bottom: 2px; transition: color .15s, border-color .15s;
}
.featured-link:hover { color: var(--accent); border-color: var(--accent); }
.featured .thumb { border-radius: 20px; overflow: hidden; aspect-ratio: 5/3; display: block; }
.featured .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.featured .thumb:hover img { transform: scale(1.02); }

.section-label {
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 26px;
}

.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px;
  padding-bottom: 72px;
}
.card { display: flex; flex-direction: column; gap: 14px; }
.card .thumb { border-radius: 14px; overflow: hidden; aspect-ratio: 5/3; display: block; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card .thumb:hover img { transform: scale(1.03); }
.card h3 {
  font-family: var(--display); font-weight: 600; font-size: 18px;
  letter-spacing: -0.01em; line-height: 1.25;
}
.card h3 a { transition: color .15s; }
.card h3 a:hover { color: var(--accent); }

.pagination { display: flex; gap: 8px; justify-content: center; padding-bottom: 72px; font-size: 14px; }
.pagination .page-numbers {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--muted);
}
.pagination .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }

/* Artigo */
.article { max-width: 720px; margin: 0 auto; padding: 72px 24px 40px; }
.article .kicker { justify-content: center; font-size: 10.5px; letter-spacing: .12em; }
.article h1 {
  font-family: var(--display); font-weight: 600; text-align: center;
  font-size: clamp(29px, 4.6vw, 47px); letter-spacing: -0.02em; line-height: 1.08;
  margin: 18px 0 14px;
}
.article .article-meta { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.article .article-hero { border-radius: 16px; overflow: hidden; margin-bottom: 44px; }

.prose { font-family: var(--serif); font-size: 19px; line-height: 1.75; }
.prose p { margin-bottom: 1.4em; }
.prose h2 {
  font-family: var(--display); font-weight: 600; font-size: 28px;
  letter-spacing: -0.015em; margin: 1.8em 0 .7em; line-height: 1.2;
}
.prose h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 1.6em 0 .6em; line-height: 1.25; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.4em 1.4em; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  border-left: 3px solid var(--accent); padding-left: 22px; margin: 1.8em 0;
  color: var(--muted); font-style: italic;
}
.prose img { border-radius: 12px; margin: 2em auto; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-family: var(--sans); font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.prose pre {
  font-size: 15px; background: #141413; color: #FAF9F5; border-radius: 12px;
  padding: 20px 24px; overflow-x: auto; margin: 1.8em 0; font-family: ui-monospace, monospace;
}
.prose code { font-family: ui-monospace, monospace; font-size: .9em; }

.article-footer {
  max-width: 720px; margin: 0 auto; padding: 8px 24px 80px;
  display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted);
}
.article-footer a:hover { color: var(--accent); }

/* Rodapé — espelho do PublicFooter da landing */
.site-footer { background: #010101; color: #fff; padding: 56px 0 32px; }
.footer-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; font-family: var(--sans); }
.footer-top {
  display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 48px;
}
.footer-logo { height: 20px; width: auto; filter: brightness(0) invert(1); }
.footer-desc { margin-top: 20px; max-width: 420px; font-size: 14px; line-height: 1.6; color: #A3A3A3; }
.footer-cta {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
  background: #34D399; color: #010101; padding: 12px 20px; font-size: 14px; font-weight: 600;
  transition: background .15s;
}
.footer-cta:hover { background: #6EE7B7; }
.footer-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 48px 40px;
  border-bottom: 1px solid rgba(255,255,255,.1); padding: 48px 0;
}
.footer-title {
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #737373;
}
.footer-grid nav { display: grid; gap: 12px; margin-top: 20px; }
.footer-grid nav a {
  display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #D4D4D4; transition: color .15s;
}
.footer-grid nav a:hover { color: #fff; }
.footer-grid .dot {
  margin-top: .42rem; height: 4px; width: 4px; flex-shrink: 0; border-radius: 999px;
  background: #34D399; transition: width .15s;
}
.footer-grid nav a:hover .dot { width: 8px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  padding-top: 28px; font-size: 12px; color: #737373;
}

@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; gap: 24px; }
  .featured .thumb { order: -1; }
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .post-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 48px 0 32px; }
  .site-nav .nav-item { display: none; }
  .site-nav .cta-full { display: none; }
  .site-nav .cta-short { display: inline; }
  .site-nav .nav-cta { padding: 8px 16px; font-size: 13px; }
}

@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Menu hambúrguer (mobile) */
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border: none; background: transparent;
  cursor: pointer; align-items: center; padding: 0;
}
.nav-burger span {
  display: block; width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .2s, opacity .2s;
}
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  background: #010101; padding: 20px 28px 36px;
  transform: translateX(-100%);
  pointer-events: none;
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
}
body.nav-open .mobile-menu { transform: translateX(0); pointer-events: auto; }
body.nav-open { overflow: hidden; }

.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.mobile-menu-top img { height: 13px; width: auto; filter: brightness(0) invert(1); }
.mobile-close {
  border: none; background: transparent; color: #FAF9F5; font-size: 34px;
  line-height: 1; cursor: pointer; padding: 4px 8px;
}

.mobile-menu-links { display: flex; flex-direction: column; gap: 4px; margin-top: 44px; flex: 1; }
.mobile-menu-links a {
  color: #FAF9F5; font-size: 19px; font-weight: 500; font-family: var(--display);
  padding: 9px 0; letter-spacing: -0.005em;
}
.mobile-menu-links a:active { color: #34D399; }

.mobile-cta {
  display: block; text-align: center; padding: 15px 20px; border-radius: 999px;
  background: #34D399; color: var(--navy); font-weight: 600; font-size: 16px;
}
.mobile-menu-foot {
  margin-top: 18px; text-align: center; font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: #5C6B75;
}

@media (max-width: 620px) {
  .nav-burger { display: flex; }
  /* Logo no centro óptico da tela, ignorando a largura do hambúrguer */
  .site-brand { position: absolute; left: 50%; transform: translateX(-50%); }
  .site-nav .nav-cta { display: none; }
}

/* Botões de compartilhamento (sob o título do post) */
.article-share { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: nowrap; margin: -24px 0 40px; }
.article-share-label { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-right: 2px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; background: var(--bg-card); transition: border-color .15s, color .15s; }
.share-btn svg { color: var(--accent); }
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 480px) {
  .share-btn { padding: 6px 11px; font-size: 12px; gap: 5px; }
  .share-btn svg { width: 15px; height: 15px; }
}
