* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: rgb(237, 239, 255);
  color: rgb(30, 30, 30);
  font-family: "Inter", sans-serif;
  font-size: 18px;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  margin: 2rem 0;
  font-size: 1.1rem;
  padding: 0 0.5rem;
}

header > div {
  text-align: center;
}

.tag {
    margin: 15rem 0 10rem 0;
}

.tag > div:last-child {
    grid-template-columns: 1fr;
}

main {
  margin-top: 200px;
}

h2 {
  /* font-family: "Newsreader", serif; */
  /* font-style: italic; */
  font-size: 1.5rem;
  font-optical-sizing: auto;
  font-weight: 400;
  margin:0;
}

h3 {
  font-weight: 400;
  font-size: 1.25rem;
  margin: 1rem 0;
}

p {
  font-family: "Inter", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.3em;
}

a {
  color: inherit;
}

footer {
  padding: 5rem 0;
  margin: 0 auto;
  max-width: 1600px;
}

footer div {
  max-width: 850px;
  margin-left: auto;
}

section {
  display: grid;
  grid-template-columns: 420px 2fr;
  max-width: 1600px;
  margin: 0 auto;
  margin-bottom: 20rem;
}

section div,
footer div {
  padding: 1rem;
}

section > div:first-child {
  position: sticky;
  top: 200px;
  height: min-content;
}

section > div:last-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 850px;
  margin-left: auto;
}

video {
  width: 100%;
  border: 1px solid #000;
}

video:first-child,
#html-review video,
#grid-world video {
  grid-column: span 2;
}

@media screen and (max-width: 800px) {
  section {
    grid-template-columns: 1fr;
    margin-bottom: 8rem;
  }
  section > div:first-child {
    position: relative;
  }
  footer div {
    max-width: 100%;
  }
}
