:root {
  --accent: #0a4a6a;
  --text: #111111;
  --text-light: #666666;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 12pt;
}

body {
  margin: 0;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover,
a:focus {
  text-decoration: underline;
}

a:visited {
  color: var(--accent);
}

.content {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.intro-section {
  margin-bottom: 3rem;
}

.profile-header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.profile-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-text {
  flex: 1;
}

.profile-text h1 {
  margin: 0 0 1rem;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.section {
  margin-bottom: 3rem;
}

.bio-content p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.section h2 {
  margin: 0 0 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.publication {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #ffffff;
  margin-bottom: 1.75rem;
}

.pub-media img {
  width: 100%;
  border-radius: 4px;
}

.pub-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.pub-meta {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 400;
}

.pub-abstract {
  margin: 0.75rem 0;
}

.pub-abstract summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  outline: none;
  padding: 0.25rem 0;
  font-size: 0.95rem;
}

.pub-abstract summary::-webkit-details-marker {
  display: none;
}

.pub-abstract summary::before {
  content: "\25B8";
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  display: inline-block;
}

.pub-abstract[open] summary::before {
  transform: rotate(90deg);
}

.pub-abstract .pub-abstract-body {
  margin-top: 0.75rem;
  color: var(--text);
  line-height: 1.7;
  padding-left: 1.25rem;
}

.pub-abstract .pub-abstract-body p {
  margin: 0.5rem 0;
}

.pub-comments {
  margin: 0.75rem 0;
  font-style: italic;
  color: var(--text-light);
  font-size: 0.95rem;
}

.pub-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.pub-link {
  font-weight: 500;
  color: var(--accent);
  font-size: 0.95rem;
}

.pub-link:hover,
.pub-link:focus {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .publication {
    grid-template-columns: 1fr;
  }

  .pub-media img {
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .content {
    padding: 2.5rem 1.5rem 3rem;
  }

  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 11pt;
  }

  .profile-photo {
    width: 140px;
    height: 140px;
  }

  .profile-text h1 {
    font-size: 1.75rem;
  }

  .social-links {
    gap: 1rem;
    font-size: 0.9rem;
  }
}
