:root {
  --bg: #020805;
  --fg: #f0f2f7;
  --dim: #6a6f7e;
  --dimmer: #3a3d49;
  --accent: #5fffae;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--bg); }

#bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: block;
  z-index: 0;
}

/* corners darker so text always reads */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2,8,5,0.92) 0%, transparent 14%, transparent 85%, rgba(2,8,5,0.96) 100%),
    radial-gradient(ellipse 60% 50% at 0% 50%, rgba(2,8,5,0.65), transparent 70%),
    radial-gradient(ellipse 60% 50% at 100% 50%, rgba(2,8,5,0.65), transparent 70%);
}

.overlay {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  height: 100dvh;
  padding: clamp(1.1rem, 3vw, 2.5rem);
  pointer-events: none;
  text-shadow: 0 0 14px rgba(2, 8, 5, 0.90);
}

.overlay a { pointer-events: auto; }

.overlay a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 220ms ease, border-color 220ms ease;
}

.overlay a:hover,
.overlay a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
}

.dim { color: var(--dim); }

.status {
  font-size: clamp(0.72rem, 1.05vw, 0.82rem);
  color: var(--dim);
  letter-spacing: 0.05em;
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}

.status .prompt::before {
  content: '$ cd ';
  color: var(--dimmer);
}

.hero {
  align-self: center;
  justify-self: start;
}

.name {
  font-size: clamp(2.2rem, 5.6vw, 4.4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.55rem;
  color: var(--fg);
}

.tagline {
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--fg);
  margin-bottom: 0.35rem;
}

.hint {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--dim);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4ch;
}

#hint.pulse {
  animation: hint-pulse 2.2s ease-in-out infinite;
}

@keyframes hint-pulse {
  0%, 100% { opacity: 0.40; }
  50%      { opacity: 0.95; }
}

.bio {
  list-style: none;
  margin: 1.5rem 0 0 0;
  padding: 0;
  font-size: clamp(0.72rem, 1.05vw, 0.84rem);
  color: var(--fg);
  letter-spacing: 0.02em;
  line-height: 1.95;
  max-width: min(72ch, 100%);
  opacity: 0.78;
}

.bio li { display: block; }

.cursor {
  display: inline-block;
  width: 0.55ch;
  height: 1em;
  background: var(--accent);
  margin-left: 0.25ch;
  transform: translateY(0.18em);
  animation: blink 1.06s steps(2, start) infinite;
}

@keyframes blink {
  to { opacity: 0; }
}

.links {
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  color: var(--dim);
  letter-spacing: 0.04em;
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 700px) {
  .links { justify-content: flex-start; }
  .hero { justify-self: stretch; }
  .status { font-size: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; opacity: 0.6; }
}
