:root {
  --text-main: #1f3a4b;
  --text-muted: #2a4a5d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  font-family: "Avenir Next", "Montserrat", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: #ffffff;
}

.home {
  min-height: 100dvh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-right: max(1rem, env(safe-area-inset-right));
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  padding-left: max(1rem, env(safe-area-inset-left));
}

.logo-wrap {
  margin: 0;
  width: min(100%, 68rem);
}

.logo-wrap img {
  width: clamp(220px, 70vw, 560px);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.baseline {
  margin: clamp(0.6rem, 1.8vh, 1rem) auto 0;
  max-width: min(50ch, 92vw);
  font-size: clamp(0.95rem, 1rem + 0.35vw, 1.2rem);
  line-height: 1.45;
  letter-spacing: 0.012em;
  text-wrap: balance;
  color: var(--text-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .home {
    padding-top: max(0.9rem, env(safe-area-inset-top));
    padding-right: max(0.9rem, env(safe-area-inset-right));
    padding-bottom: max(0.9rem, env(safe-area-inset-bottom));
    padding-left: max(0.9rem, env(safe-area-inset-left));
  }

  .logo-wrap img {
    width: clamp(210px, 84vw, 500px);
  }
}

@media (max-width: 400px) {
  .logo-wrap img {
    width: clamp(180px, 88vw, 360px);
  }

  .baseline {
    font-size: 0.92rem;
    line-height: 1.4;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .home {
    place-items: start center;
    align-content: center;
    row-gap: 0.5rem;
  }

  .logo-wrap img {
    width: clamp(160px, 42vw, 380px);
  }

  .baseline {
    margin-top: 0.45rem;
    font-size: 0.9rem;
  }
}

@media (min-width: 1440px) {
  .logo-wrap img {
    width: clamp(440px, 32vw, 640px);
  }

  .baseline {
    font-size: 1.25rem;
  }
}