/* Vinq · Blog
   Exceção aprovada ao "escuro do início ao fim" do VINQ-DESIGN-GUIDE.md: o blog é claro, para leitura longa.
   Mantém a identidade: laranja raro como luz, Playfair só no H1 e nos títulos de seção, Inter fina nos títulos
   de card, JetBrains Mono nos rótulos. O único bloco escuro é o convite para o diagnóstico. */
:root {
  --bg: #FFFFFF;
  --surface-1: #F7F7F5;
  --surface-2: #EFEFEC;
  --border: #E6E6E2;
  --border-strong: #D3D3CE;
  --text: #09090A;
  --text-2: #45474D;
  --text-3: #6B6E74;
  --orange: #FF4000;
  --ember: #FF6A33;
  --orange-ink: #C93200;       /* laranja para texto pequeno sobre branco (contraste 4,9:1) */
  --orange-soft: rgba(255, 64, 0, 0.08);
  --glow: rgba(255, 64, 0, 0.55);
  --on-orange: #0C0D11;
  --dark: #09090A;
  --dark-text: #F3F2EF;
  --dark-text-2: #A3A5AA;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --radius-card: 20px;
  --radius-panel: 14px;
  --radius-input: 12px;
  --radius-pill: 999px;
  --max: 1160px;
  --prosa: 700px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p, ul, ol, figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
::selection { background: var(--orange); color: var(--on-orange); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--orange); color: var(--on-orange); padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }

/* Títulos */
.h1 { font-family: var(--font-serif); font-size: clamp(36px, 5.2vw, 60px); line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.h2 { font-family: var(--font-serif); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.015em; }
em.spark { font-style: italic; color: var(--orange); }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--text-2); max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 11px; font-size: 10px; letter-spacing: 0.16em;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--text-2); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--glow); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 24px; border-radius: var(--radius-pill);
  font: 600 15px/1 var(--font-sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: var(--ember); box-shadow: 0 0 32px var(--glow); }
.btn-secondary { background: var(--bg); border-color: var(--border-strong); color: var(--text); font-weight: 500; }
.btn-secondary:hover { border-color: var(--text); }
.arrow { display: inline-flex; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--border-strong); text-decoration: none; color: var(--text); transition: color .2s, border-color .2s; }
.arrow:hover { color: var(--orange-ink); border-color: var(--orange); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; letter-spacing: inherit; text-transform: inherit; }

/* Navegação */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; }
.wordmark img { height: 17px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-right: auto; margin-left: 16px; }
.nav-links a { font-size: 14px; color: var(--text-2); text-decoration: none; padding: 10px 0; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--orange); }

/* Migalhas */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-3); font-size: 10px; letter-spacing: 0.16em; }
.crumbs a { text-decoration: none; color: var(--text-3); padding: 6px 0; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text-2); }

/* Cabeçalho das listas */
.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(28px, 4vw, 48px); display: grid; gap: 22px; justify-items: start; }
.temas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: var(--radius-pill); border: 1px solid var(--border);
  font-size: 14px; color: var(--text-2); text-decoration: none; transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--bg); }

/* Lista de artigos */
.lista { padding-bottom: clamp(40px, 6vw, 72px); }
.lista > .h2 { margin-bottom: 28px; }
.destaque { display: grid; gap: 16px; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--text); border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.destaque-t { font-family: var(--font-serif); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.015em; max-width: 900px; text-wrap: balance; }
.destaque-t a, .card-t a { text-decoration: none; background-image: linear-gradient(var(--orange), var(--orange)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ease); }
.destaque-t a:hover, .card-t a:hover { background-size: 100% 1px; }
.destaque-d { color: var(--text-2); font-size: 17px; max-width: 760px; }
.destaque .arrow { justify-self: start; margin-top: 4px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.card { display: grid; align-content: start; gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text-3); font-size: 10px; letter-spacing: 0.14em; }
.card-tema { color: var(--orange-ink); }
.card-t { font-size: clamp(20px, 1.8vw, 23px); font-weight: 200; line-height: 1.3; letter-spacing: -0.01em; }
.card-d { color: var(--text-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.paginas { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; color: var(--text-3); }
.paginas a { color: var(--text); text-decoration: none; padding: 10px 0; }
.vazio { padding: 48px 0; border-top: 1px solid var(--text); display: grid; gap: 10px; color: var(--text-2); }
.vazio-t { font-size: 24px; font-weight: 200; color: var(--text); }

/* Artigo */
.art-head { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(24px, 3vw, 36px); display: grid; gap: 20px; max-width: calc(var(--prosa) + 300px + var(--gutter) * 2); margin-left: auto; margin-right: auto; }
.art-head .art-t { max-width: 900px; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.byline-nome { font-weight: 500; font-size: 15px; text-decoration: none; }
.byline-nome:hover { color: var(--orange-ink); }
.byline-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--text-3); font-size: 10px; margin-top: 2px; }
.capa { margin-bottom: clamp(24px, 4vw, 40px); max-width: calc(var(--prosa) + 300px + var(--gutter) * 2); }
.capa img { width: 100%; border-radius: var(--radius-card); border: 1px solid var(--border); aspect-ratio: 1200 / 630; object-fit: cover; }

.art-grid { display: grid; grid-template-columns: minmax(0, var(--prosa)) 240px; gap: 60px; justify-content: center; max-width: calc(var(--prosa) + 300px + var(--gutter) * 2); padding-bottom: clamp(40px, 6vw, 72px); }
.art-main { min-width: 0; display: grid; gap: clamp(32px, 4vw, 44px); align-content: start; }
.art-grid:not(:has(.art-side)) { grid-template-columns: minmax(0, var(--prosa)); }
.art-side { position: relative; }
.toc-side { position: sticky; top: 100px; display: grid; gap: 14px; padding-left: 20px; border-left: 1px solid var(--border); }
.toc-side .mono { color: var(--text-3); font-size: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: toc; }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 26px 1fr; font-size: 14px; line-height: 1.4; }
.toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 10px; color: var(--text-3); padding-top: 3px; }
.toc a { text-decoration: none; color: var(--text-2); transition: color .2s; }
.toc a:hover, .toc a.ativo { color: var(--text); }
.toc li:has(a.ativo)::before { color: var(--orange-ink); }
.toc-mobile { display: none; border: 1px solid var(--border); border-radius: var(--radius-panel); padding: 0 18px; }
.toc-mobile summary { cursor: pointer; list-style: none; padding: 16px 0; color: var(--text-2); display: flex; justify-content: space-between; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "+"; font-size: 16px; line-height: 1; }
.toc-mobile[open] summary::after { content: "−"; }
.toc-mobile ol { padding-bottom: 18px; }

