@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #f8fafc;
  color: #1d293d;
  margin: 0;
}

header {
  display: flex;
  background: white;

  .header-info {
    padding: 4rem 8vw;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;

    h1 {
      margin: 0;
      font-size: 4rem;
      letter-spacing: -0.03em;
    }
    .subtitle {
      margin: 1rem 0 0 0;
      color: rgb(0 0 0 / 0.5);
    }
  }
  .header-image {
    background: #b8e6fe;
    flex: 1;
    display: grid;
    place-items: center;

    svg {
      width: 50%;
      height: 50%;
      max-width: 16rem;
      max-height: 16rem;
    }
  }
}

main {
  line-height: 1.5;

  section {
    padding: 2rem 20vw;

    h2 {
      font-size: 2.5rem;
    }
    p {
      color: #314158;
    }
    &:first-of-type {
      margin-top: 4rem;
    }
    &:last-of-type {
      margin-bottom: 4rem;
    }
  }
  .large-text-section {
    p {
      padding: 2rem;
      margin: 0;
      border-radius: 0.25rem;
      font-size: 1.5rem;
      background: hsl(203.99, 96.54%, 93.67%);

      strong {
        font-weight: 500;
        color: black;
      }
    }
  }
  .resources-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;

    a {
      flex-grow: 1;
      flex-basis: 15rem;
      padding: 2rem;
      background: hsl(203.99, 96.54%, 93.67%);
      border-radius: 0.5rem;
      text-decoration: none;
      color: inherit;

      transition: 0.2s ease;
      &:hover {
        background: hsl(203.99, 96.54%, 90%);
        transform: rotate(-1deg);

        .logo-image {
          opacity: 1;
        }
      }

      .thumbnail-image {
        max-width: 100%;
        border-radius: 4px;
      }
      .logo-image {
        max-height: 1rem;
        margin-top: 1rem;
        opacity: 0.75;
        mix-blend-mode: darken;

        &.larger {
          max-height: 1.5rem;
        }
      }
      h3 {
        margin: 0rem 0 0.5rem 0;
        font-size: 1.25rem;
      }
    }
  }
  .text-section {
    h2 {
      margin-bottom: 0rem;
    }
    h3 {
      font-size: 1.5rem;
      margin-top: 2rem;
      margin-bottom: 1.5rem;
    }
    .image-wrapper {
      display: flex;
      gap: 1rem;
      width: 100%;
      margin: 1rem 0;

      img {
        max-width: calc(100% - 21rem);
        border-radius: 0.5rem;
        border: 1px solid rgb(0 0 0 / 0.1);
        display: block;
        background: white;
        padding: 0.5rem;
      }

      &:after {
        content: attr(data-subtitle);
        display: block;
        width: 20rem;
        opacity: 0.5;
        transition: 0.2s ease;
      }
      &:hover::after {
        opacity: 1;
      }
    }
  }
}