:root {
  color-scheme: light;
  --ink: #202a36;
  --muted: #5c6877;
  --blue: #225fa4;
  --line: #e1e6ec;
  --soft: #f4f7fa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; border-radius: 2px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure { margin: 0; }
main, .site-header, .site-footer { width: min(1000px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 12px 20px; background: white; z-index: 2; }
.skip-link:focus { top: 12px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; border-bottom: 1px solid var(--line); }
.site-name { color: var(--ink); font-size: 17px; font-weight: 650; letter-spacing: -.3px; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a { font-size: 14px; color: var(--muted); padding: 10px 0; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: center; gap: 55px; padding: 56px 0 52px; }
.eyebrow { color: var(--muted); font-size: 12px; letter-spacing: 1.7px; text-transform: uppercase; font-weight: 600; margin-bottom: 5px; }
h1 { font-size: clamp(32px, 4.4vw, 43px); font-weight: 650; line-height: 1.25; letter-spacing: -1.5px; margin-bottom: 22px; }
.intro-copy > p:not(.eyebrow) + p { margin-top: 14px; }
.portrait img { width: 250px; border-radius: 8px; }
.profile-links, .paper-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 9px 22px; }
.profile-links { margin: 22px 0 0; font-size: 14px; font-weight: 600; }
.section { padding: 36px 0 42px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
h2 { font-size: 28px; font-weight: 600; letter-spacing: -.7px; line-height: 1.3; }
.section-link { font-size: 13px; white-space: nowrap; }
.section-intro { max-width: 800px; color: var(--muted); }
.under-review { border-left: 3px solid #96b6d7; background: var(--soft); padding: 17px 22px; margin: 26px 0 32px; }
.status { color: var(--muted); text-transform: uppercase; letter-spacing: 1.3px; font-size: 11px; font-weight: 650; margin-bottom: 5px; }
.under-review h3 { font-size: 16px; line-height: 1.5; font-weight: 600; }
.year-heading { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 1.2px; display: flex; align-items: center; gap: 16px; margin: 30px 0 4px; }
.year-heading::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.paper { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 30px; align-items: center; padding: 26px 0; }
.paper + .paper { border-top: 1px solid #edf0f4; }
.paper-image { display: flex; align-items: center; justify-content: center; min-height: 156px; }
.paper-image img { width: 100%; max-height: 185px; object-fit: contain; }
.paper h4 { font-size: 17px; line-height: 1.45; font-weight: 650; margin-bottom: 8px; }
.paper h4 a { color: var(--blue); }
.authors { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.authors strong { font-weight: 650; color: var(--ink); }
.venue { font-size: 13.5px; line-height: 1.5; font-style: italic; margin-top: 5px; }
.paper-summary { font-size: 14px; line-height: 1.6; margin-top: 10px; }
.paper-links { margin: 10px 0 0; font-size: 13px; font-weight: 600; gap: 7px 18px; }
.service-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 58px; margin-top: 26px; }
.service-grid h3 { font-size: 18px; line-height: 1.4; font-weight: 600; }
.service-context { color: var(--muted); font-size: 13px; margin-top: 6px; }
.course-list { list-style: none; padding: 0; margin: 15px 0 0; }
.course-list li + li { border-top: 1px solid #edf0f4; }
.course-list a { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: baseline; padding: 12px 0; font-size: 14px; }
.course-code { color: var(--muted); font-size: 12px; font-weight: 600; }
.reviewing h4 { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .5px; margin-top: 17px; margin-bottom: 7px; }
.reviewing ul { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 1.8; }
.site-footer { border-top: 1px solid var(--line); padding: 22px 0 30px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }

@media (max-width: 800px) {
  .intro { grid-template-columns: minmax(0, 1fr) 190px; gap: 28px; padding-top: 40px; }
  .portrait img { width: 190px; }
  .paper { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
  .service-grid { gap: 30px; }
}

@media (max-width: 600px) {
  main, .site-header, .site-footer { width: calc(100% - 36px); }
  .site-header { min-height: 65px; gap: 12px; }
  .site-header nav { gap: 18px; }
  .site-header nav a { font-size: 13px; }
  .intro { grid-template-columns: 1fr; gap: 25px; padding: 34px 0; }
  .intro-copy { display: contents; }
  .eyebrow { grid-row: 1; margin-bottom: -19px; font-size: 10px; }
  h1 { grid-row: 2; margin-bottom: 0; }
  .portrait { grid-row: 3; }
  .portrait img { width: 220px; }
  .intro-copy > p:not(.eyebrow) + p { margin-top: -10px; }
  .profile-links { margin-top: -5px; }
  .section { padding: 30px 0; }
  h2 { font-size: 25px; }
  .section-link { font-size: 12px; }
  .section-intro { font-size: 15px; }
  .under-review { padding: 15px 17px; }
  .paper { grid-template-columns: 1fr; gap: 16px; padding: 26px 0; }
  .paper-image { justify-content: flex-start; min-height: 0; }
  .paper-image img { width: min(320px, 100%); max-height: 190px; object-position: left center; }
  .paper h4 { font-size: 17px; }
  .service-grid { grid-template-columns: 1fr; gap: 30px; }
  .site-footer { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
