/* ==========================================
   WILLOW VOSS HOMEPAGE
   ========================================== */

:root {
    --teal: #5792a0;
    --light-blue: #d0e9f0;
    --black: #050505;
    --white: #ffffff;
    --serif: Georgia, "Times New Roman", serif;
    --display: "Oswald", Impact, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: var(--black);
    font-family: var(--serif);
}

.site-shell {
    width: min(100%, 676px);
    margin: 0 auto;
    overflow: hidden;
    background: var(--light-blue);
}

/* ==========================================
   HERO
   ========================================== */

.hero {
    position: relative;
    height: 335px;
    background: var(--teal);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    width: 265px;
    height: 260px;
    object-fit: cover;
    border-radius: 50%;
    margin-top: 10px;
}

.tagline {
    margin: -2px 15px 0;
    color: #fff;
    font-family: var(--display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2.5px;
    line-height: 1.1;
    text-align: center;
    padding-top: 24px;
}

/* ==========================================
   HAMBURGER / NAV
   ========================================== */

.menu-toggle {
    position: absolute;
    top: 160px;
    left: 35px;
    z-index: 20;
    width: 50px;
    height: 38px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 48px;
    height: 4px;
    margin: 8px 0;
    border-radius: 4px;
    background: #fff;
}

.site-nav {
    position: absolute;
    z-index: 10;
    top: 208px;
    left: 28px;
    width: 190px;
    padding: 12px 0;
    background: rgba(255,255,255,.98);
    border-radius: 5px;
    box-shadow: 0 6px 18px rgba(0,0,0,.22);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
}

.site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.site-nav a {
    display: block;
    padding: 10px 18px;
    color: #000;
    font-family: var(--display);
    font-size: 19px;
    letter-spacing: 1px;
    text-decoration: none;
}

.site-nav a:hover {
    background: var(--light-blue);
}

/* ==========================================
   SOCIAL BAR
   ========================================== */

.social-bar {
    height: 104px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 0 75px;
}

.social {
    display: flex;
    width: 49px;
    height: 49px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social svg {
    width: 47px;
    height: 47px;
    fill: currentColor;
}

.social.instagram svg,
.social.email svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.facebook { color: #1769df; }
.tiktok { color: #000; }
.instagram { color: #e34d7a; }
.pinterest { color: #d6002e; }
.email { color: #000; }

/* ==========================================
   SHARED SECTION STYLES
   ========================================== */

.section-blue {
    background: var(--light-blue);
}

h1,
h2 {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: 2.2px;
    text-align: center;
}

h1 {
    font-size: 29px;
    line-height: 1.1;
}

h2 {
    font-size: 29px;
    line-height: 1.15;
}

p {
    font-size: 18px;
    line-height: 1.24;
}

/* ==========================================
   FEATURED
   ========================================== */

.featured {
    padding: 35px 45px 22px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 174px 1fr;
    gap: 25px;
    margin-top: 31px;
    align-items: start;
}

.book-cover {
    display: block;
    width: 174px;
    height: 269px;
    object-fit: cover;
}

.featured-copy {
    min-width: 0;
}

.featured-copy p {
    margin: -8px 0 12px;
}

.featured-copy p + p {
    margin-top: 0;
}

.heat {
    margin: 15px 0 18px;
    text-align: center;
    font-size: 18px;
    letter-spacing: -2px;
}

.progress-section {
    margin: 2rem 0;
}

.progress-section h3 {
    margin-bottom: 0.75rem;
}

.progress-bar {
    width: 100%;
    height: 38px;
    background: var(--light-blue);
    border: 1px solid var(--teal);
    border-radius: 19px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.15);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--light-blue),
        var(--teal)
    );
    border-radius: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-family: 'Bitter', serif;
    font-size: 0.95rem;
    font-weight: bold;
    transition: width 0.6s ease;
    min-width: 120px;
}

.button {
    display: block;
    width: 170px;
    margin: 0 auto;
    padding: 10px 20px 9px;
    border-radius: 25px;
    background: #000;
    color: #fff;
    font-family: var(--display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease;
}

.button:hover {
    transform: translateY(-2px);
    background: #222;
}

/* ==========================================
   ABOUT
   ========================================== */

.about {
    padding: 0 55px 30px;
}

.section-divider {
    height: 2px;
    margin: 0 -55px 19px;
    background: #111;
}

.about p {
    margin: 19px auto;
    text-align: center;
}

.about .spicy-line {
    margin-top: 25px;
    margin-bottom: 0;
}

/* ==========================================
   NEWSLETTER
   ========================================== */

.newsletter {
    min-height: 219px;
    padding: 32px 70px 35px;
    background: var(--teal);
    color: #fff;
    text-align: center;
}

.newsletter p {
    margin: 25px auto 22px;
    max-width: 550px;
    font-size: 17px;
    line-height: 1.22;
}

.newsletter .button {
    width: 170px;
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
    min-height: 100px;
    padding: 34px 15px;
    background: #fff;
    font-family: var(--serif);
    font-size: 17px;
    text-align: center;
}

/* ==========================================
   MOBILE / SMALL SCREENS
   ========================================== */

@media (max-width: 600px) {

    .hero {
        height: 335px;
    }

    .logo {
        width: 265px;
        height: 260px;
    }

    .tagline {
        font-size: clamp(21px, 5.8vw, 28px);
        letter-spacing: 1.8px;
    }

    .menu-toggle {
        left: 35px;
    }

    .social-bar {
        padding: 0 50px;
    }

    .social {
        width: 45px;
        height: 45px;
    }

    .social svg {
        width: 43px;
        height: 43px;
    }

    .featured {
        padding-left: 35px;
        padding-right: 35px;
    }

    h1,
    h2 {
        font-size: clamp(24px, 6.5vw, 29px);
    }

    .featured-grid {
        grid-template-columns: 174px 1fr;
        gap: 20px;
    }

    .featured-copy p {
        font-size: 17px;
    }

    .about {
        padding-left: 45px;
        padding-right: 45px;
    }

    .newsletter {
        padding-left: 45px;
        padding-right: 45px;
    }
}

@media (max-width: 520px) {

    .hero {
        height: 310px;
    }

    .logo {
        width: 225px;
        height: 220px;
    }

    .menu-toggle {
        top: 135px;
        left: 22px;
    }

    .site-nav {
        top: 183px;
        left: 18px;
    }

    .social-bar {
        height: 90px;
        padding: 0 25px;
    }

    .featured {
        padding: 28px 25px 22px;
    }

    .featured-grid {
        grid-template-columns: 140px 1fr;
        gap: 18px;
        margin-top: 25px;
    }

    .book-cover {
        width: 140px;
        height: 217px;
    }

    .featured-copy p {
        font-size: 15px;
    }

    .button {
        width: 150px;
        font-size: 16px;
    }

    .about {
        padding-left: 28px;
        padding-right: 28px;
    }

    .newsletter {
        padding-left: 30px;
        padding-right: 30px;
    }

    .newsletter p {
        font-size: 16px;
    }
}

/* ==========================================
   BOOKS PAGE
   ========================================== */

.books-page {
    padding: 35px 35px 45px;
    background: var(--light-blue);
}

.books-intro {
    max-width: 560px;
    margin: 18px auto 32px;
    text-align: center;
    font-size: 17px;
    line-height: 1.3;
}


/* ==========================================
   BOOK GRID
   ========================================== */

.book-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}


/* ==========================================
   BOOK CARD
   ========================================== */

.book-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--teal);
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
}


/* ==========================================
   BOOK COVER
   ========================================== */

.book-cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--teal);
}

