:root {
  --bg: #000;
  --text: #fff;
  --text-dim: #999;
  --border-subtle: #1a1a1a;
  --border-mid: #222;
  --border-strong: #333;
  --max-width: 680px;
  --font: "IBM Plex Mono", "SF Mono", "Fira Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Screen reader only */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Links */

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--text-dim);
  transition: border-color 0.2s;
}

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

a:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 2px;
}

/* Hero */

.hero {
  padding: 6rem 0 4rem;
}

.hero .label {
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.intro {
  font-size: 1.25rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 2rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  border-bottom: none;
  padding: 0.4rem 0;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--text);
}

.social-links svg {
  flex-shrink: 0;
}

/* Sections */

section {
  padding: 3.5rem 0;
}

.label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

/* About */

.about > .container > p:not(.label) {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.about > .container > p + p {
  margin-top: 0.75rem;
}

/* Skills */

.skill-list {
  list-style: none;
  columns: 2;
  column-gap: 3rem;
}

.skill-list li {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  break-inside: avoid;
}

.skill-list li::before {
  content: "~";
  margin-right: 0.75rem;
  color: var(--border-strong);
}

/* Projects */

.project-list {
  list-style: none;
  display: grid;
  gap: 2.5rem;
}

.project-card {
  padding-left: 1.25rem;
  border-left: 2px solid var(--border-mid);
}

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.project-card h3 a {
  border-bottom-color: var(--border-strong);
}

.project-card h3 a:hover {
  border-bottom-color: var(--text);
}

.project-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Footer */

footer {
  padding: 4rem 0 3rem;
}

footer p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.copyright {
  margin-top: 2rem;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Responsive */

@media (max-width: 480px) {
  .hero {
    padding: 4rem 0 3rem;
  }

  section {
    padding: 2.5rem 0;
  }

  .skill-list {
    columns: 1;
  }

  .social-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}
