/* ============================================================
   DAISY DENVER — Complete Unified Stylesheet
   Fonts: Barlow Condensed (headings) + DM Sans (body)
   ============================================================ */

/* NOTE: Fonts are loaded via <link> in HTML <head> (not @import)
   to prevent Flash of Unstyled Content (FOUC). */

/* --- Variables & Reset --- */
:root {
  --pink: #f60079;
  --yellow: #ffda00;
  --teal: #05adbe;
  --ink: #14202c;
  --cream: #fffefa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: white;
  font-family: 'DM Sans', Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}


/* ===========================================================
   UNIFIED HEADING SYSTEM
   All headings: Barlow Condensed, weight 900, fluid clamp().
   =========================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.05;
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(48px, 7vw, 100px); }
h2 { font-size: clamp(30px, 4.5vw, 44px); }
h3 { font-size: clamp(22px, 3vw, 30px); }


/* ===========================================================
   HEADER & NAVIGATION
   =========================================================== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 65px);
  background: #fff;
  position: relative;
  z-index: 5;
  border-bottom: 1px solid #f5f1ef;
}

.brand {
  font-family: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  font-size: clamp(26px, 3.2vw, 49px);
  font-weight: 900;
  letter-spacing: -.8px;
  color: var(--pink);
  white-space: nowrap;
  line-height: 1;
}

.brand-heart {
  font-family: sans-serif;
  font-weight: 400;
  font-size: .83em;
  display: inline-block;
  transform: rotate(15deg);
}

.nav {
  display: flex;
  gap: clamp(10px, 1.6vw, 25px);
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 10px 1px;
  border-bottom: 3px solid transparent;
}

.nav a:hover,
.nav a.active { border-color: var(--pink); }

.socials {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 20px;
}

.socials a:hover { color: var(--pink); }

.menu-toggle { display: none; }


/* ===========================================================
   FOOTER
   =========================================================== */

.site-footer {
  background: var(--pink);
  color: white;
  text-align: center;
  padding: 14px 20px;
  margin-top: auto;
}

.site-footer .small {
  margin: 0;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .02em;
}

.site-footer a { color: white; text-decoration: none; }
.footer-tagline { font-family: Georgia, serif; font-style: italic; font-weight: 400; }


/* ===========================================================
   HOMEPAGE HERO — Book cover is the star
   =========================================================== */

.hero {
  position: relative;
  overflow: hidden;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px clamp(25px, 6vw, 90px) 160px;
  background: #fff;
}

.hero-inner {
  max-width: 700px;
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 2;
}

.hero-book-main .book-3d {
  width: min(100%, 380px);
}

.hero-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.out-now {
  font-family: 'DM Sans', Arial, sans-serif;
  font-style: normal;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--pink);
  line-height: 1;
  transform: rotate(-5deg);
  white-space: nowrap;
  position: relative;
}

.out-now span { font-size: 32px; }
.out-now .hand-arrow {
  display: block;
  margin-top: 4px;
  font-size: 46px;
  font-style: normal;
  transform: rotate(17deg);
}

.hero-tiny {
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
  font-size: 19px;
  line-height: 1.45;
}

/* Original SVG mountain graphic */
.hero-mountains {
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  z-index: 1;
  pointer-events: none;
  background-image: url('assets/mountain-panorama.svg');
  background-position: center bottom;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}


/* ===========================================================
   BOOK 3D COMPONENT (shared: homepage + books page)
   =========================================================== */

.book-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.book-3d {
  position: relative;
  display: block;
  width: min(100%, 345px);
  filter: drop-shadow(18px 24px 12px #1112);
  transform: rotateY(-9deg);
  transition: transform .2s;
}

.book-3d:hover { transform: rotateY(-3deg) translateY(-4px); }

.book-3d img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  box-shadow: -8px 5px 13px #0002;
}

