:root {
  --bg-color: #fafaf9;
  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #78716c;
  --border-color: #e7e5e4;
  --accent-color: #d6d3d1;
  --max-width: 800px;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.serif {
  font-family: "Lora", Georgia, serif;
}

.italic {
  font-style: italic;
}

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

/* Header & Nav */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6rem;
}

.logo {
  font-family: "Lora", serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

nav a:hover, nav a.active {
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  margin-top: 4rem;
}

.hero h1 {
  font-family: "Lora", serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
}

.cta-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--text-primary);
  color: var(--bg-color);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
}

.link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.link:hover {
  border-bottom-color: var(--text-primary);
}

/* Content Sections (Shared) */
section {
  margin-bottom: 6rem;
}

section h2 {
  font-family: "Lora", serif;
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

/* List styles for blog/projects */
.content-list {
  list-style: none;
}

.content-item {
  margin-bottom: 2.5rem;
}

.content-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.content-item .date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  display: block;
}

.content-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.content-item:hover h3 {
  color: var(--text-secondary);
}

.content-item p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Animations (Very subtle) */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.container > * {
  animation: fadeIn 0.8s ease forwards;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .container {
    padding: 2rem 1.5rem;
  }
  
  .site-header {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
}
