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

:root {
  --text: #f0ede8;
  --text-muted: rgba(240, 237, 232, 0.45);
  --link: rgba(240, 237, 232, 0.55);
  --link-hover: rgba(240, 237, 232, 0.9);
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #0a0a0f;
}

/* Sky canvas — full viewport */
#sky {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* Single viewport layout */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 2rem;
  max-width: 100%;
}

/* Hero name */
.hero-name {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  user-select: none;
  line-height: 1;
  cursor: default;
  white-space: nowrap;
  /* Fixed height so letter animations don't push content below */
  height: clamp(3rem, 8.5vw, 6.5rem);
  overflow: visible;
}

.letter {
  display: inline-block;
  font-size: clamp(1.8rem, 6.5vw, 5rem);
  font-weight: 200;
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  color: var(--text);
  will-change: transform, font-weight, font-family;
  transition: font-family 0.3s ease;
  /* Grow upward from baseline, not downward */
  transform-origin: center bottom;
}

.letter.space {
  width: 0.3em;
}

/* Tagline */
.tagline {
  font-size: clamp(0.85rem, 2vw, 1.15rem);
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.03em;
  text-align: center;
  min-height: 1.5em;
}

.tagline::after {
  content: "|";
  animation: blink 1s step-end infinite;
  margin-left: 2px;
  color: var(--text-muted);
}

.tagline.done::after {
  animation: none;
  opacity: 0;
  transition: opacity 1s ease 2s;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Meta: nick + links */
.meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.nick {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-weight: 300;
}

.links {
  display: flex;
  gap: 1.5rem;
}

.links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--link);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.links a:hover {
  color: var(--link-hover);
}

.links svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 600px) {
  .center-block {
    padding: 1.5rem;
  }

  .letter {
    font-size: clamp(2rem, 11vw, 4rem);
  }
}
