/* Site institucional · Diego Serafim
   Ideia central: o nome do Diego "emagrece" conforme a pessoa rola a página
   (peso da fonte variável Unbounded vai de 900 a 200). Todo o resto fica quieto. */

:root {
  --concreto: #E4E2E5;   /* fundo: mesmo cinza do fundo de estúdio da foto */
  --papel: #F4F3F5;      /* superfícies claras */
  --preto: #000;         /* tinta, igual ao logo */
  --grafite: #4A4850;    /* texto secundário */
  --holofote: #FFD400;   /* destaque: luz de palco */
  --branco: #fff;

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --texto: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --raio-foto: 28px;
  --raio-bloco: 22px;
  --margem: clamp(18px, 5vw, 40px);
  --largura: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--concreto);
  color: var(--preto);
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { padding: 0; list-style: none; }
p + p { margin-top: 0.9em; }
:focus-visible { outline: 3px solid var(--preto); outline-offset: 3px; border-radius: 6px; }

.pular {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--preto); color: var(--branco); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.pular:focus { top: 12px; }

.miolo { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 var(--margem); }

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 7.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 18ch;
  margin-bottom: 0.7em;
}
h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.7em;
}
section p { max-width: 62ch; }

/* ---------------------------------------------------------------- botões */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border-radius: 999px; border: 2px solid var(--preto);
  background: var(--preto); color: var(--branco);
  font-family: var(--texto); font-weight: 700; font-size: 16.5px; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: background-color .15s, color .15s, transform .15s;
}
.botao:hover { transform: translateY(-1px); }
.botao:active { transform: translateY(1px); }
.botao-contorno { background: transparent; color: var(--preto); }
.botao-contorno:hover { background: var(--preto); color: var(--branco); }
.botao-pequeno { min-height: 42px; padding: 9px 18px; font-size: 15px; }
.botao-escuro:hover { background: var(--branco); color: var(--preto); }
.botao-whats { background: var(--holofote); border-color: var(--holofote); color: var(--preto); width: 100%; max-width: 420px; }
.botao-whats svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.botao-whats:hover { background: var(--branco); border-color: var(--branco); }

/* ---------------------------------------------------------------- topo */
.topo {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--margem);
  padding-top: max(12px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--concreto) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.topo-logo { display: block; border-radius: 8px; }
/* No topo só o elefante: o nome inteiro já está gigante logo abaixo. */
.topo-logo { padding: 2px; }
.topo-logo img { width: 46px; height: auto; }

/* ---------------------------------------------------------------- abertura */
.abertura {
  display: grid;
  gap: 18px;
  padding: 8px var(--margem) 40px;
  max-width: var(--largura);
  margin: 0 auto;
}
.nome {
  font-family: var(--display);
  font-weight: 900;
  font-size: min(15.2vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: none;
  display: grid;
}
.nome span { display: block; white-space: nowrap; }
/* O momento da página: o nome chega pesado e emagrece. Termina num peso que ainda é título. */
@keyframes emagrecer { from { font-weight: 900; } to { font-weight: 480; } }
@media (prefers-reduced-motion: no-preference) {
  .nome.emagrecer { animation: emagrecer 2.2s cubic-bezier(.65, 0, .35, 1) .5s both; }
  .nome.emagrecer span:last-child { animation: emagrecer 2.2s cubic-bezier(.65, 0, .35, 1) .75s both; }
}
.abertura-foto {
  margin: 0;
  border-radius: var(--raio-foto);
  overflow: hidden;
  background: #DCDADE;
  aspect-ratio: 1 / 1;          /* no celular, rosto e gesto sem empurrar os botões pra longe */
}
.abertura-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 8%; }
.abertura-chamada {
  font-size: clamp(19px, 5vw, 23px);
  line-height: 1.45;
  font-weight: 500;
  max-width: 34ch;
}
.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.acoes .botao { flex: 1 1 220px; }