.book-3d:before {
  content: "";
  position: absolute;
  right: -18px;
  top: 9px;
  width: 21px;
  height: calc(100% - 9px);
  background: repeating-linear-gradient(90deg, #e5dfd5 0 2px, #faf5eb 2px 4px);
  transform: skewY(12deg);
  border-right: 2px solid #d6cfc5;
}

.book-3d:after {
  content: "";
  position: absolute;
  top: -12px;
  left: 8px;
  right: -13px;
  height: 15px;
  background: repeating-linear-gradient(#fff7ed 0 2px, #ded7d0 2px 3px);
  transform: skewX(58deg);
}


/* ===========================================================
   BUTTONS
   =========================================================== */

.btn {
  display: inline-block;
  background: var(--pink);
  color: white;
  font-weight: 800;
  font-size: 14px;
  padding: 17px 33px;
  border-radius: 8px;
  transition: transform .2s, box-shadow .2s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px #e6007350;
}

.btn-yellow {
  background: var(--yellow);
  color: #101010;
  border-radius: 20px;
  transform: rotate(-3deg);
  white-space: nowrap;
}

.btn-yellow:hover { transform: rotate(-3deg) translateY(-3px); }


/* ===========================================================
   INTERIOR PAGE HERO
   =========================================================== */

.page-hero {
  background: #fff;
  overflow: visible;
  padding: 48px 24px 36px;
  text-align: center;
  position: relative;
  flex: 0 0 auto;
}

/* Base icon dimensions for all pages */
.page-hero .page-icon,
.page-hero .about-flower-icon,
.page-hero svg.page-icon {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto 20px;
  max-width: 100%;
  background: transparent;
  mix-blend-mode: normal;
}

/* Visual weight correction for extras music icon */
.page-hero .page-icon[src*="extras"] {
  width: 124px;
  height: 124px;
  margin-bottom: 14px;
}

.page-hero h1 {
  font-family: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  font-weight: 900;
  color: var(--pink);
  font-size: clamp(48px, 7vw, 100px);
  line-height: .9;
  margin: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.page-hero h1.heading-tight {
  font-size: clamp(40px, 6vw, 85px);
}

.page-hero p {
  font-size: 18px;
  line-height: 1.55;
  max-width: 650px;
  margin: 16px auto 0;
}


/* ===========================================================
   CONTENT SECTIONS — Flex auto-centered to prevent tablet gaps
   =========================================================== */

.content {
  max-width: 1080px;
  width: 100%;
  margin: auto;
  padding: 40px 25px 60px;
  font-size: 17px;
  line-height: 1.7;
}

.content h2 {
  font-family: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.1;
  color: var(--ink);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}

.two-col .book-3d { max-width: 330px; margin: auto; }


/* ===========================================================
   BOOKS PAGE
   =========================================================== */

.books-content {
  max-width: 1080px;
  width: 100%;
  margin: auto;
  padding: 36px 24px 60px;
}

.book-feature {
  display: grid;
  grid-template-columns: minmax(245px, 315px) minmax(270px, 430px);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
  max-width: 870px;
  margin: 0 auto 32px;
}

.book-feature .book-3d { width: min(100%, 285px); }

.book-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  padding-top: 36px;
}

.book-action h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.03;
  margin: 0;
}

.book-action p {
  font-size: 19px;
  margin: 0 0 8px;
  max-width: 390px;
}

.book-full-description {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
}

.book-full-description p { margin: 0 0 25px; }
.book-full-description .book-lead { text-wrap: balance; }
.book-lead { font-weight: 700; }


/* ===========================================================
   NEWSLETTER PAGE
   =========================================================== */

.newsletter-panel {
  background: #fff7f9;
  border-radius: 18px;
  max-width: 690px;
  padding: 32px 38px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-panel p { margin: 0 0 20px; }
.newsletter-panel p:last-child { margin: 0; }
.newsletter-panel .coming-soon { font-size: 16px; }


/* ===========================================================
   BOOK CLUBS PAGE
   =========================================================== */

.bookclub-intro {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.bookclub-intro h2 {
  margin-bottom: 16px;
}

.bookclub-intro p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 24px;
}

.guide-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.guide-note {
  font-size: 14px;
  color: var(--pink);
  font-weight: 600;
}


/* ===========================================================
   ABOUT PAGE
   =========================================================== */

.author-portrait {
  width: min(100%, 340px);
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  margin: auto;
  box-shadow: 0 14px 32px rgba(20, 32, 44, 0.14);
  background: #fff4e7;
}

.author-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}


/* ===========================================================
   CONTACT PAGE
   =========================================================== */

.contact-content { text-align: center; max-width: 700px; margin: 0 auto; }

.contact-email {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  margin: 0;
}

.contact-email a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .2s;
}

.contact-email a:hover {
  color: var(--teal);
}


/* ===========================================================
   EXTRAS PAGE
   =========================================================== */

.extras-content {
  max-width: 900px;
  width: 100%;
  margin: auto;
  padding: 24px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.extras-card {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border-radius: 30px;
  padding: 20px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.extras-card h2 {
  font-family: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.05;
  margin: 0 0 18px;
  color: var(--ink);
}

.cassette-link {
  display: block;
  max-width: 480px;
  width: 100%;
  margin: 0 auto 16px;
  transition: transform .18s ease, filter .18s ease;
}

.cassette-link:hover {
  transform: translateY(-4px) rotate(-1deg);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .12));
}

.cassette-link img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.extras-copy {
  max-width: 520px;
  margin: 12px auto 8px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  font-weight: 600;
  text-align: center;
}

.extras-copy em { font-style: italic; }


/* ===========================================================
   UTILITY / SHARED CLASSES
   =========================================================== */

