/* ===== Identidade ===== */
:root {
  --greige: #D5D1C8;          /* fundo principal (RGB 213, 209, 200) */
  --greige-base: #D7D3C9;    /* base clareada: o grão escurece um pouco e a média volta ao #D5D1C8 */
  --barra: #EEEEEE;
  --preto: #0E0E0E;
  --claro: #EEEEEE;
  --texto: #1A1A1A;
  --texto-2: #4A4741;
  --sub-botao: #A8A49C;
  --serifa: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --grao: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  --barra-h: 44px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grao), var(--greige-base);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
em { font-style: italic; }

/* ===== Barra superior ===== */
.barra {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  height: var(--barra-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  background: var(--barra);
  font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--preto);
}

/* ===== Topo com a foto ===== */
.topo {
  position: relative; margin: 0;
  height: 62svh; min-height: 380px; max-height: 720px;
  overflow: hidden;
  background: #000;
}
.topo img {
  position: absolute; top: 0; left: 0;
  width: 130%; max-width: none; height: auto;
  transform: translateX(-19%);   /* centraliza o rosto: ele está à direita na foto */
  animation: entra 1.1s ease-out both;
}
.nome {
  margin: 0;
  font-family: var(--serifa); font-weight: 400;
  line-height: .9; letter-spacing: -.01em;
  color: var(--preto);
}
.nome em { font-style: italic; }
.nome-foto {
  position: absolute; left: 0; right: 0; top: calc(var(--barra-h) + 14px);
  text-align: center;
  font-size: clamp(46px, 14vw, 64px);
  color: var(--claro);
}
.nome-painel { display: none; }

/* ===== Painel ===== */
.painel {
  position: relative;
  margin-top: -28px;
  border-radius: 28px 28px 0 0;
  background: var(--grao), var(--greige-base);
  padding: 64px 20px 56px;
}

/* ===== Cartões (padrão da referência: imagem saindo do cartão) ===== */
.cartoes { display: grid; gap: 46px; }
.cartao {
  --alto: 112px;
  position: relative;
  display: flex; align-items: center;
  min-height: var(--alto);
  padding: 16px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .25s ease;
}
.cartao:hover { transform: translateY(-3px); }
.cartao:focus-visible, .botao-claro:focus-visible, .rodape a:focus-visible {
  outline: 2px solid var(--preto); outline-offset: 3px;
}
.cartao-claro { background: var(--claro); border: 1px solid rgba(0, 0, 0, .07); }
.cartao-escuro { background: radial-gradient(120% 140% at 72% 20%, #2B2B2B 0%, #121212 55%, #050505 100%); }

.cartao-texto { position: relative; z-index: 1; display: grid; gap: 6px; max-width: 56%; }
.foto-esq .cartao-texto { margin-left: auto; max-width: 49%; }
.cartao-titulo {
  font-family: var(--serifa); font-style: italic; font-weight: 400;
  font-size: 38px; line-height: .95; letter-spacing: -.01em;
  color: var(--preto);
}
.cartao-sub { font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--texto-2); }
.cartao-escuro .cartao-titulo { color: var(--claro); }
.cartao-escuro .cartao-sub { color: #C9C5BD; }

/* foto recortada: a base encosta na base do cartão e a cabeça passa da borda de cima */
.cartao-img {
  position: absolute; bottom: 0;
  height: calc(var(--alto) + 42px); width: auto; max-width: none;
  pointer-events: none;
}
.foto-dir .cartao-img { right: 6px; }
.foto-esq .cartao-img { left: 4px; }

/* celular desenhado em código (no lugar do notebook da referência) */
.celular {
  position: absolute; left: 16px; bottom: 12px;
  width: 74px; height: calc(var(--alto) + 30px);
  padding: 4px; border-radius: 16px;
  background: #1A1A1A; border: 1px solid #3C3C3C;
  box-shadow: 0 14px 24px rgba(0, 0, 0, .45);
  transform: rotate(-6deg);
}
.tela {
  display: flex; flex-direction: column; gap: 5px;
  width: 100%; height: 100%; padding: 10px 7px;
  border-radius: 12px; background: var(--claro);
}
.tela-topo { font-family: var(--serifa); font-style: italic; font-size: 13px; line-height: 1; color: var(--preto); }
.tela-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.tela-dias i { aspect-ratio: 1; border-radius: 2px; background: #D5D1C8; }
.tela-dias i.marcado { background: var(--preto); }
.tela-evento {
  margin-top: 4px; padding: 3px 4px; border-radius: 4px;
  background: var(--preto); color: var(--claro);
  font-size: 7px; font-weight: 600; line-height: 1.2;
}
.tela-linha { height: 4px; border-radius: 2px; background: #CFCAC0; }
.tela-linha.curta { width: 60%; }
.foto-esq .celular ~ .cartao-texto { max-width: 60%; }

/* ===== Sobre mim (só texto, como na referência) ===== */
.sobre { margin-top: 72px; }
.titulo {
  margin: 0 0 12px;
  font-family: var(--serifa); font-weight: 400;
  font-size: 44px; line-height: .95; color: var(--preto);
}
.sobre-texto p { margin: 0 0 12px; color: var(--texto-2); font-size: 15px; }
.sobre-texto .sobre-abertura {
  font-family: var(--serifa); font-style: italic;
  font-size: 22px; line-height: 1.2; color: var(--preto);
}

/* ===== Fechamento ===== */
/* A foto tem o fundo pintado no mesmo greige da página: entra sem moldura */
.fechamento { margin: 56px -20px 0; }
.fechamento img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 34%;
  /* a poltrona some no fundo em vez de ser cortada */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 74%, transparent 98%),
                      linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 74%, transparent 98%),
                      linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-composite: intersect;
}
.fechamento-texto {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 20px;
  margin-top: -28px; position: relative;
}
.fechamento-texto .titulo { margin: 0; }
.botao-claro {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--preto); color: var(--claro);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: transform .25s ease;
}
.botao-claro:hover { transform: translateY(-2px); }

