:root {
  --background-color: white;
  --text-color: black;
  --link-color: blue;

  @supports (color: light-dark(black, white)) {
    --background-color: light-dark(white, black);
    --text-color: light-dark(black, white);
    --link-color: light-dark(oklch(0.5 0.2 260), oklch(0.62 0.2 260));
  }
}
body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  padding: 0 0 3rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

header {
  padding: 1rem;
  img {
    height: 150px;
    width: 150px;

    @media (width >= 600px) {
      height: 300px;
      width: 300px;
    }
  }
}

main {
  max-width: 600px;
  padding: 1rem;

  img {
    width: 100%;
    height: auto;
  }
}

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

a {
  color: var(--link-color);

  &:visited,
  &:active {
    color: var(--link-color);
  }
}

gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;

  img {
    width: 100%;
    height: auto;
  }
  
  picture:has(.school-group) {
    grid-column: 1 / 3;
  }

  picture:has(.two-women) {
    grid-row: 2 / 4;
  }

}

footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.scheme-switcher {

  @media (width >= 720px) {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 1000;
  }

  button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 1rem;

    &:hover {
      text-decoration: underline;
    }
  }
}
