:root {
  --bg: #0b0d12;
  --bg-elev: #12151c;
  --border: #1f2430;
  --text: #e6e8ee;
  --muted: #8b93a7;
  --accent: #6ee7b7;
  --accent-ink: #062b1f;
  --radius: 12px;
  --max: 960px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafaf9;
    --bg-elev: #ffffff;
    --border: #e7e5e4;
    --text: #1c1917;
    --muted: #78716c;
    --accent: #059669;
    --accent-ink: #ffffff;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.accent {
  color: var(--accent);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 96px;
}

.eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  margin: 0 0 12px;
  font-size: 15px;
}

h1 {
  font-size: clamp(44px, 9vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}

.lead {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--muted);
  max-width: 34ch;
  margin: 0 0 36px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-ghost {
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--muted);
}

/* Sections */
.section {
  padding-top: 72px;
  padding-bottom: 72px;
  border-top: 1px solid var(--border);
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}

.num {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 400;
  color: var(--accent);
}

.about p {
  max-width: 62ch;
  margin: 0 0 16px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tags li {
  font-family: var(--mono);
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}

.tags-small li {
  font-size: 12px;
  padding: 3px 10px;
}

/* Projects */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s, transform 0.15s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0;
  font-size: 19px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  flex-grow: 1;
}

.card-links {
  display: flex;
  gap: 16px;
}

.card-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.card-links a:hover {
  text-decoration: underline;
}

/* Contact */
.contact .lead {
  max-width: 44ch;
}

.socials {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.socials a {
  color: var(--muted);
  text-decoration: none;
}

.socials a:hover {
  color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

/* Focus */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 560px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 14px; }
}
