* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: #000;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 800;
}

/* ---------- Front page ---------- */

.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 1rem;
}

.home h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  text-align: center;
}

.squares {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(4px, 1.2vw, 16px);
  width: 100%;
}

.square {
  width: clamp(40px, 11vw, 120px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  color: #fff;
  background: #000;
  text-decoration: none;
  font-size: clamp(0.5rem, 1.5vw, 1rem);
  font-weight: 800;
  transition: transform 0.2s ease;
}

.square:hover {
  transform: scale(1.12);
}

/* ---------- Subpages ---------- */

.page-title {
  margin: 0;
  padding-top: 2rem;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
}

.back {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  opacity: 0.6;
}

.back:hover {
  opacity: 1;
}