.coming-soon { color: var(--pink); font-weight: 800; }
.placeholder { background: #fff5d5; border: 2px dashed #e3c87a; border-radius: 12px; padding: 35px; text-align: center; color: #80670f; }
.note { background: #e9fbfd; border-left: 5px solid var(--teal); padding: 20px; margin: 30px 0; }
.link-pill { display: inline-block; background: var(--yellow); border-radius: 30px; padding: 13px 22px; font-weight: 800; }
.social-icon { height: 22px; width: 22px; vertical-align: middle; }

.fun-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fact { background: #ffedf4; padding: 25px; border-radius: 12px; min-height: 85px; }
.fact:nth-child(2) { background: #f9f2b4; }
.fact:nth-child(3) { background: #e5fafc; }

.form-demo { background: #fff7f9; padding: 30px; border-radius: 15px; max-width: 600px; margin: 25px auto; }
.form-demo label { display: block; font-weight: 700; margin-top: 14px; }
.form-demo input, .form-demo textarea { display: block; width: 100%; padding: 14px; border: 1px solid #d7d7d7; border-radius: 6px; margin-top: 6px; }
.form-demo button { margin-top: 18px; border: 0; cursor: pointer; }
.form-demo small { display: block; margin-top: 14px; color: #555; }

.features {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 20px 52px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  text-align: center;
}

.feature { padding: 8px 22px 0; border-right: 1px solid #e7e1df; }
.feature:last-child { border: 0; }

.feature-icon { height: 92px; display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; }
.feature-icon svg { width: 84px; height: 84px; fill: none; stroke: var(--pink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.feature:nth-child(2) .feature-icon svg,
.feature:nth-child(3) .feature-icon svg { stroke: var(--teal); }
.feature:nth-child(4) .feature-icon svg { stroke: var(--yellow); }

.feature h2 {
  font-family: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  font-size: clamp(24px, 3vw, 31px);
  letter-spacing: .02em;
  margin: 8px 0 12px;
}

.feature p { font-size: 15px; line-height: 1.5; min-height: 70px; }
.feature a { color: var(--pink); font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.feature a:hover { text-decoration: underline; }


/* ===========================================================
   RESPONSIVE — TABLET (max-width: 1000px)
   Eliminates awkward white space gaps above footer
   =========================================================== */

@media (max-width: 1000px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 24px;
    padding: 16px 28px;
  }

  .hero {
    padding: 28px 28px 130px;
  }
  .hero-inner { gap: 20px; }
  .hero-book-main .book-3d { width: min(100%, 310px); }
  .hero-mountains { height: 130px; }

  .page-hero { padding: 36px 24px 28px; }

  .page-hero .page-icon,
  .page-hero .about-flower-icon,
  .page-hero svg.page-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 14px;
  }

  .page-hero .page-icon[src*="extras"] {
    width: 108px;
    height: 108px;
    margin-bottom: 10px;
  }

  .page-hero h1 { font-size: clamp(42px, 6vw, 76px); }
  .page-hero h1.heading-tight { font-size: clamp(34px, 5vw, 66px); }

  .content {
    margin: auto;
    padding: 28px 28px 44px;
  }

  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
  }

  .books-content {
    margin: auto;
    padding: 24px 28px 44px;
  }

  .book-feature {
    grid-template-columns: minmax(210px, 270px) minmax(230px, 1fr);
    gap: 24px;
    max-width: 760px;
    margin: 0 auto 24px;
  }

  .book-feature .book-3d { width: min(100%, 250px); }

  .book-action {
    padding-top: 8px;
    gap: 12px;
  }

  .book-action h2 { font-size: clamp(28px, 3.8vw, 38px); }
  .book-action p { font-size: 16px; }

  .book-full-description {
    max-width: 700px;
    font-size: 16.5px;
    line-height: 1.65;
  }

  .book-full-description p { margin: 0 0 16px; }

  .author-portrait { width: min(100%, 290px); }

  .newsletter-panel {
    max-width: 580px;
    padding: 24px 28px;
  }

  .bookclub-intro { max-width: 580px; }
  .bookclub-intro p { margin: 0 0 16px; }

  .contact-content { max-width: 580px; }

  .extras-content {
    margin: auto;
    padding: 16px 28px 44px;
  }

  .extras-card {
    max-width: 580px;
    padding: 16px 20px 28px;
  }

  .cassette-link { max-width: 380px; }

  .features {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 24px;
    padding: 28px 18px 32px;
  }
  .feature { padding: 6px 12px 0; }
  .feature:nth-child(3) { border-right: 0; }
  .feature p { min-height: 0; }
}


/* ===========================================================
   RESPONSIVE — LARGE PHONE / SMALL TABLET (max-width: 768px)
   =========================================================== */

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .two-col .author-portrait { margin: 0 auto; }

  .book-feature {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .book-feature .book-3d {
    width: min(70%, 250px);
    margin: 0 auto;
  }

  .book-feature .book-action {
    padding-top: 0;
    align-items: center;
  }

  .book-action p { max-width: 100%; }

  .features {
    grid-template-columns: 1fr 1fr;
    gap: 16px 0;
  }

  .feature:nth-child(2),
  .feature:nth-child(4) { border-right: 0; }

  .feature:nth-child(3) { border-right: 1px solid #e7e1df; }

  .feature:last-child { grid-column: 1 / -1; }
}


/* ===========================================================
   RESPONSIVE — MOBILE (max-width: 650px)
   =========================================================== */

@media (max-width: 650px) {

  /* Header & Nav */
  .site-header { justify-content: space-between; padding: 14px 18px; }
  .brand { font-size: 34px; }

  .menu-toggle {
    display: block;
    border: 0;
    background: none;
    color: var(--ink);
    font-size: 23px;
    font-weight: 800;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
  }

  .nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .nav.open { display: flex; }

  .nav a {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .socials { display: none; }

  /* Headings — mobile */
  .page-hero h1 { font-size: clamp(36px, 10vw, 68px); }
  .page-hero h1.heading-tight { font-size: clamp(30px, 8.5vw, 56px); }
  .content h2 { font-size: clamp(24px, 6.5vw, 34px); }

  /* Homepage Hero */
  .hero { padding: 24px 16px 95px; min-height: 0; }
  .hero-inner { gap: 18px; }
  .hero-book-main .book-3d { width: min(72%, 260px); }
  .hero-cta { gap: 12px; }
  .out-now { font-size: 26px; }
  .out-now .hand-arrow { font-size: 28px; margin-top: 0; }
  .hero-tiny { max-width: 280px; font-size: 16px; }
  .hero-mountains { height: 95px; background-size: 100% 100%; }

  /* Page Hero */
  .page-hero { padding: 32px 16px 24px; }

  .page-hero .page-icon,
  .page-hero .about-flower-icon,
  .page-hero svg.page-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 12px;
  }

  .page-hero .page-icon[src*="extras"] {
    width: 96px;
    height: 96px;
    margin-bottom: 10px;
  }

  /* Content */
  .content { margin: auto; padding: 20px 16px 36px; }
  .fun-facts { grid-template-columns: 1fr; }

  /* Books */
  .books-content { margin: auto; padding: 20px 16px 36px; }
  .book-feature .book-3d { width: min(68%, 235px); }
  .book-action h2 { font-size: clamp(28px, 7.5vw, 38px); }
  .book-full-description { font-size: 15.5px; }

  /* Newsletter */
  .newsletter-panel { padding: 20px 18px; }

  /* Book Clubs */
  .bookclub-intro p { font-size: 16px; }

  /* About */
  .author-portrait { width: min(78%, 260px); }

  /* Contact */
  .contact-email { font-size: clamp(18px, 5vw, 24px); }

  /* Extras */
  .extras-content { margin: auto; padding: 12px 16px 36px; }
  .extras-card { padding: 16px 14px 24px; border-radius: 20px; }
  .extras-card h2 { font-size: clamp(24px, 6.5vw, 34px); }
  .cassette-link { max-width: 300px; }
  .extras-copy { font-size: 16px; }

  /* Features */
  .features { grid-template-columns: 1fr 1fr; gap: 16px 0; padding: 24px 10px 28px; }
  .feature { padding: 8px; }
  .feature:nth-child(2), .feature:nth-child(4) { border: 0; }
  .feature:nth-child(3) { border-right: 1px solid #eee; }
  .feature:last-child { grid-column: 1 / -1; }
  .feature h2 { font-size: clamp(20px, 5.5vw, 24px); }
  .feature p { font-size: 13px; min-height: 0; }
  .feature-icon { height: 64px; }
  .feature-icon svg { height: 58px; width: 58px; }

  /* Footer */
  .site-footer { font-size: 14px; padding: 12px 16px; }
}


/* ===========================================================
   RESPONSIVE — EXTRA SMALL (max-width: 380px)
   =========================================================== */

@media (max-width: 380px) {
  .hero-book-main .book-3d { width: min(65%, 240px); }
  .page-hero h1 { font-size: clamp(32px, 10vw, 50px); }
  .page-hero h1.heading-tight { font-size: clamp(28px, 8.5vw, 44px); }
  .content h2 { font-size: clamp(22px, 6.5vw, 30px); }
  .brand { font-size: 28px; }
  .btn { padding: 14px 22px; font-size: 13px; }
  .hero-mountains { height: 80px; }

  .page-hero { padding: 28px 16px 20px; }

  .page-hero .page-icon,
  .page-hero .about-flower-icon,
  .page-hero svg.page-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 10px;
  }

  .page-hero .page-icon[src*="extras"] {
    width: 88px;
    height: 88px;
    margin-bottom: 8px;
  }
}