:root {
  --bg: #FAFAF7;
  --ink: #1B1B18;
  --muted: #6B6B63;
  --line: #E4E2DB;
  --accent: #3B5249;
  --accent-soft: #EDF1EE;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 3.5rem 0;
}

.frame {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
}

.mark {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--muted);
  position: relative;
}

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

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.2s ease;
}

.nav a:hover::after {
  width: 100%;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
}

.hero-text { flex: 1; }

.hero-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--accent-soft);
}

.hero .eyebrow {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1.1rem;
}

.hero-lede {
  max-width: 46ch;
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
}

.about-grid p {
  color: var(--ink);
}

.facts div {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.facts div:last-child { border-bottom: none; }

.facts dt { color: var(--muted); }
.facts dd { font-weight: 500; }

.project {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.2s ease;
}

.project:first-of-type { border-top: 1px solid var(--line); }

.project:hover { opacity: 0.6; }

.project-empty {
  cursor: default;
}

.project-empty:hover { opacity: 1; }

.project-empty h3 { color: var(--muted); font-weight: 400; }

.project-text h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.project-text p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 42ch;
}

.view-code {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--accent);
}

.view-code:hover {
  text-decoration: underline;
}

.project-meta {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skills-list li {
  font-size: 0.88rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
}

.contact p {
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 1.25rem;
}

.email-link {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 1.5rem;
}

.email-link:hover { text-decoration: underline; }

.social {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.social a:hover { color: var(--ink); }

.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .hero { flex-direction: column-reverse; align-items: flex-start; gap: 1.5rem; }
  .hero-photo { width: 96px; height: 96px; }
  .about-grid { grid-template-columns: 1fr; }
  .project { flex-direction: column; gap: 0.4rem; }
  .site-header { margin-bottom: 3rem; }
  .nav { gap: 1rem; font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

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