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

:root {
  --brown-dark: #2b1f14;
  --brown-mid: #5c3d22;
  --brown-warm: #8b5e3c;
  --brown-light: #c07a53;
  --cream-dark: #e8d5bf;
  --cream-light: #faf3e7;
  --cream-white: #fffdf9;
  --text-dark: #2b1f14;
  --text-muted: #7a5c42;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--cream-light);
  color: var(--text-dark);
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  background: var(--brown-dark);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: var(--cream-light);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nav-links a {
  color: var(--cream-dark);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: white;
}

/* ── HERO ── */
.hero {
  background: var(--brown-dark);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 60% 40%,
      rgba(192, 122, 83, 0.18) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse at 20% 80%,
      rgba(139, 94, 60, 0.14) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--cream-white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  position: relative;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: var(--cream-dark);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--brown-light);
  border-radius: 2px;
  margin: 2rem auto 0;
}

/* ── TEAM SECTION ── */
.team-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.section-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: "Playfair Display", serif;
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--brown-dark);
  margin-bottom: 3rem;
}

/* ── CARD GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.member-card {
  background: var(--cream-white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--cream-dark);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(43, 31, 20, 0.12);
}

/* Photo area */
.card-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--cream-dark);
  position: relative;
  overflow: hidden;
}

.card-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder avatar when no photo */
.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brown-warm), var(--brown-mid));
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 2px;
}

/* Card body */
.card-body {
  padding: 1.4rem 1.4rem 0;
  flex: 1;
}

.member-name {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  color: var(--brown-dark);
  margin-bottom: 0.25rem;
}

.member-roll {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--brown-light);
  background: rgba(192, 122, 83, 0.1);
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

/* Links */
.card-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 1.4rem 1.4rem;
  border-top: 1px solid var(--cream-dark);
  margin-top: auto;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition:
    background 0.18s,
    color 0.18s;
}

.link-item:hover {
  background: rgba(192, 122, 83, 0.1);
  color: var(--brown-mid);
}

.link-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.icon-github {
  background: #2b1f14;
  color: #fff;
}
.icon-linkedin {
  background: #0a66c2;
  color: #fff;
}
.icon-portfolio {
  background: var(--brown-light);
  color: #fff;
}

.link-text {
  flex: 1;
}
.link-arrow {
  opacity: 0.4;
  font-size: 0.7rem;
}

/* ── FOOTER STRIP ── */
.footer-strip {
  background: var(--brown-dark);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--cream-dark);
  letter-spacing: 0.2px;
}

.footer-strip a {
  color: var(--brown-light);
  text-decoration: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .hero {
    padding: 3.5rem 1.5rem 3rem;
  }
  .team-section {
    padding: 3rem 1.2rem 4rem;
  }
}

@media (max-width: 400px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}
