:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --paper-deep: #f2efe9;
  --ink: #181716;
  --muted: #625f59;
  --line: #d8d3ca;
  --scarlet: #cc0033;
  --scarlet-dark: #960026;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --measure: 69rem;
  --reading: 46rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 100%;
  line-height: 1.65;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  display: flex;
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  flex-direction: column;
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--scarlet-dark);
  text-decoration-color: color-mix(in srgb, var(--scarlet) 55%, transparent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--scarlet);
  text-decoration-color: currentColor;
}

a:focus-visible,
summary:focus-visible {
  border-radius: 0.12rem;
  outline: 0.19rem solid var(--scarlet);
  outline-offset: 0.2rem;
}

h1,
h2,
h3 {
  margin-block: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.18rem, 2.5vw, 1.45rem);
  letter-spacing: -0.012em;
}

p,
ul {
  margin-block: 0 1.1rem;
}

.site-shell {
  width: min(100% - clamp(2.25rem, 8vw, 7rem), var(--measure));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-180%);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.site-identity {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.identity-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  background: var(--scarlet);
  color: #fff;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.025em;
}

.identity-name {
  font-family: var(--serif);
  font-size: 1.12rem;
}

.primary-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
}

.primary-nav a {
  display: inline-block;
  padding-block: 0.4rem;
  border-bottom: 0.14rem solid transparent;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 650;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  border-bottom-color: var(--scarlet);
  color: var(--scarlet-dark);
}

.site-main {
  flex: 1;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.site-main:focus {
  outline: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

.eyebrow {
  margin-bottom: 1.1rem;
  color: var(--scarlet-dark);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.105em;
  line-height: 1.4;
  text-transform: uppercase;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.68fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 6.5rem);
}

.home-copy h1 {
  margin-bottom: 2rem;
}

.home-bio {
  max-width: 42rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.home-bio p:last-child {
  margin-bottom: 0;
}

.portrait {
  position: relative;
  margin: 0;
}

.portrait::before {
  position: absolute;
  z-index: -1;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--line);
  content: "";
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-deep);
}

.contact-card {
  display: grid;
  max-width: 42rem;
  margin-top: 2.25rem;
  padding: 1.15rem 0 0.1rem 1.25rem;
  border-left: 0.18rem solid var(--scarlet);
  gap: 0.15rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-style: normal;
}

.contact-links {
  display: flex;
  margin-top: 0.25rem;
  gap: 1rem;
}

.page-header {
  max-width: var(--reading);
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.page-header h1 {
  margin-bottom: 1.2rem;
}

.page-intro {
  max-width: 43rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.18rem);
}

.research-section {
  max-width: 57rem;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

.research-section:first-of-type {
  margin-top: 0;
}

.research-section > h2 {
  margin-bottom: 1.5rem;
}

.research-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: research-item;
}

.research-entry {
  position: relative;
  padding-block: 1.75rem 1.8rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 2rem;
}

.research-list > li:last-child .research-entry {
  border-bottom: 1px solid var(--line);
}

.research-entry:target {
  box-shadow: inset 0.22rem 0 var(--scarlet);
  padding-left: 1.1rem;
}

.research-entry h3 {
  max-width: 49rem;
  margin-bottom: 0.55rem;
}

.research-entry h3 cite {
  font-style: italic;
}

.research-authors,
.research-meta {
  margin-bottom: 0.28rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.research-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.8rem;
}

.status-label {
  color: var(--scarlet-dark);
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-links {
  display: flex;
  margin: 0.85rem 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  list-style: none;
  font-size: 0.89rem;
  font-weight: 650;
}

.abstract {
  max-width: 49rem;
  margin-top: 1rem;
}

.abstract summary {
  width: fit-content;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.abstract[open] summary {
  margin-bottom: 0.8rem;
  color: var(--ink);
}

.abstract p {
  margin: 0;
  padding: 1rem 1.1rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.93rem;
}

.teaching-groups,
.cv-content,
.not-found {
  max-width: var(--reading);
}

.teaching-group + .teaching-group {
  margin-top: 4rem;
}

.teaching-group > h2 {
  margin-bottom: 1.4rem;
}

.course-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.course {
  padding-block: 1.45rem;
  border-top: 1px solid var(--line);
}

.course:last-child {
  border-bottom: 1px solid var(--line);
}

.course h3 {
  margin-bottom: 0.4rem;
}

.course-meta {
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.91rem;
}

.course p:last-child {
  margin-bottom: 0;
}

.cv-panel {
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 4vw, 2.3rem);
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.button-link {
  display: inline-block;
  padding: 0.68rem 1rem;
  background: var(--scarlet);
  color: #fff;
  font-size: 0.91rem;
  font-weight: 750;
  text-decoration: none;
}

.button-link:hover {
  background: var(--scarlet-dark);
  color: #fff;
}

.not-found h1 {
  margin-bottom: 1.25rem;
}

@media (max-width: 47.99rem) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .portrait {
    width: min(100%, 25rem);
  }

  .portrait::before {
    inset: 1rem 0 -1rem 1rem;
  }
}

@media (max-width: 34rem) {
  .header-inner {
    display: block;
    padding-block: 1rem 0.8rem;
  }

  .primary-nav {
    margin-top: 0.7rem;
  }

  .primary-nav ul {
    justify-content: space-between;
    gap: 0.65rem;
  }

  .identity-name {
    font-size: 1rem;
  }

  .footer-inner {
    display: block;
    padding-block: 1.2rem;
  }

  .footer-inner p + p {
    margin-top: 0.2rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .skip-link,
  .site-header,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .site-main,
  .site-shell {
    width: 100%;
    padding: 0;
  }

  a {
    color: inherit;
  }
}
