:root {
  --background: #ebe6df;
  --nav-text: #bcb8b2;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: var(--background);
  color: var(--nav-text);
  font-family: "VT323", monospace;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("assets/noise.svg");
  background-repeat: repeat;
  background-size: 2vw 2vw;
  opacity: 0.75;
}

.site-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.logo {
  display: block;
  width: 30vw;
  height: auto;
}

.bottom-nav {
  --nav-gap: clamp(20px, 5vw, 72px);
  position: fixed;
  right: 0;
  bottom: 38px;
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  padding: 0 24px;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
}

.nav-group-left {
  justify-self: end;
  padding-right: calc(var(--nav-gap) / 2);
}

.nav-group-right {
  justify-self: start;
  padding-left: calc(var(--nav-gap) / 2);
}

.bottom-nav button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--nav-text);
  cursor: default;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
  opacity: 1;
}

@media (orientation: portrait) {
  .logo {
    width: 60vw;
  }
}

@media (max-width: 640px) {
  .bottom-nav {
    --nav-gap: 6px;
    right: auto;
    bottom: calc(24px + env(safe-area-inset-bottom));
    left: clamp(20px, 7vw, 30px);
    display: grid;
    grid-template-columns: 1fr;
    width: min(190px, calc(100vw - 40px));
    padding: 2px 0;
    row-gap: var(--nav-gap);
  }

  .nav-group {
    display: grid;
    gap: var(--nav-gap);
  }

  .nav-group-left,
  .nav-group-right {
    padding: 0;
    justify-self: stretch;
  }

  .bottom-nav button {
    display: block;
    min-height: 19px;
    text-align: left;
    color: rgba(132, 126, 118, 0.82);
    font-size: 18px;
  }
}