.book-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.book-card:hover .book-cover img {
    transform: scale(1.025);
}


/* ==========================================
   BOOK CARD CONTENT
   ========================================== */

.book-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 18px 18px;
}

.book-card-content h2 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.1;
}

.book-hook {
    flex: 1;
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
    text-align: center;
}


/* ==========================================
   SPICE RATING
   ========================================== */

.spice-rating {
    margin-top: 18px;
    text-align: center;
    font-size: 19px;
    letter-spacing: 1px;
}


/* ==========================================
   BOOKS — MOBILE
   ========================================== */

@media (max-width: 600px) {

    .books-page {
        padding: 30px 25px 40px;
    }

    .book-grid {
        gap: 22px;
    }

    .book-card-content {
        padding: 17px 15px 16px;
    }

    .book-card-content h2 {
        font-size: 22px;
    }

    .book-hook {
        font-size: 15px;
    }

    .spice-rating {
        font-size: 18px;
    }

}


/* ==========================================
   BOOKS — SMALL PHONES
   ========================================== */

@media (max-width: 450px) {

    .book-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .book-card {
        max-width: 360px;
        width: 100%;
        margin: 0 auto;
    }

    .book-card-content h2 {
        font-size: 25px;
    }

    .book-hook {
        font-size: 16px;
    }

}

