/* =============================================================
   Marins Cafés · página de links (a da bio do Instagram)
   Mesmo formato e movimento da página da Melys (link-melys): a marca num círculo, o nome, a frase,
   os botões empilhados e o Instagram embaixo.
   As cores são as da logo (referencia/logo-marins-m-original.png): fundo creme #DFD8C9 (a cor das letras),
   botões e círculo no azul-marinho #0C2944 (o fundo da logo) e o dourado #A5873F (o ponto) só
   como detalhe: a seta, o anel do hover e o foco. Dourado sobre creme não dá contraste para texto.
   Fontes: Rozha One no nome (a serifa gorda mais perto do "marins") e Sora no resto.
   ============================================================= */

:root {
  --fundo: #dfd8c9;        /* creme das letras da logo */
  --botao: #0c2944;        /* azul-marinho do fundo da logo: botões e círculo */
  --botao-passo: #163a5e;  /* o hover: o mesmo azul um tom acima */
  --ouro: #a5873f;         /* o dourado do ponto da logo: só detalhe */
  --tinta: #0c2944;        /* nome e textos fora dos botões */
  --tinta-suave: #3c5068;  /* a frase e o rodapé */
  --tinta-botao: #f3eee4;  /* o texto dos botões: o creme, um pouco mais claro */

  --serif: "Rozha One", Georgia, "Times New Roman", serif;
  --sans: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;

  --d-quick: 150ms;
  --d-fast: 250ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --stagger-dur: 600ms;
  --stagger-distance: 14px;
  --stagger-stagger: 55ms;
  --stagger-ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--fundo); }
body {
  background: var(--fundo); color: var(--tinta);
  font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, ul { margin: 0; }
::selection { background: var(--tinta); color: var(--fundo); }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 3px; }

/* ---------- a coluna: no meio da tela, na altura e na largura ---------- */
.links {
  min-height: 100svh; display: grid; place-items: center;
  padding: max(40px, env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom));
}
.coluna { width: min(100%, 468px); display: flex; flex-direction: column; align-items: center; }

