/* Academic homepage: warm paper, serif text, and restrained red links. */
@font-face {
  font-family: "Lato";
  src: url("fonts/lato-latin-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fffff8;
  --ink: #111;
  --link: #a00000;
  --muted: #55554e;
  --rule: #d8d8ce;
  --serif: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, "Noto Serif CJK SC", "Songti SC", SimSun, serif;
  --sans: "Gill Sans", "Gill Sans MT", Lato, Calibri, sans-serif;
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: min(100%, 1000px);
  margin-inline: auto;
  padding: 0 24px;
}

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover { text-decoration: underline; }

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 8px 14px;
  background: var(--paper);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
  padding: 43px 0 26px;
  border-bottom: 1px solid var(--rule);
}

.site-name {
  flex-shrink: 0;
  margin: 0;
  font-family: var(--sans);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-name a { color: var(--ink); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a { padding-block: 4px; }

p {
  margin: 0 0 14px;
  line-height: 1.8rem;
}

.introduction { margin-bottom: 34px; }

.affiliation > p:first-child { margin-bottom: 17px; }

.affiliation > p:first-child a { color: var(--ink); }

.contact { margin-bottom: 8px; }

.profile-links { margin-bottom: 0; }

.research-introduction { margin-top: 29px; }

.research-introduction p:first-child { margin-bottom: 8px; }

h2 {
  margin: 0 0 19px;
  font-size: 2rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
}

h3 {
  margin: 23px 0 15px;
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
}

.section-heading h2 { margin-bottom: 0; }

.bibliography-link { font-size: 1.05rem; }

.paper-list {
  margin: 0;
  padding-left: 24px;
  list-style-type: square;
}

.paper-list > li {
  padding-left: 3px;
  margin: 0 0 20px;
  line-height: 1.8rem;
}

.paper-list > li::marker { font-size: 0.75em; }

.paper-title { font-size: 1.3rem; }

.paper-authors, .paper-meta {
  font-size: 1.17rem;
  line-height: 1.7rem;
}

.paper-authors { margin-top: 3px; }

.paper-meta { color: var(--muted); }

.paper-resources { white-space: nowrap; }

sub {
  position: relative;
  bottom: -0.2em;
  vertical-align: baseline;
  font-size: 0.75em;
  line-height: 0;
}

.publication-list { margin-bottom: 38px; }

.reserved-section {
  min-height: 102px;
  padding-top: 10px;
}

.reserved-section h2 { margin-bottom: 16px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 15px;
  padding: 22px 0 34px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    gap: 20px;
    padding-top: 32px;
    margin-bottom: 32px;
  }
  .site-nav { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .page { padding-inline: 22px; }
  .site-header { padding: 27px 0 20px; gap: 17px; }
  .site-name { font-size: 1.95rem; letter-spacing: 0.08em; }
  .site-nav { gap: 8px 19px; font-size: 0.93rem; }
  .site-nav a { min-height: 32px; }
  .affiliation, .contact a { overflow-wrap: anywhere; }
  .section-heading { gap: 8px; }
  .section-heading h2 { flex-basis: 100%; }
  .paper-list { padding-left: 18px; }
  .paper-list > li { padding-left: 1px; margin-bottom: 23px; }
  .paper-resources { white-space: normal; }
  .reserved-section { min-height: 94px; }
  .site-footer { font-size: 1rem; }
}

@media print {
  :root { --paper: #fff; --link: #111; }
  .page { width: 100%; max-width: none; padding: 0; }
  .site-header { padding-top: 0; margin-bottom: 25px; }
  .site-nav, .skip-link, .bibliography-link, .reserved-section, .site-footer { display: none; }
  .paper-list > li { break-inside: avoid; }
  a { color: var(--ink); }
}