.resposta { background: var(--surface-1); border-radius: var(--radius-panel); padding: 22px 24px 24px; box-shadow: inset 2px 0 0 var(--orange); display: grid; gap: 10px; }
.resposta h2 { color: var(--orange-ink); font-size: 10px; letter-spacing: 0.16em; }
.resposta-t { font-size: clamp(18px, 1.7vw, 20px); line-height: 1.55; color: var(--text); }

/* Texto do artigo */
.prosa { font-size: 18px; line-height: 1.75; color: #1C1D20; }
.prosa > * + * { margin-top: 1.15em; }
.prosa > :first-child { margin-top: 0; }
.prosa h2 { font-family: var(--font-serif); font-size: clamp(26px, 2.8vw, 32px); line-height: 1.15; letter-spacing: -0.01em; color: var(--text); margin-top: 2em; }
.prosa h3 { font-size: 20px; font-weight: 600; line-height: 1.35; color: var(--text); margin-top: 1.8em; }
.prosa h4 { font-size: 17px; font-weight: 600; margin-top: 1.6em; }
.prosa h2 + *, .prosa h3 + *, .prosa h4 + * { margin-top: 0.6em; }
.prosa a { color: var(--text); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
.prosa a:hover { color: var(--orange-ink); }
.prosa strong { font-weight: 600; color: var(--text); }
.prosa ul, .prosa ol { padding-left: 1.3em; display: grid; gap: 0.5em; }
.prosa ul li::marker { color: var(--orange); }
.prosa ol li::marker { font-family: var(--font-mono); font-size: 0.8em; color: var(--text-3); }
.prosa blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; box-shadow: inset 2px 0 0 var(--orange); font-size: clamp(20px, 2vw, 23px); font-weight: 200; line-height: 1.45; color: var(--text); }
.prosa blockquote > * + * { margin-top: 0.8em; }
.prosa blockquote strong { font-weight: 500; }
.prosa code { font-family: var(--font-mono); font-size: 0.82em; background: var(--surface-1); border: 1px solid var(--border); border-radius: 6px; padding: 0.1em 0.4em; }
.prosa pre { background: var(--dark); color: var(--dark-text); border-radius: var(--radius-panel); padding: 20px 22px; overflow-x: auto; font-size: 14.5px; line-height: 1.65; }
.prosa pre code { background: none; border: 0; padding: 0; font-size: inherit; white-space: pre-wrap; word-break: break-word; }
.prosa hr { border: 0; height: 1px; background: var(--border); margin: 2.4em 0; }
.prosa figure { margin: 2em 0; }
.prosa figure img, .prosa p img { border-radius: var(--radius-panel); border: 1px solid var(--border); }
.prosa figcaption { margin-top: 10px; font-size: 14px; color: var(--text-3); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-panel); }
.prosa table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prosa th, .prosa td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prosa th { font-family: var(--font-mono); font-weight: 500; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); background: var(--surface-1); }
.prosa tr:last-child td { border-bottom: 0; }

