:root {
  --background-color: white;
  --text-color: #223;
  --hover-color: #669;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: "Courier New", Courier, monospace;
}

h2 {
  font-size: 2rem;
  margin-top: 64px;
}

section {
  max-width: 1000px;
  margin: auto;
}

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

.container {
  margin: 2rem;
}

.github-logo {
  background-image: url("github-mark.svg");
  background-size: 32px;
  width: 32px;
  height: 32px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
}

header img {
  max-height: 32px;
}

a,
a:visited {
  color: var(--text-color);
  text-decoration: underline;
}

a:hover {
  color: var(--hover-color);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #223;
    --text-color: white;
    --hover-color: #aac;
  }
  .github-logo {
    background-image: url("github-mark-white.svg");
  }
}

@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .container {
    margin: 2rem;
  }
}
