:root {
  --blue: #003480;
  --yellow: #ffc425;
  --white: #ffffff;
  --panel-shadow: 0 0 4px rgba(0, 52, 128, 0.25);
  --content-width: 1152px;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--blue);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--blue);
  color: var(--blue);
  font-family: "Trebuchet MS", Arial, sans-serif;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page {
  min-height: 100vh;
  overflow: hidden;
  background-image: url("../assets/background-optimized.jpg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.shell {
  width: min(var(--content-width), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.brand-mark {
  display: block;
  width: 174px;
  height: 197px;
  flex: 0 0 auto;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding-top: 22px;
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  color: var(--blue);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.tagline {
  margin: 8px 0 0;
  color: var(--yellow);
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
}

.discover-link {
  display: flex;
  width: 560px;
  max-width: 100%;
  min-height: 88px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 38px;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  color: var(--blue);
  text-decoration: none;
}

.discover-link:focus-visible,
.member-actions a:focus-visible,
.member-actions button:focus-visible,
.pagination a:focus-visible,
.pagination button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.discover-text {
  width: 300px;
  max-width: 100%;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

.beleef-badge {
  display: grid;
  min-width: 221px;
  min-height: 70px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--blue);
}

.beleef-logo {
  position: relative;
  display: block;
  width: 189px;
  height: 38px;
}

.beleef-logo img {
  position: absolute;
  display: block;
  max-width: none;
}

.beleef-top {
  inset: 0 0 41.5% 0;
  width: 100%;
  height: 58.5%;
}

.beleef-bottom {
  top: 66.8%;
  right: 0;
  bottom: 0;
  left: 49.4%;
  width: 50.6%;
  height: 33.2%;
}

.intro-section {
  margin-top: 21px;
}

.photo-credit {
  margin: 0 22px 14px 0;
  color: rgba(0, 52, 128, 0.5);
  font-size: 10px;
  font-weight: 700;
  line-height: 20px;
  text-align: right;
}

.intro-panel,
.members-panel {
  border-radius: var(--radius);
  background: var(--white);
}

.intro-panel {
  padding: 36px;
}

.intro-panel h2 {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.intro-panel h2 span:last-child {
  color: var(--yellow);
}

.intro-panel p,
.intro-panel li {
  margin: 0;
  font-size: 12px;
  line-height: 20px;
}

.intro-panel p + p {
  margin-top: 0;
}

.intro-panel strong {
  color: var(--yellow);
  font-weight: 800;
}
.intro-panel a {
  color: var(--yellow);
  font-weight: 800;
  text-decoration: none;
}

.intro-panel h3 {
  margin: 24px 0 6px;
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
}

.intro-panel ul {
  margin: 2px 0 0;
  padding-left: 18px;
}

.members-section {
  margin-top: 142px;
  margin-bottom: 8px;
}

.members-panel {
  min-height: 857px;
  padding: 48px 56px 38px;
  border: 1px solid var(--blue);
  overflow: hidden;
}

.members-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.members-heading h2 {
  margin: 0;
  color: var(--yellow);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.members-heading p {
  width: min(600px, 100%);
  margin: 0;
  font-size: 12px;
  line-height: 20px;
}

.members-message {
  margin: 44px 0 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(4, 240px);
  justify-content: center;
  gap: 24px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.member-card {
  display: flex;
  width: 240px;
  height: 280px;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--panel-shadow);
}

.member-card[hidden] {
  display: none;
}

.member-logo {
  display: grid;
  height: 150px;
  place-items: center;
  padding: 18px 12px 10px;
}

.member-logo img {
  display: block;
  max-width: 100%;
  max-height: 112px;
  object-fit: contain;
}

.member-logo-fallback {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 52, 128, 0.08);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

.member-address {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

.member-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: auto;
  padding: 15px 20px 21px;
}

.member-actions a,
.member-actions button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
}

.member-actions a {
  text-decoration: none;
}

.member-actions .is-disabled {
  cursor: not-allowed;
  opacity: 0.28;
}

.member-actions svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  color: var(--blue);
}

.pagination a,
.pagination button,
.pagination span {
  display: grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #d9dde5;
  border-left: 0;
  background: var(--white);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.pagination a,
.pagination button {
  cursor: pointer;
}

.pagination a:first-child,
.pagination button:first-child {
  border-left: 1px solid #d9dde5;
  border-radius: 8px 0 0 8px;
}

.pagination a:last-child,
.pagination span:last-child,
.pagination button:last-child {
  border-radius: 0 8px 8px 0;
}

.pagination .is-active {
  color: var(--yellow);
}

.pagination .is-disabled {
  opacity: 0.35;
}

.pagination svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.footer-line {
  height: 34px;
}

.footer-line img {
  display: block;
  width: 100%;
  height: 34px;
}

.site-footer {
  display: flex;
  min-height: 52px;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 16px;
  background: var(--blue);
  color: var(--white);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 20px;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a.link {
  color: var(--yellow);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1180px) {
  .members-panel {
    padding-inline: 32px;
  }

  .members-grid {
    grid-template-columns: repeat(3, 240px);
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 16px;
  }

  .brand-mark {
    justify-self: center;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-copy h1 {
    font-size: 30px;
    white-space: normal;
  }

  .tagline {
    font-size: 28px;
  }

  .intro-section {
    margin-top: 46px;
  }

  .members-section {
    margin-top: 80px;
  }

  .members-grid {
    grid-template-columns: repeat(2, 240px);
  }
}

@media (max-width: 620px) {
  .page {
    background-size: auto;
  }
  .site-header {
    padding-top: 0;
  }
  .shell {
    width: min(var(--content-width), calc(100% - 20px));
  }

  .brand-mark {
    width: 148px;
    height: 168px;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .tagline {
    font-size: 24px;
  }

  .discover-link {
    width: 100%;
    flex-direction: column;
    min-height: 0;
    margin-top: 28px;
  }

  .discover-text {
    width: 100%;
  }

  .beleef-badge {
    width: 100%;
    min-width: 0;
  }

  .photo-credit {
    margin-right: 4px;
  }

  .intro-panel {
    padding: 24px 20px;
  }

  .members-panel {
    min-height: 0;
    padding: 36px 16px 28px;
  }

  .members-heading h2 {
    font-size: 18px;
  }

  .members-grid {
    grid-template-columns: minmax(0, 100%);
    margin-top: 32px;
  }

  .member-card {
    width: 100%;
  }

  .pagination {
    flex-wrap: wrap;
    row-gap: 8px;
  }
}
