/* ─────────────────────────────────────────────────────────────
   Atualização Técnica Revon — Blog
   Sistema visual: Brandbook Revon v2 (Sábio + Herói)
   Paleta: Grafite + Pergaminho + Âmbar + Verde Caixa
   Tipografia: Space Grotesk / Inter / JetBrains Mono
   Slogan: "Receita não acontece. Receita opera."
   ───────────────────────────────────────────────────────────── */

:root {
  --ink: #0E1116;
  --ink-soft: #1A1F2A;
  --paper: #F4F1EA;
  --paper-soft: #EBE6DA;
  --amber: #C77A28;
  --amber-soft: #E6A35A;
  --green: #2D7A3E;
  --green-soft: #4A9B5F;
  --gray: #6B7280;
  --gray-soft: #9CA3AF;
  --line: #2A3140;
  --line-soft: rgba(14, 17, 22, 0.08);
  --line-soft-2: rgba(14, 17, 22, 0.15);

  --display: 'Space Grotesk', sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --max-w: 760px;
  --max-w-wide: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

::selection { background: var(--amber); color: var(--paper); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 32px; }

/* ── Logo R diagonal (SVG inline via background) ────────────── */
.logo-r {
  display: inline-block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* ── Top bar mínima ─────────────────────────────────────────── */
.topbar {
  position: relative;
  height: 3px;
  background: var(--ink);
}

.topbar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 33%;
  height: 100%;
  background: var(--amber);
}

/* ── Header ─────────────────────────────────────────────────── */
header.site-header {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 56px;
  position: relative;
  border-bottom: 1px solid rgba(244, 241, 234, 0.08);
}

.site-header-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-mark {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.brand-title {
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--paper);
}

.brand-title .accent { color: var(--amber); }

.brand-tagline {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(244, 241, 234, 0.7);
  max-width: 560px;
}

.brand-slogan {
  font-family: var(--display);
  font-size: 14px;
  font-style: italic;
  color: var(--amber-soft);
  letter-spacing: -0.005em;
  margin-top: 4px;
}

/* ── Nav principal: Diário · Cronograma · Base ───────────────── */
.brand-nav {
  display: flex;
  gap: 4px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 241, 234, 0.08);
  flex-wrap: wrap;
}

.brand-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: rgba(244, 241, 234, 0.55);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  position: relative;
}

.brand-nav-link::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--amber);
  opacity: 0;
  border-radius: 1px;
  transition: opacity 0.15s ease;
}

.brand-nav-link:hover {
  color: var(--paper);
  background: rgba(244, 241, 234, 0.04);
  border-color: rgba(244, 241, 234, 0.08);
}

.brand-nav-link.active {
  color: var(--paper);
  background: rgba(199, 122, 40, 0.12);
  border-color: rgba(199, 122, 40, 0.35);
}

.brand-nav-link.active::before {
  opacity: 1;
}

/* ── Sub-nav (Cronograma → Global · Técnico) ────────────────── */
.brand-subnav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-left: 12px;
  flex-wrap: wrap;
}

.brand-subnav-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.35);
  padding-right: 6px;
}

.brand-subnav-link {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.5);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(244, 241, 234, 0.12);
  border-radius: 2px;
  transition: all 0.15s ease;
}

.brand-subnav-link:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.brand-subnav-link.active {
  color: var(--amber);
  background: rgba(199, 122, 40, 0.08);
  border-color: var(--amber);
}

.brand-meta {
  display: flex;
  gap: 32px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.4);
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 241, 234, 0.08);
}

.brand-meta span strong { color: var(--paper); font-weight: 500; }

/* ── Posts listing (home) ───────────────────────────────────── */
.posts-list {
  display: flex;
  flex-direction: column;
  padding: 64px 0 96px;
}

.posts-list-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.posts-list-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--amber);
}

.post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: all 0.2s ease;
  position: relative;
}

.post-card::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--amber);
  transition: height 0.25s ease;
}

.post-card:hover::before { height: 50%; }
.post-card:hover .post-card-title { color: var(--amber); }
.post-card:first-child { padding-top: 0; }

.post-card-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 14px;
}

.post-card-meta .date { color: var(--amber); }
.post-card-meta .sep { color: var(--gray-soft); }

.post-card-title {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
  transition: color 0.2s ease;
}

.post-card-hook {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 620px;
}

.post-card-tags {
  margin-top: 18px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 4px 8px;
  background: var(--paper-soft);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
}

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
  padding: 96px 0;
  text-align: center;
  color: var(--gray);
}

.empty-state .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.empty-state h2 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.empty-state p { color: var(--ink-soft); max-width: 480px; margin: 0 auto; }

/* ── Post detail ─────────────────────────────────────────────── */
article.post {
  padding: 72px 0 96px;
}

.post-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 36px;
}

.post-meta .date { color: var(--amber); }
.post-meta .sep { color: var(--gray-soft); }

