/* ─── Google Sans Font ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@300;400;500;700&display=swap');

/* ─── Hero Section ─────────────────────────────────────────── */

/* Quarto .columns is already display:flex; we override pandoc's gap and add spacing */
div.columns.hero {
  align-items: center;
  gap: 3rem !important;
  padding: 3rem 0 2rem;
}

/* Scalable profile photo — preserves aspect ratio and ensures left margin */
div.columns.hero > div.column:last-child {
  padding-left: 1.5rem;
}

.profile-img {
  width: 100%;
  max-width: 260px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  border: 3px solid #eee;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  div.columns.hero {
    flex-direction: column-reverse;
    gap: 2rem !important;
  }
}

.hero-name {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.1rem;
  letter-spacing: -0.5px;
}

.hero-tagline {
  font-size: 0.95rem;
  color: #555;
  margin-top: 0;
  margin-bottom: 1rem;
}

.hero-bio {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
  color: #444;
  text-align: justify;
  text-justify: inter-word;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: pretty;
  word-spacing: -0.02em;
}

.hero-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Quarto wraps fenced div content in <p>; dissolve it so <a> children join the flex row */
.hero-links p {
  display: contents;
}

.btn-link {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  color: #333;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn-link:hover {
  background: #333;
  color: #fff;
  text-decoration: none;
}

/* ─── Publications ──────────────────────────────────────────── */
.pub-entry {
  margin-bottom: 1.4rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid #d0d0d0;
  background: #fafafa;
  border-radius: 0 4px 4px 0;
}

.pub-entry p {
  margin: 0;
  line-height: 1.65;
}

/* ─── Navbar ────────────────────────────────────────────────── */
.navbar {
  border-bottom: 1px solid #eee;
  box-shadow: none;
}

/* ─── General ───────────────────────────────────────────────── */
body {
  font-family: "Google Sans", system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
}

a {
  color: #326891;
}

a:hover {
  color: #244d6e;
}

h2 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.3rem;
  margin-top: 2rem;
}
