/* Jorge C. Lucero - Personal Academic Website */

:root {
  --accent: #4338ca;
  --text: #1a1a1a;
  --text-secondary: #555;
  --bg: #ffffff;
  --card-bg: #f8f8f8;
  --border: #e5e5e5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Navigation */
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

nav .site-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

nav .site-title:hover {
  color: var(--accent);
}

nav .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
}

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

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

a:hover {
  text-decoration: underline;
}

/* Headings */
h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Header / Profile */
.header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.profile-photo {
  width: 150px;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.header-info {
  flex: 1;
}

.header-info .title {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.header-info .contact {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.academic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.academic-links a {
  color: var(--text-secondary);
}

.academic-links a:hover {
  color: var(--accent);
}

/* Sections */
section {
  margin-bottom: 2rem;
}

p {
  margin-bottom: 1rem;
}

/* News list */
.news-list {
  list-style: none;
}

.news-list li {
  margin-bottom: 0.75rem;
  padding-left: 0;
}

.news-list .year {
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-block;
  width: 4.5rem;
}

/* Project cards */
.projects {
  display: grid;
  gap: 1rem;
}

.project-card {
  background: var(--card-bg);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.project-card h3 a {
  color: var(--text);
}

.project-card h3 a:hover {
  color: var(--accent);
}

.project-card p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.project-card .stats {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Publications list */
.publications-list {
  list-style: none;
}

.publications-list li {
  padding: 0.75rem 0;
}

.pub-title {
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.pub-authors {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pub-venue {
  font-style: italic;
  font-size: 0.95rem;
  margin: 0.25rem 0;
}

.pub-links {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.pub-links a {
  margin-right: 0.75rem;
}

/* Career page lists */
.career-list {
  list-style: disc;
  margin-bottom: 1.5rem;
  margin-left: 1.5rem;
  padding-left: 0;
}

.career-list li {
  margin-bottom: 0.75rem;
}

.career-list ul {
  list-style: circle;
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

/* SimuVox page */
.simuvox-screenshot {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.download-btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  margin: 1rem 0;
}

.download-btn:hover {
  text-decoration: none;
  opacity: 0.9;
}

.citation-block {
  background: var(--card-bg);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  font-size: 0.95rem;
  margin: 1rem 0;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

footer .updated {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 640px) {
  body {
    font-size: 16px;
    padding: 1.5rem 1rem;
  }

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

  .profile-photo {
    width: 120px;
    height: auto;
  }

  .academic-links {
    justify-content: center;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  nav .nav-links {
    gap: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.15rem;
  }

  .news-list .year {
    display: block;
    width: auto;
    margin-bottom: 0.25rem;
  }
}
