/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  line-height: 1.7;
  color: #d1d5db;
  background: #1a1a1a;
  min-height: 100vh;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Homepage styles */
.home {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.headshot {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

.intro-text h1 {
  font-size: 2.5rem;
  font-weight: 400;
  color: #f3f4f6;
  margin-bottom: 1.5rem;
}

.intro-text p {
  font-size: 1.1rem;
  color: #d1d5db;
  margin-bottom: 1rem;
  max-width: 600px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid #374151;
}

.main-nav a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #f3f4f6;
}

/* Page styles */
.page-header {
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 400;
  color: #f3f4f6;
  margin-bottom: 0.5rem;
}

.back-link {
  display: inline-block;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #f3f4f6;
}

.transcript-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.transcript-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.transcript-links a:hover {
  color: #f3f4f6;
}

/* Section styles */
.section {
  margin-bottom: 3rem;
}

.section h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: #f3f4f6;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #374151;
}

.item-list {
  list-style: none;
}

.item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #2a2a2a;
}

.item:last-child {
  border-bottom: none;
}

.item h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #f3f4f6;
  margin-bottom: 0.5rem;
}

.item p {
  color: #d1d5db;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.project-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.project-links a:hover {
  color: #f3f4f6;
}

.item.hidden {
  display: none;
}

.toggle-btn {
  background: none;
  border: 1px solid #374151;
  color: #9ca3af;
  padding: 0.5rem 1.5rem;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 2rem;
  transition: all 0.2s ease;
  border-radius: 2px;
}

.toggle-btn:hover {
  border-color: #4b5563;
  color: #f3f4f6;
}

.course-list {
  list-style: none;
  padding-left: 0;
}

.course-list li {
  color: #d1d5db;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-left: 0;
}

/* Responsive design */
@media (max-width: 768px) {
  main {
    padding: 2rem 1.5rem;
  }
  
  .intro-text h1 {
    font-size: 2rem;
  }
  
  .intro-text p {
    font-size: 1rem;
  }
  
  .main-nav {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .headshot {
    width: 150px;
    height: 150px;
  }
}
