:root {
  --bg: #ebd7b6;
  --text: #34230d;
}

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

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

html,
body {
  overflow-x: hidden;
}

body {
  min-height: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--text);
  font-family: Montserrat, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  box-sizing: border-box;
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  padding-left: max(1.25rem, env(safe-area-inset-left));
}

.logo {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0;
  width: min(82vw, 28rem);
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  max-height: calc(100vh - 7.5rem);
  max-height: calc(100dvh - 7.5rem);
  object-fit: contain;
}

.message {
  flex-shrink: 0;
  width: min(22em, 100%);
  max-width: 100%;
  font-size: clamp(0.95rem, 3.6vw, 1.2rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.message a {
  color: inherit;
  font-weight: 600;
}

@media (max-width: 480px) {
  .logo {
    width: min(94vw, 22rem);
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .page {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    padding-top: max(0.5rem, env(safe-area-inset-top));
    padding-right: max(1.5rem, env(safe-area-inset-right));
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    padding-left: max(1.5rem, env(safe-area-inset-left));
  }

  .logo {
    width: auto;
    max-width: min(44vw, 20rem);
    max-height: 86vh;
    max-height: calc(100dvh - 1rem);
  }

  .message {
    text-align: left;
    width: min(22em, 48vw);
    font-size: clamp(0.9rem, 2.4vw, 1.15rem);
  }
}
