@font-face {
  font-family: "Dubai";
  src: url("assets/fonts/Dubai-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Dubai";
  src: url("assets/fonts/Dubai-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --color-text: #313131;
  --color-surface: #faf8f6;
  --color-muted: #8e8e93;
  --gradient-heading: linear-gradient(180deg, #4b2bee 25%, #b31b1b 100%);
  --gradient-interactive: linear-gradient(180deg, #4b2bee 0%, #b31b1b 100%);
  --content-max-width: 49.25rem;
  --page-gutter: clamp(2rem, 8vw, 6rem);
  --brand-mark-width: 88%;
  --header-height: 2.75rem;
  --social-target-size: 2.75rem;
  --social-icon-size: 1.875rem;
  min-width: 20rem;
}

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

body {
  margin: 0;
  color: var(--color-text);
  font-family: "Dubai", sans-serif;
}

.page {
  display: flex;
  min-height: calc(100vh + 12px);
  min-height: calc(100svh + 12px);
  flex-direction: column;
  align-items: center;
  padding-bottom: clamp(0.9375rem, 4vw, 1.75rem);
  background: linear-gradient(180deg, #d9d6d3 0%, var(--color-surface) 10%);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  height: var(--header-height);
  flex: 0 0 var(--header-height);
  align-items: center;
  justify-content: center;
  background: var(--color-text);
}

.navbar__logo {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-surface);
}

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

.container {
  display: flex;
  width: min(var(--content-max-width), calc(100% - var(--page-gutter)));
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 6vw, 3.75rem);
  padding-top: clamp(2.5rem, 10vh, 9rem);
}

.content {
  display: flex;
  width: 100%;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: clamp(3rem, 8vh, 7rem);
}

.hero {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: clamp(3.75rem, 8vw, 6rem);
}

.hero__title {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  animation: hero-appear 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes hero-appear {
  from {
    opacity: 0;
    transform: translateY(1.125rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__highlight {
  display: inline-block;
  background: var(--gradient-heading);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__rest {
  color: var(--color-text);
  -webkit-text-fill-color: var(--color-text);
}

.social {
  display: flex;
  justify-content: center;
}

.social__list {
  display: flex;
  margin: 0;
  padding: 0;
  gap: 0.9375rem;
  list-style: none;
}

.social__list a {
  display: flex;
  width: var(--social-target-size);
  height: var(--social-target-size);
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.social__list a::before {
  width: var(--social-icon-size);
  height: var(--social-icon-size);
  background: var(--color-text);
  content: "";
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.social__list li:nth-child(1) a::before {
  mask-image: url("assets/icons/Facebook.svg");
  -webkit-mask-image: url("assets/icons/Facebook.svg");
}

.social__list li:nth-child(2) a::before {
  mask-image: url("assets/icons/Instagram.svg");
  -webkit-mask-image: url("assets/icons/Instagram.svg");
}

.social__list li:nth-child(3) a::before {
  mask-image: url("assets/icons/Youtube.svg");
  -webkit-mask-image: url("assets/icons/Youtube.svg");
}

.social__list li:nth-child(4) a::before {
  mask-image: url("assets/icons/X.svg");
  -webkit-mask-image: url("assets/icons/X.svg");
}

.social__list li:nth-child(5) a::before {
  mask-image: url("assets/icons/LinkedIn.svg");
  -webkit-mask-image: url("assets/icons/LinkedIn.svg");
}

.social__list a:hover::before,
.social__list a:focus-visible::before {
  background: var(--gradient-interactive);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.brand-mark {
  width: var(--brand-mark-width);
  margin: 0 auto;
}

.credits {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 2rem);
}

.credits__divider {
  width: var(--brand-mark-width);
  height: 0;
  align-self: center;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--color-text);
}

.credits__row {
  display: flex;
  width: var(--brand-mark-width);
  align-self: center;
  direction: ltr;
}

.credits__text {
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  line-height: 1.5;
}

@media (max-width: 480px) {
  :root {
    --page-gutter: 2rem;
  }

  .hero__title > span {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title {
    animation: none;
  }
}
