@font-face {
  font-family: "alta outfit";
  src: url("./assets/outfit.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #130d20;
  color-scheme: dark;
}

body {
  margin: 0;
  color: #f7f5fc;
  font-family: "alta outfit", Outfit, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

#alta-profile {
  --ap-art: url("./assets/aurora-expanded.webp");
  container-type: inline-size;
}

.ap-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #130d20;
}

.ap-stage :where(h1, p) {
  margin: 0;
}

.ap-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--ap-art);
  background-size: cover;
  background-position: 46% center;
  opacity: .95;
  pointer-events: none;
}

.ap-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18, 10, 32, .36), rgba(18, 10, 32, .51)),
    linear-gradient(180deg, rgba(18, 10, 32, .08), rgba(18, 10, 32, .12) 52%, rgba(18, 10, 32, .56) 100%);
}

.ap-content {
  position: relative;
  z-index: 1;
  width: min(950px, calc(100% - 32px));
  margin-inline: auto;
  padding: 70px 0;
}

.ap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(400px, calc(100% - 272px)));
  align-items: center;
  gap: 32px;
}

.ap-identity {
  position: relative;
  isolation: isolate;
  text-align: center;
}

.ap-identity::before {
  content: "";
  position: absolute;
  inset: -35px -55px -40px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(23, 12, 39, .3), rgba(23, 12, 39, 0) 72%);
}

.ap-portrait {
  display: block;
  width: 204px;
  height: 204px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 43%;
  border-radius: 50%;
  border: 2px solid rgba(215, 181, 255, .42);
  box-shadow: 0 10px 36px rgba(12, 6, 22, .26);
  margin: 0 auto 29px;
}

.ap-name {
  color: #f7f5fc;
  font-size: 84px;
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -.055em;
  text-shadow: 0 2px 18px rgba(15, 8, 26, .45);
}

.ap-dot {
  color: #bf7efd;
}

.ap-handle {
  margin-top: 13px;
  color: #f0e5ff;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: .05em;
  font-weight: 500;
  text-shadow: 0 1px 9px #130d20;
}

.ap-bio {
  max-width: 360px;
  margin: 20px auto 0;
  color: #e8dff3;
  font-size: 19px;
  line-height: 1.7;
  font-weight: 400;
  text-wrap: balance;
  text-shadow: 0 1px 10px #130d20;
}

.ap-bio span {
  display: inline-block;
  white-space: nowrap;
}

.ap-links {
  display: grid;
  gap: 18px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.ap-links > li {
  margin: 0;
  padding: 0;
}

.ap-link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 13px 20px;
  border: 4px solid rgba(191, 126, 253, .31);
  border-radius: 11px;
  background: rgba(32, 18, 55, .72);
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(10, 5, 21, .04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color .18s, border-color .18s, transform .18s, box-shadow .18s;
}

.ap-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: #d5b0ff;
}

.ap-brand {
  display: block;
  width: 28px;
  height: 28px;
  background-color: currentColor;
  -webkit-mask: var(--ap-logo) center / contain no-repeat;
  mask: var(--ap-logo) center / contain no-repeat;
}

.ap-brand-camera { --ap-logo: url("./assets/icons/camera.svg"); }
.ap-brand-bluesky { --ap-logo: url("./assets/icons/bluesky.svg"); }
.ap-brand-x { --ap-logo: url("./assets/icons/x.svg"); }
.ap-brand-instagram { --ap-logo: url("./assets/icons/instagram.svg"); }
.ap-brand-youtube { --ap-logo: url("./assets/icons/youtube.svg"); }
.ap-brand-steam { --ap-logo: url("./assets/icons/steam.svg"); }
.ap-brand-telegram { --ap-logo: url("./assets/icons/telegram-plane.svg"); }
.ap-brand-discord { --ap-logo: url("./assets/icons/discord.svg"); }

.ap-label {
  min-width: 0;
}

.ap-arrow {
  margin-left: auto;
  color: #d0b4ed;
  font-size: 22px;
  line-height: 1;
  font-weight: 300;
  transition: transform .18s;
}

.ap-version {
  position: absolute;
  z-index: 1;
  inset-inline: 0;
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
  color: #c3b2d4;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .08em;
  text-align: center;
  pointer-events: none;
}

.ap-link:focus-visible {
  outline: 2px solid #e2bdff;
  outline-offset: 4px;
  background: rgba(87, 44, 130, .96);
  border-color: #bf7efd;
  transform: translateY(-2px);
}

@media (hover: hover) and (pointer: fine) {
  .ap-link:hover {
    background: rgba(87, 44, 130, .96);
    border-color: #bf7efd;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 5, 29, .2);
  }

  .ap-link:hover .ap-arrow {
    transform: translate(1px, -1px);
  }
}

@container (min-width: 900px) {
  .ap-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, min(400px, calc(100% - 482px)));
  }

  .ap-bio {
    max-width: none;
    white-space: nowrap;
  }
}

@container (max-width: 850px) {
  .ap-content {
    width: min(950px, calc(100% - 64px));
  }

  .ap-layout {
    gap: 24px;
  }

  .ap-name {
    font-size: 76px;
  }
}

@container (max-width: 680px) {
  .ap-stage {
    align-items: start;
  }

  .ap-content {
    width: min(414px, calc(100% - 40px));
    padding: 44px 0 max(70px, calc(48px + env(safe-area-inset-bottom, 0px)));
  }

  .ap-layout {
    display: block;
  }

  .ap-identity::before {
    inset: -30px 0;
  }

  .ap-portrait {
    width: 156px;
    height: 156px;
    margin-bottom: 23px;
  }

  .ap-name {
    font-size: 64px;
  }

  .ap-handle {
    font-size: 21px;
    margin-top: 11px;
  }

  .ap-bio {
    max-width: 350px;
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.7;
  }

  .ap-destinations {
    margin-top: 22px;
  }

  .ap-links {
    width: min(100%, 400px);
    min-width: 0;
  }

  .ap-link {
    min-height: 62px;
    padding: 12px 18px;
  }

  .ap-art {
    background-position: 43% center;
  }
}

@container (max-width: 360px) {
  .ap-content {
    width: calc(100% - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-link,
  .ap-arrow {
    transition: none;
  }

  .ap-link:hover,
  .ap-link:focus-visible,
  .ap-link:hover .ap-arrow {
    transform: none;
  }
}