:root {
  --section-spacing: 64px;

  /* Base */
  --color-bg: #FAF8F5; /* warm ivory */
  --color-surface: #FFFFFF;
  --color-surface-muted: #F7F4F0;

  /* Text */
  --color-text: #2F3142; /* charcoal */
  --color-text-muted: #6D7190; /* light charcoal */
  --color-text-subtle: #9A9AA7; /* gray */

  /* Accent */
  --color-accent: #983A33; /* burgundy */
  --color-accent-strong: #7F2E29;

  /* Borders */
  --color-border: #E5D9C8; /* soft beige */
  --color-border-soft: #EFE6DA; /* milk beige */
  --color-border-subtle: #EFE6DA;

  /* Effects */
  --color-overlay: rgba(0, 0, 0, 0.35);
}

body {
  margin: 0;
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  padding-top: 70px;
}
.container {
  width: min(740px, calc(100% - 48px));
  margin: 0 auto;
  padding: 60px 24px;
}


section {
  margin-top: var(--section-spacing);
}

section:first-of-type {
  margin-top: 0;
}


/* Navigation */
nav {
  top: 0;
  width: 100%;

  position: fixed;

  backdrop-filter: blur(8px);
  background-color: rgba(251, 249, 246, 0.88);

  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.nav-inner {
  width: min(740px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.nav-brand {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text);
  text-decoration: none;
}

.nav-links a,
.contact-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-accent);
}


section {
  margin-top: 80px;
}

section:first-of-type {
  margin-top: 0;
}

/* Hero Section */
.home-hero {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.home-photo {
  flex: 0 0 160px;
  transform: translateY(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-photo img {
  width: 190px;
  display: block;
  border-radius: 16px;
  box-shadow: 0 7px 18px rgba(0,0,0,0.07);
}

.home-info {
  padding-top: 8px;  
}

h1, h2, h3 {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h2 {
  color: var(--color-muted);
  font-weight: 500;
  position: relative;
}

.home-info h1 {
  margin-top: 0;
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: -0.03em;   /* tighter horizontal spacing */
  line-height: 1.05;
  color: var(--color-accent-strong);
}

.title,
.affiliation {
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--color-text);
}

.title {
  margin: 0;
  font-size: 18px;
  margin-bottom: 2px;
}
.affiliation {
  margin: 0 0 14px;
}
.job-market {
  margin-top: 10px;
  font-weight: 500;
}

.bio {
  margin-top: 22px;
  line-height: 1.75;
  max-width: none;
}

.bio + .bio {
  margin-top: 14px;
}

.contact-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Buttons / Links */
.contact-links {
  margin-top: 18px;
  display: flex;
  gap: 18px;
}
.contact-links a {
  text-decoration: none;
  color: var(--color-accent);
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.contact-links a:hover {
  color: var(--color-accent-strong);
  text-decoration: underline;
}

/* Sections */

.home-section h2 {
  color: #3F6476;
  font-weight: 500;
  position: relative;
}

.home-section h2::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: #DDE5EA;
  margin-top: 6px;
}

/* Research */
.research-item {
  line-height: 1.6;
}

.research-summary {
  margin-top: 10px;
  color: #4A4F55;
}


.section-divider {
  width: 60%;
  margin: 40px auto;
  border-top: 1px solid var(--color-border-subtle);
}

/* Footer */
footer {
  margin-top: 60px;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
  border-top: 1px solid #D8DAD6;
}

footer a {
  color: #3F6476;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .home-hero {
    flex-direction: column;
    align-items: center;
  }

  .home-photo img {
    width: 150px;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topic-chips {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.chip::after {
  content: "·";
  margin-left: 10px;
  color: #C8BDAE;
}

.chip:last-child::after {
  content: "";
}

.education {
  margin-top: 50px;
}

.edu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.edu-main {
  max-width: 75%;
}

.edu-degree {
  font-weight: 500;
}

.edu-school {
  font-size: 14px;
  color: #5F656B;
}

.edu-year {
  font-size: 13px;
  color: var(--color-text-subtle);
  white-space: nowrap;
  margin-left: 20px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.project-card {
  position: relative;
  padding: 18px 18px 16px;
  border: 1px solid var(--color-border-soft);
  border-radius: 14px;
  background: var(--color-surface);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 4px 0 0 var(--color-accent);
}
.project-card:hover {
  transform: translateY(-3px);
  border-color: #D8C7B3;
  box-shadow:
    inset 4px 0 0 var(--color-accent),
    0 10px 30px rgba(0, 0, 0, 0.06);
}
.project-card.disabled {
  cursor: default;
}
.project-card.disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--color-border-soft);
}
.project-card:focus {
  outline: none;
}
.project-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.project-topline {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.project-authors {
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.project-card h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-text);
}
.project-desc {
  margin: 0;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.project-card:hover .project-action {
  color: #6B7C8F;
}

.project-venue {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--color-text-subtle);
}

.project-action {
  display: none;
}

.project-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  font-size: 14px;
  color: var(--color-text-subtle);
  transition: transform 0.2s ease, color 0.2s ease;
}

.project-card:hover .project-hint {
  transform: translateX(3px);
  color: var(--color-accent);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 999;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal.open .modal-backdrop {
  opacity: 1;

}


.modal-content {
  position: relative;
  max-width: 760px;
  width: calc(100% - 32px);
  max-height: 85vh;
  overflow: auto;
  margin: 7vh auto 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: 18px;
  padding: 30px 32px 28px;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.10),
    0 24px 70px rgba(0, 0, 0, 0.16);

  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.modal-content .project-topline {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
  margin-bottom: 10px;
}
.modal-content h3 {
  margin: 0 0 10px 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.modal-content .project-authors {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}


.modal-content .project-desc,
.modal-content .project-venue {
  font-size: 14px;
  line-height: 1.65;
}

.modal-content .project-venue {
  color: var(--color-text-subtle);
  margin-top: 10px;
}

.modal-abstract {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-soft);
  line-height: 1.78;
  font-size: 15px;
  color: #3A4046;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
}

.modal-close:hover {
  background: rgba(154, 56, 50, 0.08);
  color: var(--color-accent);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal.open .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

body.modal-open {
  overflow: hidden;
}

.news {
  margin-top: 42px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 6px;
}

.news-panel {
  margin-top: 14px;
  max-height: none;
  overflow: visible;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: 10px;
  padding: 8px 12px;
  line-height: 1.4;
  color: var(--color-text);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  flex-shrink: 0;
}


.news-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
  line-height: 1.35;
}

.news-panel::-webkit-scrollbar {
  width: 8px;
}

.news-panel::-webkit-scrollbar-track {
  background: transparent;
}

.news-panel::-webkit-scrollbar-thumb {
  background: #d9d0c4;
  border-radius: 999px;
}

.news-panel::-webkit-scrollbar-thumb:hover {
  background: #c8b9a6;
}


.news-item:hover {
  border-color: #D8C7B3;
}

.news-item a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1.5px dashed var(--color-accent);
  padding-bottom: 0;
}

.news-item a:hover {
  color: var(--color-accent-strong);
}
