:root {
  --bg: #000000;
  --bg-alt: #0d0d0d;
  --text: #ffffff;
  --text-muted: #cccccc;
  --accent: #ffe066;
  --link: #66d9ff;
  --link-hover: #ffffff;
  --focus: #ffe066;
  --border: #2a2a2a;
  --font: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --max-width: 780px;
}

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

html {
  font-size: 1.2rem;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.75;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #000;
  padding: 0.5rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 9999;
}
.skip-link:focus {
  top: 0;
}

/* Focus */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

/* Links */
a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--link-hover);
}

/* Accent */
.accent {
  color: var(--accent);
}

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

/* Header */
header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.site-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-title:hover {
  color: var(--accent);
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 5rem 0 4.5rem;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.75;
}

/* Sections */
.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.section p {
  margin-bottom: 1rem;
}
.section ul {
  margin: 0.75rem 0 1rem 1.5rem;
}
.section li {
  margin-bottom: 0.6rem;
}
.section li::marker {
  color: var(--accent);
}

/* Projects */
.project {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.project:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.project h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}
.project-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem !important;
}

/* Code */
code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.9em;
  background: #1a1a1a;
  padding: 0.1em 0.4em;
  border-radius: 3px;
  color: var(--accent);
}

/* Footer */
footer {
  padding: 2.5rem 0 3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
footer p + p {
  margin-top: 0.4rem;
}
footer a {
  color: var(--text-muted);
}
footer a:hover {
  color: var(--text);
}
.footer-note {
  font-size: 0.8rem;
  color: #666;
}

/* Responsive */
@media (max-width: 600px) {
  html {
    font-size: 1.1rem;
  }
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul {
    gap: 1rem;
  }
  .hero {
    padding: 3rem 0 2.5rem;
  }
  .section {
    padding: 2.5rem 0;
  }
}
