:root {
  --ink: #262626;
  --muted: #626262;
  --paper: #ffffff;
  --line: #e3e3e3;
  --accent: #7a263a;
  --max-width: 800px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: #4e1422;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  color: #fff;
  background: var(--accent);
  transform: translateY(-180%);
}

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

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

.site-nav {
  display: flex;
  min-height: 58px;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 28px;
}

.site-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  color: #454545;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.45em;
}

.page-content {
  min-height: calc(100vh - 131px);
  padding-block: 42px 64px;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.page-content h1 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.page-content h2 {
  margin-bottom: 9px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}

.home-intro h1 {
  margin-bottom: 12px;
  font-size: 1.875rem;
}

.profile-role {
  margin-bottom: 3px;
}

.profile-affiliation {
  margin-bottom: 14px;
  color: var(--muted);
}

.home-email {
  margin-bottom: 10px;
}

.academic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.9rem;
}

.home-seminar {
  margin-top: 34px;
}

.home-seminar p {
  margin-bottom: 0;
}

.lead,
.research-interests {
  margin-bottom: 0;
  color: #464646;
  font-size: 1rem;
}

.publications {
  margin-top: 34px;
}

.publication-note {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.875rem;
}

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

.publication {
  padding-block: 17px;
  border-top: 1px solid var(--line);
}

.publication:last-child {
  padding-bottom: 0;
}

.publication h3 {
  margin-bottom: 5px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.publication h3 a {
  text-decoration: none;
}

.publication h3 a:hover,
.publication h3 a:focus-visible {
  text-decoration: underline;
}

.publication-citation,
.publication-details {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.publication-citation {
  color: #414141;
}

.publication-details {
  margin-top: 3px;
  color: var(--muted);
}

.publication-details a {
  color: inherit;
}

.publication-details a:hover {
  color: var(--accent);
}

.contact-details {
  margin: 26px 0 0;
}

.contact-details > div {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 16px;
}

.contact-details > div + div {
  margin-top: 18px;
}

.contact-details dt {
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-details dd {
  margin: 0;
}

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

.site-footer p {
  margin: 0;
  padding-block: 22px;
}

.noscript-message,
.data-error::before {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: 390px;
  margin: 0;
  padding: 13px 16px;
  color: #fff;
  background: var(--accent);
  font-size: 0.875rem;
}

.data-error::before {
  content: "The site content could not load. Check that site-data.js is present and valid.";
}

[hidden] {
  display: none !important;
}

@media (max-width: 540px) {
  .site-shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .site-nav {
    gap: 2px 20px;
  }

  .page-content {
    padding-block: 30px 48px;
  }

  .page-content h1 {
    font-size: 1.5rem;
  }

  .home-intro h1 {
    font-size: 1.75rem;
  }

  .contact-details > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
