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

html,
body {
  height: 100%;
  overflow: hidden;
}

:root {
  --visible-height: 100vh;
}

body {
  margin: 0;
  background: #ffffff;
}

@keyframes fade-text-panel {
  from {
    background-color: #ffffff;
  }

  to {
    background-color: #e2e3aa;
  }
}

@keyframes fade-image-panel {
  from {
    background-color: #ffffff;
  }

  to {
    background-color: #596950;
  }
}

@keyframes fade-content {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.sleep-logo {
  position: fixed;
  left: 0;
  top: 0;
  width: 100px;
  height: 100px;
  pointer-events: none;
  user-select: none;
  z-index: 9999;
  will-change: transform;
}

.split {
  height: 100vh;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.panel {
  flex: 0 0 50vw;
  width: 50vw;
  height: 100vh;
  min-height: 0;
}

.panel--text {
  background: #ffffff;
  animation: fade-text-panel 1s ease forwards;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;

  color: #000;
  text-align: center;
  leading-trim: both;
  text-edge: cap;
  font-family: "leulia-regular.woff2";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: normal;
  letter-spacing: 1.82px;
}

.text-block {
  max-width: 520px;
  padding: 32px 20px;
  box-sizing: border-box;
  opacity: 0;
  animation: fade-content 1s ease 1s forwards;
}

.brand {
  margin-bottom: 18px;
}

.copy {
  white-space: normal;
}

.email {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.email:hover {
  opacity: 0.5;
}

.email:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.panel--image {
  background: #ffffff;
  animation: fade-image-panel 1s ease forwards;
  overflow: hidden;
}

.hero {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  animation: fade-content 1s ease 1s forwards;
}

@media (max-width: 768px) {
  .sleep-logo {
    width: 85px;
    height: 85px;
  }

  .split {
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    height: var(--visible-height);
  }

  .panel--text {
    font-size: 11.2px;
  }

  .panel--text,
  .panel--image {
    flex: 0 0 50vh;
    flex-basis: 50dvh;
    flex-basis: calc(var(--visible-height) / 2);
    width: 100vw;
    height: 50vh;
    height: 50dvh;
    height: calc(var(--visible-height) / 2);
  }
}

