/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.marfim { color: #EFEDE5; }
.grafite { color: #151815; }
.tangerina { color: #D27126; }

:root {
  --primary: #151815;
  --primary-light: #666666;
  --accent: #D27126;
  --bg: #EFEDE5;
  --white: #ffffff;
  --text: #151815;
  --text-light: #666666;
  --border: #e0e0e0;
  --max-width: 960px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
header {
  background: var(--bg);
  color: var(--primary);
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.logo-img{
  height: 100px;
  background-color: var(--bg);
}

.logo:hover {
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--white);
  border-bottom-color: var(--white);
  text-decoration: none;
}

/* Main */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.5rem;
  display: inline-block;
}

h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.1rem;
  color: var(--primary-light);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

/* About page */
.about-section {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.about-section h2 {
  margin-top: 0;
}

.collab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.collab-list li a {
  display: inline-block;
  background: var(--bg);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  transition: background 0.2s;
}

.collab-list li a:hover {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
}

/* Publications */
.pub-year {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--border);
}

.pub-year:first-of-type {
  margin-top: 1rem;
}

.pub-entry {
  background: var(--white);
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-left: 3px solid var(--primary-light);
}

.pub-entry .pub-citation {
  font-size: 0.95rem;
  line-height: 1.6;
}

.pub-entry .pub-citation em {
  font-style: italic;
}

.pub-entry .pub-abstract {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-light);
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

/* People */
.people-section {
  margin-bottom: 2rem;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.person-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border-top: 3px solid var(--primary-light);
}

.person-card .person-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
}

.person-card .person-affiliation {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

/* Footer */
footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 2rem 0 1rem 0;
  font-size: 0.85rem;
  margin-top: 3rem;
}

footer a {
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  nav {
    gap: 1rem;
  }

  main {
    padding: 1.5rem 1rem;
  }

  .people-grid {
    grid-template-columns: 1fr;
  }
}
