:root {
  --bg: #0b0d10;
  --surface: #14171c;
  --border: #22262d;
  --text: #e6e8eb;
  --muted: #8b929b;
  --accent: #7aa2f7;
  --max-width: 720px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

section,
.hero {
  margin-bottom: 4rem;
  opacity: 0;
  animation: rise 0.6s ease forwards;
}

.hero { animation-delay: 0s; }
section:nth-of-type(1) { animation-delay: 0.08s; }
section:nth-of-type(2) { animation-delay: 0.16s; }
section:nth-of-type(3) { animation-delay: 0.24s; }
section:nth-of-type(4) { animation-delay: 0.32s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  section { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--surface);
  margin-bottom: 1.5rem;
  display: block;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.role {
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.location {
  color: var(--muted);
  font-size: 0.95rem;
}

h2 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
}

section p {
  color: var(--text);
  font-size: 1.02rem;
}

.skill-group {
  margin-bottom: 1.75rem;
}

.skill-group:last-child {
  margin-bottom: 0;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips li {
  font-size: 0.82rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface);
  font-family: var(--font-mono);
}

.project-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.project-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.project-list li:first-child { padding-top: 0; }
.project-list li:last-child { border-bottom: none; padding-bottom: 0; }

.project-list p {
  color: var(--muted);
  font-size: 0.95rem;
}

.links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

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

.links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  main { padding: 6rem 2rem 3rem; }
  footer { padding: 2rem 2rem 3rem; }
}