/* ---------- o topo ---------- */
.perfil { display: flex; flex-direction: column; align-items: center; text-align: center; }
.avatar {
  width: 120px; height: 120px; flex: none; border-radius: 50%;
  background: var(--botao); display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 0 0 3px var(--fundo), 0 0 0 4.5px var(--ouro), 0 16px 30px -18px rgb(12 41 68 / 0.6);
}
.avatar img { width: 54%; height: auto; transform: translateY(-3%); }
.titulo { margin-top: 20px; display: flex; flex-direction: column; align-items: center; font-weight: 400; }
.nome {
  display: block;
  font: 400 clamp(32px, 9vw, 40px)/1.05 var(--serif);
  letter-spacing: 0.005em; color: var(--tinta);
}
.categoria { display: block; margin-top: 8px; font: 400 16px/1.5 var(--sans); letter-spacing: 0; text-transform: none; color: var(--tinta-suave); }
.frase { margin-top: 2px; font-size: 16px; line-height: 1.5; color: var(--tinta-suave); text-wrap: balance; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- os botões ---------- */
.botoes { width: 100%; display: grid; gap: 12px; margin-top: 30px; }
.botao {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 66px; padding: 12px 48px; border-radius: 20px;
  background: var(--botao); color: var(--tinta-botao);
  text-decoration: none; text-align: center; -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 1px 2px rgb(12 41 68 / 0.06), 0 12px 24px -20px rgb(12 41 68 / 0.55);
  /* a saída do hover é sempre a mais rápida */
  transition: transform var(--d-quick) var(--ease), background-color var(--d-quick) var(--ease), box-shadow var(--d-quick) var(--ease);
}
.botao__texto { display: grid; gap: 2px; font-size: 16.5px; font-weight: 500; line-height: 1.3; letter-spacing: -0.005em; }
.botao__texto small { font-size: 13px; font-weight: 400; line-height: 1.35; color: rgb(243 238 228 / 0.78); letter-spacing: 0; }
.botao__seta {
  position: absolute; right: 20px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  color: var(--ouro); opacity: 0.9; transition: transform var(--d-quick) var(--ease), opacity var(--d-quick) var(--ease);
}
.botao__icone { position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; }

@media (hover: hover) and (pointer: fine) {
  .botao:hover {
    transition-duration: var(--d-fast); transform: translateY(-2px); background: var(--botao-passo);
    box-shadow: inset 0 0 0 1px rgb(165 135 63 / 0.7), 0 2px 4px rgb(12 41 68 / 0.06), 0 18px 30px -20px rgb(12 41 68 / 0.6);
  }
  .botao:hover .botao__seta { transition-duration: var(--d-fast); transform: translateX(3px); opacity: 1; }
}
.botao:active { transform: translateY(0) scale(0.985); transition-duration: 90ms; background: var(--botao-passo); }

/* ---------- as redes ---------- */
.redes { display: flex; justify-content: center; gap: 6px; margin-top: 26px; padding: 0; list-style: none; }
.redes a {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  color: var(--tinta); -webkit-tap-highlight-color: transparent;
  transition: transform var(--d-quick) var(--ease), background-color var(--d-quick) var(--ease);
}
.redes svg { width: 25px; height: 25px; }
@media (hover: hover) and (pointer: fine) {
  .redes a:hover { transition-duration: var(--d-fast); transform: translateY(-2px); background: rgb(12 41 68 / 0.1); }
}
.redes a:active { transform: scale(0.94); transition-duration: 90ms; }

/* ---------- o rodapé ---------- */
.rodape { margin-top: 14px; font-size: 13px; color: var(--tinta-suave); text-align: center; }

/* ---------- telas baixas (o navegador do Instagram come o topo e o pé da tela) ---------- */
@media (max-height: 760px) {
  .links { padding-top: max(28px, env(safe-area-inset-top)); }
  .avatar { width: 104px; height: 104px; }
  .titulo { margin-top: 16px; }
  .botoes { margin-top: 24px; gap: 10px; }
  .botao { min-height: 62px; }
  .redes { margin-top: 20px; }
}

/* ---------- transitions.dev #18 · texts reveal ---------- */
/* As linhas começam 14px abaixo e invisíveis; .is-shown no bloco leva cada uma ao lugar, uma depois da outra.
   A entrada anima o invólucro de cada botão; o hover fica no próprio botão, sem as duas transições brigarem. */
.t-stagger-line {
  opacity: 0;
  transform: translateY(var(--stagger-distance));
  transition: opacity var(--stagger-dur) var(--stagger-ease), transform var(--stagger-dur) var(--stagger-ease);
}
.t-stagger.is-shown .t-stagger-line { opacity: 1; transform: translateY(0); }
.t-stagger-line--2 { transition-delay: calc(var(--stagger-stagger) * 1); }
.t-stagger-line--3 { transition-delay: calc(var(--stagger-stagger) * 2); }
.t-stagger-line--4 { transition-delay: calc(var(--stagger-stagger) * 3); }
.t-stagger-line--5 { transition-delay: calc(var(--stagger-stagger) * 4); }
.t-stagger-line--6 { transition-delay: calc(var(--stagger-stagger) * 5); }
.t-stagger-line--7 { transition-delay: calc(var(--stagger-stagger) * 6); }
.t-stagger-line--8 { transition-delay: calc(var(--stagger-stagger) * 7); }
/* sem JS nada fica escondido: as linhas aparecem paradas */
html:not(.js) .t-stagger-line { opacity: 1; transform: none; }
/* rede de segurança: se o script não marcar .is-shown (navegador de app, script bloqueado), tudo aparece sozinho */
@keyframes t-stagger-aparece { to { opacity: 1; transform: none; } }
html.js .t-stagger:not(.is-shown) .t-stagger-line { animation: t-stagger-aparece 1ms 1.2s forwards; }

@media (prefers-reduced-motion: reduce) {
  .t-stagger-line { transition: none !important; opacity: 1; transform: none; }
  .botao, .botao__seta, .redes a { transition: none; }
  .botao:hover, .redes a:hover { transform: none; }
  .botao:active { transform: none; }
}
