html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 100px 14px 28px;
  box-sizing: border-box;
}

#canvas-wrap {
  width: min(92vw, 560px);
  aspect-ratio: 1 / 1;
  max-height: 58svh;
  touch-action: manipulation;
  cursor: pointer;
}

#canvas-wrap:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#brand-text {
  font-family: Georgia, "Silkscreen", system-ui, sans-serif;
  font-size: clamp(16px, 4.5vw, 24px);
  letter-spacing: 0.16em;
}

#definition {
  z-index: 10;
  margin: 0;
  width: min(92vw, 760px);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(14px, 4.5vw, 18px);
  line-height: 1.3;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

#definition ol {
  margin: 0.45em 0 0;
  padding-left: 1.35em;
  list-style: decimal;
}

#definition li + li {
  margin-top: 1.28em;
}

#definition a,
#definition a:visited {
  color: #777;
  text-decoration: none;
}

#definition a:hover {
  color: #666;
}

#builds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(92vw, 760px);
  margin-top: 20px;
  margin-left: 20px;
}

.build-card,
.build-card:visited {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 10px 12px;
  border-left: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  line-height: 1.3;
  text-decoration: none;
  transform: translateY(0) scale(1);
  transition: transform 220ms ease;
}

.build-card::before {
  position: absolute;
  top: -60%;
  left: -40%;
  width: 28%;
  height: 250%;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  content: "";
  opacity: 0.08;
  pointer-events: none;
  transition: transform 560ms ease;
}

.build-card:hover,
.build-card:focus-visible {
  text-decoration: none;
}

.build-card:hover::before,
.build-card:focus-visible::before {
  transform: translateX(520%) skewX(-24deg);
}

.build-title {
  display: block;
  font-family: Georgia, "Silkscreen", system-ui, sans-serif;
  font-size: clamp(14px, 2.8vw, 18px);
  letter-spacing: 0.16em;
}

.build-desc {
  display: block;
  margin-top: 20px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(14px, 3vw, 18px);
  line-height: 1.2;
  opacity: 0.9;
  transition: opacity 220ms ease, transform 220ms ease;
}

#footer {
  width: min(92vw, 760px);
  margin: 200px 0 100px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(12px, 2.8vw, 15px);
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-align: center;
  opacity: 0.55;
}

@media (max-width: 640px) {
  body {
    gap: 12px;
    padding: 14px 10px 20px;
  }

  #canvas-wrap {
    width: 94vw;
    max-height: 52svh;
  }

  #builds {
    gap: 8px;
  }
}
