/* ==========================================================================
   O Valter Furtado · Blog — folha de estilo do site público
   Mesmo sistema de design do site (src/assets/css/main.css do site
   estático): branco e um cinza levemente rosado, uma família tipográfica
   (Hanken Grotesk), o logo de código de barras em preto e o magenta da
   marca só em detalhe — a linha de leitura e os pontos.

   Cabeçalho, rodapé, botões, rótulos e o topo das páginas internas são
   cópia das regras do site, com os mesmos nomes de classe: quem lê um
   artigo não sente que saiu do site. O que é só do blog (cartões,
   artigo, sumário, tabelas, newsletter, comentários) segue os mesmos
   tokens.

   Sem inline style em lugar nenhum: a CSP é style-src 'self', sem
   unsafe-inline (SECURITY_RULES.md §17).
   ========================================================================== */

/* ---------- Fonte (auto-hospedada, só latim) ---------- */
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../fonts/hanken-grotesk-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens (os mesmos do site) ---------- */
:root {
  color-scheme: light;
  --mist: #dccfd6;
  --mist-2: #f5eff2;
  --paper: #ffffff;
  --ink: #0a0910;
  --text-2: #3b373d;
  --muted: #57505a; /* 7,9:1 no branco e 5,2:1 no rosado */
  --hl: #f1dfe8;
  --line: #e8e0e4;
  --line-mist: rgba(10, 9, 16, 0.14);
  --tag: #cdbfc7;
  --white-type: #f7f4f6;
  --magenta: #ff10b0;
  --error: #b3123d;
  --ok: #17663b;
  --warn-bg: #fbf3e2;
  --warn-line: #e9d3a4;
  --font: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pad: clamp(20px, 5.5vw, 80px);
  --header-h: 92px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r: 16px;
  --r-sm: 12px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  /* rede de proteção: nada empurra a página para o lado no celular */
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
svg,
picture {
  display: block;
  max-width: 100%;
}
/* height: auto — o <img> leva width/height do arquivo para reservar a
   caixa (CLS zero); sem isto, a altura do atributo deforma a imagem
   quando max-width encolhe a largura. */
img {
  height: auto;
}
a {
  color: inherit;
}
p,
h1,
h2,
h3,
h4,
figure,
dl,
dd,
blockquote {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 500;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--ink);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
main:focus {
  outline: none;
}
.sr-only,
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.list-reset {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nowrap {
  white-space: nowrap;
}
.tabular,
.tnum {
  font-variant-numeric: tabular-nums;
}
.skip-link {
  position: absolute;
  z-index: 100;
  left: 16px;
  top: -80px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}
.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Tipografia ---------- */
.h1 {
  font-size: clamp(40px, 1.4rem + 3.6vw, 86px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(30px, 1.4rem + 1.4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.14;
  text-wrap: balance;
}
.h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.h1 em,
.h2 em,
.svc__title em {
  font-style: normal;
}
.lead {
  max-width: 42em;
  color: var(--text-2);
  font-size: clamp(19px, 1rem + 0.45vw, 23px);
  letter-spacing: -0.01em;
  line-height: 1.45;
}
.label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-transform: uppercase;
}
.muted {
  color: var(--muted);
}
/* etiqueta: contorno em pílula */
.tag {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--tag);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}
a.tag:hover {
  border-color: var(--ink);
  background: var(--hl);
}
.mini-barcode {
  width: auto;
  height: 14px;
  color: var(--ink);
}
.code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.btn:hover {
  background: #2b2830;
}
.btn .icon {
  flex: none;
}
/* nomes herdados do CMS da Vita: --solid é o botão padrão */
.btn--solid {
  background: var(--ink);
  color: #fff;
}
.btn--outline,
.btn--line {
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
}
.btn--outline:hover,
.btn--line:hover {
  background: var(--ink);
  color: #fff;
}
.btn--light,
.btn--onDark {
  background: var(--mist-2);
  color: var(--ink);
}
.btn--light:hover,
.btn--onDark:hover {
  background: #fff;
}
.btn--ghost-light {
  border: 1px solid #4a464e;
  background: transparent;
  color: #fff;
}
.btn--ghost-light:hover {
  border-color: #fff;
  background: transparent;
}
.btn--big {
  min-height: 64px;
  padding: 0 40px;
}
.btn--sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}
.btn--block {
  width: 100%;
}
.btn[aria-busy='true'],
.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  text-decoration: none;
}
.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
/* botão redondo com seta */
.circle {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  transition:
    background-color 0.25s,
    color 0.25s;
}

