:root{
  --bg: #FFDAB9;
  --accent: #708090;
  --text: #2f2a26;
  --muted: rgba(47,42,38,0.70);
  --card: var(--accent);
  --card-text: #ffffff;
  --card-muted: rgba(255,255,255,0.78);
  --card-border: rgba(255,255,255,0.18);
  --border: rgba(0,0,0,0.12);
  --shadow: 0 10px 26px rgba(0,0,0,0.12);
  --radius: 18px;
  --max: 780px;
}

body {
    background: var(--bg);
}

h1 {
  text-align: center;
}

ul {
  list-style-type: none;
  margin-left: -25px;
}

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

.people-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 10px 0 18px;
}

.person-card {
  display: flex;
  gap: 14px;
  margin: 30px;
  align-items: stretch;
  background: var(--card);
  color: var(--card-text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.person-photo{
  width: 300px;
  flex: 0 0 300px;
  height: auto;
  display: block;
  background: rgba(0,0,0,0.10);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.person-meta{
  flex:1 1 auto;
  min-width: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.person-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
}

.person-dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.person-dl dt {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 2px 0;
  font-weight: bold;
  color: var(--card-muted);
}

.person-dl dd {
  margin: 0;
  font-size: 0.95rem;
  padding-bottom: 10px;
}

.person-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.person-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(0,0,0,0.14);
  text-decoration: none;
  color: inherit;
}

.person-link span{
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.person-link img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 11px;
}

/* Alternate layout: even cards swap sides */
.person-card:nth-child(even){
  flex-direction: row-reverse;
}

/* Mobile: stack */
@media (max-width: 520px){
  .person-card,
  .person-card:nth-child(even){
    flex-direction: column;
  }
  .person-photo{
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
  }
}