/* ===== Rodapé ===== */
.rodape {
  background: var(--preto); color: #B8B4AC;
  padding: 26px 20px 34px;
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between;
  font-size: 12.5px;
}
.rodape p { margin: 0; }
.rodape a { color: var(--claro); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }

/* ===== Aviso de prévia (some quando os dados estiverem completos) ===== */
.aviso-previa {
  position: relative; z-index: 11;
  margin-top: var(--barra-h);
  padding: 8px 20px;
  background: #7A1E1E; color: #fff;
  font-size: 12px; line-height: 1.4;
}
.aviso-previa[hidden] { display: none; }

@keyframes entra { from { opacity: 0; } to { opacity: 1; } }

/* ===== Computador ===== */
@media (min-width: 960px) {
  .pagina { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .topo {
    position: sticky; top: 0;
    height: 100vh; min-height: 0; max-height: none;
  }
  .topo img {
    left: 0; width: 100%; height: 100%;
    transform: none; object-fit: cover; object-position: 62% 20%;
  }
  .nome-foto { display: none; }
  .painel {
    margin-top: 0; border-radius: 0;
    padding: calc(var(--barra-h) + 80px) clamp(40px, 6vw, 96px) 80px;
    max-width: 720px;
  }
  .nome-painel { display: block; font-size: clamp(72px, 7.5vw, 112px); margin-bottom: 88px; }
  .cartoes { gap: 56px; }
  .cartao { --alto: 140px; padding: 20px 32px; }
  .cartao-titulo { font-size: 50px; }
  .cartao-sub { font-size: 14px; }
  .celular { left: 28px; width: 92px; }
  .tela-topo { font-size: 16px; }
  .tela-evento { font-size: 9px; }
  .sobre { margin-top: 96px; }
  .titulo { font-size: 56px; }
  .sobre-texto p { font-size: 16px; }
  .sobre-texto .sobre-abertura { font-size: 26px; }
  .fechamento { margin: 80px 0 0; }
  .fechamento img { max-width: 520px; margin: 0 auto; }
  .fechamento-texto { padding: 0; }
  .rodape { padding: 28px clamp(40px, 6vw, 96px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
