@font-face {
  font-family: 'Suisse Intl';
  src: url('fonts/SuisseIntl-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Suisse Intl';
  src: url('fonts/SuisseIntl-RegularItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --color-bg: #ffffff;
  --color-text: #000000;
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Suisse Intl', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Типографика и скрытие до старта анимации */

.text {
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
  color: var(--color-text);
}

@media (max-width: 767px) {
  .text {
    font-size: 16px;
    line-height: 24px;
  }
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .page {
    opacity: 0;
    visibility: hidden;
  }

  .page.is-visible {
    opacity: 1;
    visibility: visible;
  }
}

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

/* Основной каркас страницы */

.page {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: 16px;
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

@media (pointer: coarse) {
  .page {
    height: 100svh;
  }
}

.page-header,
.page-footer {
  flex-shrink: 0;
}

.page-header .text,
.page-footer .text {
  white-space: nowrap;
}

/* Центральный блок: описание, логотип и ссылки */

.page-content {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding-bottom: 24px;
}

.bio {
  width: 100%;
  max-width: 720px;
  text-align: center;
}

.logo-wrap {
  width: 100%;
  max-width: 1096px;
  flex-shrink: 0;
}

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

/* Ссылки и анимация подчеркивания */

.links {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  height: 1px;
  background-color: var(--color-text);
}

/* Соцсети: при наведении линия рисуется слева направо, при уводе уходит слева направо */
.social-link::after {
  left: auto;
  right: 0;
  width: 0;
  transition: width 0.5s ease-out;
}

@media (hover: hover) {
  .social-link:hover::after {
    left: 0;
    right: auto;
    width: 100%;
  }
}

/* Email: линия видна всегда и анимируется через --email-line-scale и --email-line-origin */
.email-link::after {
  left: 0;
  right: 0;
  transform: scaleX(var(--email-line-scale, 1));
  transform-origin: var(--email-line-origin, left center);
}

/* WebGL-слой дизеринг-курсора */

.dither-cursor {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}
