* { box-sizing: border-box; }
html { background: #f1f2f5; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; }
.page {
  width: min(100%, 874px, max(400px, 56.25svh));
  aspect-ratio: 9 / 16;
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  overflow: hidden;
  background: #6b0000;
  color: white;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
}
.page::before { content: ""; position: absolute; inset: 0; background: url("assets/fundo.webp") center / 100% 100% no-repeat; opacity: .26; z-index: -1; }
h1, p { margin: 0; }
.linhas { position: absolute; left: 47.52%; top: 0; width: 2.96%; height: 8.85%; border-inline: 1.05cqw solid #eee; }
.pontos { position: absolute; width: 40%; height: 12.32%; background: radial-gradient(circle at .52cqw .52cqw, white 0 .34cqw, transparent .49cqw) 0 0 / 4.34cqw 4.18cqw; }
.topo { top: -2.35%; left: 73.3%; }
.base { top: 90.8%; left: -20.05%; }
.moldura { position: absolute; left: 23.72%; top: 10.187%; width: 52.16%; aspect-ratio: 1; border-radius: 0 50% 50% 50%; background: white; }
.retrato { position: absolute; left: 4.245%; top: 3.87%; width: 92.26%; height: 92.26%; border-radius: 50%; object-fit: cover; }
.nome, .profissao, .instrucao, .legenda {
  position: absolute; text-align: center; white-space: nowrap; line-height: 1;
}
[data-largura] { display: inline-block; transform: scaleX(var(--ajuste, 1)); }
.nome { top: 43.03%; left: 4%; width: 91%; font-size: 4.27cqw; letter-spacing: .37cqw; font-weight: 650; }
.profissao { top: 47.04%; left: 4%; width: 92.5%; font-size: 3.23cqw; letter-spacing: .33cqw; font-weight: 200; }
.cartao { display: block; position: absolute; width: 30.258%; height: 11.741%; border-radius: 2.85cqw; background: #fff; color: #6b0000; text-decoration: none; }
.portfolio { top: 52.242%; left: 15.946%; }
.agenda { top: 52.242%; left: 53.993%; }
.local { top: 70.753%; left: 15.445%; }
.insta { top: 70.753%; left: 53.89%; }
.icone { position: absolute; display: block; }
.portfolio .icone { left: 28.93%; top: 15.69%; width: 40.47%; height: 49.13%; }
.agenda .icone { left: 37.41%; top: 22.28%; width: 29.36%; }
.local .icone { left: 41.13%; top: 20.27%; width: 20.44%; }
.insta .icone { left: 37.76%; top: 23.70%; width: 28.39%; }
.legenda { color: #6b0000; left: 0; width: 100%; top: 75.5%; font: 700 1.98cqw/1 "Avenir Next", Arial, sans-serif; }
.agenda .legenda { left: 2%; }
.local .legenda, .insta .legenda { top: 74.5%; left: 1.4%; }
.fundo-portfolio { position: absolute; inset: 0; border-radius: inherit; }
.detalhe-portfolio { color: inherit; }
.detalhe-portfolio .legenda { pointer-events: none; }
.detalhe-portfolio .legenda span { pointer-events: auto; text-decoration: underline; text-underline-offset: .1em; }
a:focus-visible, .detalhe-portfolio:focus-visible .icone { outline: .45cqw solid #bc7926; outline-offset: .3cqw; }
.detalhe-portfolio:focus-visible { outline: none; }
.toque { position: absolute; left: 25.52%; top: 88.44%; width: 4.04%; height: 3.21%; }
.instrucao { top: 89.40%; left: 30%; width: 44.5%; letter-spacing: 1.07cqw; font-size: 2.28cqw; font-weight: 400; }