/* ==========================================
   INDIVIDUAL BOOK PAGE
   ========================================== */

.book-page {
    padding: 40px 35px 50px;
    text-align: center;
}


/* ==========================================
   BOOK COVER
   ========================================== */

.book-page-cover {
    width: min(100%, 330px);
    margin: 0 auto 32px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

.book-page-cover img {
    display: block;
    width: 100%;
    height: auto;
}


/* ==========================================
   BOOK TITLE
   ========================================== */

.book-page > h1 {
    margin-bottom: 12px;
}


/* ==========================================
   STATUS
   ========================================== */

.book-status {
    margin: 0;
    color: var(--teal);
    font-family: var(--display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
}


/* ==========================================
   SPICE RATING
   ========================================== */

.book-spice {
    margin: 15px 0 25px;
    font-size: 23px;
    letter-spacing: 2px;
}


/* ==========================================
   PROGRESS BAR
   ========================================== */

.book-progress {
    max-width: 560px;
    margin: 25px auto 30px;
    text-align: left;
}

.book-progress h3 {
    margin: 0 0 10px;
    font-family: var(--display);
    font-size: 19px;
    letter-spacing: 1.5px;
    text-align: center;
}

.book-progress .progress-bar {
    height: 42px;
}

.book-progress .progress-fill {
    color: var(--white);
    background: linear-gradient(
        90deg,
        var(--teal),
        #3f7481
    );
}


/* ==========================================
   BUTTONS
   ========================================== */

.book-button {
    margin: 25px auto 35px;
}


/* ==========================================
   BLURB
   ========================================== */

.book-blurb {
    max-width: 570px;
    margin: 35px auto 0;
    padding-top: 28px;
    border-top: 2px solid #111;
}

.book-blurb h2,
.book-links h2,
.book-reviews h2,
.book-tropes h2 {
    margin-bottom: 20px;
}

.book-blurb p {
    margin: 0 auto;
    text-align: left;
}


/* ==========================================
   PLATFORM LINKS
   ========================================== */

.book-links {
    max-width: 570px;
    margin: 40px auto 0;
    padding-top: 28px;
    border-top: 2px solid #111;
}

.platform-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.platform-button {
    width: auto;
    min-width: 145px;
    margin: 0;
    padding: 10px 15px;
    font-size: 15px;
    letter-spacing: 1.2px;
}


/* ==========================================
   REVIEWS
   ========================================== */

.book-reviews {
    max-width: 570px;
    margin: 40px auto 0;
    padding-top: 28px;
    border-top: 2px solid #111;
}


/* ==========================================
   TROPES
   ========================================== */

.book-tropes {
    max-width: 570px;
    margin: 40px auto 0;
    padding-top: 28px;
    border-top: 2px solid #111;
}

.book-tropes p {
    margin: 0;
}


/* ==========================================
   BOOK PAGE — MOBILE
   ========================================== */

@media (max-width: 600px) {

    .book-page {
        padding: 30px 28px 40px;
    }

    .book-page-cover {
        width: min(100%, 290px);
        margin-bottom: 28px;
    }

    .book-spice {
        font-size: 21px;
    }

    .book-progress {
        margin-top: 22px;
    }

    .book-progress .progress-bar {
        height: 40px;
    }

    .book-blurb p {
        font-size: 17px;
    }

    .platform-button {
        min-width: 135px;
        font-size: 14px;
    }

}


/* ==========================================
   BOOK PAGE — SMALL PHONES
   ========================================== */

@media (max-width: 450px) {

    .book-page {
        padding-left: 22px;
        padding-right: 22px;
    }

    .book-page-cover {
        width: min(100%, 270px);
    }

    .platform-links {
        flex-direction: column;
        align-items: center;
    }

    .platform-button {
        width: 180px;
    }

}

/* ==========================================
   SAMPLE TEXT
   ========================================== */
.sample-title {
  padding-bottom: 24px;
  padding-top: 24px;
}

.sample-title h1 {
  font-size: 30px;
  font-family: var(--display);
}

.sample-chapter-title {
  padding-bottom: 18px;
  padding-top: 18px;
}

.sample-text {
  font-size: 16px;
  margin-left: 16px;
  margin-right: 16px;
}

/* ==========================================
   COMING SOON
   ========================================== */
.coming-soon h2 {
  font-size: 32px;
  padding-bottom: 40px;
  padding-top: 20px;
}

/* ==========================================
   ARC CAMPAIGN POP-UP
   ========================================== */

.arc-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  visibility: hidden;
  opacity: 0;

  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.arc-popup.show {
  visibility: visible;
  opacity: 1;
}


/* Dark background behind the pop-up */

.arc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}


/* Main pop-up box */

.arc-modal {
  position: relative;
  z-index: 1;

  width: min(90%, 700px);
  max-height: 90vh;

  display: flex;
  align-items: center;
  gap: 32px;

  padding: 40px;

  background: #ffffff;
  border-radius: 4px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);

  overflow-y: auto;

  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.arc-popup.show .arc-modal {
  transform: translateY(0);
}


/* Book cover */

.arc-cover {
  width: 220px;
  height: auto;
  flex-shrink: 0;

  display: block;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}


/* Text */

.arc-content {
  text-align: left;
}

.arc-content h2 {
  margin: 0 0 18px;

  font-family: var(--display);
  font-size: 28px;
  line-height: 1.1;
}

.arc-hook {
  margin: 0 0 18px;

  font-size: 18px;
  line-height: 1.5;
}

.arc-offer {
  margin: 0 0 25px;

  font-size: 16px;
  line-height: 1.6;
}


/* Button */

.arc-button {
  display: inline-block;

  padding: 13px 24px;

  background: #5792a0;
  color: #ffffff;

  font-family: var(--display);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: none;

  border-radius: 2px;

  transition: background 0.2s ease, transform 0.2s ease;
}

.arc-button:hover {
  background: #467985;
  transform: translateY(-2px);
}


/* Close button */

.arc-close {
  position: absolute;
  top: 10px;
  right: 14px;

  z-index: 2;

  width: 36px;
  height: 36px;

  padding: 0;

  border: none;
  background: transparent;

  color: #222222;

  font-size: 30px;
  line-height: 1;

  cursor: pointer;

  transition: opacity 0.2s ease;
}

.arc-close:hover {
  opacity: 0.6;
}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 650px) {

  .arc-modal {
    width: 88%;
    max-height: 88vh;

    flex-direction: column;

    gap: 20px;

    padding: 35px 25px 30px;

    text-align: center;
  }

  .arc-cover {
    width: 150px;
  }

  .arc-content {
    text-align: center;
  }

  .arc-content h2 {
    font-size: 24px;
  }

  .arc-hook {
    font-size: 16px;
  }

  .arc-offer {
    font-size: 15px;
  }

  .arc-button {
    width: 100%;
    box-sizing: border-box;
  }

}