/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}
:root {
  --kim-purple: #4F24FA;
  --kim-green: #0D6545;
  --kim-pink: #FC58FA;
  --kim-yellow: #FCBA2C;
}


html {
  background: black;
  color: white;
  font-family: 'Montserrat', sans-serif;
}

body {
  overflow-x: hidden;
}

h1 {
  font-family: 'Bowlby One SC', serif;
  font-size: 1.5rem;
  text-align: center;

  @media (min-width: 931px) {
    font-size: 3rem;
  }

  & small {
    display: block;
  }
}

h2 {
  font-family: 'Bowlby One SC', serif;
  font-size: 2rem;
  text-align: center;
}

header {
  & .hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
    position: absolute;
    right: 2rem;
    top: 2rem;
    z-index: 1000;

    & span {
      background-color: white;
      border-radius: 2px;
      display: block;
      height: 3px;
      transition: all 0.3s ease;
      width: 30px;
    }

    &.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }

    &.active span:nth-child(2) {
      opacity: 0;
    }

    &.active span:nth-child(3) {
      transform: rotate(-45deg) translate(8px, -8px);
    }
  }

  @media (max-width: 930px) {
    & .hamburger {
      display: flex;
    }

    & nav ul {
      background-color: black;
      flex-direction: column;
      gap: 0;
      left: 0;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      padding: 0;
      position: absolute;
      top: 0;
      transition: max-height 0.3s ease, opacity 0.3s ease;
      width: 100%;
      z-index: 999;

      & li {
        border-bottom: 1px solid #333;
        width: 100%;

        &:first-child {
          flex: none;
        }
      }

      & a {
        display: block;
        padding: 1.5rem 2rem;
        width: 100%;
      }

      & .dropdown {
        width: 100%;

        & ul {
          position: static;
          width: 100%;

          & li {
            border-bottom: 1px solid #444;
          }

          & a {
            padding-left: 3rem;
          }
        }
      }

      & .has-submenu {
        & .submenu {
          display: flex;
          position: static;
          border: none;
          background-color: #0a0a0a;
          max-height: 100%;
          opacity: 1;
          padding: 0;

          & li {
            border-bottom: 1px solid #444;
          }

          & a {
            padding-left: 3rem;
          }
        }
      }
    }

    & nav ul.active {
      max-height: 800px;
      opacity: 1;
      padding: 1rem 0;
    }
  }

  & hgroup {
    margin: 2rem auto;
    max-width: 950px;
    position: relative;

    @media (min-width: 931px) {
      margin: 12rem auto;
    }

    & .star-yellow {
      display: none;

      @media (min-width: 931px) {
        display: block;
        position: absolute;
        top: -60px;
        right: -100px;
      }
    }

    & .star-white {
      position: absolute;
      bottom: -100px;
      left: -60px;
    }

    & .zag-l {
      position: absolute;
      left: -160px;
      top: 0;
    }

    & .zag-r {
      display: none;

      @media (min-width: 931px) {
        display: block;
        position: absolute;
        right: -120px;
        bottom: -120px;
      }
    }
  }

  & nav {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1000px;
    padding: 4rem 2rem 2rem;
    position: relative;
    width: 100%;

    @media (max-width: 930px) {
      padding: 2rem 1rem;
    }
  }

  & ul {
    align-items: center;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;

    & li:first-child {
      flex: 1;
    }

    & a {
      border: 1px solid transparent;
      color: white;
      display: block;
      font-size: 1rem;
      padding: 1rem;
      text-decoration: none;

      &:hover {
        background-color: #1a1a1a;
      }

      @media (min-width: 931px) {
        &:hover {
          background-color: transparent;
          border-bottom-color: white;
        }

        &.active {
          border-bottom-color: #fff;
        }
      }
    }
  }

  & .has-submenu {
    position: relative;

    & > a {
      cursor: pointer;
    }

    & .submenu {
      background-color: black;
      border: 1px solid #333;
      display: none;
      flex-direction: column;
      gap: 0;
      list-style: none;
      min-width: 200px;
      padding: 0;
      position: absolute;
      top: 3rem;
      left: 0;
      z-index: 1000;

      & li {
        border-bottom: 1px solid #333;
        width: 100%;

        &:last-child {
          border-bottom: none;
        }
      }

      & a {
        display: block;
        padding: 1rem 1.5rem;
        transition: background-color 0.2s ease;

        &:hover,
        &:active,
        &:focus {
          background-color: #1a1a1a;
          border-bottom-color: transparent;
        }
      }
    }

    &:hover .submenu {
      display: flex;
    }
  }
}

.container {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 1rem;

  @media (min-width: 931px) {
    padding: 0 3rem;
  }

  & h2 {
    margin-bottom: 3rem;
  }

  & p {
    font-size: 1rem;
    margin: 0 auto;
    max-width: 800px;

    @media (min-width: 931px) {
      font-size: 1.5rem;
    }
  }

  & p + * {
    margin-top: 1rem;
  }

  & .blockquote {
    border-right: 20px solid transparent;
    margin: 2rem auto;
    max-width: 60rem;

    @media only screen and (width >= 768px) {
      text-align: justify;
    }

    & + .blockquote {
      margin-top: 6rem;
    }

    & p {
      margin: 0 2rem;
      max-width: 60rem;
    }
  }

  &.blockquotes .blockquote {
    border: none;

    & h2 {
      margin-bottom: 0.5rem;
      margin-left: 3rem;
      text-align: left;
    }

    & blockquote {
      border-right: 20px solid transparent;
    }
  }

  &.lists {
    & > p {
      margin-bottom: 2.5rem;
    }

    & > ul {
      display: grid;
      gap: 2.5rem;
      grid-template-columns: 1fr;
      list-style: none;
      margin: 0;
      padding: 0;

      @media only screen and (width >= 768px) {
        grid-template-columns: 1fr 1fr;
      }

      & h3 {
        font-family: 'Bowlby One SC', serif;
        font-size: 1.5rem;
      }
    }
  }
}

