/* ==========================================================================
   SHAWN LEMISON — responsive layer
   Breakpoints designed for: 1920 / 1440 / 1366 / 1024 / 768 / 430 / 390 / 375
   Each tier is composed deliberately, not shrunk.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Ultra-wide — 1920px and up: more air, larger stage, capped measure
   -------------------------------------------------------------------------- */
@media (min-width: 1720px) {
  :root {
    --shell: 1400px;
    --sec-y: clamp(4.5rem, 3.4vw, 7.5rem);
    --hdr-h: 92px;
  }
  .hero__book { width: min(100%, 480px); }
  .book__cover { width: min(100%, 450px); }
  .hero__sub { max-width: 44ch; }
}

/* --------------------------------------------------------------------------
   1440px — the reference desktop composition (no overrides needed)
   1366px laptops — trim vertical rhythm so the hero still fits one screen
   -------------------------------------------------------------------------- */
@media (max-width: 1440px) and (min-width: 1200px) {
  :root { --sec-y: clamp(3.25rem, 2rem + 3.6vw, 5.75rem); }
}

@media (max-width: 1366px) and (min-width: 1200px) {
  :root { --hdr-h: 78px; }
  .hero { padding-top: calc(var(--hdr-h) + 3rem); }
  .hero__book { width: min(100%, 380px); }
  .book__cover { width: min(100%, 360px); }
  .hero__sub { margin-bottom: 2rem; }
}

