:root {
  color-scheme: dark;
  background: #000000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  --page-top: env(safe-area-inset-top, 0px);
  --page-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #000000;
}

.landing {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: var(--page-top);
  padding-bottom: var(--page-bottom);
}

.portrait {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 5;
  max-height: calc(100vh - var(--page-top) - var(--page-bottom));
  max-height: calc(100svh - var(--page-top) - var(--page-bottom));
  margin-inline: auto;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: #000000;
}

.portrait__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(
    to bottom,
    rgb(0 0 0 / 0) 0%,
    rgb(0 0 0 / 0.12) 22%,
    rgb(0 0 0 / 0.55) 55%,
    rgb(0 0 0 / 0.9) 80%,
    #000000 100%
  );
  pointer-events: none;
}

.telegram {
  position: absolute;
  z-index: 1;
  inset-inline-start: max(20px, env(safe-area-inset-left, 0px));
  inset-inline-end: max(20px, env(safe-area-inset-right, 0px));
  bottom: 20px;
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 16px 48px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #000000;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 24px rgb(0 0 0 / 0.22);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 160ms ease, background-color 160ms ease;
}

.telegram__icon {
  position: absolute;
  inset-inline-start: 18px;
  top: 50%;
  display: block;
  transform: translateY(-50%);
}

.telegram__label {
  white-space: nowrap;
}

.telegram:focus-visible {
  outline: 3px solid #229ED9;
  outline-offset: 5px;
}

.telegram:active {
  transform: scale(0.98);
  background: #F2F2F2;
}

@media (hover: hover) and (pointer: fine) {
  .telegram:hover {
    transform: translateY(-2px);
    background: #F5F5F5;
  }

  .telegram:active {
    transform: scale(0.98);
  }
}

@media (max-width: 359px) {
  .telegram {
    font-size: 15px;
  }
}

@media (min-width: 600px) {
  :root {
    --page-top: max(24px, env(safe-area-inset-top, 0px));
    --page-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .telegram {
    transition: none;
  }
}
