@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  background: #ffffff;
  color: #1a1b1e;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: #8a6d3b; text-decoration: none; }
a:hover { text-decoration: underline; color: #6b5229; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── NAV ── */
.nav {
  border-bottom: 2px solid #c9a96e;
  padding: 0 clamp(20px, 6vw, 80px);
  display: flex;
  align-items: stretch;
  background: #fff;
  position: sticky; top: 0; z-index: 100;
}
.nav-name {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1b1e;
  padding: 14px 0;
  margin-right: auto;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.nav-name:hover { text-decoration: none; color: #1a1b1e; }
.nav-links {
  display: flex;
  align-items: stretch;
}
.nav-links a {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #4a4a4a;
  letter-spacing: 0.02em;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: #1a1b1e; text-decoration: none; border-color: #c9a96e; }
.nav-links a.active { color: #1a1b1e; border-color: #c9a96e; font-weight: 600; }

/* Mobile nav */
.nav-ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 0 10px 16px;
  align-self: center;
}
.nav-ham span {
  display: block;
  width: 22px; height: 1.5px;
  background: #1a1b1e;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-ham.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; }
.nav-ham.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mob-menu {
  display: none;
  background: #fff;
  border-bottom: 1px solid #e8dcc8;
  padding: 8px clamp(20px, 6vw, 80px);
}
.mob-menu.open { display: block; }
.mob-menu a {
  display: block;
  padding: 9px 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a4a4a;
  border-bottom: 1px solid #f0e8d8;
}
.mob-menu a:last-child { border-bottom: none; }
.mob-menu a.active { color: #1a1b1e; font-weight: 600; }
.mob-menu a:hover { color: #1a1b1e; text-decoration: none; }

/* ── PAGE WRAPPER ── */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px clamp(20px, 6vw, 48px) 80px;
}

/* ── PAGE TITLE ── */
.page-title {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: #1a1b1e;
  border-bottom: 1px solid #e0d4bc;
  padding-bottom: 10px;
  margin-bottom: 28px;
}

/* ── SECTION HEADING ── */
.sec-heading {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1b1e;
  margin: 36px 0 14px;
  padding-bottom: 5px;
  border-bottom: 1px solid #e8dcc8;
}
.sec-heading:first-child { margin-top: 0; }

/* ── HOME — PROFILE BLOCK ── */
.profile {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 36px;
  margin-bottom: 36px;
  align-items: start;
}
.profile-photo {
  width: 210px;
  border: 1px solid #ddd;
}
.profile-photo img { width: 100%; display: block; }

.profile-info h1 {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #1a1b1e;
  margin-bottom: 4px;
}
.profile-info .role {
  font-size: 1rem;
  color: #1a1b1e;
  margin-bottom: 10px;
}
.profile-info .dept {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 14px;
  color: #1a1b1e;
}
.profile-info .dept a { color: #8a6d3b; }
.profile-info .contact-row {
  font-size: 0.88rem;
  color: #3a3a3a;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.contact-row svg { flex-shrink: 0; color: #c9a96e; }

/* Profile links row */
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.pl-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 5px 13px;
  border: 1px solid #c9a96e;
  border-radius: 3px;
  color: #7a5c28;
  transition: background 0.15s;
}
.pl-link:hover {
  background: #f9f0e0;
  text-decoration: none;
  color: #5a3f18;
}

/* ── ABOUT TEXT ── */
.about-text {
  font-size: 0.97rem;
  line-height: 1.8;
  color: #1a1b1e;
}
.about-text p { margin-bottom: 14px; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { font-weight: 600; }

/* ── INTERESTS LIST ── */
.interests-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.interests-list li {
  font-size: 0.92rem;
  padding-left: 16px;
  position: relative;
  color: #1a1b1e;
  line-height: 1.55;
}
.interests-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #c9a96e;
  font-size: 0.8rem;
  top: 2px;
}

/* ── NEWS / UPDATES ── */
.news-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.news-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #1a1b1e;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0e8d8;
}
.news-item:last-child { border-bottom: none; padding-bottom: 0; }
.news-date {
  font-size: 0.8rem;
  color: #888;
  font-weight: 500;
  padding-top: 1px;
  white-space: nowrap;
}

/* ── PUBLICATIONS ── */
.pub-list { display: flex; flex-direction: column; gap: 0; }
.pub-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #f0e8d8;
  align-items: start;
}
.pub-item:last-child { border-bottom: none; }
.pub-num {
  font-size: 0.82rem;
  color: #aaa;
  font-weight: 500;
  padding-top: 3px;
  text-align: right;
}
.pub-content {}
.pub-title {
  font-size: 0.93rem;
  font-weight: 600;
  color: #1a1b1e;
  line-height: 1.45;
  margin-bottom: 4px;
}
.pub-authors {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 3px;
  line-height: 1.5;
}
.pub-authors strong { color: #1a1b1e; font-weight: 600; }
.pub-venue {
  font-size: 0.85rem;
  color: #7a6040;
  font-style: italic;
}
.pub-tags-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pub-tag {
  font-size: 0.72rem;
  padding: 2px 9px;
  border: 1px solid #d4b97a;
  border-radius: 2px;
  color: #7a5c28;
  background: #fdf6ea;
}

.pub-section-label {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1b1e;
  margin: 32px 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px dashed #d4c4a0;
}

/* ── RESOURCE CARDS ── */
.resource-section { margin-bottom: 36px; }
.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}
.resource-card {
  border: 1px solid #e0d4bc;
  border-left: 3px solid #c9a96e;
  padding: 16px 18px;
  border-radius: 2px;
  transition: background 0.15s;
}
.resource-card:hover { background: #fdf6ea; text-decoration: none; }
.resource-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1a1b1e;
  margin-bottom: 5px;
  line-height: 1.4;
}
.resource-card-desc {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.55;
  margin-bottom: 8px;
}
.resource-card-link {
  font-size: 0.78rem;
  color: #8a6d3b;
  font-weight: 500;
}

/* Setup note */
.setup-note {
  background: #fdf6ea;
  border: 1px solid #e0d4bc;
  border-left: 3px solid #c9a96e;
  padding: 12px 16px;
  border-radius: 2px;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.65;
}
.setup-note strong { color: #1a1b1e; }
.setup-note code {
  font-size: 0.8rem;
  background: #f0e4cc;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: monospace;
}

/* ── CV PAGE ── */
.cv-download-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fdf6ea;
  border: 1px solid #e0d4bc;
  border-radius: 3px;
  padding: 18px 22px;
  margin-bottom: 32px;
}
.cv-download-box p { font-size: 0.9rem; color: #555; }
.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 20px;
  background: #c9a96e;
  color: #1a1b1e;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 3px;
  white-space: nowrap;
  transition: background 0.15s;
}
.cv-btn:hover { background: #b8925a; color: #fff; text-decoration: none; }

.cv-section { margin-bottom: 32px; }
.cv-entry { padding: 12px 0; border-bottom: 1px solid #f0e8d8; }
.cv-entry:last-child { border-bottom: none; }
.cv-entry-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.cv-entry-title { font-size: 0.93rem; font-weight: 600; color: #1a1b1e; }
.cv-entry-date { font-size: 0.82rem; color: #888; white-space: nowrap; flex-shrink: 0; }
.cv-entry-sub { font-size: 0.88rem; color: #555; margin-bottom: 4px; }
.cv-entry-body { font-size: 0.85rem; color: #555; line-height: 1.6; }
.cv-entry-body ul { padding-left: 16px; margin-top: 4px; }
.cv-entry-body li {
  list-style: disc;
  padding: 2px 0;
  color: #555;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid #e0d4bc;
  padding: 20px clamp(20px, 6vw, 80px);
  font-size: 0.8rem;
  color: #999;
  text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .profile { grid-template-columns: 1fr; }
  .profile-photo { width: 160px; }
  .resource-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-ham { display: flex; }
  .news-item { grid-template-columns: 1fr; gap: 2px; }
  .news-date { color: #c9a96e; font-size: 0.78rem; }
  .pub-item { grid-template-columns: 1fr; }
  .pub-num { display: none; }
}
