@use "vars";

/*
Which is the standard for headers, sticky or normal? I'm seeing more sticky, I think.
If nothing else, sticky is fancier, and I think I'm more often annoyed by having to scroll up.
*/

/* What is the best standard for units? em? rem? px? */

/* Is margin or gap typically better for flex? */

html {
  min-width: 100vw;
}

body {
  font-family: Ubuntu, sans-serif;
  display: flex;
  min-height: 100vh;
  flex-direction: column
}

main {
  background-color: white;
  color: var(--body-text);
}

p {
  font-size: 1em;
  line-height: 1.8;
  font-weight: 300;
}

.inner-div {
  margin-left: auto;
  margin-right: auto;
  padding: 0.5rem 2rem;
  max-width: 1200px;
}

.outer-div {
  width: 100%;

  &.variant-alpha {
    background-color: var(--variant-alpha-bg);
  }
}

.highlighted-passage {
  color: var(--gold);
}

ul {
  list-style: none;
}


img.logo-large {
  width: auto;
  height: 9rem;
}


main {

  .section-divider {
    height: 1px;
    background-color: var(--section-border);
  }

  .featured-item {
    background-color: var(--variant-beta-bg);

    .inner-div {
      .featured-item-frame {
        display: flex;
        flex-direction: column;
        margin: 1em;
        background-color: white;
        border-radius: 1.5rem;
        overflow: hidden;

        .left-panel {
          flex-basis: 400px;
          flex-grow: 0;
          flex-shrink: 0;
          img {
            width: auto;
            height: 100%;
          }
        }

        .right-panel {
          display: flex;
          flex-shrink: 1;
          flex-direction: column;
          justify-content: space-between;
          padding: 2rem;

          h2 {
            margin-bottom: 1rem;
          }

          .description {
            font-size: 1.25rem;
            font-weight: 300;
            line-height: 1.5;

            p {
              margin-bottom: 0.5rem;
            }
          }

          .bottom-row {
            text-align: right;
          }
        }

        @include vars.above-mobile {
          flex-direction: row;
        }
      }


    }

  }

  .featured-categories {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 1rem;
    margin-bottom: 1rem;
    gap: 1em;

    .featured-category {
      flex-basis: 25%;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: flex-end;
      gap: 1rem;

      .button {
        width: 6rem;
        margin: 1rem;
      }

      .category-header-image-wrapper {
        width: 100%;
        height: 100%;
      }

      h3 {
        font-size: 1.5rem;
        font-weight: 500;
      }
    }

  }

  .two-up {
    margin: 2em auto;
    display: flex;
    flex-direction: column;

    justify-content: center;
    gap: 2rem;
    @include vars.above-mobile {
      flex-direction: row;
    }

    .two-up-left, .two-up-right {
      width: 100%;
      @include vars.above-mobile {
        width: 50%;
      }

      img {
        max-width: 100%;
      }
    }

    .two-up-text {
      background-color: white;
      padding: 1em 2em 2em 2em;
      height: 100%;

      h2 {
        margin-bottom: 0.5rem;
      }

      p {
        color: var(--teal);
      }
    }
  }

  .card-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    margin: 2rem 1rem;
    gap: 1em;

    .card-wrapper {
      width: 40%;
      @include vars.above-mobile {
        width: 10%;
      }

      img {
        height: auto;
        width: 100%;
        filter: drop-shadow(0 0.25rem 0.25rem rgba(0, 0, 0, 0.5));
      }
    }

  }
}


footer {
  background-color: var(--footer-bg);
  color: var(--footer-fg);
  padding: 2rem 0;
  border-top: 0.25rem solid var(--footer-border);
  flex: 1;

  .footer-row {
    display: flex;
    flex-direction: column;
    gap: 2em;
    align-items: center;
    justify-content: space-between;

    @include vars.above-mobile {
      flex-direction: row;
      align-items: flex-start;
    }
  }

  .footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .footer-right {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
  }

  ul.footer-nav {
    > li {
      line-height: 2;
    }
  }

  .footer-nav {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0
  }

  .footer-social-icons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .footer-social-icon {
    width: 2.5rem;
    height: auto;
    color: black;
  }


  .copyright-block {
    padding: 1rem 0;
  }
}

.nav-label {
  font-weight: 700;
}