/* --------------------------------------------------------------------------
   Below 1200px — nav gets tight; drop the header CTA before the nav breaks
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .header-cta { display: none; }
  .nav__list { gap: 1.1rem; }
  .nav__link { font-size: 0.73rem; letter-spacing: 0.1em; }
}

/* --------------------------------------------------------------------------
   1024px — tablet landscape / small laptop.
   Hero becomes a stacked editorial composition; book sits beside the copy.
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --hdr-h: 72px;
    --sec-y: clamp(3rem, 2rem + 3.2vw, 4.75rem);
  }

  /* Custom mobile nav takes over from here down */
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header__actions { margin-left: auto; }

  .hero { min-height: auto; }
  .hero__shell {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(1.5rem, 3vw, 2.75rem);
  }
  .hero__book { width: min(100%, 320px); }
  .hero__lede { max-width: 26ch; }
  .hero__sub { max-width: 42ch; }

  .about__grid,
  .book__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 3.5rem);
  }
  /* Portrait leads, copy follows */
  .about__portrait { max-width: 520px; }
  .about__pullquote { right: auto; left: 60%; bottom: -1.25rem; }

  /* Book: cover on top, centred stage */
  .book__stage { order: -1; }
  .book__cover { width: min(100%, 320px); }
  .book__glow { left: 50%; top: 30%; }

  .journal__grid { grid-template-columns: minmax(0, 1fr); }
  .journal__side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
  }
  .post--side {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    border-bottom: 0;
    padding-bottom: 0;
  }
  .post--side .post__media { aspect-ratio: 16 / 10; }

  .site-footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 2.5rem;
  }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   768px — tablet portrait.
   Hero stacks fully: copy first, book as a centred, framed object.
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root { --sec-y: clamp(2.75rem, 1.8rem + 3vw, 4.25rem); }

  .hero {
    padding-top: calc(var(--hdr-h) + 2.5rem);
    padding-bottom: 5.5rem;
    text-align: left;
  }
  .hero__shell {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 3.5rem);
  }
  .hero__copy { order: 1; }
  .hero__art { order: 2; }
  .hero__book { width: min(62vw, 300px); }
  .hero__lede, .hero__sub { max-width: 40ch; }

  .scroll-cue { display: none; }

  .about__pullquote {
    position: static;
    max-width: none;
    margin-top: 1.25rem;
    box-shadow: none;
  }

  .journey__list { padding-left: 2.5rem; }
  .journey__head { margin-bottom: 2.75rem; }

  .signup__fields { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   767px and below — phones.
   Composition is re-thought: single column, larger touch targets,
   full-bleed media, tighter type ladder.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  :root {
    --hdr-h: 66px;
    --gut: 1.35rem;
    --sec-y: 3rem;
    --fs-h1: clamp(2.6rem, 1.4rem + 7vw, 3.6rem);
    --fs-h2: clamp(1.85rem, 1.2rem + 4.2vw, 2.6rem);
  }

  body { line-height: 1.62; }

  .brand__mark { width: 36px; height: 36px; font-size: 0.74rem; }
  .brand__name { font-size: 0.98rem; }
  .brand__role { font-size: 0.55rem; letter-spacing: 0.26em; }

  /* Buttons go full width in stacked action groups */
  .hero__actions,
  .book__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
  }
  .hero__actions .btn,
  .book__actions .btn { justify-content: center; width: 100%; }
  .btn { padding: 1.02rem 1.5rem; }

  .hero { padding-bottom: 4.5rem; }
  .hero__book { width: min(66vw, 260px); }
  .hero__glow--teal { width: 120vw; height: 120vw; top: -10%; right: -30%; }
  .hero__glow--amber { width: 100vw; height: 100vw; }

  .purpose__quote { font-size: clamp(1.7rem, 1.1rem + 4.4vw, 2.4rem); }
  .purpose__sig img { width: 155px; }

  .about { padding-top: calc(var(--sec-y) + 1rem); }
  .about__portrait { max-width: none; }
  .about__pullquote { padding: 1.25rem 1.35rem; }
  .about__pullquote blockquote { font-size: 1.08rem; }
  .about__body p { font-size: 1rem; }

  .book__cover { width: min(70vw, 270px); }
  .book__editions { gap: 0.6rem; margin: 1.6rem 0; }
  .book__edition a { padding: 0.68rem 1rem; }

  .trailer__facade { border-radius: 2px; }
  .trailer__cta-meta { display: none; }
  .modal { padding: 1rem; }
  .modal__close { top: -3rem; right: 0; }

  .journey__list { padding-left: 2rem; }
  .journey__rail { left: 0.3rem; }
  .journey__dot { left: -2rem; width: 9px; height: 9px; }
  .journey__stage { padding-bottom: 2.75rem; }
  .journey__stage-inner { opacity: 0.72; }
  .journey__num { font-size: clamp(2.2rem, 1.4rem + 5vw, 3rem); }

  .reviews__ghost { font-size: clamp(4.5rem, 2rem + 18vw, 8rem); }
  .reviews__mark { font-size: 3.25rem; }
  .review__quote { font-size: clamp(1.22rem, 0.95rem + 2vw, 1.6rem); }
  .reviews__nav { gap: 1.1rem; margin-top: 2rem; }

  .journal__side { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .post--lead .post__media { aspect-ratio: 4 / 3; }
  .post--lead .post__body { padding-top: 1.25rem; }
  .post--side { gap: 0.9rem; }
  .post--side .post__excerpt { -webkit-line-clamp: 3; }

  .signup__lede { margin-bottom: 2rem; }
  .signup__form { text-align: left; }

  .site-footer { padding-top: 3rem; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); row-gap: 2.25rem; }
  .site-footer__brand { grid-column: auto; }
  .site-footer__positioning { max-width: none; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  .to-top { width: 42px; height: 42px; }
}

/* --------------------------------------------------------------------------
   430px — large phones (iPhone Pro Max / Plus)
   -------------------------------------------------------------------------- */
@media (max-width: 430px) {
  :root { --gut: 1.25rem; }

  .mobile-nav__label { font-size: 1.75rem; }
  .mobile-nav__link { padding: 0.95rem 0; }

  .hero__book { width: min(72vw, 240px); }
  .book__cover { width: min(76vw, 250px); }

  .book__editions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book__edition a { justify-content: space-between; }
}

/* --------------------------------------------------------------------------
   390px / 375px — standard and compact phones.
   Reduce the display ladder one more step so headlines never crowd.
   -------------------------------------------------------------------------- */
