/* ==========================================================================
   ESTÚDIO LABUTA — sistema visual do site
   Conceito: noite do sertão (preto 70%), sol a pino (amarelo 20%) e
   terra verde (10%) em pontos estratégicos.
   Tipografia condensada em caixa alta, cantos cortados a 45° (o mesmo ângulo
   dos grafismos da marca) e muito respiro.
   ========================================================================== */

:root {
  /* Peridot PE Variable (Adobe Fonts): uma fonte só, com eixo de largura.
     75 = largura condensada. Se na tela ficar mais larga ou mais estreita que a
     Peridot Condensed do Illustrator, ajuste só este número. */
  --peridot-wdth: 75;
  --lh-titulo: 1;          /* entrelinha dos títulos: dá espaço para acentos e vírgulas */
  /* Cores oficiais */
  --verde: #524c00;
  --amarelo: #f29f05;
  --preto: #000002;
  --branco: #ffffff;
  /* Proporção de uso: preto 70% · amarelo 20% · verde 10% */
  /* Derivados (só tons das oficiais) */
  --verde-fundo: #3d3900;       /* verde mais fechado, para profundidade */
  --verde-linha: rgba(255, 255, 255, .16);
  --papel: #0e0e10;             /* seção alternada: preto levemente aberto */
  --superficie: #151517;        /* cartões sobre o preto */
  --tinta-suave: rgba(255, 255, 255, .68);  /* texto secundário sobre preto */
  --linha: rgba(255, 255, 255, .14);
  --erro: #b3261e;

  /* Tipografia */
  --f-marca: "peridot-pe-variable", "Peridot Cond", "Peridot Latin Condensed", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, system-ui, sans-serif;

  --t-etiqueta: .875rem;    /* 14 */
  --t-pequeno: 1rem;        /* 16 */
  --t-corpo: 1.1875rem;     /* 19 */
  --t-lead: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --t-h3: clamp(1.5rem, 1.3rem + .8vw, 2rem);
  --t-h2: clamp(2.25rem, 1.6rem + 2.6vw, 4rem);
  --t-h1: clamp(2.75rem, 1.9rem + 4.2vw, 6.25rem);
  --t-gigante: clamp(4rem, 2rem + 9vw, 11rem);

  /* Espaço */
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-d: max(20px, env(safe-area-inset-right, 0px));
  --largura: 1240px;
  --secao: clamp(72px, 9vw, 144px);
  --corte: 14px;            /* tamanho do canto cortado */

  --ease: cubic-bezier(.2, .7, .1, 1);

  /* Grafismos da marca embutidos (usados como máscara: herdam a cor do texto) */
  --g1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 188.13 188.13'%3E%3Cpolygon points='0 188.13 188.13 0 188.13 94.06 0 94.06 0 188.13'/%3E%3C/svg%3E");
  --g2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 325.97 325.86'%3E%3Cpolygon points='163.04 325.86 163.04 0 325.97 162.93 163.04 325.86'/%3E%3Cpolygon points='162.94 162.92 0 162.92 0 0 162.94 162.92'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--preto);
  color: var(--branco);
  font-family: var(--f-marca);
  font-size: var(--t-corpo);
  line-height: 1.45;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Estrutura ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--largura) + 40px);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-d);
}
.secao { padding-block: var(--secao); }
.secao--verde { background: var(--verde); color: var(--branco); }
.secao--fundo { background: var(--verde-fundo); color: var(--branco); }
.secao--papel { background: var(--papel); }
.secao--preto { background: var(--preto); color: var(--branco); }
.secao--amarelo { background: var(--amarelo); color: var(--preto); }

/* ---------- Tipografia ---------- */
.titulo,
h1, h2, h3 {
  font-family: var(--f-marca);
  font-weight: 800;
  text-transform: uppercase;
  line-height: var(--lh-titulo);
  letter-spacing: -.005em;
  margin: 0;
  text-wrap: balance;
}
h1, .t-h1 { font-size: var(--t-h1); font-weight: 900; }
h2, .t-h2 { font-size: var(--t-h2); }
h3, .t-h3 { font-size: var(--t-h3); line-height: 1; font-weight: 700; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }
.lead { font-size: var(--t-lead); line-height: 1.35; }
.destaque { color: var(--amarelo); }

/* Etiqueta no padrão dos posts: condensada regular, sem espaçamento extra,
   com uma barra sólida antes (como em "▬ LINK DO ARTIGO NA BIO") */
.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--amarelo);
}
.etiqueta::before {
  content: "";
  width: 2.4em; height: .72em;
  background: currentColor;
  flex: none;
}
.verde { color: var(--verde); }

