:root {
  --page-bg: #f9f6ee;
  --button-bg: #062d62;
  --button-text: #ffffff;
  --focus: #f1b24a;
}

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

html {
  min-height: 100%;
  background: var(--page-bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--button-bg);
  background-color: var(--page-bg);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.link-page {
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(42px, 6vw, 106px) 20px clamp(72px, 10vw, 180px);
  background-color: var(--page-bg);
  background-image: url("assets/background-desktop.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.profile {
  width: min(100%, 760px);
  margin: 0 auto;
}

.brand-logo {
  display: block;
  width: min(100%, 500px);
  margin: 0 auto clamp(38px, 5vw, 72px);
}

.profile-photo {
  display: block;
  width: min(72vw, 350px);
  margin: 0 auto clamp(52px, 7vw, 76px);
}

.profile-photo img {
  width: 100%;
  border-radius: 50%;
}

.links {
  width: min(100%, 540px);
  margin: 0 auto;
  display: grid;
  gap: 30px;
}

.link-button {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  padding: 18px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  color: var(--button-text);
  background: var(--button-bg);
  box-shadow: 0 8px 20px rgb(6 45 98 / 12%);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.link-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgb(6 45 98 / 20%);
  filter: brightness(1.08);
}

.link-button:active {
  transform: translateY(0);
}

.link-button:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 767px) {
  .link-page {
    padding: 53px 18px max(110px, env(safe-area-inset-bottom));
    background-image: url("assets/background-mobile.png");
    background-position: center top;
    background-size: cover;
  }

  .profile {
    width: min(100%, 430px);
  }

  .brand-logo {
    width: 252px;
    max-width: 76vw;
    margin-bottom: 13px;
  }

  .profile-photo {
    width: 170px;
    max-width: 50vw;
    margin-bottom: 27px;
  }

  .links {
    width: 100%;
    gap: 30px;
  }

  .link-button {
    min-height: 61px;
    padding: 17px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
