:root {
  --site-text: #1f2933;
  --site-muted: #687386;
  --site-border: #d9dee7;
  --site-accent: #2f6f73;
  --site-accent-dark: #20565a;
  --site-surface: #f7f9fb;
}

body {
  color: var(--site-text);
  font-size: 17px;
  line-height: 1.7;
}

a {
  color: var(--site-accent-dark);
}

a:hover {
  color: var(--site-accent);
}

.navbar {
  border-bottom: 1px solid var(--site-border);
  background: rgba(255, 255, 255, 0.97);
}

.navbar-brand,
.navbar-nav .nav-link {
  font-weight: 500;
}

.quarto-title-block {
  margin-bottom: 1.5rem;
}

.page-columns .content {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.8fr);
  gap: 3rem;
  align-items: center;
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--site-border);
  margin-bottom: 2.25rem;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.hero-copy p {
  max-width: 680px;
}

.profile-panel {
  justify-self: center;
  width: min(100%, clamp(220px, 28vw, 320px));
}

.profile-photo {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: 6px;
  background: var(--site-surface);
  color: var(--site-accent-dark);
  font-size: 3rem;
  font-weight: 600;
}

.profile-photo p {
  margin: 0;
}

.profile-image {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
}

.profile-note {
  margin-top: 0.8rem;
  color: var(--site-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.profile-links {
  margin-top: 0.85rem;
  color: var(--site-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
}

.profile-links a {
  color: var(--site-accent-dark);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.profile-links a:hover {
  color: var(--site-accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.button-primary {
  background: var(--site-accent-dark);
  color: #fff;
  border: 1px solid var(--site-accent-dark);
}

.button-primary:hover {
  color: #fff;
  background: var(--site-accent);
  border-color: var(--site-accent);
}

.button-secondary {
  color: var(--site-accent-dark);
  border: 1px solid var(--site-border);
  background: #fff;
}

.button-secondary:hover {
  color: var(--site-accent-dark);
  border-color: var(--site-accent);
  background: var(--site-surface);
}

.publication-list {
  display: grid;
  gap: 1rem;
}

.publication-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--site-border);
}

.publication-item:last-child {
  border-bottom: 0;
}

.cv-download {
  margin: 0.5rem 0 2rem;
}

h2 {
  margin-top: 2rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--site-border);
  font-size: 1.45rem;
}

footer.footer {
  border-top: 1px solid var(--site-border);
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .page-columns .content {
    padding: 1.6rem 1rem 2.6rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding-top: 1rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .profile-panel {
    justify-self: start;
    width: min(100%, 260px);
  }

  .profile-links {
    text-align: left;
  }
}
