:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #202124;
  --muted: #5f6368;
  --line: #e5e7eb;
  --soft: #f7f8fa;
  --link: #1a5fb4;
  --link-hover: #0b3d91;
  --max: 1320px;
  --page-gutter: 48px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

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

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

img,
video {
  max-width: 100%;
  height: auto;
}

.site-header {
  width: min(var(--max), calc(100% - var(--page-gutter) * 2));
  margin: 0 auto;
  padding: 18px 0 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.site-title {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.93rem;
}

.site-nav a:hover {
  color: var(--text);
}

.page-shell {
  width: min(var(--max), calc(100% - var(--page-gutter) * 2));
  margin: 0 auto;
  padding: 30px 0 58px;
}

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

.profile-panel {
  position: sticky;
  top: 24px;
}

.portrait {
  display: block;
  width: 220px;
  height: auto;
  border-radius: 4px;
  margin-bottom: 14px;
}

.profile-panel h1 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 600;
}

.profile-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.profile-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin-top: 14px;
  font-size: 0.95rem;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.profile-link:hover {
  color: var(--link-hover);
  text-decoration: none;
}

.profile-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.home-content section + section {
  margin-top: 28px;
}

.home-content section[id] {
  scroll-margin-top: 28px;
}

.intro-section {
  max-width: 820px;
}

.contact-section {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact-section p {
  margin-bottom: 0;
}

.inline-separator {
  color: var(--muted);
  margin: 0 8px;
}

.home-content h2,
.content-page h1,
.content-page h2,
.prose h2 {
  margin: 0 0 12px;
  font-size: 1.28rem;
  line-height: 1.3;
  font-weight: 600;
}

.home-content p {
  margin: 0 0 12px;
}

.compact-list {
  margin: 0;
  padding-left: 1.15rem;
}

.compact-list li + li {
  margin-top: 4px;
}

.timeline {
  display: grid;
  gap: 11px;
}

.timeline div {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.timeline span,
.publication-item > span,
.list-card span,
.project-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline p {
  margin: 0;
}

.timeline em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.92rem;
}

.publication-list,
.card-list {
  display: grid;
  gap: 18px;
}

.project-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.project-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.project-thumb {
  display: block;
  width: 150px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--soft);
  color: var(--muted);
  text-align: center;
  line-height: 84px;
  font-size: 0.92rem;
}

.project-thumb:hover {
  border-color: #cbd5e1;
  text-decoration: none;
}

.project-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-year,
.project-meta-line {
  color: var(--muted);
  font-size: 0.92rem;
}

.project-body h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 600;
}

.project-body p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.project-body .project-meta-line {
  margin-bottom: 4px;
}

.project-link-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.project-link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  font-weight: 600;
  line-height: 1.2;
}

.project-link-row a:hover {
  background: #eef4ff;
  border-color: #cbd5e1;
  text-decoration: none;
}

.experience-list {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.award-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 30px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.award-grid h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.publication-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
}

.publication-item:hover {
  border-color: #cbd5e1;
  background: #fbfcfe;
  text-decoration: none;
}

.publication-item h3,
.list-card h2,
.list-card h3 {
  margin: 0 0 4px;
  color: var(--link);
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 600;
}

.publication-item p,
.list-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.content-page {
  max-width: 780px;
}

.page-heading {
  margin-bottom: 28px;
}

.page-heading h1 {
  font-size: 1.65rem;
}

.lede {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1rem;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.list-card {
  display: block;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.list-card:hover {
  text-decoration: none;
}

.project-page {
  max-width: 940px;
  margin: 0 auto;
}

.project-hero {
  max-width: 880px;
  margin: 0 auto 34px;
  text-align: center;
}

.project-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: 0;
}

.project-subtitle {
  max-width: 780px;
  margin: 16px auto 8px;
  color: #3c4043;
  font-size: 1.08rem;
  line-height: 1.55;
}

.project-meta {
  margin: 10px 0 0;
}

.project-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--link);
  font-size: 0.92rem;
  font-weight: 600;
}

.button:hover {
  background: #eef4ff;
  text-decoration: none;
}

.prose {
  max-width: 820px;
  margin: 0 auto;
}

.prose p {
  margin: 0 0 16px;
}

.prose h2 {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.prose h1 {
  text-align: center;
}

.prose h2 {
  text-align: center;
}

.prose img {
  display: block;
  margin: 26px auto;
  border-radius: 3px;
}

.prose figure {
  margin: 28px 0;
}

.prose figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.prose li + li {
  margin-top: 4px;
}

.project-main-video {
  display: block;
  width: 100%;
  margin: 0 auto 26px;
  border-radius: 3px;
  background: #111827;
}

.video-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 auto 30px;
}

.video-strip video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 3px;
  background: #111827;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.media-grid figure {
  margin: 0;
}

.media-grid video,
.wide-video {
  width: 100%;
  border-radius: 3px;
  background: #111827;
}

.embed {
  position: relative;
  aspect-ratio: 16 / 9;
}

.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 3px;
}

.logo-mark {
  max-width: 170px;
}

.site-footer {
  width: min(var(--max), calc(100% - var(--page-gutter) * 2));
  margin: 0 auto;
  padding: 20px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 820px) {
  :root {
    --page-gutter: 16px;
  }

  .home-grid {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
  }

  .portrait {
    width: 190px;
  }

  .project-grid,
  .award-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header,
  .home-grid,
  .timeline div,
  .publication-item,
  .project-item {
    display: block;
  }

  .site-nav {
    margin-top: 10px;
  }

  .profile-panel {
    position: static;
    margin-bottom: 28px;
  }

  .portrait {
    width: 180px;
  }

  .page-shell {
    padding-top: 28px;
  }

  .timeline span,
  .publication-item > span {
    display: block;
    margin-bottom: 2px;
  }

  .project-thumb {
    width: 100%;
    max-width: 240px;
    margin-bottom: 10px;
    line-height: 135px;
  }

  .video-strip,
  .media-grid,
  .project-grid,
  .award-grid {
    grid-template-columns: 1fr;
  }

  .project-hero {
    text-align: left;
  }

  .project-links {
    justify-content: flex-start;
  }
}
