*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #1b1e26; /* deep blue-charcoal, soft dark */
  --text: #e9e6df; /* warm off-white */
  --accent: #ff8f3f; /* orange */
  --max-width: 40rem;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.25rem);
  line-height: 1.4;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 2rem;
}

header img {
  display: block;
  width: clamp(5rem, 25vw, 9rem);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

h1 {
  margin: 1rem 0 0;
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--accent);
}

/* Sections: always stacked in a single column */
main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

h2 {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--accent);
}

p {
  margin: 0;
}

strong {
  font-weight: 700;
}

.highlight {
  font-style: italic;
  color: var(--accent);
}

/* People */
.people-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.people-list li {
  display: flex;
  flex-direction: column;
}

.people-list .name {
  font-size: 1.1em;
  font-weight: 400;
}

.people-list .role {
  color: var(--accent);
}

.people-list .institution {
  opacity: 0.8;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(233, 230, 223, 0.2);
  text-align: center;
}

.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2.5rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.logos img {
  display: block;
  /*height: clamp(2.5rem, 8vw, 4rem);*/
  height: 8rem;
  width: auto;
  max-width: 100%;
}

footer p {
  font-size: 0.9em;
  opacity: 0.8;
}

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

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (min-width: 40rem) {
  .people-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.5rem;
  }
  .page {
    padding: 2.5rem 2rem 4rem;
  }
  header {
    margin-bottom: 3rem;
  }
  main {
    gap: 3rem;
  }
}