/* ---------- Cabeçalho (igual ao do site) ---------- */
.site-header {
  position: absolute;
  z-index: 70;
  inset: 0 0 auto;
}
.site-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.logo {
  display: block;
  color: var(--ink);
}
.logo svg {
  width: 136px;
  height: auto;
}
.barcode .bc-text {
  font-family: var(--font);
  font-weight: 700;
}
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__item {
  position: relative;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  border: 0;
  background: none;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
}
.nav__link:hover,
.nav__link[aria-current='page'],
.nav__link[aria-current='true'],
.nav__link[aria-expanded='true'] {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.nav__link .icon {
  transition: transform 0.3s var(--ease);
}
.nav__link[aria-expanded='true'] .icon {
  transform: rotate(180deg);
}
/* painel de Soluções */
.drop {
  position: absolute;
  z-index: 5;
  top: calc(100% + 12px);
  left: -24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 28px;
  width: max-content;
  padding: 26px 28px;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--line),
    0 24px 60px -24px rgba(10, 9, 16, 0.3);
}
.drop[hidden] {
  display: none;
}
.drop__title {
  margin-bottom: 10px;
}
.drop__list a {
  display: block;
  padding: 6px 0;
  font-size: 16px;
  text-decoration: none;
}
.drop__list a:hover,
.drop__list a[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.drop__all {
  display: inline-flex;
  margin-top: 8px;
  font-size: 15px;
}
/* idioma */
.lang {
  position: relative;
}
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-mist);
  border-radius: 999px;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.lang__btn:hover {
  border-color: var(--ink);
}
.lang__menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--line),
    0 20px 50px -20px rgba(10, 9, 16, 0.3);
}
.lang__menu[hidden] {
  display: none;
}
.lang__menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  text-decoration: none;
}
.lang__menu a:hover,
.lang__menu a[aria-current='true'] {
  background: var(--mist-2);
}

/* Botão redondo do menu (aparece depois do topo; no celular, sempre) */
.menu-btn {
  position: fixed;
  z-index: 75;
  top: 24px;
  right: 24px;
  display: grid;
  place-content: center;
  gap: 9px;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.6);
  transition:
    opacity 0.35s,
    transform 0.5s var(--ease);
}
.menu-btn__bar {
  display: block;
  width: 36px;
  height: 2px;
  background: #fff;
  transition: transform 0.4s var(--ease);
}
.menu-btn[aria-expanded='true'] .menu-btn__bar:first-of-type {
  transform: translateY(5.5px) rotate(45deg);
}
.menu-btn[aria-expanded='true'] .menu-btn__bar:last-of-type {
  transform: translateY(-5.5px) rotate(-45deg);
}
.past-top .menu-btn,
.menu-btn[aria-expanded='true'] {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
/* menu em tela cheia */
.menu {
  position: fixed;
  z-index: 72;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-content: center;
  gap: 40px 64px;
  padding: 120px var(--pad) 48px;
  overflow-y: auto;
  background: var(--ink);
  color: #fff;
}
.menu[hidden] {
  display: none;
}
.menu__list > li > a,
.menu__list > li > button {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.menu__list > li > a:hover,
.menu__list > li > button:hover,
.menu__list a[aria-current='page'] {
  color: var(--mist);
}
.menu__list > li > button .icon {
  width: 0.5em;
  height: 0.5em;
  transition: transform 0.35s var(--ease);
}
.menu__list > li > button[aria-expanded='true'] .icon {
  transform: rotate(45deg);
}
.menu__sub {
  display: grid;
  gap: 2px;
  margin: 6px 0 18px;
  padding: 0 0 0 4px;
  list-style: none;
}
.menu__sub[hidden] {
  display: none;
}
.menu__sub a {
  color: #d7d2d9;
  font-size: 20px;
  text-decoration: none;
}
.menu__sub a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.menu__side {
  display: grid;
  align-content: end;
  gap: 28px;
  color: #c9c3cc;
}
.menu__side .label {
  color: #a59fa9;
}
.menu__langs {
  display: flex;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.menu__langs a {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #4a464e;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
}
.menu__langs a[aria-current='true'] {
  border-color: #fff;
}
.menu__contact a {
  display: block;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
}
.menu__contact a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.menu-open {
  overflow: hidden;
}
.menu :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}

/* "Vamos conversar" flutuante */
.float-cta {
  position: fixed;
  z-index: 60;
  right: 30px;
  bottom: 30px;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition:
    opacity 0.35s,
    transform 0.5s var(--ease),
    background-color 0.25s;
}
.float-cta:hover {
  background: #2b2830;
}
.float-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* ---------- Topo das páginas (igual às páginas internas do site) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(20px, 3vw, 44px)) 0 clamp(56px, 7vw, 100px);
  background: var(--mist);
}
.page-hero__main {
  display: grid;
  justify-items: start;
}
.page-hero .h1 {
  max-width: 15ch;
}
/* títulos compridos: coluna mais larga para não passar de 3 ou 4 linhas */
.page-hero .h1--long {
  max-width: 18ch;
}
.page-hero .h1--xlong {
  max-width: 22ch;
  font-size: clamp(34px, 1.2rem + 3vw, 72px);
}
.page-hero .lead {
  margin-top: 26px;
}
.page-hero .actions {
  margin-top: 34px;
}
.page-hero__main > .label {
  margin-bottom: 18px;
}
.hero-count {
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
}
.crumbs {
  margin-bottom: 30px;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
}
.crumbs li + li::before {
  content: '/';
  margin-right: 8px;
  color: #8f8389;
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Navegação do blog (pílulas no topo rosado) ---------- */
.blognav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-bottom: clamp(40px, 6vw, 80px);
  padding-top: 18px;
  border-top: 1px solid var(--line-mist);
}
.blognav__home {
  color: var(--ink);
  text-decoration: none;
}
.blognav__home:hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.blognav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-mist);
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.pill:hover {
  border-color: var(--ink);
}
.pill[aria-current] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* ---------- Seções ---------- */
.section {
  padding-block: clamp(80px, 9vw, 140px);
}
.section--tight {
  padding-block: clamp(48px, 6vw, 88px);
}
.section--flush-top {
  padding-top: 0;
}
.section--mist {
  background: var(--mist);
}
.section--post {
  padding-block: clamp(40px, 5vw, 72px) clamp(80px, 9vw, 120px);
}
.sechead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px 32px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.empty {
  max-width: 34em;
  color: var(--text-2);
  font-size: clamp(19px, 1rem + 0.45vw, 23px);
  line-height: 1.45;
}
.empty a {
  text-underline-offset: 4px;
}

