:root {
  --ink: #4d5154;
  --heading: #42474a;
  --muted: #90989d;
  --accent: #36a8cf;
  --line: #e8ebed;
  --soft: #f5f9fb;
  --page: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-top: 1px solid #d9dde0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
}

.header-inner {
  width: min(1160px, calc(100% - 64px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
}

.site-name {
  color: #31373a;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

nav { display: flex; align-items: center; gap: 32px; }
nav a {
  padding: 22px 0 20px;
  color: #303638;
  font-size: 15px;
  text-decoration: none;
  transition: color .15s ease;
}
nav a:hover, nav a:focus-visible { color: var(--accent); }
nav a.active { font-weight: 600; }

.page-shell {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  padding: 44px 0 90px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 70px;
}

.profile { position: sticky; top: 112px; align-self: start; }

.profile-photo {
  display: block;
  width: 174px;
  height: 174px;
  border: 1px solid #d8dcde;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 5%;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px #e4e7e8;
}

.profile h1 { margin: 20px 0 4px; color: var(--heading); font-size: 17px; line-height: 1.35; }
.role { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.55; }

.profile-details { margin: 23px 0 0; padding: 0; list-style: none; }
.profile-details li { display: flex; align-items: center; gap: 12px; margin: 11px 0; font-size: 15px; }
.profile-details svg { width: 17px; height: 17px; fill: #545b5e; flex: none; }
.profile-details a { text-decoration: none; }
.profile-details a:hover, .profile-details a:focus-visible { color: var(--accent); }

.content { max-width: 800px; }
.content > section:first-child > h2 { margin: 0 0 19px; color: var(--heading); font-size: 35px; line-height: 1.2; letter-spacing: -.02em; }
.intro { max-width: 760px; margin: 0; font-size: 19px; line-height: 1.62; }

.content-section { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line); }
.section-label h2 { margin: 0 0 5px; color: var(--heading); font-size: 15px; font-weight: 700; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.section-label > span { display: block; width: 32px; height: 3px; margin-bottom: 24px; background: var(--accent); }

.entry { margin: 0 0 36px; }
.entry h3, .poster-copy h3 { margin: 0; color: var(--heading); font-size: 19px; line-height: 1.4; }
.institution { margin: 3px 0 0; font-size: 16px; font-weight: 500; }
.place, .date { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.entry ul { margin: 13px 0 0; padding-left: 20px; }
.entry li { margin: 7px 0; padding-left: 3px; }
.entry li::marker { color: var(--accent); }
.dated-entry .date { margin-bottom: 5px; color: var(--accent); font-weight: 500; }

.poster-card {
  display: grid;
  grid-template-columns: minmax(230px, .95fr) 1.05fr;
  gap: 27px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--soft);
}
.poster-link { position: relative; display: block; align-self: start; overflow: hidden; border: 1px solid #dce4e8; background: #fff; text-decoration: none; }
.poster-link img { display: block; width: 100%; aspect-ratio: 1.355; object-fit: cover; transition: transform .2s ease; }
.poster-link span { position: absolute; right: 8px; bottom: 8px; padding: 5px 8px; background: rgba(255,255,255,.94); color: var(--heading); font-size: 12px; font-weight: 500; }
.poster-link:hover img { transform: scale(1.015); }
.poster-copy { align-self: center; }
.poster-copy .date { margin: 0 0 7px; color: var(--accent); font-weight: 600; }
.poster-copy > p:not(.date):not(.place) { margin: 12px 0 0; }
.poster-copy .place { margin-top: 8px; }

.credential-list { border-top: 1px solid var(--line); }
.credential-list article { display: grid; grid-template-columns: 1fr auto; gap: 28px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.credential-list p { margin: 0; font-weight: 500; }
.credential-list span { color: var(--muted); font-size: 14px; text-align: right; }

.degree { margin: 0 0 23px; }
.degree h3 { margin: 0; color: var(--heading); font-size: 18px; line-height: 1.45; }
.degree p { margin: 0; font-size: 17px; line-height: 1.45; }
.degree > span { display: block; color: var(--muted); font-size: 15px; }

@media (max-width: 900px) {
  .header-inner { gap: 30px; }
  nav { margin-left: auto; gap: 20px; }
  nav a { font-size: 14px; }
  .page-shell { grid-template-columns: 200px minmax(0, 1fr); gap: 45px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 70px; }
  .header-inner { width: min(100% - 32px, 640px); min-height: 64px; }
  nav { gap: 16px; overflow-x: auto; }
  nav a { padding: 20px 0; white-space: nowrap; }
  nav a:nth-child(3) { display: none; }

  .page-shell { width: min(100% - 40px, 640px); padding-top: 36px; grid-template-columns: 1fr; gap: 42px; }
  .profile { position: static; text-align: center; }
  .profile-photo { width: 154px; height: 154px; margin: 0 auto; }
  .profile-details { display: inline-block; margin-top: 18px; text-align: left; }
  .content { max-width: none; }
  .content > section:first-child > h2 { font-size: 31px; }
  .intro { font-size: 17px; }
  .poster-card { grid-template-columns: 1fr; }
  .credential-list article { grid-template-columns: 1fr; gap: 4px; }
  .credential-list span { text-align: left; }
}

@media (max-width: 480px) {
  .header-inner { width: calc(100% - 24px); gap: 18px; }
  .site-name { font-size: 15px; }
  nav { gap: 12px; }
  nav a { font-size: 13px; }
  nav a:nth-child(4) { display: none; }
  .page-shell { width: calc(100% - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
