main {
  padding-inline: calc(calc(100vw - var(--website-width)) / 2);
  margin-top: var(--section-spacing);
  position: relative;
  display: flex;

  @media screen and (width<800px) {
    flex-direction: column-reverse;
    align-items: center;
  }

  .hero {
    width: 60%;
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.2;
    font-weight: 900;
    color: var(--color-neutral-900);
    @media screen and (width<800px) {
      width: 90%;
      margin-inline: auto;
      text-align: center;
    }
  }

  .graphic {
    width: 40%;
    aspect-ratio: 1;
    background-image: url(images/graphic.svg);
    background-repeat: no-repeat;
    @media screen and (width<800px) {
      width: 80%;
      margin-inline: auto;
      text-align: center;
    }
  }
}

.cta-container {
  background-color: var(--color-primary-200);
  margin-top: var(--section-spacing);
  width: var(--website-width);
  margin-inline: auto;

  padding-block: 3vh;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-around;

  @media screen and (width<800px) {
    flex-direction: column;
    gap: 2vh;
  }

  a {
    text-decoration: none;
  }

  .cta {
    background-color: var(--color-neutral-900);
    color: var(--color-neutral-100);
    display: inline-block;
    padding: 1.5rem 2.5rem;

    @media screen and (width<800px) {
      padding: 0.8rem 1.2rem;
    }
    transition: all 200ms ease-in;
    &:hover {
      background-color: var(--color-neutral-100);
      color: var(--color-neutral-900);
    }
  }

  .cta-secondary {
    color: var(--color-neutral-900);
    background-image: url(images/arrow.svg);
    background-repeat: no-repeat;
    padding-right: 50px;
    background-position: top 8px right;
    background-size: 15%;
    position: relative;

    &::after {
      content: "";
      position: absolute;
      left: 0;
      top: 2rem;
      width: 0;
      height: 4px;
      background-color: var(--color-neutral-900);
      transition: width 200ms ease-in;
    }

    &:hover {
      &::after {
        width: calc(100% - 50px);
      }
    }
  }
}

aside {
  padding-inline: calc(calc(100vw - var(--website-width)) / 2);
  margin-top: var(--section-spacing);
  margin-bottom: calc(var(--section-spacing) + 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;

  section {
    display: flex;
    gap: 4rem;
    align-items: center;
    @media screen and (width<800px) {
      flex-direction: column;
      gap: 0.5rem;
      text-align: center;
    }

    img {
      height: 200px;
      flex-basis: 200px;
      flex-grow: 0;
      flex-shrink: 0;
    }

    h2 {
      font-weight: 600;
      margin-bottom: 1rem;
    }

    p {
      font-size: 1.25rem;
      font-weight: 300;
      opacity: 0.6;
    }
  }
}
