/*
  Minimal academic homepage.
  Edit this file to change the font, spacing, colors and page width.
*/

:root {
  --paper: #ffffff;
  --ink: #171717;
  --page-width: 740px;
  --text-size: 20px;
  --body-font: "Newsreader", Georgia, "Times New Roman", serif;
}

/* For a dark version, change --paper to #141414 and --ink to #f0f0eb. */

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body-font);
  font-size: var(--text-size);
  font-weight: 400;
  line-height: 1.55;
  font-optical-sizing: auto;
}

main {
  width: min(calc(100% - 48px), var(--page-width));
  margin: 0 auto;
  padding: clamp(50px, 9vw, 104px) 0 100px;
}

/* The h1 is useful for accessibility but does not appear on screen. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.bio {
  margin: 0;
}

.publications {
  margin-top: 2.2em;
}

/* Keep all headings the same size as the main text. */
h2, h3 {
  font: inherit;
  margin-top: 0;
}

h2 {
  font-weight: 600;
  margin-bottom: 1em;
}

.publication-group {
  margin-bottom: 1.7em;
}

h3 {
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  margin-bottom: 0.55em;
}

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

.publication-list li {
  margin: 0 0 0.65em;
}

.publication-list cite {
  font-style: italic;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

@media (max-width: 600px) {
  :root { --text-size: 18px; }
  main { width: calc(100% - 36px); padding-top: 44px; }
}
