:root {
  --bg: #fbf8f3;
  --card-bg: #ffffff;

  --text-dark: #3a342e;
  --text-body: #514a43;
  --text-muted: #6b6058;
  --text-label: #a69b8f;

  --teal: #4a8a7c;
  --teal-bg: #d9eeea;
  --teal-border: #c3e3dc;

  --pink: #b4718a;
  --pink-tag-bg: #f6dde6;
  --pink-tag-text: #a84e71;

  --green-bg: #dcefe9;
  --green-text: #3e8b76;

  --orange-bg: #f3e3d6;
  --orange-text: #b07a3e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 1rem;
  padding: 2rem 1rem;
  background: var(--bg);
  color: var(--text-body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

.page {
  max-width: 790px;
  margin: 0 auto;
}

/* About */

.about {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 45px;
  align-items: start;
  margin-bottom: 2.5rem;
}

.about > div:first-child {
  margin-top: 35px;
}

/* Profile */

.photo {
  width: 190px;
  height: 190px;
  margin-bottom: 16px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--teal-border);
  border-radius: 50%;
  background: var(--teal-bg);

  color: var(--teal);
  font-size: 13px;
}

.photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Social links */

.icon-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.icon-row a {
  display: flex;
  color: var(--teal);
  transition: color 0.2s ease, transform 0.2s ease;
}

.icon-row a:hover {
  color: var(--pink);
  transform: translateY(-1px);
}

.icon-row svg {
  width: 20px;
  height: 20px;
}

.cv-icon svg {
  width: 21px;
  height: 21px;
}

/* Contact */

.contact-line {
  display: flex;
  align-items: center;
  gap: 7px;

  margin-bottom: 7px;

  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
}

.contact-line svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--teal);
}

.contact-line:last-child {
  margin-bottom: 0;
}

/* Introduction */

h1 {
  margin: 0 0 4px;
  color: var(--text-dark);
  font-size: 28px;
}

.tagline {
  margin: 0 0 14px;
  color: var(--pink);
  font-size: 14px;
  font-weight: 500;
}

.bio {
  margin: 0 0 16px;
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.7;
  text-align: justify;
}

/* Research interests */

.label {
  margin: 0 0 8px;
  color: var(--text-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--pink-tag-bg);
  color: var(--pink-tag-text);
  font-size: 13px;
}

/* Publications */

.publications {
  padding: 2rem 2rem 1rem;
  border-radius: 20px;
  background: var(--card-bg);
  box-shadow: 0 2px 12px rgba(180, 113, 138, 0.07);
}

.publications h2 {
  margin: 0 0 4px;
  color: var(--text-dark);
  font-size: 19px;
}

.divider {
  width: 36px;
  height: 3px;
  margin-bottom: 16px;
  border-radius: 2px;
  background: var(--pink-tag-bg);
}

/* Publication entries */

.pub-item {
  padding-left: 16px;
  margin-bottom: 18px;
}

.pub-item:last-child {
  margin-bottom: 0;
}

.pub-item.published {
  border-left: 3px solid var(--green-bg);
}

.pub-item.under-review {
  position: relative;
  border-left: none;
}

.pub-item.under-review::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;

  width: 2px;
  height: 65px;

  border-radius: 2px;
  background: var(--orange-bg);
}

.pub-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.pub-title {
  margin: 0;
  color: var(--text-dark);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
}

.status {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11.5px;
}

.status.published {
  background: var(--green-bg);
  color: var(--green-text);
}

.status.under-review {
  background: var(--orange-bg);
  color: var(--orange-text);
}

.venue {
  margin: 0 0 8px;
  color: #8a8177;
  font-size: 12.5px;
}

/* Publication link */

.read-paper {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  color: var(--pink);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
}

.read-paper:hover {
  text-decoration: underline;
}

.read-paper svg {
  width: 13px;
  height: 13px;
}

/* Mobile */

@media (max-width: 520px) {
  body {
    padding: 1.5rem 1rem;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .photo {
    margin-left: auto;
    margin-right: auto;
  }

  .icon-row,
  .contact-line {
    justify-content: center;
  }

  .publications {
    padding: 1.5rem;
  }

  .pub-top {
    flex-direction: column;
    gap: 8px;
  }
}