@font-face {
  font-family: "Michroma";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("assets/michroma-regular.woff2") format("woff2");
}

:root {
  --cyan: #5ce1e6;
  --blue: #38b6ff;
  --white: #ffffff;
  --page-background: #090f14;
  --display-font: "Michroma", "Century Gothic", "Avenir Next", Avenir,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background: var(--page-background);
  color: var(--white);
  font-family: var(--display-font);
}

a {
  color: inherit;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  background: var(--page-background);
}

.hero__background {
  position: absolute;
  z-index: -3;
  top: 50%;
  left: 50%;
  width: 100vh;
  width: 100svh;
  height: 100vw;
  background-image: url("assets/city-background.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translate(-50%, -50%) rotate(90deg) scale(1.01);
}

.hero__shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 7, 10, 0.32), rgba(2, 7, 10, 0.28)),
    rgba(2, 8, 12, 0.34);
}

.hero__content {
  width: min(94vw, 112rem);
  padding: clamp(2rem, 6vw, 7rem) 1rem;
  text-align: center;
  transform: translateY(4.5vh);
}

.hero__title,
.hero__contact {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 400;
  text-transform: uppercase;
}

.hero__title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.38em;
  font-size: clamp(1.35rem, 2.08vw, 2.65rem);
  line-height: 1.28;
  letter-spacing: 0.055em;
  text-shadow: 0 0.08em 0.42em rgba(0, 0, 0, 0.34);
  white-space: nowrap;
}

.hero__separator {
  color: var(--blue);
}

.hero__contact {
  margin-top: clamp(2.5rem, 6vh, 5rem);
  font-size: clamp(1.05rem, 1.51vw, 1.95rem);
  line-height: 1.35;
  letter-spacing: 0.035em;
}

.hero__contact a {
  color: var(--cyan);
  text-decoration: none;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.24em;
  transition:
    color 180ms ease,
    text-shadow 180ms ease;
}

.hero__contact a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-shadow: 0 0 0.7em rgba(92, 225, 230, 0.34);
}

.hero__contact a:focus-visible {
  border-radius: 0.12em;
  outline: 0.12em solid var(--blue);
  outline-offset: 0.2em;
}

@media (max-width: 68rem) {
  .hero__content {
    width: min(92vw, 60rem);
    transform: none;
  }

  .hero__title {
    flex-wrap: wrap;
    gap: 0.1em 0.35em;
    white-space: normal;
  }
}

@media (max-width: 42rem) {
  .hero__background {
    inset: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    transform: none;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(2, 7, 10, 0.4), rgba(2, 7, 10, 0.36)),
      rgba(2, 8, 12, 0.36);
  }

  .hero__content {
    width: min(90vw, 34rem);
    padding-inline: 0;
  }

  .hero__title {
    display: block;
    font-size: clamp(1.5rem, 7.2vw, 2.35rem);
    line-height: 1.42;
    letter-spacing: 0.045em;
  }

  .hero__title > span {
    display: block;
  }

  .hero__separator {
    height: 0.7em;
    line-height: 0.7;
  }

  .hero__contact {
    margin-top: clamp(2rem, 7vh, 3.5rem);
    font-size: clamp(1rem, 4.5vw, 1.35rem);
    line-height: 1.65;
  }

  .hero__contact span,
  .hero__contact a {
    display: block;
  }
}

@media (max-height: 32rem) and (orientation: landscape) {
  .hero__content {
    padding-block: 1.25rem;
    transform: none;
  }

  .hero__contact {
    margin-top: 1.5rem;
  }
}

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