/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 24px;
  color: #444;
  background: #fff;
}

a {
  color: #4a85c8;
  text-decoration: none;
}
a:hover { text-decoration: underline; }

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

h1, h2, h3 {
  font-family: 'Roboto Slab', 'Roboto', serif;
  color: #003373;
  margin: 0 0 12px 0;
  font-weight: 700;
}
h1 { font-size: 28px; line-height: 36px; }
h2 { font-size: 20px; line-height: 28px; padding-bottom: 8px; border-bottom: 1px solid #ddd; margin-bottom: 24px; }
h3 { font-size: 16px; line-height: 22px; }

.clear { clear: both; }

/* ---------- Header ---------- */
#header {
  border-bottom: 1px solid #ddd;
  background: #fff;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: 'Roboto Slab', serif;
  font-size: 16px;
  color: #003373;
  font-weight: 700;
}
#header nav a {
  margin-left: 22px;
  color: #888;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#header nav a:hover { color: #4a85c8; text-decoration: none; }

/* ---------- Layout ---------- */
#main {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.section {
  margin-bottom: 56px;
}

/* ---------- Profile ---------- */
#profile img {
  float: left;
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 40px 20px 0;
  background: #eee;
}
#profile .profile-text {
  overflow: hidden;
}
#profile h1 { margin-bottom: 4px; }
#profile .title {
  color: #555;
  font-size: 15px;
  margin: 0 0 16px 0;
}
#profile p { margin: 0 0 16px 0; }
#profile .motto {
  color: #888;
  font-style: italic;
}
#profile .contact {
  margin-top: 18px;
  color: #888;
}

/* ---------- News ---------- */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-list li {
  padding: 6px 0;
  border-bottom: 1px dotted #eee;
}
.news-list li:last-child { border-bottom: none; }
.news-date {
  display: inline-block;
  width: 56px;
  font-weight: 500;
  color: #003373;
}

/* ---------- Publications ---------- */
.research-proj {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px dotted #eee;
}
.research-proj:last-child { border-bottom: none; }

.research-thumb {
  float: left;
  width: 180px;
  padding-right: 24px;
  display: block;
}
.research-thumb img {
  width: 100%;
  border-radius: 5px;
  background: #eee;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.research-body {
  overflow: hidden;
}
.research-proj-title {
  display: block;
  font-family: 'Roboto Slab', serif;
  font-size: 16px;
  color: #003373;
  font-weight: 700;
  line-height: 22px;
  margin-bottom: 6px;
}
a.research-proj-title:hover { text-decoration: underline; }
.research-proj p {
  margin: 0;
  color: #555;
}
.equal-note {
  color: #888;
  font-size: 12px;
}
.exp-context {
  color: #777;
  font-style: italic;
}

/* ---------- Projects grid ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card {
  display: block;
  padding: 16px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  color: #444;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.project-card:hover {
  border-color: #4a85c8;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  text-decoration: none;
}
.project-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  background: #eee;
  margin-bottom: 12px;
}
.project-card h3 { margin: 0 0 6px 0; }
.project-card p { margin: 0; color: #666; font-size: 13px; line-height: 20px; }

/* ---------- Education ---------- */
.exp-list,
.awards-list,
.edu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.exp-list li,
.awards-list li,
.edu-list li {
  padding: 8px 0;
}

/* ---------- Footer ---------- */
#footer {
  border-top: 1px solid #ddd;
  padding: 24px 20px;
  text-align: center;
  color: #999;
  font-size: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  #header nav a { margin-left: 12px; font-size: 12px; }
  #profile img {
    float: none;
    margin: 0 auto 20px;
    width: 180px;
    height: 180px;
  }
  #profile .profile-text { text-align: center; }
  .research-thumb {
    float: none;
    width: 100%;
    padding-right: 0;
    margin-bottom: 12px;
  }
  .research-thumb img { aspect-ratio: 16 / 9; }
  .projects-grid { grid-template-columns: 1fr; }
}
