:root {
  color-scheme: dark;
  --page-bg: #000;
  --text: #fff;
  --overlay: rgba(0, 0, 0, .7);
  --focus: #9fd8ff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

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

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 64px 24px;
  overflow: hidden;
  background: var(--page-bg) url("../img/cover.jpg") center / cover fixed no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--overlay);
}

.hero__logo {
  width: min(200px, 62vw);
  height: auto;
}

.hero__arrow {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  opacity: .92;
  transition: opacity .2s ease, transform .2s ease;
  animation: arrow-pulse 1.8s ease-in-out infinite;
}

.hero__arrow:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(2px);
}

.hero__arrow:focus-visible,
.socials__link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.hero__arrow svg,
.socials__link svg {
  fill: currentColor;
}

.socials {
  background: var(--page-bg);
  padding: 60px 20px;
}

.socials__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.socials__link {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: opacity .2s ease, transform .2s ease;
}

.socials__link:hover {
  opacity: .82;
  transform: translateY(-2px);
}

@keyframes arrow-pulse {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__arrow {
    animation: none;
  }

  .hero__arrow,
  .socials__link {
    transition: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .hero {
    background-attachment: scroll;
  }
}
