:root {
  color-scheme: light;
  --blue: #4f76c7;
  --link: #0645a3;
  --line: #b8b8b8;
  --text: #000000;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: "Times New Roman", Times, SimSun, serif;
  font-size: 22px;
  line-height: 1.28;
}

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

a:hover {
  text-decoration: underline;
}

.page {
  width: min(1320px, calc(100% - 120px));
  margin: 0 auto;
  padding: 42px 0 28px;
}

.site-header {
  margin-bottom: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 48px;
  align-items: start;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 44px;
  color: var(--blue);
  font-size: 38px;
  line-height: 1;
  font-weight: 700;
}

.intro p {
  max-width: 1020px;
  margin-bottom: 26px;
}

.notice {
  color: #ff0000;
}

.portrait {
  display: grid;
  width: 230px;
  height: 230px;
  place-items: center;
  margin-top: 68px;
  border: 1px solid #dddddd;
  color: var(--blue);
  font-size: 118px;
  font-weight: 700;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 74px;
  align-items: center;
  margin-top: 46px;
}

.contact-row a {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  color: var(--link);
  white-space: nowrap;
}

.contact-icon {
  display: inline-grid;
  width: 26px;
  place-items: center;
  color: #000000;
  font-family: "Times New Roman", Times, serif;
  font-size: 26px;
  line-height: 1;
}

.section {
  padding-top: 18px;
}

h2 {
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  color: var(--blue);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
}

h3 {
  margin-bottom: 4px;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 700;
}

.education-list {
  margin-left: 58px;
}

.education-item {
  margin-bottom: 18px;
}

.education-item p {
  margin-bottom: 2px;
}

.education-item.muted {
  color: #666666;
}

.meta,
.note {
  font-size: 17px;
}

.note {
  margin-left: 58px;
  margin-bottom: 28px;
}

.interest-list,
.publication-list,
.project-list {
  margin: 0 0 0 58px;
  padding-left: 22px;
  list-style-type: square;
}

.interest-list li,
.publication-list li,
.project-list li {
  margin-bottom: 16px;
}

.year {
  margin: 28px 0 16px 58px;
  color: var(--blue);
  font-size: 25px;
}

.publication-list strong {
  font-weight: 700;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 42px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #555555;
  font-size: 16px;
}

@media (max-width: 860px) {
  body {
    font-size: 19px;
  }

  .page {
    width: min(100% - 32px, 1320px);
    padding-top: 28px;
  }

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

  h1 {
    margin-bottom: 26px;
  }

  .portrait {
    width: 160px;
    height: 160px;
    margin-top: 0;
    font-size: 78px;
  }

  .contact-row {
    gap: 18px;
    margin-top: 26px;
  }

  .education-list,
  .note,
  .interest-list,
  .publication-list,
  .project-list,
  .year {
    margin-left: 0;
  }
}
