:root {
  /* Colors */
  --color-bg: #FAFAF8;
  --color-text: #1A1A1A;
  --color-text-muted: #6B6B6B;
  --color-accent: #7E5CAD;
  --color-accent-light: #EDE6F5;
  --color-border: #E2E0DC;
  --color-card-bg: #FFFFFF;

  /* Typography */
  --font-body: 'Geist', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', 'Cascadia Code', monospace;

  /* Spacing */
  --content-width: 720px;
  --nav-height: 64px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-height);
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

nav .site-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

nav .nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

nav .nav-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

nav .nav-links a:hover,
nav .nav-links a.active {
  color: var(--color-accent);
  text-decoration: none;
}

.page-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.accent {
  color: var(--color-accent);
}

.hero {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.hero-text {
  flex: 1;
}

.hero-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-border);
}


.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}


footer {
  text-align: center;
  padding: 21rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.project-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-card-body {
  padding: 1.25rem;
}

.project-card-body h3 {
  margin-bottom: 0.3rem;
}

.project-card-body p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.project-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  margin-right: 0.25rem;
}

.project-section {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin: 2.5rem 0;
}

.project-section.reverse {
  flex-direction: row-reverse;
}

.project-section-text {
  flex: 1;
}

.project-section img {
  width: 300px;
  border-radius: 8px;
  object-fit: cover;
}
ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
@media (max-width: 600px) {
  .project-section,
  .project-section.reverse {
    flex-direction: column;
  }

  .project-section img {
    width: 100%;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    width: 150px;
    height: 150px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}