:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  background: #07080c;
}

main {
  width: min(1600px, calc(100% - 32px));
  padding: clamp(16px, 3vw, 48px) 0;
}

.editor-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 26px);
}

.editor-button {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 3px solid transparent;
  border-radius: 8px;
  background: #11131a;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  transition: border-color .15s ease, transform .15s ease;
}

.editor-button:hover {
  border-color: #fff;
  transform: translateY(-3px);
}

.editor-button:focus-visible {
  border-color: #fff;
  outline: 3px solid #54a8ff;
  outline-offset: 4px;
}

.editor-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.legal {
  max-width: 1100px;
  margin: clamp(18px, 2vw, 28px) auto 0;
  color: #8a8f9d;
  font: 11px/1.5 system-ui, sans-serif;
  text-align: center;
}

.legal p {
  margin: 0;
}

.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: 900px) {
  main {
    width: min(512px, calc(100% - 24px));
  }

  .editor-buttons {
    grid-template-columns: 1fr;
  }
}
