:root {
  color-scheme: dark;
  font-family: "Space Grotesk", "IBM Plex Mono", "Segoe UI", system-ui,
    sans-serif;
  --bg: #020408;
  --fg: #f5f7ff;
  --border-strong: rgba(245, 247, 255, 0.15);
  --border-soft: rgba(245, 247, 255, 0.08);
  --border-hover: rgba(245, 247, 255, 0.6);
  --glow-green: rgba(97, 244, 215, 0.15);
  --glow-indigo: rgba(99, 102, 241, 0.2);
  --link: #9ad9ff;
  --link-hover: #ebfbff;
  --link-underline: rgba(154, 217, 255, 0.45);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg,
      rgba(97,244,215,0.12) 0%,
      rgba(99,102,241,0.05) 25%,
      rgba(0,0,0,0) 100%
    ),
    var(--bg);
  color: var(--fg);
}

.wrapper {
  width: min(960px, 92vw);
  margin: 0 auto;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid var(--link-underline);
  transition: color 200ms ease, border-color 200ms ease;
}

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

.site-header {
  padding: 2rem 0 1.5rem;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1rem;
}

.logo {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nav a {
  position: relative;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: inherit;
  padding-bottom: 0.25rem;
  text-decoration: none;
  border-bottom: none;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 150ms ease-out;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero-bio {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-bio h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2.1vw, 3rem);
  line-height: 1.3;
  font-weight: 500;
}

.hero-bio p {
  margin: 0;
  color: var(--fg);
}

.hero-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.4rem;
  color: var(--fg);
  list-style: disc;
}

.hero-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.sections {
  padding: 4rem 0 5rem;
  display: grid;
  gap: 2rem;
}

.section-anchor {
  padding-top: 2rem;
}

.section-anchor h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  font-size: 1.5rem;
}

.skills-group {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skills-group h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg);
}

#projects .skills-group {
  position: relative;
  padding-left: 1.6rem;
}

#projects .skills-group::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0.9rem;
  height: 100%;
  border-left: 2px solid var(--border-strong);
  border-top: 2px solid var(--border-strong);
  border-bottom: 2px solid var(--border-strong);
  pointer-events: none;
}

#projects .skills-group p:last-of-type {
  font-style: italic;
}

.skills-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.skills-list li {
  color: var(--fg);
  font-size: 0.95rem;
}

.skills-group > p:last-of-type {
  opacity: 0.7;
  font-size: 0.9rem;
}

.bullet {
  display: none;
}

.contact-links {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.95rem;
  color: var(--fg);
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border-soft);
}

.footer__inner {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg);
}

@media (max-width: 640px) {
  .site-header {
    padding: 2rem 0;
  }

  .header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
  }
}
