/* CSS Reset - https://www.joshwcomeau.com/css/custom-css-reset/  */
/*
  1. Use a more-intuitive box-sizing model.
*/
*, *::before, *::after {
    box-sizing: border-box;
  }
  /*
    2. Remove default margin
  */
  * {
    margin: 0;
  }
  /*
    Typographic tweaks!
    3. Add accessible line-height
    4. Improve text rendering
  */
  body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  /*
  
    6. Remove built-in form typography styles
  */
  input, button, textarea, select {
    font: inherit;
  }
  /*
    7. Avoid text overflows
  */
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }
  /*
    8. Create a root stacking context
  */
  #root, #__next {
    isolation: isolate;
  }
  /* ------------------------------------------- */
  
  a:link, a:active, a:hover, a:visited {
      color: var(--dark-purple);
      text-decoration: inherit;
      font-weight: bold;
  }
  
  a:hover {
      color: #de7d8b;
  }
  
  ol, ul {
      list-style: none;
      padding: 0;
  }
  
  
  :root {
      --dusty-pink: #dab1b5cc;
      --dark-purple: #3c3858;
      --charcoal: #110f14;
      --grey: #615c66;
      font-size: 16px;
      font-family: 'Homizio_regular', sans-serif;
      letter-spacing: 0.08rem;
  }
  
  html {
      scroll-behavior: smooth;
  }
  
  body {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      justify-content: space-between;
      margin: 0;
  
  }
  
  h1, h2 {
      font-family: 'Great Vibes', sans-serif;
      font-size: 3rem;
      letter-spacing: normal;
      color: var(--dark-purple);
      margin: 0;
  }
  
  h2 {
      font-size: 2rem;
  }
  
  .link-button {
      display: inline-block;
      padding: 10px 15px;
      border: 1px solid var(--dark-purple);
      margin: 15px 0;
      border-radius: 4px;
  }
  
  header {
      position: sticky;
      top: 0px;
      z-index: 10;
      
  }

  header h1 {
    transition: 0.4s;
  }

  header.condense-header h1 {
    font-size: 2rem;
  }
  
  nav {
      background: var(--dusty-pink);
      position: absolute;
      width: 100%;
      backdrop-filter: blur(4px);
  }
  
  nav > .inner-cont {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 0;
  }
  .nav-links ul {
      display: flex;
      gap: 30px;
  }

  a#bio, a#books, #blog, #reviews {
    display: block;
    visibility: hidden;
    position: relative;
    top: -80px;
  }
  
  .inner-cont {
      max-width: 1140px;
      margin: 0 auto;
  }
  
  .intro.home-page {
      background: radial-gradient(circle, #ffffffbb 60%, #ffffff00 ), url('../images/banner_bg2.png');
      background-repeat: no-repeat;
      background-size: cover;
  }

  .intro.secondary-page {
    font-size: 0.8rem;
    padding: 150px 0 50px 0;
  }
  
  .intro.home-page .inner-cont {
      display: flex;
      gap: 50px;
      justify-content: space-between;
  }
  
  .intro.home-page .left-col {
      margin-top: 120px;
      padding-bottom: 30px;
  }
  
  .intro.home-page .left-col span {
      display: block;
      font-weight: bold;
      margin-bottom: 10px;
  }
  
  .intro.home-page .right-col {
      display: flex;
      align-items: flex-end;
  }

  .intro.home-page .right-col img {
    max-width: 100vw;
  }
  
  .middle.home-page {
      background: radial-gradient(circle, #ffffff, #ffffff00), url('../images/banner_bg.png');
      background-blend-mode: screen;
      background-repeat: no-repeat;
      background-size: cover;
      padding: 75px 0;
      border-top: 4px solid #ffffff;
      text-align: center;
  }
  
  .middle.home-page .inner-cont > div {
      margin-bottom: 50px;
  }
  
  .books-row {
      display: flex;
      flex-wrap: wrap;
      gap: 30px;
      justify-content: center;
  }
  
  .book-add {
      display: flex;
      flex-direction: column;
      padding: 30px;
      align-items: center;
      background: #ffffff;
      border-radius: 5px;
      filter: drop-shadow(0 2px 2px #33333333);
      cursor: pointer;
  }
  
  .book-add img {
      margin-bottom: 10px;
  }
  
  .book-add:hover {
      transform: scale(1.05);
  }
  
  .bottom.home-page {
      padding: 50px 0;
      border-top: 4px solid #ffffff;
      background: radial-gradient(circle, #ffffff 60%, #ffffff00), url('../images/bdy_bg.png');
  }
  
  .bottom.home-page h2 {
      text-align: center;
  }
  
  hr {
      border: 1px solid var(--dusty-pink);
      opacity: 0.5;
      margin: 75px 50px;
  }
  
  span.subtitle {
      color: #de7d8b;
      font-style: italic;
      text-align: center;
      display: block;
      margin-bottom: 20px;
  }
  
  img.bio-portrait {
      float: left;
      margin: 0 30px 30px 0;
      border-radius: 10px 50px;
      filter: drop-shadow(-8px 8px 0px var(--dusty-pink));
  }
  
  .bottom.home-page p:not(:last-child) {
      margin-bottom: 2rem;
  }
  
  .reviews.home-page {
      background: radial-gradient(circle, #ffffff, #ffffff00), url('../images/banner_bg.png');
      background-blend-mode: screen;
      background-repeat: no-repeat;
      background-size: cover;
      padding: 75px 0;
      border-top: 4px solid #ffffff;
      text-align: center;
  }
  
  .reviews.home-page p:not(:last-child) {
      margin-bottom: 2rem;
  }
  
  footer {
      background: var(--charcoal);
      width: 100%;
      text-align: center;
      padding: 30px 0 10px 0;
      color: #ffffff;
  }
  
  footer a:link, footer a:visited, footer a:active {
      color: #ffffff;
      font-weight: 500;
  }
  
  footer img {
      filter: brightness(5) grayscale(1);
  }
  
  footer ul {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
  }
  
  .copyright {
      font-size: 0.9rem;
      margin-top: 1rem;
      color: #777;
  }

  /* MODAL */

  .modal-cont, .book-modal {
    display: none;
  }

  .modal-cont.active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000cc;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .book-modal.active {
    background: #ffffff;
    position: relative;
    padding: 50px;
    border-radius: 10px;
    filter: drop-shadow(1px 1px 1px black);
    width: clamp(400px, 50%, 99vw);
    display: block;
  }

  .modal-inner {
    display: flex;
    gap: 40px;
    text-align: left;
  }

  .book-modal button {
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: 0;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
  }

  .book-modal button:hover {
    color: #de7d8b;
  }

  .book-modal .link-button.download {
    margin-left: 10px;
    background-color: var(--dark-purple);
    color: #ffffff;
  }

  .book-modal .link-button.download:hover {
    filter: brightness(1.5);
  }




  @media screen and (max-width: 1140px) {
    .inner-cont, nav > .inner-cont {
        padding: 0 1.5rem;
    }
    .intro.home-page .inner-cont {
        flex-wrap: wrap;
        justify-content: center;
    }
    nav > .inner-cont {
        padding: 0 1.5rem;
    }
    .book-modal.active {
        width: 95vw;
        height: 95vh;
        padding: 1.4rem;
        overflow: scroll;
    }
    .book-modal.active .modal-inner {
        flex-wrap: wrap;
        gap: 10px;
    }
    .book-modal .link-button.download {
        margin: 0;
    }
  }

  @media screen and (max-width: 768px) {
    nav > .inner-cont {
        flex-direction: column;
        align-items: center;
    }
    .intro.home-page .right-col {
        justify-content: center;
    }
  }

  @media screen and (max-width: 400px) {
    img.bio-portrait {
        float: none;
        display: block;
        margin: 0 auto 30px auto;
    }
  }