:root {
  --color-background: #585858;
  --color-header: #474646;
  --color-surface: rgba(255, 255, 255, 0.08);
  --color-card: rgba(255, 255, 255, 0.05);
  --color-paper: #f8f7f5;
  --color-muted: #c8c4c1;
  --color-border: rgba(255, 255, 255, 0.18);
  --font-sans: "Century Gothic", "Gill Sans", "Liberation Sans", Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-paper);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.wrapper {
  width: min(960px, 88vw);
  margin: 0 auto;
}

.site-header {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: var(--color-header);
  color: var(--color-paper);
  min-height: 200px;
  padding: 0 0 0.5rem;
  flex: 0 0 auto;
}

.site-header .wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 1.25rem;
}

.nav-wrapper {
  justify-content: flex-end !important;
}

.site-brand {
  display: inline-flex;
  align-items: center;
}

.site-brand img {
  display: block;
  height: 140px;
  width: auto;
  max-width: 100%;
}

nav {
  display: flex;
  gap: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  justify-content: flex-end;
}

nav a {
  display: inline-flex;
  align-items: flex-start;
  height: 44px;
  color: var(--color-paper);
  border-top: 2px solid transparent;
  border-top-color: var(--color-muted);
  padding-top: 0.1rem;
}

nav a.is-active {
  border-top-color: var(--color-paper);
}

nav a:hover,
nav a:focus {
  opacity: 0.75;
  text-decoration: none;
}

.site-main {
  flex: 1 0 auto;
  padding: clamp(2rem, 5vw, 3rem) 0;
  margin-top: 3rem;
  margin-bottom: 3rem;
  color: var(--color-paper);
}

.site-main h1,
.site-main h2,
.site-main h3 {
  color: var(--color-paper);
  letter-spacing: 0.02em;
}

.site-main h1 {
  margin-top: 0;
  font-size: clamp(2rem, 6vw, 2.75rem);
}

.site-main h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.site-main ul {
  padding-left: 1.2rem;
}

.site-footer {
  background-color: var(--color-header);
  color: var(--color-paper);
  padding: 1.5rem 0;
  flex: 0 0 auto;
}

.site-footer .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  color: var(--color-muted)
}

.footer-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease;
}

.footer-instagram:hover,
.footer-instagram:focus {
  background-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.footer-icon {
  width: 20px;
  height: 20px;
}

.members-grid {
  column-count: 3;
  column-gap: 2rem;
  margin-top: 2rem;
}

.member-section+.member-section {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

.member-section-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.member-section-header h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
}

.member-group-label {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}

.member-card {
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  background-color: var(--color-card);
  break-inside: avoid;
  margin-bottom: 2rem;
}

.member-image {
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  /* or “50% 30%” */
}



.member-content {
  padding: 1.5rem;
  text-align: left;
}

.member-content h4 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--color-paper);
  text-align: left;
}

.member-title {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
}

.member-card--placeholder .member-image {
  background-color: var(--color-surface);
  display: grid;
  place-items: center;
}

.member-links {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.member-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-paper);
  transition: background-color 0.2s ease;
}

.member-links a:hover,
.member-links a:focus {
  background-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.link-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 768px) {
  .site-brand img {
    height: 100px;
  }
}

@media (max-width: 480px) {
  .site-header .wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
  }

  .site-brand img {
    height: 80px;
  }

  .members-grid {
    column-count: 1;
    column-gap: 0;
  }

  .member-card {
    margin-bottom: 1.5rem;
  }
}

.member-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) and (min-width: 601px) {
  .members-grid {
    column-count: 2;
    column-gap: 1.5rem;
  }
}