/* ==========================================================================
   Nítio Mendes · blog (índice e artigos)
   Mesma identidade da landing (preto + ouro, Barlow Condensed nos títulos,
   Montserrat no corpo), com leitura confortável em coluna estreita.
   Páginas geradas por ferramentas/gerar-blog.py. Tokens em css/tokens.css.
   ========================================================================== */

/* ---------- Base ---------- */
:root {
  --gutter: 16px;
  --max: 1200px;
  --narrow: 760px;
  --green: #0E7F43;     /* verde WhatsApp escurecido: texto branco 5:1 */
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { background: #000; -webkit-text-size-adjust: 100%; }
body {
  background: var(--nm-black); color: #fff;
  font-family: var(--nm-sans); font-size: 1rem; font-weight: 500; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
address { font-style: normal; }
strong, b { font-weight: 700; }
em { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--nm-gold); color: #111; }
:focus-visible { outline: 2px solid var(--nm-gold-light); outline-offset: 3px; border-radius: 4px; }

.skip { position: fixed; left: 12px; top: 12px; z-index: 200; padding: .7rem 1rem; border-radius: 6px; background: var(--nm-gold); color: #111; font-weight: 700; transform: translateY(-200%); transition: transform .2s; }
.skip:focus { transform: none; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(var(--narrow), 100% - 2 * var(--gutter)); }
.center { text-align: center; }
.kicker { font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--nm-gold); }

/* ouro metálico em texto */
.intro__t em, .cta__t em {
  background: var(--nm-gold-grad); -webkit-background-clip: text; background-clip: text;
  color: var(--nm-gold-light); -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Barra do topo ---------- */
.top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(201,152,58,.25); background: rgba(0,0,0,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__mono { width: 28px; height: 28px; }
.brand__word { font-size: .8rem; font-weight: 700; letter-spacing: .2em; }
.brand__word b { color: var(--nm-gold); }
.top__nav { display: flex; align-items: center; gap: 1.4rem; }
.top__nav > a:not(.top__cta) { display: none; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); text-decoration: none; }
.top__nav > a:not(.top__cta):hover, .top__nav > a[aria-current="page"] { color: var(--nm-gold-light); }
.top__cta { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .5rem .9rem; border-radius: var(--nm-r-pill); background: var(--green); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: filter .3s; }
.top__cta:hover { filter: brightness(1.12); }
.top__cta svg { width: 18px; height: 18px; }
@media (max-width: 479.98px) { .top__cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .top__cta { width: 44px; height: 44px; justify-content: center; padding: 0; } }
@media (min-width: 720px) { .top__nav > a:not(.top__cta) { display: inline; } }

/* ---------- Índice ---------- */
.intro { padding: clamp(3rem, 2rem + 5vw, 6rem) 0 2rem; text-align: center; }
.intro__t { margin-top: .8rem; font-family: var(--nm-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.8rem, 1.6rem + 5vw, 5rem); line-height: .95; text-wrap: balance; }
.intro__lead { max-width: 60ch; margin: 1.2rem auto 0; font-size: clamp(1rem, .96rem + .25vw, 1.12rem); line-height: 1.65; color: var(--nm-text-2); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 auto 2.2rem; max-width: 900px; }
.chip { min-height: 40px; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--nm-line-2); font-size: .76rem; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.8); transition: border-color .25s, background-color .25s, color .25s; }
.chip:hover { border-color: var(--nm-gold-line); color: #fff; }
.chip[aria-pressed="true"] { background: var(--nm-gold-grad-ui); border-color: transparent; color: #111; }

.grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.card__link { display: flex; flex-direction: column; height: 100%; padding: 1.5rem 1.4rem 1.3rem; border-radius: 14px; border: 1px solid var(--nm-gold-hair); background: linear-gradient(180deg, var(--nm-graphite) 0%, var(--nm-black-2) 100%); text-decoration: none; transition: border-color .3s, transform .4s var(--nm-ease); }
.card__link:hover { border-color: var(--nm-gold-line); transform: translateY(-3px); }
.card__meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--nm-text-3); }
.card__meta span { color: var(--nm-gold); font-weight: 700; }
.card__t { margin-top: .8rem; font-family: var(--nm-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 1.2rem + .6vw, 1.7rem); line-height: 1.02; text-wrap: balance; }
.card__ex { margin-top: .7rem; font-size: .92rem; line-height: 1.6; color: var(--nm-text-2); }
.card__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: 1.1rem; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--nm-gold-light); }
.card__more svg { width: 16px; height: 16px; transition: transform .3s var(--nm-ease); }
.card__link:hover .card__more svg { transform: translateX(4px); }

