:root {
  color-scheme: light dark;
  --surface: #070707;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
}

.landing {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: 80px 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M80 0H0V80' fill='none' stroke='%23242424' stroke-width='1'/%3E%3C/svg%3E");
  opacity: 0.55;
}

.brand {
  display: flex;
  width: min(84vw, 720px);
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 6vw, 56px);
  padding: max(48px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right)) max(48px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
  text-align: center;
}

.logo-heading {
  width: 100%;
  margin: 0;
}

.logo,
.slogan,
.logo img,
.slogan img {
  display: block;
  width: 100%;
}

.logo {
  max-width: 640px;
  margin-inline: auto;
}

.slogan {
  max-width: 430px;
}

@media (max-width: 640px) {
  .grid {
    background-size: 48px 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M48 0H0V48' fill='none' stroke='%23242424' stroke-width='1'/%3E%3C/svg%3E");
  }

  .brand {
    width: calc(100vw - 40px);
    padding: max(40px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(40px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }

  .slogan {
    max-width: 78%;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --surface: #f4f4f0;
  }

  .grid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M80 0H0V80' fill='none' stroke='%23deded8' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.7;
  }
}

@media (prefers-color-scheme: light) and (max-width: 640px) {
  .grid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M48 0H0V48' fill='none' stroke='%23deded8' stroke-width='1'/%3E%3C/svg%3E");
  }
}
