:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-alt: #f8f9fb;
  --text: #28313b;
  --muted: #65717d;
  --line: #dce2e8;
  --accent: #a75014;
  --accent-soft: #f4e6d8;
  --accent-strong: #793808;
  --secondary: #2f6f86;
  --shadow: 0 18px 48px rgba(22, 30, 38, 0.1);
  --shadow-soft: 0 1px 3px rgba(22, 30, 38, 0.06), 0 10px 28px rgba(22, 30, 38, 0.05);
  --radius: 8px;
  --content: 1120px;
  --measure: 72ch;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #e9edf2;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.68 var(--font-body);
}

a {
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
  transition: color 170ms ease, background-size 180ms ease, border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

a:hover {
  color: var(--secondary);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 36%, white);
  outline-offset: 4px;
}

img {
  max-width: 100%;
}

p {
  margin: 0 0 1.05rem;
}

:where(h1, h2, h3)[id] {
  scroll-margin-top: 128px;
}

.intro-copy p a,
.section-block > p a,
.people-card a,
.news-item p a,
.course-content a,
.course-detail-body a,
.timeline-content a,
.site-footer a {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
}

.intro-copy p a:hover,
.section-block > p a:hover,
.people-card a:hover,
.news-item p a:hover,
.course-content a:hover,
.course-detail-body a:hover,
.timeline-content a:hover,
.site-footer a:hover {
  background-size: 100% 1px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.65rem 0.8rem;
  background: var(--accent);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-top: 3px solid color-mix(in srgb, var(--accent) 74%, white);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  backdrop-filter: saturate(120%) blur(10px);
}

.header-inner,
.hero-section,
.intro-grid,
.section-ruler,
.profile-strip,
.content-grid,
.site-footer {
  width: min(100% - 40px, var(--content));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand strong {
  font: 800 1.02rem/1.15 var(--font-display);
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2.4vw, 28px);
}

.site-nav a {
  min-height: 36px;
  border-bottom: 2px solid transparent;
  padding: 0.45rem 0.15rem 0.35rem;
  color: #555555;
  font-weight: 650;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  border-bottom-color: color-mix(in srgb, var(--accent) 74%, white);
  color: var(--accent);
}

.hero-section {
  padding: clamp(42px, 7vw, 76px) 0 12px;
}

.page-hero {
  width: min(100% - 40px, var(--content));
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
  padding: clamp(34px, 6vw, 58px) 0 26px;
}

.hero-section h1 {
  margin: 0.1em 0 0.2em;
  font: 800 clamp(2.35rem, 6vw, 3.25rem)/1.05 var(--font-display);
  letter-spacing: 0;
}

.page-hero h1 {
  margin: 0.1em 0 0.2em;
  font: 800 clamp(2.2rem, 5vw, 2.75rem)/1.05 var(--font-display);
  letter-spacing: 0;
}

.page-kicker {
  max-width: var(--measure);
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.intro-grid {
  display: block;
  padding: 8px 0 22px;
}

.intro-copy {
  color: #2f3c47;
  font-size: 1.02rem;
}

.intro-copy::after {
  display: block;
  clear: both;
  content: "";
}

.intro-copy p:first-child,
.section-block p:first-child {
  margin-top: 0;
}

.intro-copy > p,
.section-block > p,
.section-block address {
  max-width: var(--measure);
}

.text-highlight,
.news-title {
  color: #25313b;
  font-weight: 800;
}

.intro-side {
  float: right;
  width: min(34vw, 300px);
  margin: 0 0 20px 34px;
}

.portrait-card {
  width: 100%;
  margin: 0;
}

.portrait-card picture {
  display: block;
}

.portrait-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(28, 36, 45, 0.14);
  object-fit: cover;
  object-position: center top;
}

.hero-actions {
  display: flex;
  clear: both;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 0;
}

.compact-actions {
  justify-content: flex-start;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--accent) 68%, var(--line));
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem;
  color: var(--accent);
  font-weight: 800;
}

.button:hover {
  background: color-mix(in srgb, var(--accent) 9%, white);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22, 30, 38, 0.08);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--accent-strong);
  color: #ffffff;
}

.section-ruler {
  height: 1px;
  border: 0;
  margin-top: 22px;
  margin-bottom: 32px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--line) 82%, var(--accent)), transparent);
}

.profile-strip,
.section-block,
.book-card,
.paper-card,
.news-item,
.paperDetails,
.paperdetails,
.people-card,
.resource-card,
.course-item,
.contact-item,
.course-details {
  border: 1px solid color-mix(in srgb, var(--line) 78%, white);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(22, 30, 38, 0.04);
  transition: box-shadow 170ms ease, transform 170ms ease, border-color 170ms ease;
}

