/* ================================================================
   modern.css — Clean & minimal redesign
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Variables --- */
:root {
  --accent:       #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --text:         #111827;
  --text-muted:   #6b7280;
  --border:       #e5e7eb;
  --bg:           #ffffff;
  --bg-subtle:    #f9fafb;
  --max-w:        960px;
  --radius:       8px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
em { font-style: italic; }

/* ================================================================
   NAVBAR
   ================================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-brand {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--accent); text-decoration: none; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); text-decoration: none; }

.nav-links .nav-cv a {
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  transition: border-color 0.15s, color 0.15s;
}
.nav-links .nav-cv a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ================================================================
   PAGE WRAPPER
   ================================================================ */
.page-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ================================================================
   SECTION TITLE
   ================================================================ */
.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 10px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* ================================================================
   HOME — HERO
   ================================================================ */
.hero {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 56px;
}

.hero-photo img {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.hero-info { flex: 1; padding-top: 4px; }

.hero-info h1 {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  line-height: 1.2;
}

.hero-role {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.hero-role a { color: var(--text-muted); font-weight: 500; }
.hero-role a:hover { color: var(--accent); }

.hero-desc {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 24px;
  text-align: justify;
}

.hero-links { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn-outline { border: 1px solid var(--border); color: var(--text-muted); background: var(--bg); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Home intro text */
.intro-block { padding-top: 8px; }
.intro-block p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
  text-align: justify;
  margin-bottom: 16px;
}
.intro-block p:last-child { margin-bottom: 0; }

/* ================================================================
   BIO PAGE
   ================================================================ */
.bio-wrap { display: flex; gap: 40px; align-items: flex-start; }
.bio-photo { flex-shrink: 0; }
.bio-photo img {
  width: 210px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.prose p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
  text-align: justify;
  margin-bottom: 18px;
}
.prose p:last-child { margin-bottom: 0; }

/* ================================================================
   PROJECTS PAGE
   ================================================================ */
.projects-section { margin-bottom: 48px; }

.project-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: var(--bg);
  transition: box-shadow 0.15s;
}
.project-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07); }

.project-thumb { flex-shrink: 0; }
.project-thumb img {
  width: 110px;
  height: 85px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.project-body strong {
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}
.project-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ================================================================
   AWARDS PAGE
   ================================================================ */
.award-list { list-style: none; padding: 0; margin: 0; }

.award-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.55;
}
.award-list li:last-child { border-bottom: none; }

.award-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.sponsor-logos {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.sponsor-logos img {
  height: 40px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.sponsor-logos img:hover { opacity: 1; }

/* ================================================================
   PUBLICATIONS PAGE
   ================================================================ */
.pub-nav {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.pub-nav a { margin: 0 4px; }

.pub-section { margin-bottom: 48px; }

.pub-entry {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.pub-entry:last-child { border-bottom: none; }
.pub-entry.no-thumb { grid-template-columns: 1fr; }

.pub-thumb img {
  width: 70px;
  height: 55px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.pub-body {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text);
}

.pub-icons { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

.pub-icons a {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.pub-icons a:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 650px) {
  .hero { flex-direction: column; gap: 24px; }
  .hero-photo img { width: 130px; height: 130px; }
  .hero-info h1 { font-size: 1.5rem; }
  .bio-wrap { flex-direction: column; }
  .bio-photo img { width: 100%; max-width: 260px; }
  .nav-inner { padding: 0 16px; }
  .nav-brand { font-size: 0.82rem; }
  .nav-links { gap: 14px; }
  .footer-inner { flex-direction: column; gap: 6px; text-align: center; }
  .page-content { padding: 32px 16px 60px; }
  .pub-entry { grid-template-columns: 1fr; }
  .pub-thumb { display: none; }
}