/* ---------------------------------------------------------------- redes */
.redes { max-width: var(--largura); margin: 0 auto; padding: 8px var(--margem) 56px; }
.redes-lista {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--preto); border-bottom: 2px solid var(--preto);
}
.redes-lista li + li { border-left: 1.5px solid rgba(0,0,0,.18); }
.redes-lista a {
  display: grid; gap: 4px; height: 100%;
  padding: 16px 10px 16px 0; text-decoration: none;
}
.redes-lista li + li a { padding-left: 12px; }
.redes-lista strong { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 5.1vw, 40px); line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.redes-lista span { font-size: 13.5px; line-height: 1.3; color: var(--grafite); }
.redes-lista a:hover span { color: var(--preto); text-decoration: underline; }
.redes-tv { margin-top: 18px; font-size: 15.5px; color: var(--grafite); }

/* ---------------------------------------------------------------- palestra */
.palestra { background: var(--holofote); padding: 64px 0 72px; }
.palestra-tipo { font-weight: 700; font-size: 15px; }
.palestra-titulo {
  font-weight: 800;
  font-size: clamp(44px, 13vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 9ch;
  margin: 10px 0 22px;
}
.palestra-lead { font-size: clamp(19px, 4.8vw, 24px); line-height: 1.4; font-weight: 600; max-width: 30ch; margin-bottom: 14px; }
.palestra-grade { display: grid; gap: 36px; margin: 44px 0 36px; }
.lista-check li {
  position: relative; padding: 10px 0 10px 36px;
  border-top: 1.5px solid rgba(0,0,0,.2);
}
.lista-check li:last-child { border-bottom: 1.5px solid rgba(0,0,0,.2); }
.lista-check li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--preto) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23FFD400' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat;
}
.temas { display: flex; flex-wrap: wrap; gap: 8px; }
.temas li {
  border: 2px solid var(--preto); border-radius: 999px;
  padding: 7px 14px; font-weight: 600; font-size: 15px; line-height: 1.3;
}
.palestra-ideal { margin-bottom: 26px; }
.palestra :focus-visible { outline-color: var(--preto); }

/* ---------------------------------------------------------------- história */
.historia { padding: 72px 0; }
.historia-grade { display: grid; gap: 32px; align-items: center; }
.historia-foto { margin: 0; }
.historia-foto img { border-radius: var(--raio-foto); width: 100%; }
.historia-foto figcaption { font-size: 14px; color: var(--grafite); margin-top: 10px; }

