:root {
  --bg: #ffffff;
  --text: #222222;
  --muted: #666666;
  --link: #315c9b;
  --link-hover: #193b6d;
  --line: #e7e7e7;
  --soft: #f7f7f7;
  --card: #ffffff;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --max-width: 1040px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--link-hover);
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);backdrop-filter: blur(8px);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: bold;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
}

.brand:hover,
.brand:focus {
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  text-transform: lowercase;
}

.nav-links a {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
  background: var(--soft);
  color: var(--text);
  text-decoration: none;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: bold;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.subtitle {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: start;
  padding-top: 1rem;
}

.profile-photo {
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  margin-left: auto;
}

.contact {
  color: var(--muted);
  margin-top: 1rem;
}

.section-intro {
  max-width: 760px;
  color: var(--muted);
  margin-bottom: 1.35rem;
}

.research-list {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.research-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.research-thumb {
  width: 150px;
  height: 115px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 0.3rem;
}

.research-details p {
  margin: 0.22rem 0;
}

.paper-title {
  font-size: 1.18rem;
  margin: 0 0 0.25rem;
}

.paper-authors,
.paper-date,
.paper-journal {
  color: var(--muted);
}

.paper-description {
  margin-top: 0.45rem !important;
}

.paper-links {
  margin-top: 0.45rem !important;
  font-size: 0.98rem;
}

.paper-links a {
  margin-right: 0.75rem;
  white-space: nowrap;
}

.publication-list {
  padding-left: 1.25rem;
}

.publication-list li {
  margin: 0.75rem 0;
}

.travel-list li,
.teaching-list li {
  margin: 0.45rem 0;
}

.travel-preview-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  max-width: 850px;
}

.travel-preview-list li {
  margin: 0.45rem 0;
}

.travel-date {
  font-weight: bold;
}

.more-link {
  margin-top: 0.9rem;
}

.photo-strip {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1rem;
}

.photo-strip img {
  max-height: 120px;
  max-width: 260px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 0.35rem;
}


footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    margin: 0;
  }

  .research-card {
    grid-template-columns: 1fr;
  }

  .research-card img {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 720px) {
  .research-item {
    display: block;
  }

  .research-thumb {
    width: 100%;
    max-width: 220px;
    height: auto;
    margin-bottom: 0.8rem;
  }
}

.cv-box,
.talk-material {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
  max-width: 850px;
}

.talk-material h2 {
  margin-top: 0;
  text-transform: none;
  font-size: 1.25rem;
}

.talk-date {
  color: var(--muted);
  margin: 0 0 0.2rem;
  font-weight: bold;
}

.talk-materials-list {
  border-bottom: 1px solid var(--line);
  margin-top: 1.25rem;
}

code {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95em;
}


.talk-topic {
  margin-top: 2.2rem;
}

.talk-topic h2 {
  margin-top: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
}

.talk-material h3 {
  margin-top: 0;
  text-transform: none;
  font-size: 1.25rem;
}

.placeholder-entry {
  color: var(--muted);
}

.dimer-simulations {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  margin-top: 2.8rem;
}


.cv-preview {
  margin-top: 1rem;
  border: 1px solid #ddd;
  background: #fff;
}

.cv-preview object,
.cv-preview iframe {
  display: block;
  border: none;
}


.simple-link-list {
  line-height: 1.7;
  padding-left: 1.5rem;
}

.simple-link-list li {
  margin-bottom: 0.75rem;
}
