/* User Provided Stylesheet */

/* =========================================================
   Researcher Website — Sandro Rodríguez Muñoz
   ========================================================= */

/* ---------- General typography ---------- */

:root {
  --content-width: 1100px;
  --text-color: #242424;
  --muted-color: #666;
  --accent-color: #174a7e;
  --accent-hover: #0d355c;
  --border-color: #e2e5e8;
  --background-soft: #f7f8fa;
}

body {
  color: var(--text-color);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.7;
}

/* ---------- Main content ---------- */

article {
  max-width: var(--content-width);
}

/* ---------- Headings ---------- */

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.7rem;
  margin-top: 2.5rem;
}

/* ---------- Links ---------- */

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

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

/* ---------- Homepage ---------- */

/* Subtitle immediately following the main title */
h1 + h2 {
  color: var(--muted-color);
  font-size: 1.25rem;
  font-weight: 400;
  margin-top: 0;
}

/* ---------- Horizontal rules ---------- */

hr {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 3rem 0;
}

/* ---------- Lists ---------- */

li {
  margin-bottom: 0.25rem;
}

/* ---------- Navigation ---------- */

nav a {
  transition: color 0.15s ease;
}

/* ---------- Code ---------- */

code {
  font-size: 0.9em;
}

/* ---------- Mobile ---------- */

@media (max-width: 700px) {
  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  article {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* =========================================================
   Researcher Header
   ========================================================= */

.researcher-header {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 4rem;
  margin: 2rem 0 3rem 0;
  align-items: start;
}

.researcher-intro h3 {
  color: var(--accent-color);
  font-size: 1.3rem;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.researcher-intro > p:first-of-type {
  font-size: 1.1rem;
}

.researcher-links {
  margin-top: 1.5rem;
  font-weight: 500;
}

.researcher-links a {
  display: inline-block;
  margin-right: 1.5rem;
}

/* ---------- Profile column ---------- */

.researcher-profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.researcher-profile > img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.researcher-info {
  border-left: 1px solid var(--border-color);
  padding-left: 1.5rem;
  color: var(--muted-color);
  font-size: 0.95rem;
  line-height: 1.6;
}

.researcher-info strong {
  display: block;
  color: var(--text-color);
  margin-top: 1rem;
  margin-bottom: 0.15rem;
}

.researcher-info strong:first-child {
  margin-top: 0;
}

/* ---------- Mobile ---------- */

@media (max-width: 700px) {

  .researcher-header {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .researcher-profile {
    align-items: center;
  }

  .researcher-info {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-left: 0;
    padding-top: 1.5rem;
  }
}