/* ---------------------------------------------------------------- leituras */
.leituras { padding: 8px 0 80px; }
.leituras-grade { display: grid; gap: 16px; }
.leitura {
  display: block; position: relative;
  border-radius: var(--raio-bloco); padding: 26px 24px 28px;
  text-decoration: none;
}
.leitura h3 { font-size: clamp(21px, 5.4vw, 26px); margin: 14px 0 10px; max-width: 20ch; }
.leitura p { font-size: 16px; }
.leitura-selo {
  display: inline-block; border-radius: 999px; padding: 4px 12px;
  font-weight: 700; font-size: 13.5px;
}
.leitura-ebook { background: var(--preto); color: var(--branco); }
.leitura-ebook .leitura-selo { background: var(--holofote); color: var(--preto); }
.leitura-ebook p { color: #D6D4D9; }
.leitura-acao {
  display: inline-flex; margin-top: 20px; padding: 12px 22px; border-radius: 999px;
  background: var(--holofote); color: var(--preto); font-weight: 700;
}
.leitura-ebook:hover .leitura-acao { background: var(--branco); }
.leitura-ebook:focus-visible { outline-offset: 4px; }
/* livro ainda não existe: borda tracejada, como página em rascunho */
.leitura-livro { border: 2px dashed var(--preto); background: transparent; }
.leitura-livro .leitura-selo { border: 2px solid var(--preto); padding: 2px 10px; }

/* ---------------------------------------------------------------- contratar */
.contratar { background: var(--preto); color: var(--branco); padding: 72px 0 80px; }
.contratar-elefante { width: 96px; filter: invert(1); margin-bottom: 26px; }
.contratar h2 { max-width: 14ch; }
.contratar p { color: #D6D4D9; margin-bottom: 26px; }
.contratar-numero { margin-top: 18px; font-size: 15.5px; }
.contratar-numero a { color: var(--branco); font-weight: 600; display: inline-block; padding: 12px 0; }
.contratar :focus-visible { outline-color: var(--holofote); }

/* ---------------------------------------------------------------- rodapé */
.rodape { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.rodape-grade { display: grid; gap: 22px; }
.rodape-logo { width: 180px; }
.rodape-redes { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.rodape-redes a { font-weight: 600; text-underline-offset: 4px; display: inline-block; padding: 12px 0; min-width: 44px; }
.rodape-nota { font-size: 13.5px; color: var(--grafite); max-width: 60ch; }

/* ---------------------------------------------------------------- assinatura (segundo rodapé) */
.assinatura {
  background: var(--preto);
  padding: 10px var(--margem) calc(10px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 28px;
}
.assinatura a {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; color: #BDBBC2; font-size: 13px; text-decoration: none;
  border-radius: 8px;
}
.assinatura img { width: 128px; height: auto; }
.assinatura-insta svg { width: 20px; height: 20px; color: var(--branco); }
.assinatura-insta span { font-weight: 600; color: var(--branco); }
.assinatura a:hover span { color: var(--branco); text-decoration: underline; text-underline-offset: 3px; }
.assinatura :focus-visible { outline-color: var(--holofote); }
.rodape { padding-bottom: 40px; }

/* ---------------------------------------------------------------- telas maiores */
@media (min-width: 900px) {
  body { font-size: 18px; }
  .topo-logo img { width: 54px; }
  .abertura-foto { aspect-ratio: 680 / 800; }
  .abertura-foto img { object-position: center 20%; }
  .abertura {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas: "nome foto" "texto foto";
    column-gap: 56px; row-gap: 32px;
    align-items: end;
    padding-top: 32px; padding-bottom: 72px;
  }
  .nome { grid-area: nome; font-size: min(10.5vw, 150px); align-self: end; }
  .abertura-foto { grid-area: foto; }
  .abertura-texto { grid-area: texto; align-self: start; }
  .acoes .botao { flex: 0 0 auto; }
  .redes { padding-bottom: 88px; }
  .redes-lista a { padding: 22px 16px 22px 0; }
  .redes-lista li + li a { padding-left: 24px; }
  .redes-lista span { font-size: 15px; }
  .palestra { padding: 104px 0 112px; }
  .palestra-grade { grid-template-columns: 1fr 1fr; gap: 64px; }
  .historia { padding: 112px 0; }
  .historia-grade { grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
  .leituras { padding-bottom: 112px; }
  .leituras-grade { grid-template-columns: repeat(3, 1fr); }
  .leitura { padding: 36px 34px 38px; }
  .contratar { padding: 112px 0 120px; }
  .rodape-grade { grid-template-columns: auto 1fr; align-items: center; column-gap: 48px; }
  .rodape-nota { grid-column: 1 / -1; }
}

/* Telas grandes: duas colunas iguais; a foto em quadro, com largura máxima de 540px
   (meio-termo entre o quadro pequeno de antes e a foto de meia tela). */
@media (min-width: 1200px) {
  .abertura {
    max-width: 1240px;
    padding: 32px 40px 88px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 64px;
    align-items: center;
  }
  .nome { font-size: min(9vw, 118px); align-self: end; }
  .abertura-texto { align-self: start; }
  .abertura-foto {
    width: 100%;
    max-width: 540px;
    justify-self: end;
    aspect-ratio: 680 / 800;
  }
  .abertura-chamada { font-size: 22px; max-width: 30ch; }
}

@media (prefers-reduced-motion: reduce) {
  .nome { font-weight: 640; }
  .botao { transition: none; }
  .botao:hover, .botao:active { transform: none; }
}