/* ---------- Artigo ---------- */
.post__head { padding: 2rem 0 2.2rem; border-bottom: 1px solid var(--nm-gold-hair); }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 2.2rem; font-size: .74rem; color: var(--nm-text-3); }
.crumbs a { color: var(--nm-text-2); text-decoration: none; }
.crumbs a:hover { color: var(--nm-gold-light); }
.post__t { margin-top: .8rem; font-family: var(--nm-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3.8rem); line-height: .98; text-wrap: balance; }
.post__ex { margin-top: 1.2rem; font-size: clamp(1.02rem, .98rem + .3vw, 1.18rem); line-height: 1.65; color: rgba(255,255,255,.86); }
.byline { display: flex; align-items: center; gap: .75rem; margin-top: 1.6rem; font-size: .8rem; color: var(--nm-text-3); }
.byline svg { width: 34px; height: 38px; flex: none; }
.byline span { display: grid; }
.byline b { color: #fff; font-size: .92rem; }

.prose { padding: 2.4rem 0 1rem; font-size: 1.05rem; line-height: 1.8; color: rgba(255,255,255,.84); }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.6rem; font-family: var(--nm-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); line-height: 1.02; color: var(--nm-gold-light); text-wrap: balance; }
.prose h3 { margin-top: 2rem; font-family: var(--nm-display); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; line-height: 1.08; color: #fff; }
.prose h2 + *, .prose h3 + * { margin-top: .8rem; }
.prose ul:not(.tags) { display: grid; gap: .6rem; }
.prose ul:not(.tags) li { position: relative; padding-left: 1.6rem; }
.prose ul:not(.tags) li::before { content: ""; position: absolute; left: .2rem; top: .7em; width: .55rem; height: .55rem; border-radius: 2px; background: var(--nm-gold-grad-ui); transform: rotate(45deg); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2.4rem !important; }
.tags li { padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--nm-line-2); font-size: .74rem; font-weight: 600; color: var(--nm-text-2); }
.share a { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nm-gold-light); text-underline-offset: 4px; }
.share svg { width: 18px; height: 18px; }

/* ---------- Chamada para o WhatsApp ---------- */
.cta { margin-top: 3rem; padding: 2.4rem 1.4rem; border-radius: var(--nm-r-card); border: 1px solid var(--nm-gold-line); background: radial-gradient(120% 90% at 50% 0%, rgba(201,152,58,.14), transparent 60%), #0b0b0b; text-align: center; }
@media (min-width: 700px) { .cta { padding: 3rem 3rem; } }
.cta__mono { width: 44px; height: 49px; margin: 0 auto 1.1rem; }
.cta__t { font-family: var(--nm-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); line-height: .98; text-wrap: balance; }
.cta p { max-width: 54ch; margin: 1rem auto 0; color: var(--nm-text-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 54px; margin-top: 1.6rem; padding: .95rem 2rem; border-radius: var(--nm-r-pill); background: var(--green); color: #fff; font-size: .88rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; transition: filter .3s, transform .35s var(--nm-ease); }
.btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn svg { width: 1.2em; height: 1.2em; }
@media (max-width: 479.98px) { .btn { width: 100%; } }

.more { padding: 4rem 0 1rem; }
.more__t { margin-bottom: 1.6rem; font-family: var(--nm-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem); text-align: center; }
.more__all { margin-top: 1.6rem; text-align: center; }
.more__all a { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--nm-gold-light); text-underline-offset: 4px; }

/* ---------- Rodapé (igual ao da landing) ---------- */
.foot { margin-top: 4rem; padding: 3.5rem 0 2.5rem; border-top: 1px solid rgba(201,152,58,.25); background: #000; font-size: .9rem; }
.foot__social { display: flex; justify-content: center; gap: .7rem; }
.foot__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--nm-gold-line); color: var(--nm-gold-light); transition: background-color .3s, color .3s; }
.foot__ic:hover { background: var(--nm-gold); color: #111; }
.foot__ic svg { width: 22px; height: 22px; }
.foot__brand { display: inline-flex; align-items: center; gap: .6rem; margin-top: 2rem; font-size: .85rem; font-weight: 700; letter-spacing: .2em; }
.foot__brand svg { width: 30px; height: 30px; }
.foot__brand b { color: var(--nm-gold); }
.foot__tag { margin-top: .5rem; font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--nm-text-3); }
.foot__addr { margin-top: 1.2rem; color: rgba(255,255,255,.8); line-height: 1.7; }
.foot__addr a { color: inherit; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.4rem; margin-top: 1rem; color: var(--nm-gold-light); font-weight: 700; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { text-decoration: underline; }
.linkbtn { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: inherit; }
.foot__copy { margin-top: 1.4rem; color: rgba(255,255,255,.85); }
.foot__legal { margin-top: .6rem; font-size: .76rem; color: var(--nm-text-3); }

/* ---------- Aviso de cookies (mesmo da landing) ---------- */
.consent { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(20px + env(safe-area-inset-bottom)); max-width: 560px; margin-inline: auto; padding: 1.1rem 1.2rem; border-radius: 10px; background: #161616; border: 1px solid var(--nm-gold-line); box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); font-size: .88rem; color: rgba(255,255,255,.85); transform: translateY(140%); opacity: 0; transition: transform .5s var(--nm-ease), opacity .3s; }
.consent.is-open { transform: none; opacity: 1; }
.consent a { color: var(--nm-gold-light); }
.consent__actions { display: flex; gap: .5rem; margin-top: .9rem; }
.consent__btn { flex: 1; min-height: 44px; padding: .6rem .9rem; border-radius: 6px; border: 1px solid var(--nm-line-2); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.consent__btn--ok { background: var(--nm-gold-grad-ui); color: #111; border-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