/* Logo do topo: sol amarelo, nome branco; o sol dá uma volta (horário) ao passar o mouse */
.logo-labuta { display: block; width: 100%; height: auto; overflow: visible; }
.logo-labuta__sol { fill: var(--amarelo); transform-box: fill-box; transform-origin: 50% 50%; transition: transform .9s var(--ease); }
.logo-labuta__nome { fill: var(--branco); }
a:hover > .logo-labuta .logo-labuta__sol,
.logo-labuta:hover .logo-labuta__sol { transform: rotate(360deg); }
@media (prefers-reduced-motion: reduce) { .logo-labuta__sol { transition: none; } }
.secao--verde .etiqueta, .secao--fundo .etiqueta, .topo .etiqueta { color: var(--amarelo); }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--amarelo);
  --fg: var(--preto);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  min-height: 60px;
  padding: 0 30px;
  border: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-marca);
  font-size: 1.25rem;            /* 20px bold: contraste AAA com #000002 */
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--corte)) 0, 100% var(--corte), 100% 100%, var(--corte) 100%, 0 calc(100% - var(--corte)));
  transition: transform .25s var(--ease), background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn::after {
  content: "";
  width: .8em; height: .8em;
  background: currentColor;
  -webkit-mask: var(--g2) center / contain no-repeat;
          mask: var(--g2) center / contain no-repeat;
  transition: transform .25s var(--ease);
}
.btn:hover { background: #ffb21f; }
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--escuro { --bg: var(--preto); --fg: var(--branco); }
.btn--escuro:hover { background: var(--verde); }
.btn--branco { --bg: var(--branco); --fg: var(--preto); }
.btn--branco:hover { background: var(--amarelo); }
.btn--bloco { width: 100%; }
.btn--sem-seta::after { display: none; }

.link-seta {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  font-size: var(--t-pequeno); text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 4px;
}

/* ---------- Lista com grafismo ---------- */
.lista-grafismo { list-style: none; padding: 0; margin: 0; display: grid; gap: .7em; }
.lista-grafismo li { display: grid; grid-template-columns: 1em 1fr; gap: .75em; align-items: baseline; }
.lista-grafismo li::before {
  content: ""; width: .8em; height: .8em; transform: translateY(.05em);
  background: var(--amarelo);
  -webkit-mask: var(--g1) center / contain no-repeat;
          mask: var(--g1) center / contain no-repeat;
}

/* ---------- Espaço de imagem (placeholder diagramado) ----------
   Mostra proporção e tamanho de exportação até a imagem real chegar.
   Para trocar: substitua o <div class="slot"> por <img> ou <picture>
   com o mesmo aspect-ratio. */
.slot {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: var(--ar, 4 / 5);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 14px),
    var(--slot-bg, #1a1a1c);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--tinta-suave);
}
.slot--escuro {
  --slot-bg: #2f2c00;  /* usado sobre o verde */
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 1px, transparent 1px 14px),
    var(--slot-bg);
  color: rgba(255,255,255,.7);
}
.slot__info {
  text-align: center;
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.35;
  padding: 12px;
}
.slot__info strong { display: block; font-size: 1.5rem; letter-spacing: .02em; font-weight: 800; }
.slot img, .slot video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* Texto pendente: precisa ser trocado antes de publicar */
.pendente {
  outline: 2px dashed var(--amarelo);
  outline-offset: 3px;
  background: rgba(242, 159, 5, .14);
}

/* ---------- Reveal (só com JS e sem reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .revela { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .revela.visivel { opacity: 1; transform: none; }
}

/* ---------- Rodapé simples ---------- */
.rodape-simples {
  background: var(--preto);
  border-top: 1px solid var(--linha);
  color: rgba(255,255,255,.75);
  font-size: var(--t-pequeno);
}
.rodape-simples .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px; padding-block: 36px;
}
.rodape-simples img { width: 132px; }
.rodape-simples a { color: var(--branco); text-decoration: none; font-weight: 700; letter-spacing: .04em; }
.rodape-simples a:hover { color: var(--amarelo); }

/* Selos dos pilares (versão do site: texto branco, sol amarelo).
   Todos os arquivos têm a mesma altura de caixa, com o texto na mesma posição:
   com a mesma altura, a tipografia fica do mesmo tamanho e alinhada entre eles. */
img[src*="pilares/site/"] { display: block; width: auto; height: var(--selo, 48px); background: none; padding: 0; max-width: none; }

/* Largura da Peridot variável (não afeta as fontes reserva) */
html { font-variation-settings: "wdth" var(--peridot-wdth); }
