:root {
  color-scheme: light;
  --paper: #f5f6f3;
  --ink: #263331;
  --water: #358ca0;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
}

body {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.scene {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  touch-action: none;
}

#terrain {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

#terrain.is-dragging {
  cursor: grabbing;
}

.identity {
  position: absolute;
  z-index: 2;
  top: max(28px, env(safe-area-inset-top));
  left: max(30px, calc(env(safe-area-inset-left) + 4px));
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.identity-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.wordmark {
  margin: 0;
  font-size: 30px;
  font-weight: 540;
  line-height: 1;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.tagline {
  margin: 0;
  font-size: 12px;
  font-weight: 560;
  line-height: 1;
  letter-spacing: 0.115em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.78;
}

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

.mark {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

noscript {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-size: 12px;
}

@media (max-width: 600px) {
  .identity {
    top: max(22px, env(safe-area-inset-top));
    left: max(20px, calc(env(safe-area-inset-left) + 2px));
    gap: 9px;
  }

  .wordmark {
    font-size: 25px;
    letter-spacing: 0.2em;
  }

  .identity-copy {
    gap: 7px;
  }

  .tagline {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .mark {
    width: 50px;
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #terrain {
    cursor: default;
  }
}
