* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background-color: #141414;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background-image: url('./background.png');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  font-family: 'Montserrat', sans-serif;
}

main {
  --title-font-size: 64px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 28px;
  padding-bottom: 24px;
}

main > * {
  flex-shrink: 0;
}

.page-logo {
  display: block;
  width: 164px;
  max-width: calc(100% - 32px);
  height: auto;
  margin-inline: auto;
}

.page-title {
  margin: 40px auto 0;
  padding-inline: 16px;
  color: #72BE44;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: var(--title-font-size);
  line-height: 0.9375;
  letter-spacing: 2px;
  text-align: center;
}

.page-subtitle {
  margin: 0;
  padding-inline: 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: calc(var(--title-font-size) / 2);
  line-height: 1.75;
  letter-spacing: 2px;
  text-align: center;
  color: #FFFFFF;
  opacity: 0.5;
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 397.12px));
  justify-content: space-between;
  gap: clamp(8px, 2.6vw, 40px);
  width: 88%;
  max-width: 1280px;
  margin: 16px auto 0;
}

.school-card {
  min-width: 0;
  container-type: inline-size;
}

.school-photo-link {
  display: block;
  overflow: hidden;
  border-radius: 15px;
}

.school-photo-link:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}

.school-photo {
  display: block;
  width: 100%;
  aspect-ratio: 397.12 / 367;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 250ms ease;
}

.school-button {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100.4734%;
  max-width: 399px;
  aspect-ratio: 399 / 56;
  margin-top: -10.05077cqw;
  padding: 0;
  border: 0;
  border-radius: 73px;
  background-color: #72BE44;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: min(25px, 7cqw);
  text-decoration: none;
  line-height: 100%;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  transition: background-color 180ms ease;
}

@media (hover: hover) {
  .school-photo-link:hover .school-photo {
    transform: scale(1.03);
  }

  .school-button:hover {
    background-color: #252638;
  }
}

.school-button:focus-visible {
  background-color: #252638;
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .school-photo {
    transition: none;
  }

  .school-photo-link:hover .school-photo {
    transform: none;
  }

  .school-button {
    transition: none;
  }
}

.page-footer {
  width: 88%;
  max-width: 1280px;
  margin: auto auto 0;
  padding-top: 32px;
}

.page-banner {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 1440px) {
  .page-logo {
    width: 196.8px;
  }

  .page-title {
    margin-top: 24px;
  }
}

@media (max-width: 900px) {
  main {
    --title-font-size: clamp(26px, 6.8vw, 64px);
  }
}

@media (max-width: 600px) {
  .photo-row {
    grid-template-columns: minmax(0, 397.12px);
    justify-content: center;
    gap: 24px;
  }
}