@media (max-width: 400px) {
  :root {
    --gut: 1.15rem;
    --fs-h1: 2.5rem;
    --fs-h2: 1.78rem;
    --fs-eyebrow: 0.67rem;
  }


  .brand__role { display: none; }

  .hero__title { letter-spacing: -0.028em; }
  .hero__lede { font-size: 1.1rem; }
  .hero__book { width: min(74vw, 218px); }

  .purpose__quote { font-size: 1.62rem; }

  .mobile-nav__label { font-size: 1.6rem; }
  .mobile-nav__inner { padding-top: calc(var(--hdr-h) + 1.75rem); }

  .book__editions { grid-template-columns: minmax(0, 1fr); }
  .book__cover { width: min(80vw, 230px); }

  .journey__list { padding-left: 1.75rem; }
  .journey__dot { left: -1.75rem; }

  .review__quote { font-size: 1.16rem; }
  .reviews__arrow { width: 40px; height: 40px; }

  .btn { font-size: 0.75rem; letter-spacing: 0.13em; padding: 0.98rem 1.25rem; }
}

/* --------------------------------------------------------------------------
   Short landscape phones — keep the hero from overflowing
   -------------------------------------------------------------------------- */
@media (max-height: 560px) and (orientation: landscape) and (max-width: 1024px) {
  .hero { min-height: auto; padding-block: calc(var(--hdr-h) + 2rem) 3rem; }
  .hero__shell { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
  .hero__art { order: 0; }
  .hero__book { width: min(40vw, 200px); }
  .scroll-cue { display: none; }
  .mobile-nav__inner { padding-top: calc(var(--hdr-h) + 1.25rem); }
  .mobile-nav__link { padding: 0.6rem 0; }
  .mobile-nav__label { font-size: 1.35rem; }
}

/* --------------------------------------------------------------------------
   Coarse pointers — no hover-dependent affordances, bigger targets
   -------------------------------------------------------------------------- */
@media (hover: none) {
  .btn::before { display: none; }
  .btn--ghost { border-color: rgba(242, 227, 196, 0.45); }
  .post__link:hover .post__media img { transform: none; }
  .trailer__facade:hover .trailer__poster { transform: none; filter: none; }
  .journey__stage-inner { opacity: 0.78; }
  .link-underline::after { transform: scaleX(1); }
}


/* ==========================================================================
   INNER PAGES — responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .shop__grid { grid-template-columns: minmax(0, 1fr); }
  .reader__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .page-hero { padding-top: calc(var(--hdr-h) + 2.5rem); }
  .reader__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .page-hero {
    padding-top: calc(var(--hdr-h) + 2rem);
    padding-bottom: 2.5rem;
  }
  .page-hero__lede { font-size: 1.08rem; }
  .crumbs { margin-bottom: 1.15rem; }
  .crumbs li { font-size: 0.63rem; letter-spacing: 0.16em; }

  .reader__grid { grid-template-columns: minmax(0, 1fr); }
  .reader__card { padding: 1.35rem; }

  /* Product cards stack: cover on top, details below */
  .product {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.35rem;
    text-align: center;
  }
  .product__media { max-width: 190px; margin-inline: auto; }
  .product__price { font-size: 1.5rem; }

  .quote { padding: 1.5rem 1.35rem; }
  .quote__mark { font-size: 2.5rem; }

  .contact__form-wrap { padding: 1.35rem; }
  .cform__row { grid-template-columns: minmax(0, 1fr); gap: 0; }

  .cta-band__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
  .cta-band__actions .btn { width: 100%; justify-content: center; }

  .contact__sig img { width: 150px; }
  .help-band__body { font-size: 0.9rem; }
}

@media (max-width: 400px) {
  .page-hero__title { letter-spacing: -0.024em; }
  .product__media { max-width: 165px; }
  .quote__text { font-size: 1.1rem; }
}
/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .mobile-nav, .to-top, .scroll-cue,
  .modal, .trailer__facade, .signup__form { display: none !important; }

  body { background: #fff; color: #000; }
  .hero, .purpose, .book, .trailer, .journey, .signup, .site-footer {
    background: #fff !important; color: #000 !important; padding: 1.5rem 0 !important;
  }
  .hero__title, .section-title, .purpose__quote,
  .journey__stage-title, .signup__title { color: #000 !important; }
  .hero__atmos, .book__glow, .signup__glow,
  .journey__wash, .purpose__beam, .reviews__ghost { display: none !important; }
  .js [data-reveal], .js [data-reveal] > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .review { opacity: 1 !important; visibility: visible !important; position: static; }
}
