﻿/* Fluid layout; decorative images share grid cells with their related content. */
html, body { min-width: 0; }
#site { width: 100%; min-width: 0; overflow: visible; }
#links-page {
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  background-size: cover;
}
#links-page .centralizar {
  --profile-size: 156px;
  --badge-size: 43px;
  --logo-width: 241px;
  --contact-gap: 69px;
  --contact-height: 70px;
  --icon-size: 30px;
  width: calc(100% - 48px);
  max-width: 360px;
  margin-inline: auto;
  padding-top: max(46px, env(safe-area-inset-top));
  padding-bottom: max(64px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}
#links-page .centralizar > .lp-e {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  min-width: 0;
  max-width: 100%;
  grid-column: 1;
}
#links-page .centralizar > .lp-e .c {
  float: none;
  white-space: normal;
}
#profile-image {
  grid-row: 1;
  width: var(--profile-size);
  height: auto;
  aspect-ratio: 1;
}
#profile-badge {
  grid-row: 1;
  align-self: start;
  width: var(--badge-size);
  height: auto;
  aspect-ratio: 1;
  /* Follow the avatar edge independently of the viewport width. */
  margin-left: calc(var(--profile-size) * .86);
}
#brand-logo {
  grid-row: 2;
  width: var(--logo-width);
  height: auto;
  aspect-ratio: 240.996 / 88.9941;
}
#instagram-handle { grid-row: 3; width: 100%; height: auto; }
#instagram-handle .c {
  height: auto;
  font-size: 16px;
  line-height: 2;
  white-space: normal;
  overflow-wrap: anywhere;
}
#contact-button {
  grid-row: 4;
  width: 100%;
  height: auto;
  min-height: var(--contact-height);
  margin-top: var(--contact-gap);
}
#contact-button .c {
  height: auto;
  min-height: inherit;
  padding: 16px 60px;
  font-size: 16px;
  overflow-wrap: anywhere;
}
#whatsapp-icon {
  grid-row: 4;
  align-self: center;
  justify-self: end;
  width: var(--icon-size);
  height: auto;
  aspect-ratio: 29.7559 / 29.9805;
  margin-top: var(--contact-gap);
  margin-right: 30px;
}
#profile-badge .c .imagem_fundo,
#brand-logo .c .imagem_fundo,
#whatsapp-icon .c .imagem_fundo {
  background-size: contain;
  background-position: center;
}
@media (max-width: 800px) {
  #links-page .centralizar {
    --profile-size: 147px;
    --badge-size: 40px;
    --logo-width: 299px;
    --contact-height: 62px;
    --contact-gap: 100px;
    --icon-size: 26px;
    max-width: 316px;
    padding-top: max(49px, env(safe-area-inset-top));
  }
  #instagram-handle .c, #contact-button .c { font-size: 14px; }
  #whatsapp-icon { margin-right: 26px; }
}
/* Landscape phones retain normal scrolling with less empty space. */
@media (max-height: 500px) and (orientation: landscape) {
  #links-page .centralizar {
    --contact-gap: 32px;
    padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }
}