/* ---------- Cartões de publicação ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--mist-2);
}
/* o <picture> precisa ocupar a moldura inteira, senão a imagem fica com a
   altura natural e sobra fundo embaixo */
.thumb picture,
.ig__card picture {
  width: 100%;
  height: 100%;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.thumb--top img {
  object-position: 50% 20%;
}
.thumb--bottom img {
  object-position: 50% 80%;
}
/* detalhe da marca: a linha de leitura de código de barras atravessa a
   imagem no hover — o mesmo efeito dos projetos do site */
.thumb::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(transparent calc(50% - 1px), var(--magenta) calc(50% - 1px), var(--magenta) calc(50% + 1px), transparent calc(50% + 1px));
  opacity: 0;
  transform: translateY(-50%);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover .thumb img {
    transform: scale(1.03);
  }
  .card:hover .thumb::after {
    animation: scan 1.2s var(--ease) both;
  }
}
@keyframes scan {
  0% {
    opacity: 1;
    transform: translateY(-50%);
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(50%);
  }
}
.card h2,
.card h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.card h2 a,
.card h3 a {
  text-decoration: none;
}
.card h2 a:hover,
.card h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.cat {
  align-self: start;
  text-decoration: none;
}
a.cat:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.card__lead {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.5;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  color: var(--muted);
  font-size: 15px;
}
/* o "·" fica no fim do item anterior: se a linha quebrar, ela termina
   no ponto em vez de a próxima começar com ele */
.meta > :not(:last-child)::after {
  content: '·';
  margin-inline: 10px;
  color: #8f8389;
}
.meta a {
  text-decoration: none;
}
.meta a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.card--lg .thumb {
  aspect-ratio: 16 / 10;
}
.card--lg h2 {
  font-size: clamp(28px, 1.2rem + 1.3vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.card--lg .card__lead {
  max-width: 40em;
  font-size: clamp(17px, 1rem + 0.2vw, 19px);
}
.card--md .thumb {
  aspect-ratio: 3 / 2;
}
.card--md h3 {
  font-size: 23px;
  line-height: 1.22;
}
.card--row {
  flex-direction: row;
  gap: 18px;
  align-items: flex-start;
}
.card--row .thumb {
  flex: none;
  width: 120px;
  aspect-ratio: 4 / 3;
}
.card--row .card__body {
  gap: 6px;
}
.card--row h3 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.012em;
}
.card--row .cat {
  font-size: 12px;
}

/* ---------- Destaque da home ---------- */
.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
}
.featured__side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.featured__side .card--row + .card--row {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* ---------- Grades ---------- */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: clamp(40px, 4vw, 56px) clamp(24px, 2.6vw, 40px);
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- Coluna lateral ---------- */
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(40px, 5vw, 96px);
  align-items: start;
}
/* Item de grade encolhe até a tela. Sem isto, o conteúdo mais largo — a
   tabela do post, que rola dentro da própria caixa — alargava a coluna
   e a PÁGINA inteira no celular. */
