:root {
  --azul: #0f1b84;
  --azul-textura: #0b2496; /* cor média da textura, aparece enquanto ela carrega */
  --offwhite: #f3f0e2;
  --manteiga: #f3e9b9;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 20px clamp(64px, 12svh, 140px);
  /* textura feita da imagem original espelhada 2x2: repete sem emenda e sem perder nitidez */
  background: var(--azul-textura) url(/assets/textura-azul.webp) center / 840px auto repeat;
  color: var(--offwhite);
  font: 400 1rem/1.6 "Open Sauce Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* assinatura "tess" em relevo: presa embaixo, com a metade de baixo cortada pela borda da tela */
body::before {
  content: ""; position: fixed; left: 50%; bottom: 0; z-index: -2; pointer-events: none;
  width: min(1240px, 135vw); aspect-ratio: 1240 / 470;
  translate: -50% 20%; /* corta só a parte de baixo das letras */
  background: url(/assets/assinatura.webp) center / 100% 100% no-repeat;
  /* esfuma as bordas para a assinatura sumir na textura */
  -webkit-mask: linear-gradient(to bottom, transparent, #000 25%), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(to bottom, transparent, #000 25%), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-composite: intersect;
}
.mark { display: block; background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }

main { width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; text-align: center; }

/* foto redonda com o nome escrito em volta (SVG textPath) */
.retrato { position: relative; width: min(300px, 40svh, 80vw); aspect-ratio: 1; }
.retrato img { position: absolute; inset: 18%; width: 64%; height: 64%; border-radius: 50%; object-fit: cover; }
.retrato svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.retrato text { fill: var(--offwhite); font: 500 37px "Open Sauce Sans", sans-serif; letter-spacing: .3px; }

.links { list-style: none; width: min(300px, 100%); display: grid; gap: 14px; margin-top: clamp(20px, 4svh, 40px); }
.links a {
  display: block; padding: 8px 20px; border-radius: 999px;
  background: var(--manteiga); color: #151515; text-decoration: none;
  font-size: clamp(1.375rem, 3.6svh, 1.75rem); font-weight: 700; line-height: 1.3;
  transition: background .2s;
}
.links a:hover, .links a:focus-visible { background: var(--offwhite); }
a:focus-visible { outline: 2px solid var(--offwhite); outline-offset: 3px; }

.logo { --src: url(/assets/logo-lateral.png); width: min(260px, 66vw); aspect-ratio: 5386 / 1132; margin-top: clamp(24px, 5svh, 48px); }

.dados { margin-top: clamp(16px, 3svh, 28px); font-size: .9375rem; line-height: 1.55; font-weight: 300; }
.dados a { color: inherit; text-decoration: none; }
.dados a:hover { text-decoration: underline; text-underline-offset: 4px; }

.idiomas { display: flex; gap: 16px; margin-top: 16px; font-size: .75rem; letter-spacing: .08em; }
.idiomas a { color: var(--offwhite); text-decoration: none; opacity: .7; }
.idiomas a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.idiomas a:hover { opacity: 1; }

/* texto em volta da foto girando devagar */
.retrato svg { animation: girar 30s linear infinite; }
@keyframes girar { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .retrato svg { animation: none; } }

/* computador: tudo um pouco menor */
@media (min-width: 900px) {
  .retrato { width: min(240px, 34svh); }
  .links { width: 250px; gap: 12px; }
  .links a { font-size: 1.25rem; padding: 7px 20px; }
  .logo { width: 210px; }
  .dados { font-size: .875rem; }
}
.retrato .linha { fill: none; stroke: var(--offwhite); stroke-width: 1.5; stroke-linecap: round; }
