a.button {
  background-color: var(--almost-black);
  border-radius: 1.5rem;
  color: var(--light-beige);
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
}

blockquote {
  border: 0.1rem solid var(--light-gray);
  border-radius: 1rem;
  padding: 1rem;

  p {
    font-size: 1.25rem;

    &::before {
      content: "“";
      font-size: 1.5rem;
      line-height: 1rem;
    }

    &::after {
      content: "”";
      font-size: 1.5rem;
      line-height: 1rem;
    }
  }

  footer {
    color: var(--light-gray);
    font-size: 0.75rem;
    margin-top: 1rem;
    text-transform: uppercase;
  }
}

body {
  background-color: var(--light-beige);
  color: var(--almost-black);
  font-family: sans-serif;
}

button.example {
  background-color: var(--almost-white);
  margin: 1rem 0;
  padding: 2rem;
  width: 100%;

  &.active {
    background-color: var(--real-white);
  }
}

code {
  display: none;
}

div.columns-n {
  display: flex;
  justify-content: space-between;
}

div.columns-2 {
  container-type: inline-size;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;

  > *:first-child {
    flex: 1 1 20rem;
    width: 25rem;
    min-width: 20rem;
  }

  > *:last-child {
    flex: 1 1 15rem;
    width: 30rem;
    min-width: 15rem;
  }

  > div > p {
    margin: 2rem 0;
  }
}

@container (max-width: 27rem) {
  div.columns-2 {
    > *:first-child,
    > *:last-child {
      flex: 1 1 100%;
      width: none;
    }
  }
}

h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
}

h2 {
  font-size: 3.5rem;
}

h3 {
  font-size: 2rem;
  margin: 1rem 0;
}

h1, h2, h3 {
  font-family: serif;
  font-weight: normal;
  letter-spacing: -0.05em;
  line-height: 0.9em;
}

iframe {
  border: none;
  border-radius: 1rem;
  height: 20rem;
  width: 100%;
}

main {
  > header {
    border-bottom: 0.1rem solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    line-height: 2rem;
    padding: 1rem 2rem;
  }

  > footer {
    border-top: 0.1rem solid var(--almost-black);
    color: var(--dark-gray);
    display: flex;
    justify-content: space-between;
    line-height: 2rem;
    padding: 1rem 2rem;
  }
}

ol#numbers {
  border-top: 0.1rem solid var(--light-gray);
  display: flex;
  justify-content: space-between;
  list-style-type: none;
  margin-top: 4rem;
  padding: 1rem 0 0;

  > li {
    p:first-child {
      color: var(--almost-black);
      font-size: 1.5rem;
    }

    p:last-child {
      color: var(--dark-gray);
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
  }
}

p {
  color: var(--dark-gray);
  line-height: 1.5;
}

section {
  padding: 8rem 2rem;
}

section#educators {
  background-color: var(--almost-black);
  color: var(--light-beige);

  p {
    color: var(--light-beige);
  }
}

section#examples {
  background-color: var(--medium-beige);
  border-top: 0.1rem solid var(--light-gray);
  border-bottom: 0.1rem solid var(--light-gray);

  > div:first-child {
    margin-bottom: 2rem;
  }
}

section#features {
  ol.boxes-3-2-1 {
    background-color: var(--light-gray);
    border: 0.1rem solid var(--light-gray);
    border-radius: 1rem;
    container-type: inline-size;
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem;
    list-style-type: none;
    margin-top: 3rem;
    overflow: hidden;

    > li {
      background-color: var(--light-beige);
      flex: 1 1 calc(33.333% - 0.667rem);
      padding: 1.5rem 1.5rem 1rem;

      p {
        color: var(--dark-gray);
        margin: 1rem 0;
      }
    }
  }

  @container (max-width: 47rem) {
    ol.boxes-3-2-1 > li {
      flex-basis: calc(50% - 0.5rem);
    }
  }

  @container (max-width: 31rem) {
    ol.boxes-3-2-1 > li {
      flex-basis: 100%;
    }
  }
}

section#how-it-works {
  ol.boxes-4-2-1 {
    background-color: var(--almost-black);
    border: 0.1rem solid var(--almost-black);
    border-radius: 1rem;
    container-type: inline-size;
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem;
    list-style-type: none;
    margin-top: 3rem;
    overflow: hidden;

    > li {
      background-color: var(--light-beige);
      flex: 1 1 calc(25% - 0.75rem);
      padding: 0.5rem 1.5rem;

      p {
        color: var(--dark-gray);
        margin: 1rem 0;
      }
    }
  }

  @container (max-width: 47rem) {
    ol.boxes-4-2-1 > li {
      flex-basis: calc(50% - 0.5rem);
    }
  }

  @container (max-width: 31rem) {
    ol.boxes-4-2-1 > li {
      flex-basis: 100%;
    }
  }
}

section#start {
  text-align: center;

  h2 {
    font-size: 6rem;
    margin-bottom: 3rem;

    span {
      display: block;
    }
  }

  p {
    margin-top: 1rem;
  }
}

section#try {
  position: relative;

  &::before {
    background-image: linear-gradient(#0b121a0d 0.1rem, #0000 0.1rem), linear-gradient(90deg, #0b121a0d 0.1rem, #0000 0.1rem);
    background-size: 2rem 2rem;
    content: "";
    inset: 0;
    opacity: 0.5;
    position: absolute;
    z-index: -1;
  }

  span.share-the-link {
    display: inline-block;
    position: relative;

    svg {
      bottom: -0.75rem;
      color: var(--yellow);
      left: 0;
      position: absolute;
      width: 100%;
    }
  }

  a.button {
    margin-right: 2rem;
  }
}

span.hit-run {
  white-space: nowrap;
}

span.hit-run,
span.nothing-you-dont,
span.thirty-students,
span.start-typing {
  color: var(--dark-gray);
  font-style: italic;
}

span.thirty-students {
  color: var(--yellow);
}

span.start-typing:after {
  content: "▍";
  color: var(--yellow);
  margin-left: .1em;
  animation: 1.1s step-end infinite blink;
}

@keyframes blink {
  50% {
    opacity: 0
  }
}