/* Blocos depois do texto */
.pontos { border-top: 1px solid var(--text); padding-top: 24px; display: grid; gap: 16px; }
.pontos h2, .faq > h2 { font-family: var(--font-serif); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; }
.pontos ul { list-style: none; padding: 0; display: grid; }
.pontos li { position: relative; padding: 14px 0 14px 22px; border-bottom: 1px solid var(--border); font-size: 16px; color: var(--text-2); }
.pontos li::before { content: ""; position: absolute; left: 0; top: 23px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.faq { display: grid; gap: 10px; }
.faq > h2 { margin-bottom: 8px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-panel); transition: border-color .2s; }
.faq details[open] { border-color: rgba(255, 64, 0, 0.35); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 16px; font-weight: 500; line-height: 1.45; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-strong); font-size: 16px; line-height: 1; }
.faq details[open] summary::after { content: "−"; border-color: rgba(255, 64, 0, 0.35); color: var(--orange-ink); }
.faq details p { padding: 0 20px 20px; color: var(--text-2); font-size: 16px; }
.fontes { display: grid; gap: 12px; }
.fontes h2 { color: var(--text-3); font-size: 10px; }
.fontes ol { padding-left: 1.4em; display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.fontes a { color: var(--text-2); text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.fontes a:hover { color: var(--text); text-decoration-color: var(--orange); }

.autor-box { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start; padding: 24px; background: var(--surface-1); border-radius: var(--radius-card); }
.autor-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.autor-box > div { display: grid; gap: 4px; }
.autor-box .mono { color: var(--text-3); font-size: 10px; }
.autor-nome { font-size: 20px; font-weight: 200; text-decoration: none; }
.autor-nome:hover { color: var(--orange-ink); }
.autor-box p { color: var(--text-2); font-size: 15px; margin-top: 4px; }
.art-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; color: var(--text-3); font-size: 10px; }
.art-tools a, .art-tools .link-btn { color: var(--text-2); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.art-tools a:hover, .art-tools .link-btn:hover { color: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-right: auto; }

/* Convite para o diagnóstico: o único bloco escuro, com a luz da marca */
.cta { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 18px; justify-items: center; text-align: center;
  background: var(--dark); color: var(--dark-text); border-radius: var(--radius-card); padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); margin-bottom: clamp(48px, 6vw, 80px); }
.cta::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -60%; width: 120%; height: 100%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 64, 0, 0.42), rgba(255, 64, 0, 0.1) 60%, transparent); filter: blur(10px); }
.cta .eyebrow { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); color: var(--dark-text-2); }
.cta-t { font-family: var(--font-serif); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.015em; max-width: 720px; text-wrap: balance; }
.cta-t em { font-style: italic; color: var(--orange); }
.cta p { color: var(--dark-text-2); max-width: 600px; text-wrap: balance; }
.cta .btn { margin-top: 6px; }

.relacionados { padding-bottom: clamp(48px, 6vw, 80px); }
.relacionados .h2 { margin-bottom: 8px; }

/* Autor */
.autor-top { display: flex; align-items: center; gap: 24px; }
.autor-top img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.autor-cargo { color: var(--text-3); margin-top: 10px; font-size: 10px; }

/* Rodapé */
.foot { border-top: 1px solid var(--border); padding: 56px 0 32px; background: var(--surface-1); }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand img { height: 16px; width: auto; }
.foot-brand p { margin-top: 16px; font-size: 14px; color: var(--text-3); max-width: 280px; }
.foot h2 { color: var(--text-3); font-size: 11px; margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.foot li a { font-size: 14px; color: var(--text-2); text-decoration: none; display: inline-block; padding: 5px 0; }
.foot li a:hover { color: var(--text); }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 10px; }

/* Aviso de cookies */
.cookie { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; width: min(720px, calc(100% - 32px));
  display: flex; align-items: center; gap: 20px; padding: 16px 20px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-panel);
  box-shadow: 0 20px 60px -20px rgba(9, 9, 10, 0.25); font-size: 14px; color: var(--text-2); }
.cookie[hidden] { display: none; }
.cookie a { color: var(--text); }
.cookie .btn-row { display: flex; gap: 8px; flex: none; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; background: var(--dark); color: var(--dark-text); padding: 10px 18px; border-radius: var(--radius-pill); font-size: 14px; }
.toast[hidden] { display: none; }

/* Responsivo */
@media (max-width: 1099px) {
  .art-grid { grid-template-columns: minmax(0, var(--prosa)); }
  .art-side { display: none; }
  .toc-mobile { display: block; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .nav-links { display: none; }
  .grid { grid-template-columns: 1fr; }
  .prosa { font-size: 17px; }
  .foot-cols { grid-template-columns: 1fr; gap: 28px; }
  .foot-legal { flex-direction: column; }
  .cta .btn { width: 100%; }
  .autor-box { grid-template-columns: 1fr; }
  .autor-top { flex-direction: column; align-items: flex-start; }
  .autor-top img { width: 88px; height: 88px; }
  .cookie { flex-direction: column; align-items: stretch; gap: 12px; left: 8px; right: 8px; bottom: 8px; transform: none; width: auto; font-size: 13px; }
  .cookie .btn-row .btn { flex: 1; }
}
@media (max-width: 400px) {
  .nav .btn-sm { padding: 10px 14px; font-size: 13px; }
}
