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

:root {
  --bg:       #1e2030;
  --fg:       #cdd6f4;
  --sep:      #585b70;
  --nav:      #a6e3a1;
  --nav-hover:#94e2d5;
  --name:     #cdd6f4;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Courier New', Courier, monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.container {
  text-align: center;
  padding: 2rem 1rem;
}

/* ── ASCII art with rainbow gradient ── */
.ascii-art {
  display: inline-block;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(0.45rem, 1.2vw, 0.85rem);
  line-height: 1.2;
  white-space: pre;
  background: linear-gradient(
    135deg,
    #f38ba8,
    #fab387,
    #f9e2af,
    #a6e3a1,
    #89dceb,
    #89b4fa,
    #cba6f7
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.4rem;
}

/* ── Name ── */
.name {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--name);
  margin-bottom: 1.4rem;
}

.name .sep {
  color: var(--sep);
  margin: 0 0.1em;
}

/* ── Nav ── */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: center;
}

.nav a {
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.15s;
}

.nav a:nth-child(1) { color: #f38ba8; }
.nav a:nth-child(2) { color: #fab387; }
.nav a:nth-child(3) { color: #f9e2af; }
.nav a:nth-child(4) { color: #a6e3a1; }
.nav a:nth-child(5) { color: #89dceb; }
.nav a:nth-child(6) { color: #89b4fa; }

.nav a:hover,
.nav a:focus {
  filter: brightness(1.2);
  text-decoration: underline;
  outline: none;
}

/* ── Inner pages ── */
.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1rem;
  line-height: 1.7;
}

.page h1 {
  font-size: 1.4rem;
  color: var(--nav);
  margin-bottom: 1.4rem;
}

.page p,
.page li {
  color: var(--fg);
  font-size: 0.95rem;
}

.page ul {
  list-style: none;
  padding: 0;
}

.page ul li::before {
  content: '> ';
  color: var(--sep);
}

.page a {
  color: var(--nav-hover);
}

.page .back {
  display: inline-block;
  margin-bottom: 1.8rem;
  color: var(--sep);
  text-decoration: none;
  font-size: 0.9rem;
}

.page .back:hover {
  color: var(--nav);
}

@media (max-width: 480px) {
  .nav {
    gap: 0.4rem 0.7rem;
  }
  .nav a {
    font-size: 0.9rem;
  }
}