:is(.cols, .featured, .grid-2, .grid-3, .grid-4, .site-footer__grid, .form__row, .topics) > * {
  min-width: 0;
}
.side {
  position: sticky;
  top: 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.side__box {
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}
.side__title {
  margin-bottom: 14px;
}
/* mais lidos — a numeração É o dado (ranking) */
.rank {
  counter-reset: r;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rank li {
  counter-increment: r;
  display: flex;
  gap: 16px;
  padding-block: 14px;
}
.rank li + li {
  border-top: 1px solid var(--line);
}
.rank li::before {
  content: counter(r, decimal-leading-zero);
  flex: none;
  width: 28px;
  color: var(--muted);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.rank a {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}
.rank a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.rank time {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}
.linklist li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}
.linklist a {
  text-decoration: none;
}
.linklist a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.linklist small {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Editorias (home) ---------- */
.topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.topic {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: 10px 20px;
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line);
}
.topics > .topic:nth-child(odd) {
  padding-right: clamp(16px, 2.4vw, 36px);
}
.topics > .topic:nth-child(even) {
  padding-left: clamp(16px, 2.4vw, 36px);
  border-left: 1px solid var(--line);
}
.topic__title {
  grid-column: 1;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.topic__title a {
  text-decoration: none;
}
/* o cartão inteiro é o link (o título estica a área de clique) */
.topic__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.topic__text {
  grid-column: 1;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.5;
}
.topic__count {
  grid-column: 1;
  color: var(--muted);
  font-size: 14px;
}
.topic .circle {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: start;
}
.topic:hover .circle,
.topic:focus-within .circle {
  background: var(--ink);
  color: #fff;
}
.topic:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.topic__title a:focus-visible {
  outline: none;
}

/* ---------- Newsletter (cartão escuro) ---------- */
.news {
  padding: clamp(24px, 2.4vw, 32px);
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
}
.news__label {
  color: #a9a2ad;
}
.news__title {
  margin: 10px 0 10px;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.news p {
  margin-bottom: 20px;
  color: #cfc9d2;
  font-size: 16px;
  line-height: 1.5;
}
.news .input {
  margin-bottom: 10px;
  border-color: #4a464e;
  background: #17151c;
  color: #fff;
}
.news .input::placeholder {
  color: #8f8894;
}
.news .input:focus {
  border-color: #fff;
  outline-color: #fff;
}
.news :focus-visible {
  outline-color: #fff;
}
.news small {
  display: block;
  margin-top: 14px;
  color: #a9a2ad;
  font-size: 14px;
  line-height: 1.45;
}
.news__ok {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: #1e1b22;
  color: #fff;
  font-size: 15px;
}
.news__err {
  margin-top: 8px;
  color: #ff9ab7;
  font-size: 15px;
}
/* Honeypot: fora da tela, invisível para humano e para leitor de tela,
   mas preenchível por robô que percorre o DOM. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* ---------- Formulários ---------- */
.input,
.textarea {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid var(--tag);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 17px;
  line-height: 1.4;
}
.textarea {
  min-height: 160px;
  resize: vertical;
}
.input:focus,
.textarea:focus {
  border-color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: 0;
}
.input::placeholder,
.textarea::placeholder {
  color: #8a8088;
}
.form {
  display: grid;
  gap: 20px;
  max-width: 44rem;
  margin-top: 28px;
}
.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.field {
  display: grid;
  align-content: start;
  gap: 8px;
}
.field label {
  font-size: 16px;
  font-weight: 500;
}
.field__hint {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}
.field--bad .input,
.field--bad .textarea {
  border-color: var(--error);
}
.field__err {
  color: var(--error);
  font-size: 14px;
  font-weight: 500;
}
.form .meta {
  display: block;
  font-size: 14px;
}
.flash {
  padding: 16px 18px;
  border-radius: var(--r-sm);
  background: #e8f3ec;
  color: var(--ok);
  font-size: 16px;
}
.flash--warn {
  background: var(--warn-bg);
  color: #6b4f12;
}

/* ---------- Artigo ---------- */
.page-hero--post .post__head {
  display: grid;
  justify-items: start;
}
.post__head .cat {
  margin-bottom: 18px;
}
.post__dek {
  max-width: 36em;
}
.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}
.byline__avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--mist-2);
}
.byline__txt {
  font-size: 17px;
  line-height: 1.35;
}
.byline__txt strong {
  font-weight: 500;
}
.byline__txt a {
  text-decoration: none;
}
.byline__txt a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.byline .meta {
  margin-top: 4px;
}
/* A capa mora no topo rosado, logo depois do título (é o que o celular
   mostra). No computador ela vai para depois da assinatura, como antes,
   e na tela larga fica da largura da coluna do texto. */
.page-hero--post .cover {
  width: 100%;
  margin: 0;
}
@media (min-width: 761px) {
  .page-hero--post .cover {
    order: 1;
    margin-top: clamp(40px, 4vw, 56px);
  }
}
@media (min-width: 1101px) {
  .page-hero--post .cover {
    max-width: calc(100% - 340px - clamp(40px, 5vw, 96px));
  }
}
.cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.cover figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

/* barra fina de progresso de leitura: a linha magenta do código de barras */
.progress {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--magenta);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.toc {
  margin-bottom: clamp(36px, 4vw, 52px);
  padding: 24px 28px;
  border-radius: var(--r);
  background: var(--mist-2);
}
.toc__title {
  margin-bottom: 14px;
}
.toc ol {
  counter-reset: t;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc li {
  counter-increment: t;
  display: flex;
  gap: 12px;
  font-size: 17px;
  line-height: 1.4;
}
.toc li::before {
  content: counter(t, decimal-leading-zero);
  flex: none;
  color: var(--muted);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  line-height: 1.55;
}
.toc li[data-level='3'] {
  padding-left: 20px;
}
.toc a {
  text-decoration: none;
}
.toc a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.toc a[aria-current] {
  font-weight: 600;
}
.toc a[aria-current]::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--magenta);
  vertical-align: 0.15em;
}