section {
  & .container {
    padding: 3rem 1rem;

    @media (min-width: 931px) {
      padding: 3rem;
    }
  }
}

.section-purple {
  background-color: var(--kim-purple);

  & img:last-child {
    position: relative;
    bottom: -1px;
  }

  & .blockquote,
  & .blockquotes .blockquote blockquote {
    border-left: 20px solid var(--kim-pink);
  }
}

.section-green {
  background-color: var(--kim-green);

  & img:last-child {
    position: relative;
    bottom: -1px;
  }

  & .blockquote,
  & .blockquotes .blockquote blockquote {
    border-left: 20px solid var(--kim-pink);
  }
}

.section-pink {
  background-color: var(--kim-pink);
  color: black;

  & img:first-child {
    position: relative;
    top: -1px;
  }
  & img:last-child {
    position: relative;
    bottom: -1px;
  }

  & .blockquote,
  & .blockquotes .blockquote blockquote {
    border-left: 20px solid var(--kim-purple);
  }
}

.section-yellow {
  background-color: var(--kim-yellow);
  color: black;

  & img:first-child {
    position: relative;
    top: -1px;
  }
  & img:last-child {
    position: relative;
    bottom: -1px;
  }

  & .blockquote,
  & .blockquotes .blockquote blockquote {
    border-left: 20px solid var(--kim-purple);
  }
}

.work-with-me {
  padding: 0;

  &.work-with-me-as {
    padding: 3rem;
  }

  & ul {
    align-items: center;
    display: flex;
    flex-direction: column;
    font-size: 1.25rem;
    gap: 3rem;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 3rem;

    @media (min-width: 931px) {
      flex-direction: row;
    }

    & a {
      align-items: baseline;
      background: transparent url(im/btn-bg.png) scroll no-repeat center center;
      background-size: cover;
      color: black;
      font-family: 'Bowlby One SC', serif;
      gap: 0.5rem;
      display: flex;
      height: 95px;
      justify-content: center;
      padding: 3.2rem 2rem 0 0;
      text-align: center;
      text-decoration: none;
      width: 260px;

      &:hover,
      &:active,
      &:focus {
        color: var(--kim-purple);
      }
    }
  }
}

.book {
  margin: 0 auto;
  max-width: 300px;
}

.meet-kim {
  align-items: center;
  display: flex;
  flex-direction: column-reverse;
  gap: 4rem;
  margin-bottom: 6rem;

  @media (min-width: 931px) {
    flex-direction: row;
  }

  & img {
    max-width: 100%;

    @media (min-width: 931px) {
      max-width: 430px;
    }
  }
}

.about {
  align-items: center;
  display: flex;
  flex-direction: column;
  font-weight: bold;
  gap: 3.75rem;
  margin-bottom: 3rem;

  @media only screen and (width >= 768px) {
    flex-direction: row;
  }

  & img {
    border-radius: 3rem;
    max-width: 100%;

    @media only screen and (width >= 768px) {
      max-width: 400px;
    }
  }
}

.monthly-commitment {
  font-size: 2rem;
  font-family: 'Bowlby One SC', serif;;
  list-style: none;
  margin: 0;
  padding: 0;

  & li {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
    text-align: center;

    @media only screen and (width >= 768px) {
      grid-template-columns: 2fr 1fr 1fr;
    }

    & div {
      white-space: nowrap;
    }
  }

  & .arrows {
    display: none;

    @media only screen and (width >= 768px) {
      display: flex;
    }
  }

  & a {
    color: #fff;
    text-decoration: none;

    &:hover,
    &:active,
    &:focus {
      text-decoration: underline;
    }
  }
}

footer {
  background-color: var(--kim-yellow);
  color: black;
  font-family: 'Bowlby One SC', serif;

  & section {
    align-items: center;
    display: flex;
    flex-direction: column-reverse;
    gap: 3rem;
    justify-content: space-between;
    padding: 3rem 1rem;
    margin: 0 auto;
    max-width: 1000px;
    width: 100%;

    @media (min-width: 931px) {
      flex-direction: row;
      gap: 0;
      padding: 3rem;
    }
  }

  & nav {
    & ul {
      list-style: none;
      padding: 0;

      & a {
        align-items: center;
        color: black;
        display: flex;
        gap: 0.5rem;
        text-decoration: none;

        &:hover,
        &:active,
        &:focus {
          color: var(--kim-purple);
        }
      }
    }
  }

  & section > div:first-of-type {
    & nav {
      margin-bottom: 1rem;

      & ul {
        & li:first-child {
          margin-bottom: 1rem;
        }
      }
    }
  }

  & section > div:last-of-type {
    & nav ul {
      display: flex;

      & a {
        &:hover,
        &:active,
        &:focus {
          color: var(--kim-purple);
        }
      }

      & svg {
        height: 90px;
        width: 90px;
      }
    }
  }
}

.yellow-tl {
  position: absolute;
    top: 0;
    left: -180px;
  z-index: -1;

  @media only screen and (width >= 930px) {
    left: 0;
  }
}

.pink-tc {
  position: absolute;
    top: 0;
    left: calc(50% - 124px);
  z-index: -1;
}

.purple-tr {
  position: absolute;
    top: -145px;
    right: 0;
  width: 100px;
  z-index: -1;

  @media only screen and (width >= 500px) {
    top: 0;
    width: 244px;
  }
}

.kim-fist {
  margin: 3rem auto;
  max-width: 150px;

  @media (min-width: 931px) {
    max-width: none;
  }
}