/* ===================== RESET & BASE ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue:      #1a3a5c;
  --blue-mid:  #2c5282;
  --accent:    #2b6cb0;
  --accent-lt: #ebf4ff;
  --text:      #1a202c;
  --muted:     #4a5568;
  --border:    #e2e8f0;
  --bg:        #ffffff;
  --bg-alt:    #f7fafc;
  --max-width: 820px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

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

/* ===================== NAV ===================== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
}

.nav-name {
  font-size: 1.05rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  color: #fff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  color: #cbd5e0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s;
}
nav ul li a:hover {
  color: #fff;
  text-decoration: none;
}

/* ===================== MAIN ===================== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

section {
  padding-top: 4rem;
}

h2 {
  font-size: 1.5rem;
  color: var(--blue);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 1.8rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.01em;
}

h3 {
  font-size: 1rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--muted);
  margin: 1.8rem 0 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===================== ABOUT ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-top: 1rem;
}

.photo-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--blue-mid);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.about-photo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

.about-text h1 {
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 0.2rem;
}

.subtitle {
  color: var(--muted);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.about-text p {
  margin-bottom: 0.85rem;
  font-size: 0.97rem;
}

.contact-line {
  margin-top: 1.2rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
}

/* ===================== PAPERS ===================== */
.paper {
  margin-bottom: 2rem;
  padding: 1.2rem 1.4rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 4px 4px 0;
}

.paper-title {
  font-size: 1.02rem;
  font-weight: bold;
  color: var(--blue);
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.paper-meta {
  font-size: 0.87rem;
  color: var(--muted);
  font-family: "Helvetica Neue", Arial, sans-serif;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 0.15em 0.55em;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tag-jmp {
  background: #2c5282;
  color: #ebf4ff;
}

.tag-rr {
  background: #276749;
  color: #c6f6d5;
  font-weight: normal;
  font-size: 0.82rem;
}

.tag-gray {
  background: #718096;
  color: #ffffff;
  font-weight: normal;
  font-size: 0.82rem;
}

details summary {
  cursor: pointer;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.87rem;
  color: var(--accent);
  user-select: none;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::before {
  content: "▸ ";
  font-size: 0.75rem;
}
details[open] summary::before {
  content: "▾ ";
}
details[open] summary {
  margin-bottom: 0.7rem;
}

details p {
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.65;
}

/* ===================== TEACHING ===================== */
.teaching-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin-bottom: 0.5rem;
}

.teaching-table td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.teaching-table tr:last-child td {
  border-bottom: none;
}

.teaching-table td:first-child {
  color: var(--text);
  width: 48%;
}

.teaching-table td:nth-child(2) {
  color: var(--muted);
  font-size: 0.85rem;
  width: 13%;
}

.teaching-table td:nth-child(3) {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
  width: 15%;
}

.eval {
  color: #276749 !important;
  font-size: 0.85rem !important;
  font-weight: 600;
}

.award {
  font-size: 0.82rem;
  font-style: italic;
}

/* ===================== FOOTER ===================== */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 600px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .photo-placeholder, .about-photo img {
    width: 110px;
    height: 110px;
    font-size: 1.5rem;
  }
  nav ul {
    gap: 1rem;
  }
  .teaching-table td:nth-child(2) {
    display: none;
  }
}