/* resposta direta — o bloco que a busca e a IA citam */
.resposta-direta {
  margin-bottom: clamp(32px, 4vw, 48px);
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--ink);
  color: var(--ink);
  font-size: clamp(20px, 1rem + 0.5vw, 24px);
  letter-spacing: -0.012em;
  line-height: 1.45;
}

/* ---------- Corpo do texto ---------- */
.prose {
  max-width: 46rem;
  overflow-wrap: break-word; /* link ou palavra longa quebra, não alarga a página */
  color: var(--text-2);
  font-size: clamp(18px, 1rem + 0.25vw, 20px);
  line-height: 1.7;
}
.prose > :first-child {
  margin-top: 0;
}
.prose strong,
.prose b {
  color: var(--ink);
  font-weight: 600;
}
.prose h2,
.prose h3,
.prose h4 {
  color: var(--ink);
  font-weight: 500;
  scroll-margin-top: 24px;
  text-wrap: balance;
}
.prose h2 {
  margin: 1.9em 0 0.6em;
  font-size: clamp(28px, 1.2rem + 1vw, 38px);
  letter-spacing: -0.028em;
  line-height: 1.16;
}
.prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: clamp(22px, 1.1rem + 0.5vw, 27px);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.prose h4 {
  margin: 1.4em 0 0.4em;
  font-size: 20px;
  letter-spacing: -0.012em;
}
.prose p {
  margin-bottom: 1.1em;
}
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.prose a:hover {
  background: var(--hl);
}
.prose ul,
.prose ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 1.3em;
  padding: 0;
  list-style: none;
}
/* marcador: um ponto magenta, o detalhe de cor da marca */
.prose ul li {
  position: relative;
  padding-left: 22px;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
}
.prose ol {
  counter-reset: n;
}
.prose ol li {
  position: relative;
  padding-left: 34px;
  counter-increment: n;
}
.prose ol li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.12em;
  color: var(--muted);
  font-size: 0.85em;
  font-variant-numeric: tabular-nums;
}
.prose li > ul,
.prose li > ol {
  margin: 10px 0 0;
}
.prose figure,
.prose .fig {
  margin: 2em 0;
}
.prose figcaption,
.fig__cap {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.prose blockquote {
  margin: 2em 0;
  padding-left: 24px;
  border-left: 2px solid var(--ink);
  color: var(--ink);
  font-size: clamp(22px, 1.1rem + 0.7vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.32;
}
.prose blockquote p {
  margin-bottom: 0;
}
.prose blockquote p + p {
  margin-top: 0.6em;
}
.prose hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--mist-2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.86em;
}
.prose pre {
  margin: 2em 0;
  padding: 20px 22px;
  overflow-x: auto;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #f2eef4;
  font-size: 15px;
  line-height: 1.6;
}
.prose pre code {
  padding: 0;
  background: none;
  color: inherit;
}

/* Tabela do corpo do texto.
   Cartão branco com contorno, legenda como título, cabeçalho em tinta,
   linhas alternadas no rosado claro e a primeira coluna em negrito (é o
   rótulo da linha num comparativo). O contêiner rola na horizontal
   quando a tabela não cabe — espremer quatro colunas em 360px deixa
   uma palavra por linha. */
.prose .tabela-rolagem {
  margin: 2em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  container-type: inline-size; /* a legenda mede a caixa (100cqw), não a tabela */
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
}
.prose .tabela-rolagem:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.prose table,
.tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
}
.prose .tabela-rolagem table {
  min-width: 520px;
}
/* Legenda presa à esquerda e com a largura da caixa visível: no celular
   a tabela rola de lado e a legenda fica parada, sem cortar a frase. */
