:root {
  --social-brown: #c02729;
  --icon: #d3d4d3;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  overflow: hidden;
  background: var(--social-brown);
  font-family: Arial, Helvetica, sans-serif;
}

.hero {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  isolation: isolate;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.logo {
  position: absolute;
  top: 13px;
  right: 18px;
  display: block;
  width: min(400px, 42vw);
  height: auto;
}

.social {
  position: absolute;
  right: auto;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 21px 46px 21px 48px;
  background: var(--social-brown);
  border-radius: 0 0 0 20px;
}

.social::after {
  position: absolute;
  top: 0;
  right: -100px;
  width: 100px;
  height: 100%;
  content: "";
  background: var(--social-brown);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.social__list {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.6vw, 42px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: grid;
  width: 31px;
  height: 38px;
  place-items: center;
  color: var(--icon);
  transition: transform 160ms ease, color 160ms ease;
}

.social a:hover,
.social a:focus-visible {
  color: #fff;
  transform: translateY(-3px);
}

.social a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.social svg {
  display: block;
  width: 30px;
  height: 30px;
  fill: currentColor;
}

@media (max-width: 767px) {
  .hero {
    min-height: 420px;
  }

  .hero__image {
    object-position: 52% center;
  }

  .logo {
    top: 16px;
    right: 0;
    left: 0;
    width: min(390px, calc(100% - 32px));
    margin: 0 auto;
  }

  .social {
    right: 0;
    padding: 12px 14px;
    border-radius: 0;
  }

  .social::after {
    display: none;
  }

  .social__list {
    justify-content: center;
    gap: clamp(11px, 4vw, 26px);
  }

  .social a {
    width: 27px;
    height: 35px;
  }

  .social svg {
    width: 25px;
    height: 25px;
  }
}

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