*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #000000;
  --accent:       #9333ea;
  --accent-dim:   #3b0764;
  --text:         #f1f1f1;
  --muted:        #888888;
  --tile:         #0d0d0d;
  --tile-border:  #1f0533;
  --tile-hover:   #160326;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  gap: 3rem;
}

/* --- Bio block --- */
.bio {
  max-width: 520px;
  text-align: center;
}

.bio img {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-dim);
  margin-bottom: 1.25rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.bio h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.bio h1.rainbow {
  background: linear-gradient(
    90deg,
    #ff9de2, #ffb3ba, #ffd6a5,
    #fdffb6, #caffbf, #9bf6ff,
    #a0c4ff, #bdb2ff, #ffc6ff,
    #ff9de2
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: rainbow-shift 4s linear infinite;
}

@keyframes rainbow-shift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.bio p {
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.7;
}

/* --- Tile grid --- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
  max-width: 520px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: var(--tile);
  border: 1px solid var(--tile-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.tile:hover {
  background: var(--tile-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.tile svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

.tile span {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* --- Responsive --- */
@media (max-width: 400px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
