:root {
  --text: #222;
  --muted: #808080;
  --link: #1eaedb;
  --link-hover: #0fa0ce;
  --status: #4a6787;
  --btn-border: #a8dff0;
  --line: #e1e1e1;
  --nav-hover: #ddd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  overflow-wrap: break-word;
}

a {
  color: var(--link);
  text-decoration: none;
}

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

strong {
  font-weight: 700;
}

p {
  margin: 0 0 25px;
}

hr {
  margin: 30px 0 35px;
  border: 0;
  border-top: 1px solid var(--line);
}

/* ---------- Top bar ---------- */

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.nav-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
}

.social-links {
  gap: 10px;
}

.topnav a {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.2;
}

.topnav a:hover,
.topnav a:focus {
  background: var(--nav-hover);
  color: #000;
}

.social-links a {
  display: flex;
  align-items: center;
}

.social-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ---------- Page ---------- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 72px) 20px 60px;
}

/* photo on the left, name and bio on the right */
.profile {
  display: grid;
  grid-template-columns: 30.667% 1fr;
  gap: 4%;
  align-items: start;
}

.profile-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

h1 {
  margin: 0 0 20px;
  font-size: 42px;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -1px;
}

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

h2 {
  margin: 0 0 20px;
  font-size: 30px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -1px;
}

* + h2 {
  margin-top: 40px;
}

section > :last-child {
  margin-bottom: 0;
}

/* ---------- Papers ---------- */

.paper {
  margin-bottom: 25px;
}

.paper p {
  margin: 0;
}

.status {
  color: var(--status);
  font-style: italic;
}

/* a row of buttons under a paper: Abstract, Paper, Slides, ... */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 1px solid var(--btn-border);
  border-radius: 4px;
  background: #fff;
  color: var(--link);
  font: inherit;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 1px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover,
.btn:focus-visible,
.btn[aria-expanded="true"] {
  border-color: var(--link);
  background: var(--link);
  color: #fff;
}

/* the arrow on the Abstract button turns when the abstract is open */
.abstract-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  transition: transform 0.15s;
}

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

.abstract {
  margin: 10px 0 4px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  color: #444;
  font-size: 15px;
}

.abstract p {
  text-align: justify;
}

.presented {
  font-size: 14px;
  line-height: 1.85;
}

/* ---------- Phones ---------- */

@media (max-width: 750px) {
  .profile {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  h1 {
    font-size: 36px;
  }

  .topnav a {
    padding: 12px 10px;
  }
}
