* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: #232323;
  background: #fbfbfa;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: #911a1a;
  text-decoration: underline;
}

a:hover {
  color: #671010;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  top: 8px;
  left: 8px;
  padding: 6px;
  color: #fff;
  background: #000;
}

.site-header,
.home,
.research-page,
footer {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-right: 16px;
  padding-left: 16px;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 12px;
}

.site-name {
  color: #232323;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 12px;
}

nav a {
  color: #911a1a;
}

nav a.active {
  color: #232323;
  font-weight: 700;
}

.home-header {
  justify-content: flex-end;
}

.intro {
  padding: 40px 0 56px;
}

.intro-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  grid-template-areas:
    "title portrait"
    "text portrait";
  column-gap: 32px;
  align-items: center;
}

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

.intro h1 {
  grid-area: title;
  align-self: end;
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 700;
}

.home-text {
  grid-area: text;
  align-self: start;
  font-size: 14px;
  text-align: justify;
}

.home-text p {
  margin-bottom: 14px;
}

.portrait {
  grid-area: portrait;
  width: 150px;
  margin: 0;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.research-page {
  padding-top: 18px;
  padding-bottom: 32px;
}

.paper-section {
  margin-bottom: 28px;
}

.section-heading {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 16px;
}

.paper {
  margin-bottom: 16px;
}

.paper-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  gap: 8px;
  align-items: start;
}

.paper-copy h3 {
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.paper-copy h3 a {
  color: #911a1a;
  text-decoration: none;
}

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

.paper-meta,
.paper-status,
.paper-links {
  margin-bottom: 1px;
  color: #4a4a4a;
  font-size: 12px;
  line-height: 1.45;
}

.paper-status cite {
  font-style: italic;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 3px;
}

.abstract-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 20px;
  padding: 0;
  color: #333;
  background: none;
  border: 0;
  cursor: pointer;
}

.abstract-toggle > span:first-child {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.toggle-mark {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
}

.toggle-mark::before,
.toggle-mark::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  content: "";
}

.toggle-mark::after {
  transform: rotate(90deg);
}

.abstract-toggle[aria-expanded="true"] .toggle-mark::after {
  transform: rotate(0);
}

.abstract {
  width: 100%;
  padding: 8px 0 2px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  text-align: justify;
}

.abstract p {
  margin: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 24px;
  color: #555;
  font-size: 12px;
}

footer p {
  margin: 0;
}

@media (max-width: 560px) {
  .intro {
    padding: 28px 0 40px;
  }

  .intro-copy {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "portrait"
      "text";
  }

  .intro h1 {
    justify-self: center;
    text-align: center;
  }

  .portrait {
    justify-self: center;
    width: 120px;
    margin-bottom: 24px;
  }

  footer {
    display: block;
  }

  footer p + p {
    margin-top: 3px;
  }
}
