/**
 * Code Credits
 * Project: kilowattradio
 * Owner: Torsten Nixdorf
 * Coding Brand: Nixdorf Media
 * Purpose: Mitwirkende profiles and overview styling for the KiLoWatt website.
 *
 * Rules:
 * - UTF-8 with German umlauts
 * - no secrets in source code
 */

.people-page,
.about-page {
  --people-ink: #17252d;
  --people-muted: #5f6c73;
  --people-red: #cf2530;
  --people-red-dark: #9f1f25;
  --people-paper: #f6f8fb;
  --people-warm: #fff1ec;
  --people-line: rgba(34, 28, 25, 0.14);
  --people-radius: 24px;
  --people-shadow: 0 24px 64px rgba(34, 28, 25, 0.13);
}

.people-hero {
  background:
    radial-gradient(circle at 84% 12%, rgba(207, 37, 48, 0.16), transparent 20rem),
    linear-gradient(135deg, #ffffff 0%, #f4f7fa 60%, #edf2f7 100%);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.1rem, 3vw, 1.6rem);
}

.people-card,
.people-profile-card,
.people-note-card {
  border: 1px solid var(--people-line);
  border-radius: var(--people-radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--people-shadow);
}

.people-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 1.4rem);
  align-items: start;
  padding: clamp(1rem, 3vw, 1.35rem);
}

.people-card-body {
  display: flex;
  flex-direction: column;
}

.people-card-body .button {
  width: fit-content;
  margin-top: auto;
}

.people-photo {
  overflow: hidden;
  border-radius: 18px;
  background: var(--people-paper);
  aspect-ratio: 16 / 9;
}

.people-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.people-initials {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 11rem;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 70% 18%, rgba(207, 37, 48, 0.2), transparent 4rem),
    linear-gradient(145deg, #2f2824, #5c3b36);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.08em;
}

.people-card h2,
.people-profile-card h1,
.people-profile-card h2,
.people-note-card h2 {
  color: var(--people-ink);
}

.people-card p,
.people-profile-card p,
.people-note-card p {
  color: var(--people-muted);
}

.people-card .eyebrow {
  color: var(--people-red-dark);
}

.people-profile-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(1.4rem, 5vw, 3rem);
  align-items: start;
}

.people-profile-card,
.people-note-card {
  padding: clamp(1.15rem, 3vw, 1.65rem);
}

.people-profile-media {
  overflow: hidden;
  margin: 0;
  border-radius: var(--people-radius);
  background: var(--people-paper);
}

.people-profile-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.people-profile-media figcaption {
  padding: 0.65rem 0.85rem;
  color: var(--people-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.people-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.people-pill-list li {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  border: 1px solid var(--people-line);
  border-radius: 999px;
  background: var(--people-warm);
  color: var(--people-ink);
  padding: 0.22rem 0.6rem;
  font-size: 0.84rem;
  font-weight: 760;
}

.people-stack {
  display: grid;
  gap: 1rem;
}

.people-points {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.people-points li {
  padding-left: 1.15rem;
  border-left: 4px solid var(--people-red);
  color: var(--people-muted);
}

.about-people-section {
  background:
    radial-gradient(circle at 8% 12%, rgba(207, 37, 48, 0.1), transparent 16rem),
    var(--people-paper);
}

@media (max-width: 900px) {
  .people-grid,
  .people-profile-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .people-card {
    grid-template-columns: 1fr;
  }

  .people-card .button {
    width: 100%;
  }
}
