:root {
  --bg: #ffffff;
  --text: #202020;
  --muted: #5d6470;
  --link: #064b8a;
  --link-hover: #002f5d;
  --border: #dedede;
  --max-width: 820px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus {
  color: var(--link-hover);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--bg);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.site-header {
}

.site-header .container {
  padding-top: 1.25rem;
  padding-bottom: 2.25rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
}

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

.site-nav a[aria-current="page"] {
  font-weight: 700;
}

.intro {
  max-width: 700px;
}

.profile {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.headshot {
  display: block;
  width: 282px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(2.25rem, 8vw, 3rem);
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  margin: 3rem 0 1rem;
  padding-top: 0.3rem;
  font-size: 1.45rem;
}

h3 {
  margin: 1.6rem 0 0.6rem;
  color: var(--text);
  font-size: 1rem;
}

p {
  margin: 0 0 1rem;
}

.role {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.links,
.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.65rem;
  font-size: 0.95rem;
}

.intro .links {
  font-size: 0.95rem;
}

.intro p {
  font-size: 0.95rem;
}

.notice {
  margin-top: 1.2rem;
  color: var(--text);
  font-style: italic;
}

.paper {
  padding: 0 0 0.62rem;
  margin: 0 0 0.95rem;
}

.paper-title {
  margin-bottom: 0.08rem;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.28;
}

.paper-meta {
  margin-bottom: 0.1rem;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.28;
}

.paper-links {
  align-items: baseline;
  line-height: 1.3;
  margin: 0;
}

.abstract,
.bibtex {
  display: inline;
  margin: 0;
  color: var(--text);
}

.abstract[open],
.bibtex[open] {
  flex-basis: 100%;
}

.abstract summary,
.bibtex summary {
  display: inline-block;
  cursor: pointer;
  color: var(--link);
  font-size: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.abstract summary:hover,
.abstract summary:focus,
.bibtex summary:hover,
.bibtex summary:focus {
  color: var(--link-hover);
}

.abstract summary::before,
.bibtex summary::before {
  content: "+ ";
  text-decoration: none;
}

.abstract[open] summary::before,
.bibtex[open] summary::before {
  content: "- ";
}

.abstract p {
  margin-top: 0.38rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.bibtex pre {
  max-width: 100%;
  margin: 0.38rem 0 0;
  padding: 0.65rem 0.75rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  background: #f8f8f8;
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: pre;
}

.bibtex code {
  font-family: Consolas, "Liberation Mono", "Courier New", monospace;
}

.subheading {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-weight: 700;
}

.teaching-list {
  padding-left: 1.25rem;
  margin: 0;
}

.teaching-list li {
  margin-bottom: 0.55rem;
}

main section {
  padding-left: 2.5rem;
}

main section h2 {
  margin-left: -2.5rem;
}

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

.site-footer {
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .container {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 1.25rem, var(--max-width));
  }

  .site-header .container {
    padding-bottom: 1.6rem;
  }

  .site-nav {
    margin-bottom: 1.4rem;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .headshot {
    width: 155px;
  }

  h2 {
    margin-top: 2.4rem;
  }

  .links,
  .paper-links {
    gap: 0.2rem 0.6rem;
  }

  main section {
    padding-left: 1rem;
  }

  main section h2 {
    margin-left: -1rem;
  }
}