.prose caption {
  position: sticky;
  left: 0;
  box-sizing: border-box;
  max-width: 100cqw;
  padding: 18px 20px 14px;
  caption-side: top;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
}
.prose th,
.prose td {
  padding: 12px 20px;
  text-align: left;
  vertical-align: top;
}
.prose thead th {
  padding-block: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.prose tbody td,
.prose tbody th {
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.prose tbody tr:nth-child(even) > * {
  background: var(--mist-2);
}
.prose tbody tr:hover > * {
  background: var(--hl);
}
.prose tbody th,
.prose tbody td:first-child {
  font-weight: 600;
}
.prose td > p,
.prose th > p {
  margin: 0;
}
.prose td > * + *,
.prose th > * + * {
  margin-top: 8px;
}
/* Números alinham à direita para a vírgula decimal ficar na mesma coluna. */
.prose .al-r {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.prose .al-c {
  text-align: center;
}

/* caixas de destaque, aviso e nota do editor visual (<aside class="destaque">) */
.destaque,
.callout,
.aviso,
.nota {
  margin: 2em 0;
  padding: 24px 26px;
  border-radius: var(--r);
  font-size: 17px;
}
.destaque {
  background: var(--mist);
  color: var(--ink);
}
.aviso {
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
}
.nota,
.callout {
  border: 1px solid var(--line);
  background: #fff;
}
.destaque__t,
.aviso__t,
.nota__t,
.callout strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}
.destaque p,
.aviso p,
.nota p,
.callout p {
  margin-bottom: 0;
  color: var(--text-2);
  font-size: 17px;
}
.destaque p + p,
.aviso p + p,
.nota p + p {
  margin-top: 10px;
}
/* primeiro parágrafo só em negrito: é o título da caixa */
.destaque > p:first-child > strong:only-child,
.aviso > p:first-child > strong:only-child,
.nota > p:first-child > strong:only-child {
  color: var(--ink);
}
.destaque ul,
.aviso ul,
.nota ul,
.destaque ol,
.aviso ol,
.nota ol {
  margin: 10px 0 0;
  font-size: 17px;
}
.prose :is(.destaque, .aviso, .nota, .callout) p {
  margin-bottom: 0;
}

/* ---------- Perguntas frequentes ---------- */
.faq {
  margin-top: clamp(48px, 5vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}
.faq > h2 {
  margin-bottom: 12px;
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  padding: 22px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.faq__q::after {
  content: '+';
  flex: none;
  font-size: 28px;
  font-weight: 300;
  line-height: 0.9;
  transition: transform 0.35s var(--ease);
}
.faq__q[aria-expanded='true']::after {
  transform: rotate(45deg);
}
.faq__a {
  overflow: hidden;
}
.faq__a > div {
  padding: 0 48px 24px 0;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.6;
}
/* Sem JS o conteúdo fica aberto — nunca escondido de forma irreversível. */
.faq__a[hidden] {
  display: block;
}
[data-anim="on"] .faq__a[hidden] {
  display: none;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(40px, 4vw, 56px);
}

.authorbox {
  display: flex;
  gap: 22px;
  margin-top: clamp(40px, 4vw, 56px);
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r);
  background: var(--mist-2);
}
.authorbox img {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.authorbox__name {
  margin: 8px 0 2px;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.authorbox__name a {
  text-decoration: none;
}
.authorbox__name a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.authorbox__role {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 15px;
}
.authorbox p:last-child {
  color: var(--text-2);
  font-size: 17px;
}

/* ---------- Comentários ---------- */
.comments {
  margin-top: clamp(48px, 5vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}
.comments > h2 {
  margin-bottom: 18px;
}
.comments__empty,
.comments__more {
  color: var(--text-2);
}
.comment {
  display: flex;
  gap: 16px;
  padding-block: 22px;
}
.comment + .comment {
  border-top: 1px solid var(--line);
}
.comment__av {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.comment__name {
  font-weight: 600;
}
.comment__body {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 17px;
  white-space: pre-line;
  /* sequência longa sem espaço (URL colada) não empurra o layout */
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ---------- reCAPTCHA ----------
   O selo é escondido e substituído pelo aviso de texto, o que os termos
   do Google permitem desde que a atribuição apareça no formulário. */
.grecaptcha-badge {
  visibility: hidden !important;
}
.recaptcha-note {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.recaptcha-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.g-recaptcha-box {
  margin-block: 14px;
}

/* ---------- Instagram ---------- */
.ig__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
}
.ig__card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--mist-2);
}
.ig__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.ig__card:hover img {
  transform: scale(1.04);
}
.ig__veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  background: linear-gradient(to top, rgba(10, 9, 16, 0.82) 0%, rgba(10, 9, 16, 0) 58%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ig__card:hover .ig__veil,
.ig__card:focus-visible .ig__veil {
  opacity: 1;
}
.ig__cap {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.ig__kind {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(10, 9, 16, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

/* ---------- Autor ---------- */
.profile {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
}
.profile__photo {
  flex: none;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  object-fit: cover;
}
.profile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 15px;
}
.profile__meta b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* ---------- Ordenação, paginação e busca ---------- */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.subnav .pill {
  border-color: var(--tag);
}
.subnav .pill[aria-current] {
  border-color: var(--ink);
}
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(48px, 6vw, 80px);
}
.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 14px;
  border: 1px solid var(--tag);
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.pager a:hover {
  border-color: var(--ink);
}
.pager [aria-current] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.pager .is-disabled {
  opacity: 0.45;
}
.searchbar {
  display: flex;
  gap: 10px;
  width: min(100%, 40rem);
  margin-top: 30px;
}
.searchbar .input {
  flex: 1;
  border-color: var(--line-mist);
}

/* ---------- Faixa do diagnóstico (antes do rodapé) ---------- */
.svc {
  padding-block: clamp(72px, 8vw, 120px);
  background: var(--mist);
}
.svc__in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 36px 64px;
}
.svc__text {
  max-width: 44rem;
}
.svc__title {
  margin: 16px 0 18px;
  font-size: clamp(32px, 1.5rem + 1.5vw, 50px);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.14;
  text-wrap: balance;
}
.svc__text > p:last-child {
  color: var(--text-2);
  font-size: clamp(18px, 1rem + 0.25vw, 20px);
}

/* ---------- Rodapé (igual ao do site) ---------- */
.site-footer {
  padding-block: clamp(80px, 9vw, 130px) 36px;
  background: var(--ink);
  color: #fff;
}
.site-footer a {
  text-decoration: none;
}
.site-footer__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.site-footer__big {
  max-width: 21em;
  font-size: clamp(34px, 1.4rem + 3vw, 64px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
.site-footer__big em {
  font-style: normal;
}
.site-footer__line {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  margin-top: 0.1em;
}
.avatar img {
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(64px, 8vw, 110px);
  padding-top: 40px;
  border-top: 1px solid #2a272d;
}
.site-footer__title {
  margin-bottom: 14px;
  color: #a9a2ad;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.site-footer__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #e4dfe6;
  font-size: 16px;
}
.site-footer__list a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-footer__badge {
  display: inline-block;
  margin-top: 18px;
}
.site-footer__badge img {
  width: 150px;
}
.site-footer__bar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px 32px;
  margin-top: clamp(56px, 7vw, 96px);
  color: #cfc9d2;
  font-size: 15px;
}
.logo--light {
  color: #fff;
}
.logo--light svg {
  width: 120px;
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__legal a {
  color: #cfc9d2;
  font-size: 15px;
}
.site-footer__legal a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-footer__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.clock {
  font-variant-numeric: tabular-nums;
}
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #3c3940;
  border-radius: 999px;
  background: transparent;
  color: #e4dfe6;
  font-size: 14px;
  cursor: pointer;
}
.motion-toggle:hover {
  border-color: #fff;
}
.footer-langs {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-langs a {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  border-radius: 999px;
  color: #cfc9d2;
  font-size: 14px;
}
.footer-langs a[aria-current='true'],
.footer-langs a:hover {
  background: #1e1b22;
  color: #fff;
}
.to-top {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #4a464e;
  border-radius: 50%;
  color: #fff;
}
.to-top:hover {
  border-color: #fff;
}
.to-top .icon {
  transform: rotate(180deg);
}

/* ==========================================================================
   Animação (GSAP)
   O estado inicial só é aplicado quando boot.js confirma que o JavaScript
   rodou (data-anim="on" no <html>). Sem JS, sem GSAP, com o arquivo
   bloqueado, com "Pausar animações" ou com movimento reduzido no sistema,
   nada fica invisível. Animação nunca é pré-requisito para ler.

   O seletor precisa do [data-reveal] antes: esconder alcança só o que o
   site.js vai animar (o que está dentro de [data-reveal="hero"] ou
   [data-reveal="group"]). Elemento solto com a classe fica visível —
   falha para o lado seguro.
   ========================================================================== */
[data-anim="on"] [data-reveal] .reveal {
  opacity: 0;
  will-change: transform, opacity;
}
[data-anim="on"] [data-reveal] .reveal--up {
  transform: translateY(18px);
}
[data-anim="on"] [data-reveal] .reveal--in {
  transform: translateY(0);
}
.is-revealed {
  will-change: auto;
}
/* "Pausar animações" (rodapé): a mesma preferência do site, ovf_motion */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation: none !important;
  transition: none !important;
}
.reduce-motion .progress {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .card:hover .thumb img,
  .ig__card:hover img {
    transform: none;
  }
  [data-anim="on"] [data-reveal] .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .progress {
    display: none;
  }
}

/* ---------- Telas menores (mesmos cortes do site) ---------- */
@media (max-width: 1100px) {
  .cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .side {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ig__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer__bar {
    grid-template-columns: 1fr auto;
  }
}
@media (max-width: 900px) {
  :root {
    --header-h: 84px;
  }
  .nav {
    display: none;
  }
  .menu-btn {
    top: 14px;
    right: 14px;
    width: 56px;
    height: 56px;
    gap: 7px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .menu-btn__bar {
    width: 26px;
  }
  .menu-btn[aria-expanded='true'] .menu-btn__bar:first-of-type {
    transform: translateY(4.5px) rotate(45deg);
  }
  .menu-btn[aria-expanded='true'] .menu-btn__bar:last-of-type {
    transform: translateY(-4.5px) rotate(-45deg);
  }
  .menu {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    padding-top: 100px;
  }
  .featured {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .svc__in {
    align-items: start;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 17px;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .side,
  .topics,
  .form__row {
    grid-template-columns: minmax(0, 1fr);
  }
  .topics > .topic:nth-child(odd),
  .topics > .topic:nth-child(even) {
    padding-inline: 0;
    border-left: 0;
  }
  .ig__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card--row .thumb {
    width: 96px;
  }
  /* pílulas menores: as editorias cabem em menos linhas, sem rolar de lado */
  .blognav {
    gap: 12px;
    margin-bottom: 40px;
  }
  .blognav__list {
    gap: 6px;
  }
  .pill {
    min-height: 36px;
    padding: 0 13px;
    font-size: 14px;
  }
  /* Artigo no celular: título e capa de cara. Saem as pílulas (a trilha
     já leva ao blog e à editoria), o título repetido na trilha e a
     editoria repetida acima do título. */
  .page-hero--post .blognav,
  .page-hero--post .crumbs li:last-child:not(:first-child),
  .post__head .cat {
    display: none;
  }
  .page-hero--post .crumbs {
    margin-bottom: 14px;
  }
  .page-hero--post .cover {
    margin-top: 24px;
  }
  .page-hero--post .post__dek {
    margin-top: 22px;
  }
  .float-cta {
    right: 16px;
    bottom: 16px;
  }
  .site-footer__grid,
  .site-footer__bar {
    grid-template-columns: minmax(0, 1fr);
  }
  .profile__photo {
    width: 96px;
    height: 96px;
  }
  .searchbar {
    flex-direction: column;
  }
  .toc {
    padding: 20px;
  }
  .faq__a > div {
    padding-right: 0;
  }
  .authorbox {
    flex-direction: column;
  }
  .actions .btn--big {
    width: 100%;
  }
}

@media print {
  .site-header,
  .menu-btn,
  .float-cta,
  .blognav,
  .side,
  .svc,
  .site-footer,
  .progress,
  .comments form {
    display: none !important;
  }
  .page-hero {
    padding-top: 0;
    background: none;
  }
  .cols {
    grid-template-columns: minmax(0, 1fr);
  }
}
