/* MIT-Inspired Lab Website Design */

/* Color Palette - MIT-inspired */
:root {
  --mit-red: #A31F34;
  --mit-red-light: #C1272D;
  --mit-gray-dark: #343434;
  --mit-gray-medium: #666666;
  --mit-gray-light: #999999;
  --mit-gray-very-light: #F5F5F5;
  --text-dark: #1a1a1a;
  --text-light: #4a4a4a;
  --text-muted: #666666;
  --background: #ffffff;
  --background-alt: #fafafa;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--background);
  margin: 0;
  padding: 0;
  min-width: 800px;
  font-size: 16px;
  font-weight: 400;
}

.container {
  width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-content {
  width: 100%;
}

/* Typography - MIT-inspired */
h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  color: var(--text-dark);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

h1 { 
  font-size: 2.25rem; 
  font-weight: 700;
  margin-bottom: 2rem;
}

h2 { 
  font-size: 1.75rem; 
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

h3 { 
  font-size: 1.375rem; 
  font-weight: 600;
  margin-bottom: 1rem;
}

h4 { 
  font-size: 1.125rem; 
  font-weight: 600;
  margin-bottom: 0.75rem;
}

p {
  margin: 0 0 1.5rem 0;
  color: var(--text-light);
  line-height: 1.7;
}

a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s ease;
  border-bottom: 1px solid var(--mit-red);
}

a:hover {
  color: var(--mit-red);
  border-bottom-color: var(--mit-red);
}

/* Key terms highlighting - MIT style */
.key-term {
  color: var(--text-dark);
  font-weight: 400;
}

/* Header - Clean MIT style */
.site-header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

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

.site-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.site-title h1 {
  color: var(--text-dark);
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  display: flex;
  flex-direction: column;
}

.title-line-1 {
  font-size: 0.875rem;
  color: var(--mit-gray-medium);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.title-line-2 {
  font-size: 1.25rem;
  color: var(--text-dark);
  font-weight: 600;
}

.site-logo {
  height: 40px;
  filter: none;
  flex-shrink: 0;
}

/* Navigation - MIT clean style */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
}

.nav-menu a {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  margin-left: 0.5rem;
}

.nav-menu a:hover {
  color: var(--mit-red);
  border-bottom-color: var(--mit-red);
  text-decoration: none;
}

.nav-menu a.active {
  color: var(--mit-red);
  border-bottom-color: var(--mit-red);
  text-decoration: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.9) 0%, rgba(45, 55, 72, 0.8) 100%), url('/assets/images/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
  width: 100%;
  color: white;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.7;
}

.hero .btn {
  background: var(--accent);
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  display: inline-block;
  padding: 0.875rem 2rem;
}

.hero .btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* General Button Styles */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--mit-red);
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.btn:hover {
  background: var(--mit-red-light);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
}

/* Content Sections - MIT spacing */
.content-section {
  padding: 3rem 0;
  width: 100%;
}

/* Removed alternating backgrounds for cleaner look */

.section-title {
  text-align: left;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--mit-red);
}

.section-title .title-line-1 {
  font-size: 0.875rem;
  color: var(--mit-gray-medium);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.section-title .title-line-2 {
  font-size: 1.75rem;
  color: var(--text-dark);
  font-weight: 600;
  margin: 0;
}

/* Cards - MIT clean style */
.card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--mit-gray-light);
}

.card h3 {
  color: var(--text-dark);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

/* People List - MIT style */
.people-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.person-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.person-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--mit-gray-light);
}

.person-photo-container {
  flex-shrink: 0;
}

.person-photo {
  width: 100px;
  height: 100px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.person-info {
  flex: 1;
}

.person-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.person-title {
  color: var(--mit-gray-medium);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

/* Keep the old grid styles for backward compatibility */
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.person-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.person-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--mit-gray-light);
}

/* News Items - MIT style */
.news-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.news-item:hover {
  background: var(--background-alt);
  margin: 0 -1.5rem;
  padding: 1.5rem;
}

.news-date {
  font-size: 0.875rem;
  color: var(--mit-gray-medium);
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

/* Footer - MIT style */
.site-footer {
  background: var(--mit-gray-dark);
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
  width: 100%;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.affiliate-logos {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.affiliate-logos img {
  height: 40px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.affiliate-logos img:hover {
  opacity: 1;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
  border-bottom: none;
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Blog post images */
.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  margin: 1.5rem 0;
}

.page-content img[alt*="ceremony"] {
  max-width: 600px;
  display: block;
  margin: 2rem auto;
}

.page-content img[alt*="George Moody"] {
  max-width: 400px;
  display: block;
  margin: 2rem auto;
}

/* Responsive */
@media (max-width: 850px) {
  body {
    min-width: auto;
  }
  
  .container {
    width: 100%;
    padding: 0 1rem;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-menu {
    justify-content: center;
  }
  
  .people-grid {
    grid-template-columns: 1fr;
  }
}

/* Publications */
.publication-year {
  margin-bottom: 2.5rem;
}

.publication-year h3 {
  font-size: 1.5rem;
  color: var(--mit-gray-dark);
  border-bottom: 2px solid var(--mit-red);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.publication-item {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 1rem;
  background: var(--background);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.publication-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--mit-gray-light);
}

.publication-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.publication-title a {
  color: var(--text-dark);
  text-decoration: none;
}

.publication-title a:hover {
  color: var(--mit-red);
  border-bottom: 1px solid var(--mit-red);
}

.publication-authors {
  color: var(--mit-gray-medium);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.publication-details {
  color: var(--mit-gray-light);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.publication-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.publication-links a {
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  background: var(--background-alt);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-light);
  transition: all 0.2s ease;
}

.publication-links a:hover {
  background: var(--mit-red);
  color: white;
  border-color: var(--mit-red);
  border-bottom: none;
}

.publication-note {
  background: var(--background-alt);
  border-left: 3px solid var(--mit-red);
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 0 4px 4px 0;
}

.publication-note p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

.publication-note a {
  color: var(--mit-red);
  font-weight: 500;
}

.publication-note a:hover {
  color: var(--mit-red-light);
  border-bottom: 1px solid var(--mit-red-light);
} 