.profile-strip {
  border: 0;
  padding: clamp(14px, 2.3vw, 20px) clamp(18px, 3vw, 26px);
  box-shadow: var(--shadow-soft);
}

.profile-strip h2,
.section-heading h2 {
  margin: 0;
  font: 800 1.35rem/1.15 var(--font-display);
}

.profile-links,
.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  margin-top: 16px;
}

.profile-links {
  margin-top: 0;
  color: color-mix(in srgb, var(--muted) 84%, white);
  justify-content: center;
}

.profile-links a {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  font-weight: 750;
}

.profile-links a:hover {
  background-size: 100% 1px;
}

.profile-links .separator {
  color: color-mix(in srgb, var(--muted) 58%, white);
}

.link-cloud a,
.paper-links a,
.text-link-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: var(--radius);
  padding: 0.35rem 0.55rem;
  background: color-mix(in srgb, var(--accent) 6%, white);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  padding: 34px 0 64px;
}

.main-column {
  display: grid;
  align-content: start;
  gap: 30px;
}

.section-block {
  border: 0;
  padding: clamp(20px, 3vw, 30px);
  color: #2f3c47;
  box-shadow: var(--shadow-soft);
}

.section-block[aria-labelledby="funding-title"] > p {
  max-width: none;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading > a {
  margin-left: auto;
  text-align: right;
}

.news-list,
.book-list,
.paper-list,
.timeline-list,
.people-grid,
.resource-grid,
.course-list {
  display: grid;
  gap: 14px;
}

.people-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teaching-books {
  grid-template-columns: 1fr;
}

.people-card {
  padding: 16px;
}

.people-card h3 {
  margin: 0;
  color: var(--text);
  font: 800 1rem/1.35 var(--font-body);
}

.people-card ul {
  margin: 10px 0 0;
  padding-left: 1.1rem;
}

.history-section + .history-section {
  margin-top: 26px;
  padding-top: 24px;
}

.history-section > h3 {
  margin: 0 0 12px;
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: start;
  gap: 18px;
  padding: 16px;
}

.news-item time {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 0.26rem 0.58rem;
  background: color-mix(in srgb, var(--accent) 8%, white);
  box-shadow: 0 1px 2px rgba(22, 30, 38, 0.06);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.2;
}

.news-item p {
  margin: 0;
}

.news-item a,
.news-item a.news-title {
  color: var(--accent);
}

.news-item a:hover,
.news-item a.news-title:hover {
  color: var(--accent-strong);
}

.news-label {
  display: inline-block;
  margin-right: 0.4rem;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.book-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 16px;
}

.book-card img {
  display: block;
  width: 120px;
  border-radius: 4px;
  box-shadow: 0 10px 18px rgba(28, 36, 45, 0.16);
}

.book-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.book-card .book-summary {
  max-width: 88ch;
  color: #475562;
}

.book-card > div > a {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
}

.book-card > div > a:hover {
  background-size: 100% 1px;
}

.teaching-books .book-card {
  grid-template-columns: 132px 1fr;
}

.teaching-books .book-card img {
  width: 132px;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.paper-card {
  overflow: hidden;
}

.paperDetails,
.paperdetails {
  overflow: hidden;
  margin: 12px 0;
}

.paper-heading,
.paper-toggle,
.paper-card summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  width: 100%;
  border: 0;
  padding: 16px 18px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  list-style: none;
}

.paper-heading {
  cursor: default;
}

.paper-card summary::-webkit-details-marker {
  display: none;
}

.paper-toggle::after,
.paper-card summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 900;
}

.paper-toggle[aria-expanded="true"]::after,
.paper-card details[open] summary::after {
  content: "-";
}

.paper-card strong,
.paper-card small,
.paperDetails .paper-toggle strong,
.paperDetails .paper-toggle small,
.paperDetails .paper-heading strong,
.paperDetails .paper-heading small,
.paperdetails .paper-toggle strong,
.paperdetails .paper-toggle small,
.paperdetails .paper-heading strong,
.paperdetails .paper-heading small {
  display: block;
}

.paper-card small,
.paperDetails .paper-toggle small,
.paperDetails .paper-heading small,
.paperdetails .paper-toggle small,
.paperdetails .paper-heading small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.88rem;
}

.paperTitle {
  padding: 16px 18px 0;
  color: var(--text);
  font-weight: 800;
}

.paperWhere {
  padding: 5px 18px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.paper-card p,
.paper-abstract {
  margin: 0;
  padding: 0 18px 14px;
  color: #33414d;
}

.paper-links,
.paperLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 18px;
}

.paperLinks a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: var(--radius);
  padding: 0.35rem 0.55rem;
  background: color-mix(in srgb, var(--accent) 6%, white);
}

