:root {
  --bg: #0e0e10;
  --fg: #f2f2f2;
  --muted: #8a8a8f;
  --link: #b8b8bf;
  --link-hover: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem;
  text-align: center;
}

h1 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0;
}

.dots span {
  opacity: 0;
  animation-duration: 1.6s;
  animation-iteration-count: infinite;
  animation-timing-function: steps(1, end);
}
.dots span:nth-child(1) { animation-name: dot1; }
.dots span:nth-child(2) { animation-name: dot2; }
.dots span:nth-child(3) { animation-name: dot3; }

/* Cycle (1.6s): . -> .. -> ... -> (all clear) -> repeat */
@keyframes dot1 {
  0%   { opacity: 1; }
  75%  { opacity: 1; }
  76%  { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes dot2 {
  0%   { opacity: 0; }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  76%  { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes dot3 {
  0%   { opacity: 0; }
  50%  { opacity: 1; }
  75%  { opacity: 1; }
  76%  { opacity: 0; }
  100% { opacity: 0; }
}

.links {
  font-size: clamp(0.8rem, 2.5vw, 0.95rem);
  color: var(--muted);
}

.links a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.links a:hover,
.links a:focus-visible {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

@media (prefers-reduced-motion: reduce) {
  .dots span {
    opacity: 1;
    animation: none;
  }
}