.post-title {
  font-family: var(--display);
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 36px;
  max-width: 720px;
}

.post-hook {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--ink);
  font-weight: 400;
  padding: 32px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 56px;
  max-width: 680px;
  letter-spacing: -0.005em;
}

.post-hook p + p { margin-top: 16px; }

.post section {
  margin-bottom: 64px;
  max-width: 680px;
}

.post h2 {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}

.post h2::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--amber);
  flex-shrink: 0;
}

.post section .content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.post section .content p { margin-bottom: 16px; }
.post section .content p:last-child { margin-bottom: 0; }

.post section .content ul,
.post section .content ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.post section .content li { margin-bottom: 8px; line-height: 1.65; }

.post section .content strong { color: var(--ink); font-weight: 700; }

.post section .content em {
  font-style: normal;
  color: var(--amber);
  font-weight: 500;
}

.post section .content code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--paper-soft);
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 2px;
  border: 1px solid var(--line-soft);
}

.post section .content a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 0.15s ease;
}

.post section .content a:hover { color: var(--ink); }

/* Bloqueios: vermelho-grafite (transparência) */
.post section.bloqueios h2 { color: var(--ink); }
.post section.bloqueios h2::before { background: var(--ink); }

/* Amanhã (próximos passos): verde caixa */
.post section.amanha h2 { color: var(--green); }
.post section.amanha h2::before { background: var(--green); }
.post section.amanha .content a { color: var(--green); }

/* Vitorias: ênfase âmbar (já é default) */

.post-tags {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.post-nav {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.post-nav a {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.15s ease;
}

.post-nav a:hover { color: var(--amber); }

/* ── Manifesto strip (separa header de listing/post) ─────────── */
.manifesto-strip {
  background: var(--paper-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 32px 0;
}

.manifesto-strip-inner {
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.01em;
  max-width: 720px;
}

.manifesto-strip-inner strong { color: var(--amber); font-weight: 700; }

/* ── Footer ─────────────────────────────────────────────────── */
footer.site-footer {
  background: var(--ink);
  color: rgba(244, 241, 234, 0.5);
  padding: 64px 0 56px;
  margin-top: 96px;
  position: relative;
}

footer.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 33%;
  height: 3px;
  background: var(--amber);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: flex-end;
}

.footer-brand-wrap { display: flex; flex-direction: column; gap: 8px; }

.footer-brand {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .accent { color: var(--amber); }

.footer-slogan {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  color: var(--amber-soft);
}

.footer-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.4);
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a {
  color: rgba(244, 241, 234, 0.6);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover { color: var(--amber); }

/* ── Painel de pilares ─────────────────────────────────────── */
.pilares {
  margin: 56px 0;
  padding: 32px 0;
  border-top: 1px solid rgba(14, 17, 22, 0.12);
  border-bottom: 1px solid rgba(14, 17, 22, 0.12);
}

.pilares h2 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--ink);
}

.pilares-legenda {
  font-size: 13px;
  color: rgba(14, 17, 22, 0.62);
  margin-bottom: 24px;
  font-style: italic;
}

.pilares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.pilar-card {
  background: var(--paper-soft);
  border: 1px solid rgba(14, 17, 22, 0.08);
  border-radius: 6px;
  padding: 20px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.pilar-card:hover {
  border-color: var(--amber);
  transform: translateY(-1px);
}

.pilar-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.pilar-num {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(14, 17, 22, 0.55);
  font-family: monospace;
}

.pilar-pct {
  font-size: 28px;
  font-weight: 600;
  color: var(--amber);
  line-height: 1;
}

.pilar-nome {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  margin: 4px 0 14px;
  color: var(--ink);
}

.pilar-bar {
  height: 6px;
  background: rgba(14, 17, 22, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}

.pilar-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber-soft), var(--amber));
  transition: width 0.4s ease;
}

.pilar-block {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 10px;
  color: rgba(14, 17, 22, 0.82);
}

.pilar-block:last-child { margin-bottom: 0; }

.pilar-block-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(14, 17, 22, 0.55);
  display: block;
  margin-bottom: 2px;
  font-family: monospace;
}

/* ── Responsivo ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .pilares-grid { grid-template-columns: 1fr; }
  .container, .container-wide { padding: 0 20px; }
  header.site-header { padding: 48px 0 40px; }
  .brand-title { font-size: 32px; }
  .brand-meta { flex-wrap: wrap; gap: 16px; }
  article.post { padding: 48px 0 64px; }
  .post-title { font-size: 32px; }
  .post-hook { font-size: 17px; padding: 24px 0; }
  .post section { margin-bottom: 48px; }
  .posts-list { padding: 40px 0 64px; }
  .post-card { padding: 24px 0; }
  .post-card-title { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  footer.site-footer { padding: 48px 0 40px; margin-top: 64px; }
  .manifesto-strip-inner { font-size: 15px; }
}

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