:root { --pad: 16px; --radius: 14px; }
* { box-sizing: border-box; }
body { font-family: -apple-system, system-ui, Segoe UI, Roboto, Arial, sans-serif; margin: 0; background: #f6f7fb; color: #222; }
nav { display: flex; gap: 12px; padding: var(--pad); background: white; position: sticky; top: 0; border-bottom: 1px solid #e5e7eb; }
nav a { text-decoration: none; color: #111; padding: 8px 10px; border-radius: 10px; }
nav a:hover { background: #f0f2f7; }
main { max-width: 900px; margin: 24px auto; padding: 0 var(--pad); }
h1 { margin-top: 0; }
.card { background: white; padding: var(--pad); border-radius: var(--radius); box-shadow: 0 2px 12px rgba(0,0,0,0.06); margin-bottom: 20px; }
footer { text-align: center; padding: 20px; color: #6b7280; }

/* Old Website Section Styles */
.old-website-container {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

.old-website-container h1 {
  color: #1a1a1a;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.75rem;
}

.old-website-container h2 {
  color: #2563eb;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.old-website-container h3 {
  color: #333;
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Breadcrumb Navigation */
.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Contact Information */
.contact-info {
  background: #f9fafb;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #2563eb;
  margin: 1.5rem 0;
}

.contact-info p {
  margin: 0.5rem 0;
}

/* Navigation Sections */
.old-website-nav {
  margin: 2rem 0;
}

.nav-section {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.nav-section h3 {
  color: #2563eb;
  margin-top: 0;
  font-size: 1.2rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.nav-section ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
}

.nav-section li {
  padding: 0.5rem 0;
}

.nav-section a {
  color: #1a1a1a;
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.nav-section a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Research and Hiking Cards */
.research-areas, .hiking-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.research-card, .hiking-card {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s, transform 0.2s;
}

.research-card:hover, .hiking-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.research-card h3, .hiking-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.research-card a, .hiking-card a {
  color: #2563eb;
  text-decoration: none;
}

.research-card a:hover, .hiking-card a:hover {
  text-decoration: underline;
}

.research-card p, .hiking-card p {
  color: #555;
  font-size: 0.95rem;
  margin: 0.5rem 0 0 0;
}

/* Content Sections */
.about-content, .publications-content, .presentations-content, 
.research-content, .research-detail, .science-news-content,
.hiking-content, .hiking-detail, .family-content {
  line-height: 1.7;
}

.about-content ul, .research-detail ul, .hiking-detail ul {
  margin-left: 1.5rem;
  line-height: 1.8;
}

.about-content li, .research-detail li, .hiking-detail li {
  margin-bottom: 0.5rem;
}

.research-content {
  margin: 1.5rem 0;
}

.research-content p {
  margin: 1rem 0;
}

.research-images {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f0f9ff;
  border: 2px dashed #3b82f6;
  border-radius: 8px;
  text-align: center;
}

.color-code-note {
  background: #f0f9ff;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 2rem 0;
}

.color-code-note p {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  color: #1e40af;
}

.color-code-note ul {
  margin: 0.5rem 0 0 1.5rem;
  list-style: none;
}

.color-code-note li {
  padding: 0.25rem 0;
  color: #1e3a8a;
}

/* Publication and Presentation Lists */
.publication-list, .presentation-list, .news-section {
  margin: 2rem 0;
}

.publication-list h3, .presentation-list h3, .news-section h3 {
  color: #2563eb;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.publication-item {
  background: #f9fafb;
  padding: 1.25rem;
  border-left: 3px solid #2563eb;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.publication-item p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.publication-item p:first-child {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 1rem;
}

.publication-item p:nth-child(2) {
  color: #555;
  font-size: 0.95rem;
}

.publication-item p:last-child {
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
}

.presentation-item {
  background: #f9fafb;
  padding: 1.25rem;
  border-left: 3px solid #16a34a;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.presentation-item p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.presentation-item p:first-child {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 1rem;
}

.presentation-item p:nth-child(2) {
  color: #555;
  font-size: 0.95rem;
}

.presentation-item p:last-child {
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
}

/* Notes and Placeholders */
.note {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  font-style: italic;
  color: #92400e;
}

/* Archive Note */
.archive-note {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .old-website-container {
    padding: 1rem;
  }
  
  .research-areas, .hiking-areas {
    grid-template-columns: 1fr;
  }
  
  .nav-section {
    padding: 1rem;
  }
}
