:root {
  color-scheme: dark;
  --bg: #010104;
  --ink: #f3f3f4;
  --muted: #a2a4ab;
  --pale: #d9dce4;
  --dim: #737782;
  --panel: rgb(5 5 8 / 0.58);
  --line: rgb(255 255 255 / 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 45%, rgb(122 126 139 / 0.08), transparent 30rem),
    radial-gradient(circle at 50% 52%, rgb(255 255 255 / 0.045), transparent 11rem),
    linear-gradient(180deg, #030306 0%, var(--bg) 55%, #000 100%);
  color: var(--ink);
  font-family:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

#ascii-swirl {
  position: fixed;
  inset: 0;
  z-index: -4;
  display: block;
  width: 100%;
  height: 100%;
  background: #010104;
}

#black-hole-effect {
  position: fixed;
  inset: 0;
  z-index: -3;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.glass-haze {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 18rem, rgb(0 0 0 / 0.36) 38rem),
    linear-gradient(180deg, rgb(255 255 255 / 0.018), transparent 34%, rgb(0 0 0 / 0.62)),
    repeating-linear-gradient(
      180deg,
      rgb(255 255 255 / 0.016) 0,
      rgb(255 255 255 / 0.016) 1px,
      transparent 1px,
      transparent 7px
    );
  mix-blend-mode: normal;
}

.topline {
  position: fixed;
  top: clamp(1rem, 3vw, 2rem);
  left: clamp(1rem, 4vw, 3rem);
  right: clamp(1rem, 4vw, 3rem);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 0 2rem rgb(255 255 255 / 0.04);
  backdrop-filter: blur(18px);
}

.nav-links a {
  min-width: 4.25rem;
  padding: 0.62rem 0.82rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1;
  text-align: center;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-links a:nth-child(1) {
  color: var(--pale);
}

.nav-links a:nth-child(2) {
  color: var(--muted);
}

.nav-links a:nth-child(3) {
  color: var(--dim);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgb(255 255 255 / 0.1);
  color: var(--ink);
  outline: 0;
  transform: translateY(-1px);
}

.intro {
  position: absolute;
  bottom: clamp(4rem, 12vh, 8rem);
  left: clamp(2rem, 5vw, 6rem);
  z-index: 2;
  width: min(590px, calc(100% - 2.5rem));
}

.intro-heading {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.avatar {
  display: block;
  width: 4.75rem;
  height: 4.75rem;
  flex: 0 0 auto;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.4),
    0 1rem 3rem rgb(0 0 0 / 0.38);
  object-fit: cover;
}

.name {
  margin: 0;
  color: var(--ink);
  font-family:
    "Inter Tight", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 3.65rem;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 0.9;
  text-shadow:
    0 0 1rem rgb(255 255 255 / 0.1),
    0 0 5rem rgb(255 255 255 / 0.08);
}

.intro p {
  max-width: 590px;
  margin: 0.95rem 0 0;
  color: rgb(255 255 255 / 0.58);
  font-size: 1rem;
  line-height: 1.55;
}

.intro .lead {
  margin-top: 1.35rem;
  color: rgb(255 255 255 / 0.78);
  font-size: 1.16rem;
  line-height: 1.5;
}

@media (max-width: 680px) {
  .topline {
    align-items: flex-start;
    top: 0.8rem;
    left: 0.9rem;
    right: 0.9rem;
  }

  .nav-links {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.2rem;
    max-width: none;
    padding: 0.25rem;
  }

  .nav-links a {
    min-width: 0;
    padding: 0.55rem 0.58rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .intro {
    bottom: clamp(2.5rem, 9vh, 5rem);
    left: 1.25rem;
    width: calc(100% - 2.5rem);
  }

  .intro-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
  }

  .avatar {
    width: 4.1rem;
    height: 4.1rem;
  }

  .name {
    font-size: 2.95rem;
  }

  .intro .lead {
    font-size: 1rem;
  }
}

@media (min-width: 1200px) {
  .name {
    font-size: 4.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links a {
    transition: none;
  }
}
