/* Shared foundations */
:root {
  color-scheme: light;
  --ink: #20242a;
  --muted: #565e68;
  --link: #164fa3;
  --line: #dfe3e8;
  --paper: #fff;
  --wash: #f5f7fa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { color: #103779; background: #e0ebfc; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .19em; }
a:hover { color: #0c3371; text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid #b07b27; outline-offset: 4px; border-radius: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; text-wrap: balance; }
h1 { margin: 0; font-size: 1.875rem; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; }
h2 { margin: 2.2rem 0 1rem; font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
h3 { margin: 1.8rem 0 .7rem; font-size: 1.05rem; font-weight: 600; }
h4 { margin: 1.5rem 0 .5rem; font-size: 1rem; }
p { margin: 0 0 1.2rem; }
ul, ol { padding-left: 1.4rem; }
li { padding-left: .2rem; }
li + li { margin-top: .5rem; }
strong { font-weight: 600; }
hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--line); }
blockquote { margin: 1.8rem 0; padding: .1rem 0 .1rem 1.3rem; border-left: 2px solid #a7bec3; color: var(--muted); }
blockquote p:last-child { margin-bottom: 0; }
pre { padding: 1.2rem; overflow: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--wash); font-size: .85rem; line-height: 1.6; }
code { font-size: .88em; overflow-wrap: anywhere; }
iframe { max-width: 100%; }

/* Navigation and page frame */
.site-header {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}
.site-name { color: var(--ink); font-size: 1rem; font-weight: 650; letter-spacing: -.015em; text-decoration: none; }
.site-header nav { display: flex; gap: 2rem; flex-wrap: wrap; }
.academic-header { justify-content: flex-start; }
.site-header nav a { position: relative; padding: .5rem 0; color: var(--ink); font-size: .9375rem; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--link); }
.site-header nav a[aria-current] { font-weight: 650; }
.site-header nav a[aria-current]::after { position: absolute; right: 0; bottom: -.35rem; left: 0; height: 2px; background: var(--link); content: ""; }
.layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 2.25rem;
  max-width: 1080px;
  margin: 2.5rem auto 5rem;
  padding: 0 2rem;
  align-items: start;
}
main { min-width: 0; }
.page-heading { margin-bottom: 1.75rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.page__content { overflow-wrap: break-word; }
.page__content > :first-child { margin-top: 0; }
.page__content > :last-child { margin-bottom: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 20; padding: .6rem 1rem; background: var(--paper); border: 1px solid var(--link); }
.skip-link:focus { top: 1rem; }

/* A quiet, compact academic profile */
.profile { position: sticky; top: 2rem; padding-right: 1.5rem; border-right: 1px solid var(--line); font-size: .875rem; line-height: 1.6; }
.profile > img { display: block; width: 120px; height: 120px; object-fit: cover; object-position: center 35%; border-radius: 2px; margin-bottom: 1.25rem; }
.profile h2 { margin: 0 0 .6rem; font-size: 1.125rem; letter-spacing: -.02em; }
.profile p { margin: 0; color: var(--ink); }
.profile .contact { margin-top: 1.25rem; }
.profile h3 { margin: 0 0 .3rem; font-size: .8125rem; font-weight: 600; color: var(--ink); }
.profile .contact > a { font-size: .8125rem; overflow-wrap: anywhere; }
.profile .contact > a:hover { text-decoration: underline; }
.profile .author-links { margin-top: .75rem; font-size: .75rem; }

/* Biography: dates form a stable, readable column. */
.bio_table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.65; }
.bio_table td { padding: .8rem 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.bio_table tr:first-child td { padding-top: 0; }
.bio_table tr:last-child td { border-bottom: 0; }
.bio_table .bio_record_period { width: 134px; padding-right: 1.25rem; color: var(--ink); font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.bio_table a { text-decoration-color: #a4bce0; }

/* Publications, talks and courses share a clear title/details hierarchy. */
.pub_list { padding-left: 2rem; margin: 0; }
.pub_list li { margin: 0; padding: .9rem 0 .9rem .45rem; border-bottom: 1px solid var(--line); }
.pub_list li:first-child { padding-top: .2rem; }
.pub_list li:last-child { border-bottom: 0; padding-bottom: 0; }
.pub_list li::marker { color: #7b8589; font-size: .75rem; font-variant-numeric: tabular-nums; }
.pub_title { font-size: 1rem; font-weight: 600; line-height: 1.5; }
.pub_title a { text-decoration: none; }
.pub_title a:hover { text-decoration: underline; }
.pub_list .pub_title { display: block; }
.pub_list .pub_title + br { display: none; }
.pub_details, .course_details { color: var(--muted); font-size: .875rem; line-height: 1.65; }
.pub_list .pub_details { display: block; margin-top: .35rem; }
.journal, .conference { color: #464f54; font-style: italic; }
.pub_list + h2 { margin-top: 2.75rem; }
.talks_list, .teaching_list { padding: 0; margin: 0; list-style: none; }
.talks_list > li, .teaching_list > li { padding: .9rem 0; margin: 0; border-bottom: 1px solid var(--line); }
.talks_list > li:first-child, .teaching_list > li:first-child { padding-top: 0; }
.talks_list > li:last-child, .teaching_list > li:last-child { border-bottom: 0; }
.talks_list .pub_title, .course_title { display: block; font-size: 1rem; font-weight: 600; }
.talks_list .pub_details, .course_details { display: block; margin-top: .25rem; }

/* Long-form articles */
.page-article .page-heading h1 { font-size: clamp(1.65rem, 3vw, 2rem); line-height: 1.3; }
.page-article .page__content { font-size: 1rem; line-height: 1.8; }
figure { margin: 1.8rem 0; }
figure > img { display: block; margin: auto; border-radius: 3px; }
figcaption { margin-top: .65rem; color: var(--muted); font-size: .75rem; line-height: 1.6; text-align: center; }
figcaption p { margin: 0; }
.page-article .page__content > figure:first-child { margin-top: 0; }
.page-article .page__content li > figure { margin: 1.2rem 0; }
.steps > li { padding-left: .45rem; margin-bottom: 1.5rem; }
.steps > li::marker { font-weight: 600; color: var(--link); }

/* Workshops and research pages */
.full-width { display: block; }
.hero {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 300px;
  padding: 3rem;
  margin-bottom: 2.75rem;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
  color: white;
}
.hero.hero--credited { margin-bottom: .65rem; }
.hero-credit { margin: 0 0 2.5rem; color: var(--muted); font-size: .75rem; line-height: 1.6; text-align: right; }
.hero h1 { max-width: 27ch; color: white; font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1.15; letter-spacing: -.025em; text-wrap: pretty; }
.hero p { max-width: 58ch; margin: 1.2rem 0 0; color: #f0f4f4; font-size: .9375rem; line-height: 1.6; }
.full-width .page__content { max-width: 800px; margin: 0 auto; }
.full-width .page__content > div:not([class]) { margin: 2rem 0; }
.full-width .page__content > div:not([class]) > strong:first-child,
.notice--primary > strong:first-child { display: block; margin-bottom: .75rem; font-size: 1.125rem; color: var(--ink); }
.full-width .page__content > div:not([class]) > strong:first-child + br,
.notice--primary > strong:first-child + br { display: none; }
.full-width .page__content > div:not([class]) > ul { margin: 0; }
[class*="notice--"] { padding: 1.2rem 1.4rem; margin: 1.75rem 0; border: 1px solid #dbe4f0; border-left: 3px solid #5d83bc; border-radius: 3px; background: #f3f6fc; font-size: .9375rem; }
[class*="notice--"] > :last-child { margin-bottom: 0; }
.notice--danger { background: #fcf4f1; border-color: #eddcd4; border-left-color: #b86b4b; }
.notice--primary { background: var(--wash); border-color: var(--line); border-left-color: #a2b2ad; }
.feature__wrapper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 1.5rem 0 2.5rem; }
.feature__item { min-width: 0; }
.archive__item { height: 100%; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--paper); }
.archive__item-teaser { background: var(--wash); }
.archive__item-teaser img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; }
.archive__item-body { padding: 1rem 1.1rem 1.2rem; }
.archive__item-title { margin: 0 0 .5rem; font-size: 1rem; line-height: 1.4; }
.archive__item-excerpt { font-size: .8125rem; color: var(--muted); line-height: 1.65; }
.archive__item-excerpt p { margin-bottom: 1rem; }
.archive__item-body > p:last-child { margin: 0; }
.btn { display: inline-flex; align-items: center; padding: .4rem .75rem; border: 1px solid #c3cee0; border-radius: 3px; color: var(--link); background: #fff; font-size: .75rem; font-weight: 550; text-decoration: none; }
.btn:hover { background: var(--wash); border-color: var(--link); }
.schedule { border-collapse: collapse; width: 100%; font-size: .875rem; line-height: 1.6; margin: 1.5rem 0 2.5rem; }
.schedule th, .schedule td { border: 1px solid var(--line); padding: .75rem 1rem; text-align: left; vertical-align: top; }
.schedule th { width: 80px; color: var(--muted); font-size: .75rem; font-weight: 500; font-variant-numeric: tabular-nums; background: #fafbfc; }
.schedule td { font-weight: 600; }
.schedule td span { display: block; margin-top: .15rem; font-weight: 400; color: var(--muted); }
.stage-earth, .stage-saturn { background: var(--wash); color: var(--muted); }
figure.third { display: flex; gap: 2rem; align-items: center; justify-content: space-between; margin: 1.5rem 0; padding: 1.5rem 0; border-top: 1px solid var(--line); }
figure.third > a { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; }
figure.third img { display: block; max-height: 80px; width: auto; max-width: 100%; object-fit: contain; }
.gallery__item { display: inline-block; max-width: 30%; margin: 1%; }
.toc { padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 4px; font-size: .875rem; }
.workshop_header_h1 { font-size: 1.4rem; }

/* Tablet and narrow screens */
@media (max-width: 960px) {
  .layout { grid-template-columns: 190px minmax(0, 1fr); gap: 1.75rem; }
  .profile .contact > a { font-size: .75rem; }
  .bio_table .bio_record_period { width: 116px; padding-right: 1.2rem; }
  .feature__wrapper { gap: 1rem; }
  .archive__item-body { padding: .9rem; }
}
@media (max-width: 700px) {
  .site-header { padding: 1.3rem 1.25rem 1.1rem; align-items: start; flex-direction: column; gap: .7rem; }
  .site-header nav { gap: 1.5rem; }
  .site-header nav a { font-size: .8125rem; }
  .layout { display: flex; flex-direction: column; gap: 2rem; margin: 2rem auto 3.5rem; padding: 0 1.25rem; }
  .layout > main { width: 100%; }
  .profile { position: static; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 1.1rem; width: 100%; padding-right: 0; border-right: 0; font-size: .75rem; }
  .profile > img { width: 76px; height: 90px; margin: 0; }
  .profile h2 { font-size: 1.05rem; margin-bottom: .35rem; }
  .profile .contact { border: 0; padding: 0; margin-top: .75rem; }
  .profile h3 { display: none; }
  .profile .contact > a { font-size: .75rem; }
  .page-standard .profile, .page-article .profile { order: 2; padding-top: 1.5rem; border-top: 1px solid var(--line); }
  .page-home .profile { padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
  .page-heading { margin-bottom: 1.5rem; padding-bottom: 1.1rem; }
  h1 { font-size: 1.65rem; }
  h2 { margin-top: 2.2rem; font-size: 1.2rem; }
  .bio_table { font-size: .875rem; }
  .bio_table .bio_record_period { width: 97px; font-size: .75rem; padding-right: 1rem; }
  .bio_table td { padding-top: .85rem; padding-bottom: .85rem; }
  .pub_list { padding-left: 1.65rem; }
  .pub_list li { padding-left: .25rem; }
  .pub_title, .talks_list .pub_title, .course_title { font-size: .9375rem; }
  .pub_details, .course_details { font-size: .8125rem; }
  .page-article .page__content { font-size: .9375rem; }
  .hero { padding: 1.75rem; min-height: 280px; margin-bottom: 2rem; background-position: 60% center; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: .8125rem; }
  .feature__wrapper { grid-template-columns: 1fr; gap: 1.25rem; }
  .archive__item { display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: start; }
  .archive__item-teaser { height: 100%; }
  .archive__item-teaser img { height: 100%; min-height: 145px; aspect-ratio: auto; object-fit: cover; }
  .archive__item-body { padding: 1rem; }
  .archive__item-excerpt { font-size: .75rem; }
  .archive__item-title { font-size: .9375rem; }
  .schedule { font-size: .8125rem; }
  .schedule th, .schedule td { padding: .6rem .7rem; }
  .schedule th { width: 63px; font-size: .6875rem; }
  [class*="notice--"] { padding: 1rem; font-size: .875rem; }
  figure.third { gap: 1.25rem; }
  figure.third img { max-height: 55px; }
}
@media (max-width: 360px) {
  .site-header nav { gap: 1.15rem; }
  .layout, .site-header { padding-left: 1rem; padding-right: 1rem; }
  .bio_table .bio_record_period { width: 87px; }
  .hero { padding: 1.3rem; }
  .archive__item { grid-template-columns: 88px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  body { font-size: 11pt; }
  .site-header, .profile, .skip-link { display: none; }
  .layout { display: block; margin: 0; padding: 0; }
  .hero { min-height: 0; padding: 0; background: none !important; }
  .hero h1, .hero p { color: #000; }
  a { color: inherit; }
  .pub_list li, .feature__item, figure { break-inside: avoid; }
}
