:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #151412;
}

* { box-sizing: border-box; }

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

.home {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #151412 url("./assets/background-home-mobile.webp") center center / cover no-repeat;
}

.home__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.04) 42%, rgba(0, 0, 0, 0.46) 100%);
}

.home__content {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  text-align: center;
}

.home__logo {
  display: block;
  width: min(156px, 44vw);
  height: auto;
}

.home__message {
  margin-top: 26px;
  color: #f5f5f5;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(1.35rem, 5.5vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.home__mail {
  display: inline-block;
  margin-top: 21px;
  color: inherit;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.home__mail svg {
  display: block;
  width: 20px;
  height: 20px;
}

.home__mail:hover, .home__mail:focus-visible { opacity: 0.65; }
.home__mail:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }

@media (min-width: 700px) {
  .home { background-image: url("./assets/background-home.webp"); }

  .home__content { padding: 40px 48px; }

  .home__logo { width: 176px; }

  h1 {
    max-width: none;
    font-size: clamp(1.7rem, 2.3vw, 2.25rem);
  }
}

@media (min-width: 1200px) {
  .home__content { padding: 52px 64px; }
}

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