/* Academic personal site — clean, readable, print-friendly */

:root {
  --text: #191716;
  --text-muted: #e7ddda;
  --accent: #b76671;
  --accent-hover: #771819;
  --border: #ddd;
  --bg: #e7ddda;
  --bg-card: #253d5b;
  --textbright: #e7ddda; /* this was added lol I hope this works */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Source Sans 3', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
}

.profile-photo {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto 1.25rem auto;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}

.site-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  letter-spacing: 0.02em;
}

.site-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem 0;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.nav-btn {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.nav-btn:hover {
  background: var(--border);
  border-color: var(--text-muted);
}

.nav-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.nav-btn-cv {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.nav-btn-cv:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.main-content {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

.tab-panel {
  display: none;
  animation: fade 0.2s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tab-panel h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--text);
}

.tab-panel p {
  margin: 0 0 1rem 0;
}

.tab-panel .placeholder {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.tab-panel ul {
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
}

.tab-panel li {
  margin-bottom: 0.5rem;
}

.contact-list {
  list-style: none;
  padding-left: 0;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.publication-list {
  list-style: none;
  padding-left: 0;
}

.publication-list li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.publication-list li:last-child {
  border-bottom: none;
}

.pub-title {
  font-weight: 600;
}

.publication-list a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.publication-list a:hover {
  text-decoration: underline;
}

/* Photo gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.gallery-item {
  margin: 0;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: block;
  transition: opacity 0.15s;
}

.gallery-item:hover img {
  opacity: 0.9;
}

.gallery-item figcaption {
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 0.5rem;
  line-height: 1.4;
}

.tab-panel code {
  font-size: 0.9em;
  background: var(--border);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1002;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: var(--accent);
  color: var(--bg);
  font-size: 1.75rem;
  line-height: 1;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.lightbox-close:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

.lightbox-img {
  position: relative;
  z-index: 1001;
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

/* Responsive */
@media (max-width: 600px) {
  .site-title {
    font-size: 1.75rem;
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-btn {
    text-align: center;
  }
}

/* Link colors inside page content only */
.main-content a {
  color: var(--accent);
  text-decoration: none;
}

.main-content a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
  

/* Print: show all sections for CV-style printing if needed */
@media print {
  .tab-panel {
    display: block !important;
    page-break-inside: avoid;
  }

  .tab-panel h2 {
    margin-top: 1.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
  }

  .tab-panel:first-child h2 {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .main-nav {
    display: none;
  }

}


















