/* =============================================
   Diego G. Campos — Academic Site Styles
   Font: Source Sans Pro (matched from diegocampos.co)
   Palette: pure white / near-black / minimal
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200;0,300;0,400;0,700;1,300;1,400&display=swap');

/* ---------- Base ---------- */
body {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  color: #1a1a1a;
  background: #ffffff;
  letter-spacing: 0.02em;
}

/* ---------- Global headings ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  font-weight: 200;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #1a1a1a;
}

/* ---------- Navbar ---------- */
.navbar {
  background: #ffffff !important;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: none;
  padding: 0.6rem 1rem;
}

.navbar-brand {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  font-weight: 200;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #1a1a1a !important;
}

.navbar .nav-link {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1a1a1a !important;
  padding: 0.4rem 0.75rem;
  transition: color 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #888 !important;
}

/* ---------- Hero / homepage ---------- */
.hero-center {
  text-align: center;
  padding: 3rem 0 1.5rem;
}

.hero-name {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  font-size: 3.2rem;
  font-weight: 200;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 1.25rem 0 0;
  line-height: 1.2;
}

.hero-rule {
  width: 2.5rem;
  border: none;
  border-top: 1px solid #ccc;
  margin: 0.5rem auto;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #555;
  margin-top: 0.1rem;
  margin-bottom: 0.15rem;
}

.hero-institution {
  font-size: 1.05rem;
  font-weight: 300;
  color: #888;
  letter-spacing: 0.02em;
  margin-top: 0;
}

/* ---------- Profile photo ---------- */
.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border: none;
}

/* ---------- City photo strip ---------- */
.city-photo {
  display: block;
  width: 100%;
  max-width: 820px;
  margin: 2.5rem auto;
  height: auto;
}

/* ---------- Contact icon buttons ---------- */
.contact-links {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid #1a1a1a;
  color: #1a1a1a;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.icon-btn:hover {
  background: #1a1a1a;
  color: #ffffff;
  text-decoration: none;
}

.icon-btn .ai {
  font-size: 1.1rem;
}

/* ---------- Section pages ---------- */
#quarto-document-content h1.title {
  font-size: 1.4rem;
  font-weight: 200;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #1a1a1a;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.6rem;
  margin-bottom: 2rem;
}

/* Section h2 headings (within pages) */
main h2 {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1a1a1a;
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 0.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

main h3 {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #444;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ---------- Body text ---------- */
main p, main li {
  line-height: 1.8;
  color: #333;
  font-weight: 300;
}

/* ---------- Links ---------- */
a {
  color: #1a1a1a;
  text-underline-offset: 3px;
}

a:hover {
  color: #666;
}

/* ---------- Dividers ---------- */
hr {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 2rem 0;
}

/* ---------- News items ---------- */
.news-item {
  border-left: 2px solid #ddd;
  padding-left: 0.85rem;
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0.8rem;
}

/* ---------- Research interests ---------- */
.interests-grid h3 {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  color: #1a1a1a;
}

.interests-grid p {
  font-size: 0.92rem;
  color: #555;
}

/* ---------- Footer ---------- */
.nav-footer {
  background: #ffffff;
  border-top: 1px solid #e8e8e8;
  font-size: 0.78rem;
  color: #aaa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.95rem;
  margin-left: 0.75rem;
  text-decoration: none;
  transition: color 0.2s;
  vertical-align: middle;
}

.footer-icon:hover {
  color: #1a1a1a;
  text-decoration: none;
}

.footer-icon .ai {
  font-size: 1.05rem;
}

/* ---------- City photo grid ---------- */
.city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.city-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.city-caption {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  font-style: italic;
  color: #999;
  margin-top: 0.4rem;
  margin-bottom: 0;
}

/* ---------- News section ---------- */
.news-section {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* ---------- Publication list ---------- */
.pub-list {
  margin: 0;
  padding: 0;
}

.pub-entry {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid #f0f0f0;
}

.pub-entry:last-child {
  border-bottom: none;
}

.pub-year {
  font-size: 0.72rem;
  font-weight: 400;
  color: #aaa;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-top: 0.2rem;
  text-align: right;
}

.pub-title {
  font-size: 0.95rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 0.2rem;
  line-height: 1.45;
}

.pub-title a {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #ccc;
}

.pub-title a:hover {
  color: #444;
  text-decoration-color: #444;
}

.pub-authors {
  font-size: 0.88rem;
  color: #555;
  font-weight: 300;
  margin-bottom: 0.15rem;
  line-height: 1.4;
}

.pub-journal {
  font-size: 0.88rem;
  color: #888;
  font-weight: 300;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.pub-links {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.pub-btn {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid #ccc;
  border-radius: 3px;
  color: #666;
  background: transparent;
  padding: 0.18rem 0.65rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: border-color 0.2s, color 0.2s;
}

.pub-btn:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
  text-decoration: none;
}

.pub-btn i {
  font-size: 0.65rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero-name {
    font-size: 1.5rem;
    letter-spacing: 0.25em;
  }
  .profile-photo {
    width: 130px;
    height: 130px;
  }
  .city-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
