/* ===== Base ===== */

html {
  overflow-x: hidden;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #222;
  background-color: #fff;
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
  overflow-wrap: break-word;
}

h1 {
  font-size: 44px;
  line-height: 1.2;
  margin: 0 0 16px;
}

h2 {
  font-size: 24px;
  margin: 0 0 20px;
}

h3 {
  font-size: 18px;
  color: #555;
  margin: 32px 0 12px;
}

p {
  margin: 0 0 16px;
}

a {
  color: #0068b7;
  text-decoration: none;
}

a:hover {
  color: #004a85;
}

a:focus-visible {
  outline: 2px solid #0068b7;
  outline-offset: 2px;
}

li {
  margin-bottom: 8px;
}

ol li {
  margin-bottom: 16px;
}

/* ===== Navigation ===== */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 2px solid #0068b7;
}

.site-title {
  font-size: 20px;
  font-weight: bold;
  color: #0068b7;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: #222;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

nav a:hover,
nav a[aria-current="page"] {
  color: #0068b7;
}

.header-icons {
  display: flex;
  gap: 16px;
}

.header-icons a {
  color: #555;
  font-size: 20px;
}

.header-icons a:hover {
  color: #0068b7;
}

/* ===== Footer ===== */

.site-footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.site-footer p {
  margin: 0 0 4px;
}

/* ===== Sections ===== */

section {
  padding: 40px 0;
}

/* ===== Home ===== */

.home-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 60vh;
  min-height: 360px;
  background-image: url("images/home-hero.jpg");
  background-size: cover;
  background-position: center 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.home-hero h1 {
  font-size: 52px;
  margin-bottom: 8px;
}

.home-hero .hero-position {
  color: #fff;
  font-size: 22px;
}

.hero {
  padding: 40px 0;
}

.hero-description {
  max-width: 650px;
  line-height: 1.8;
}

.current-position,
.research-interests {
  padding: 40px 0;
  border-top: 1px solid #ddd;
}

/* ===== Publications ===== */

.pub-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.pub-filter button {
  font: inherit;
  font-size: 14px;
  padding: 6px 16px;
  border: 1px solid #0068b7;
  border-radius: 999px;
  background-color: #fff;
  color: #0068b7;
  cursor: pointer;
}

.pub-filter button.is-active {
  background-color: #0068b7;
  color: #fff;
}

/* ===== Profile ===== */

.profile-header {
  display: grid;
  grid-template-columns: 180px 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 40px;
}

.profile-header h1 {
  grid-column: 2;
  align-self: end;
}

.profile-header p {
  grid-column: 2;
  align-self: start;
}

.profile-photo {
  display: block;
  grid-column: 1;
  grid-row: 1 / 3;
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

.research-overview,
.dissertation,
.education,
.work-experience,
.professional-activities,
.research-grants,
.qualifications,
.memberships,
.personal-note {
  border-top: 1px solid #ddd;
}

dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px 30px;
  margin: 0;
}

dt {
  font-weight: bold;
  color: #555;
}

dd {
  margin: 0;
  line-height: 1.6;
}

.simple-list {
  padding-left: 20px;
}

.simple-list li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.personal-note p {
  max-width: 650px;
  line-height: 1.8;
}

/* ===== Small screens ===== */

@media (max-width: 700px) {

  body {
    padding: 30px 20px;
  }

  nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 21px;
  }

  .profile-header {
    display: block;
  }

  .profile-photo {
    margin-bottom: 24px;
  }

  .home-hero {
    height: 45vh;
    min-height: 280px;
  }

  .home-hero h1 {
    font-size: 36px;
  }

  .home-hero .hero-position {
    font-size: 18px;
  }

  dl {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  dd {
    margin-bottom: 20px;
  }
}
