:root {
  --bg: #f7f7f6;
  --text: #202124;
  --muted: #5f6368;
  --rule: #00a86b;
  --link: #00a86b;
  --border: #d9d9d9;
  --max-width: 826px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: var(--link);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.08em;
}

a:focus-visible {
  outline: 3px solid rgba(0, 168, 107, 0.35);
  outline-offset: 3px;
}

.page {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  min-height: 100vh;
  padding: 34px 0 24px;
  display: flex;
  flex-direction: column;
}

.hero {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 41px;
  align-items: center;
  max-width: 686px;
  margin: 0 auto 59px;
}

.portrait-wrap {
  display: flex;
  justify-content: center;
}

.portrait {
  width: 175px;
  aspect-ratio: 1;
  border: 6px solid #dedede;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background: #e9ecef;
}

.identity h1 {
  margin: 0 0 14px;
  font-size: 2.69rem;
  line-height: 1.02;
  font-weight: 800;
}

.role,
.affiliation {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.affiliation {
  margin-top: 4px;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 21px;
  margin-top: 20px;
  font-size: 1.02rem;
}

.section {
  margin-top: 52px;
}

.content .section:first-child {
  margin-top: 0;
}

.section h2 {
  margin: 0 0 24px;
  border-bottom: 4px solid var(--rule);
  padding-bottom: 14px;
  font-size: 1.79rem;
  line-height: 1.1;
  font-weight: 800;
}

.section p,
.bullet-list {
  max-width: 728px;
  font-size: 1.02rem;
}

.section p {
  margin: 0 0 18px;
}

.entry-list {
  display: grid;
  gap: 24px;
}

.entry {
  border-left: 5px solid var(--border);
  padding-left: 17px;
}

.entry h3 {
  margin: 0 0 7px;
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 800;
}

.entry p {
  margin: 0;
  color: var(--muted);
}

.entry em {
  font-style: italic;
}

.bullet-list {
  margin: 0;
  padding-left: 24px;
}

.bullet-list li {
  margin: 0 0 15px;
  padding-left: 8px;
}

.bullet-list li::marker {
  color: var(--rule);
}

.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 32px, var(--max-width));
    padding-top: 26px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    justify-items: center;
    text-align: center;
    margin-bottom: 62px;
  }

  .portrait {
    width: min(161px, 68vw);
  }

  .identity h1 {
    font-size: 1.68rem;
  }

  .role,
  .affiliation {
    font-size: 0.85rem;
  }

  .profile-links {
    justify-content: center;
    gap: 8px 16px;
    font-size: 0.92rem;
  }

  .section {
    margin-top: 38px;
  }

  .section h2 {
    margin-bottom: 18px;
    padding-bottom: 11px;
    font-size: 1.5rem;
  }

  .section p,
  .bullet-list {
    font-size: 1rem;
  }

  .entry {
    padding-left: 14px;
  }

  .entry h3 {
    font-size: 1rem;
  }

  .footer {
    font-size: 0.85rem;
  }
}

@media (max-width: 430px) {
  .page {
    width: min(100% - 24px, var(--max-width));
  }

  .identity h1 {
    font-size: 1.47rem;
  }

  .profile-links {
    font-size: 0.88rem;
  }

  .section h2 {
    font-size: 1.35rem;
  }
}