.book-actions a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: var(--radius);
  padding: 0.35rem 0.55rem;
  background: color-mix(in srgb, var(--accent) 6%, white);
}

.link-cloud a:hover,
.paper-links a:hover,
.paperLinks a:hover,
.book-actions a:hover,
.text-link-button:hover {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, white);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-block[aria-labelledby="notes-title"] .resource-grid {
  grid-auto-rows: 1fr;
}

.resource-card {
  display: flex;
  min-height: 92px;
  align-items: center;
  padding: 16px;
}

.resource-card a {
  font-weight: 750;
}

.course-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
}

.course-term {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 0.22rem 0.5rem;
  background: color-mix(in srgb, var(--accent) 7%, white);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
}

.course-content p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.course-details {
  overflow: hidden;
}

.course-details summary {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.course-details summary::-webkit-details-marker {
  display: none;
}

.course-details summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 900;
}

.course-details[open] summary::after {
  content: "-";
}

.course-title {
  color: var(--accent);
  font-weight: 700;
}

.course-details summary small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.course-detail-body {
  padding: 0 16px 16px 142px;
  color: #33414d;
}

.course-detail-body p {
  margin: 0;
  white-space: pre-line;
}

.abstract {
  margin: 0;
  padding: 0 18px 14px;
  background: transparent;
  color: #33414d;
  font-size: 1rem;
  line-height: 1.6;
  white-space: pre-line;
}

.research-publications {
  display: grid;
  gap: 14px;
}

.research-publications > h2,
.research-publications > h3 {
  margin: 1.35rem 0 0.1rem;
  font: 800 1.35rem/1.15 var(--font-display);
}

.research-publications > h2:first-child {
  margin-top: 0;
}

.research-publications > br {
  display: none;
}

.research-publications .paper-card {
  margin: 0;
}

.paper-toggle:hover,
.paper-card summary:hover {
  color: var(--accent-strong);
}

.paper-toggle:hover::after,
.paper-card summary:hover::after {
  color: var(--accent-strong);
}

.news-archive-list {
  gap: 12px;
}

.news-archive-list .news-item p {
  max-width: 86ch;
}

.timeline-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, white);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(22, 30, 38, 0.04);
}

.timeline-label {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 0.22rem 0.5rem;
  background: color-mix(in srgb, var(--accent) 7%, white);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
}

.timeline-content h3 {
  margin: 0;
  color: var(--text);
  font: 800 1rem/1.35 var(--font-body);
}

.timeline-content p {
  margin: 4px 0 0;
  color: var(--muted);
}

address {
  color: #2f3c47;
  font-style: normal;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: none;
}

.section-block address.contact-card {
  max-width: none;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid color-mix(in srgb, var(--line) 78%, white);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
}

.contact-icon {
  display: inline-flex;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, white);
  color: var(--accent);
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-label,
.contact-value {
  display: block;
}

.contact-label {
  margin-bottom: 2px;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.contact-value {
  color: #2f3c47;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-value a {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  font-weight: 650;
}

.contact-value a:hover {
  background-size: 100% 1px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 760px) {
  .intro-side {
    float: right;
    width: clamp(150px, 36vw, 220px);
    margin: 0 0 14px 18px;
  }
}

@media (max-width: 900px) {
  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .hero-section {
    padding-top: 34px;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    text-align: center;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .people-grid {
    grid-template-columns: 1fr;
  }

  .resource-grid,
  .teaching-books {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .book-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .teaching-books .book-card {
    grid-template-columns: 1fr;
  }

  .book-card img,
  .teaching-books .book-card img {
    width: 112px;
  }

  .course-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .course-details summary {
    grid-template-columns: 1fr auto;
  }

  .course-details summary .course-term {
    grid-column: 1 / -1;
  }

  .course-detail-body {
    padding-left: 16px;
  }
}

@media (max-width: 480px) {
  .header-inner,
    .hero-section,
  .page-hero,
  .intro-grid,
  .section-ruler,
  .profile-strip,
  .content-grid,
  .site-footer {
    width: min(100% - 28px, var(--content));
  }

  .intro-side {
    width: clamp(130px, 40vw, 170px);
    margin: 0 0 12px 14px;
  }
}

@media (hover: hover) {
  .news-item:hover,
  .book-card:hover,
  .paper-card:hover,
  .resource-card:hover,
  .course-item:hover,
  .course-details:hover {
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
    box-shadow: 0 12px 28px rgba(22, 30, 38, 0.12);
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .button:hover,
  .link-cloud a:hover,
  .paper-links a:hover,
  .paperLinks a:hover,
  .book-actions a:hover,
  .text-link-button:hover,
  .news-item:hover,
  .book-card:hover,
  .paper-card:hover,
  .resource-card:hover,
  .course-item:hover,
  .course-details:hover {
    transform: none;
  }
}
