:root {
  --bg: #191a1a;
  --fg: #f5f5f1;
  --muted-line: rgba(245, 245, 241, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  min-height: 100%;
}

body {
  min-height: 100svh;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Fira Mono", monospace;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.24em;
  text-decoration-thickness: 1px;
  transition:
    opacity 160ms ease,
    text-decoration-color 160ms ease;
}

a:hover {
  opacity: 0.72;
}

a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 6px;
}

.page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 28px;
}

.content {
  width: min(100%, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-5.5svh);
}

.logo {
  display: block;
  width: min(36.875vw, 472px);
  min-width: 360px;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 92px;
  font-size: clamp(20px, 1.875vw, 24px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
}

.socials a {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--muted-line);
}

.socials span {
  display: inline-block;
  padding-left: 4px;
  text-decoration: none;
}

.contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 38px;
  font-style: normal;
  font-size: clamp(20px, 1.875vw, 24px);
  font-weight: 500;
  line-height: 1.56;
  letter-spacing: 0;
  text-align: center;
}

.contacts a {
  text-decoration-line: underline;
  text-decoration-color: var(--muted-line);
}

@media (max-width: 767px) {
  .page {
    place-items: start center;
    padding: 18.8svh 24px 48px;
  }

  .content {
    width: min(100%, 342px);
    transform: none;
  }

  .logo {
    width: min(52.344vw, 201px);
    min-width: 168px;
  }

  .socials {
    width: 100%;
    gap: clamp(22px, 7vw, 34px);
    margin-top: 66px;
    font-size: clamp(21px, 6.15vw, 24px);
    justify-content: center;
  }

  .socials span {
    padding-left: 2px;
  }

  .contacts {
    width: 100%;
    margin-top: 58px;
    font-size: clamp(21px, 6.15vw, 24px);
    line-height: 1.58;
  }

  .contacts span {
    display: block;
  }

  .contacts a {
    display: inline-block;
  }
}

@media (max-width: 359px) {
  .page {
    padding-inline: 16px;
  }

  .socials,
  .contacts {
    font-size: 19px;
  }

  .socials {
    gap: 16px;
  }
}
