/*
  Shared style for ESC Research Collective team-member bio pages.
  Visual language pulled from https://youarenext.com/esc/ (fonts, color, gradient, button/footer style)
  so these standalone pages read as part of the same project without being part of that site.
*/

:root {
  --esc-purple: #90278E;
  --esc-teal: #00A69C;
  --esc-text: #2D2D2D;
  --esc-text-soft: #5a5a5a;
  --esc-white: #ffffff;
  --esc-gradient: linear-gradient(135deg, var(--esc-purple) 0%, var(--esc-teal) 100%);
  --esc-radius: 6px;
  --esc-max-width: 860px;
}

* {
  box-sizing: border-box;
}

/* Sticky footer: footer sits at the bottom of the viewport on short pages,
   and the page scrolls normally once content (e.g. a large photo grid) exceeds it. */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Fira Sans", Arial, Helvetica, sans-serif;
  color: var(--esc-text);
  background: var(--esc-white);
  line-height: 1.5;
}

/* Hero band: gradient strip with name + role, mirrors the site's hero treatment */
.bio-hero {
  background: var(--esc-gradient);
  color: var(--esc-white);
  padding: 64px 24px 96px;
  text-align: center;
}

.bio-hero .badge {
  display: inline-block;
  font-family: "Fira Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 18px;
}

.bio-hero h1 {
  margin: 0 0 8px;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.bio-hero .role {
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.95;
  margin: 0;
}

/* Photo, offset to overlap hero and content like a card */
.bio-photo-wrap {
  max-width: var(--esc-max-width);
  margin: -40px auto 0;
  padding: 0 24px;
  text-align: center;
}

.bio-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--esc-white);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  background: #eee;
}

/* Main content: grows to fill leftover space so .bio-footer sticks to the bottom */
.bio-content {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--esc-max-width);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.bio-content h2 {
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--esc-text);
  margin: 40px 0 16px;
}

.bio-content h2:first-child {
  margin-top: 0;
}

.bio-content p {
  font-size: 1.0625rem;
  color: var(--esc-text);
  margin: 0 0 18px;
}

.bio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0 8px;
}

.bio-tag {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--esc-teal);
  background: rgba(0, 166, 156, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
}

/* Photo grid: gallery of images the person supplied */
.bio-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 20px 0 8px;
}

.bio-photo-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--esc-radius);
  background: #eee;
}

/* Button, matches the teal "Learn More" pill on the main site */
.bio-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", "Fira Sans", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--esc-white);
  background: var(--esc-teal);
  border-radius: var(--esc-radius);
  padding: 11px 23px;
  text-decoration: none;
}

.bio-button:hover {
  opacity: 0.9;
}

.bio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

/* Footer band, mirrors the site's solid teal footer. flex-shrink:0 keeps it full height
   even though .bio-content above is the flexible (flex:1) element. */
.bio-footer {
  flex-shrink: 0;
  background: var(--esc-teal);
  color: var(--esc-white);
  text-align: center;
  padding: 32px 24px;
  font-size: 0.9rem;
}

.bio-footer a {
  color: var(--esc-white);
  text-decoration: underline;
}

.bio-footer p {
  margin: 0;
  opacity: 0.9;
}
