/* ============================================================
   Let Us Play 🙏 — The Play Revolution
   Palette drawn from the Mojo sunset photo: dusk peach, coral,
   warm gold, deep twilight.
   ============================================================ */

:root {
  /* San Diego sunset over the Pacific: ocean blues + warm sunset gold/amber */
  --ink:        #16252e;   /* deep blue-charcoal text     */
  --ink-soft:   #46565f;   /* secondary text              */
  --paper:      #f6f3ec;   /* warm sand background        */
  --paper-2:    #e9f0f2;   /* cool sea-mist alt section   */
  --ocean-deep: #155f9e;   /* deeper Pacific blue (hover)  */
  --ocean:      #1c87cf;   /* lively Pacific blue (CTA)    */
  --sky:        #58aee0;   /* bright sky blue              */
  --coral:      #e2913f;   /* sunset amber (warm accent)  */
  --coral-dk:   #c5742a;   /* deeper sunset amber         */
  --gold:       #f0ad4f;   /* horizon gold                */
  --dusk:       #3a4f7a;   /* twilight indigo             */
  --line:       #d9e1e3;
  --shadow:     0 18px 50px -20px rgba(20, 58, 82, .38);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 720px; }

.section { padding: clamp(64px, 11vw, 140px) 0; }
.section--about  { background: var(--paper); }
.section--inside { background: var(--paper-2); }
.section--chapter{ background: var(--paper); }
.section--buy {
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean) 45%, var(--coral) 100%);
  color: #fff;
  text-align: center;
}
.section--author { background: var(--paper-2); }
.section--email  { background: var(--paper); text-align: center; }

.section__eyebrow {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--coral-dk);
  margin-bottom: .6em;
}
.section__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.section__sub { color: var(--ink-soft); font-size: 1.1rem; margin-top: .4em; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 48px);
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.nav.is-scrolled {
  background: rgba(251, 246, 239, .9);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav__brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.01em;
  transition: color .35s ease;
}
.nav.is-scrolled .nav__brand { color: var(--ink); }
.nav__pray { font-size: .95em; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav__links a {
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255,255,255,.92);
  transition: color .25s ease, opacity .25s ease;
}
.nav.is-scrolled .nav__links a { color: var(--ink-soft); }
.nav__links a:hover { color: var(--gold); }
.nav__cta {
  background: var(--ocean);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav__cta:hover { background: var(--ocean-deep); }
/* hide secondary links on small screens, keep brand + CTA */
.nav__links a:not(.nav__cta) { display: inline; }
@media (max-width: 680px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url("assets/hero.jpg") center 72% / cover no-repeat;
  transform: scale(1.08);
  will-change: transform;
  z-index: -2;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(13,46,72,.5) 0%, rgba(20,70,105,.12) 38%, rgba(70,45,30,.5) 100%);
}
.hero__inner { max-width: 760px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3rem, 11vw, 6.5rem);
  line-height: .98;
  letter-spacing: -.02em;
  text-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.hero__pray { display: inline-block; }
.hero__subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  margin-top: .25em;
  opacity: .95;
  text-shadow: 0 2px 18px rgba(0,0,0,.4);
}
.hero__epigraph {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  margin: 1.6em auto .2em;
  max-width: 38ch;
  color: #ffeede;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.hero__tagline {
  font-size: clamp(1rem, 2vw, 1.18rem);
  max-width: 46ch;
  margin: 1.4em auto 2.2em;
  color: rgba(255,255,255,.92);
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero__buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 14px;
  display: block;
}
.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: #fff;
  border-radius: 2px;
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translateY(0); }
  40%  { opacity: 1; }
  80%  { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* ---------- Hero: phones = poster (title over sky, body in a blended block) ---------- */
@media (max-width: 680px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;       /* full-width photo + body block */
    position: relative;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }
  /* full photo, uncropped — the dogs stay fully visible */
  .hero__bg {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 2112 / 2620;
    background-image: url("assets/hero-full.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: none;
    z-index: 0;
    flex: none;
    order: 1;
  }
  /* soft top scrim so the nav + title stay legible over the sky */
  .hero__scrim {
    inset: 0 0 auto 0;
    height: 46%;
    z-index: 1;
    background: linear-gradient(to bottom,
      rgba(10,28,46,.6) 0%, rgba(10,28,46,.22) 45%, rgba(10,28,46,0) 100%);
    order: 0;
  }
  .hero__inner {
    display: contents;          /* let head + body place themselves */
  }
  /* title + subtitle overlaid on the sky at the very top */
  .hero__head {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 2;
    padding: 82px 22px 0;
  }
  /* body (pitch + buttons) sits in a block below the photo, blended from
     the photo's bottom sand tone into dusk so it reads as one poster */
  .hero__body {
    order: 2;
    z-index: 1;
    padding: 26px 22px 46px;
    background: linear-gradient(to bottom, #4d4c4a 0%, #403e48 45%, #322f3b 100%);
  }
  .hero__title    { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .hero__subtitle { font-size: clamp(1.1rem, 4.8vw, 1.5rem); }
  .hero__epigraph { margin: 0 auto .2em; }
  .hero__tagline  { margin: .8em auto 1.4em; }
  .hero__scroll   { display: none; }
}




/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease;
}
.btn--primary {
  background: var(--ocean);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(28, 135, 207, .9);
}
.btn--primary:hover { background: var(--ocean-deep); transform: translateY(-2px); }
.btn--ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.7);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn--big { padding: 18px 44px; font-size: 1.12rem; margin-top: 12px; }

/* ghost buttons on light backgrounds */
.section--chapter .btn--ghost {
  background: transparent;
  color: var(--ocean);
  border-color: var(--ocean);
}
.section--chapter .btn--ghost:hover { background: rgba(28,135,207,.12); }

/* ---------- Typographic content ---------- */
.section--about p,
.section--chapter .section__sub,
.section--author p,
.email__body { font-size: 1.18rem; color: var(--ink-soft); }
.section--about p { margin-top: 1.1em; max-width: 60ch; }
.section--author p { margin-top: 1em; }

.big-q {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 4.6vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: .25em 0 .6em;
  color: var(--ink);
}
.pull {
  font-family: var(--serif) !important;
  font-style: italic;
  font-size: clamp(1.4rem, 3.2vw, 2rem) !important;
  color: var(--ocean) !important;
  line-height: 1.25;
  margin: .9em 0 !important;
}

/* ---------- Cards ---------- */
.cards {
  margin-top: clamp(36px, 6vw, 60px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: 0 10px 30px -22px rgba(80,50,30,.4);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.card__num {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral-dk);
  background: rgba(232,113,78,.12);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.card h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 10px;
}
.card p { font-size: 1rem; color: var(--ink-soft); }
.card--plus {
  background: linear-gradient(150deg, var(--gold), var(--coral));
  color: #fff;
  border: none;
}
.card--plus .card__num {
  background: rgba(255,255,255,.25);
  color: #fff;
  font-size: 1.1rem;
}
.card--plus p { color: rgba(255,255,255,.95); }

/* ---------- Free chapter reader ---------- */
.reader {
  position: relative;
  margin-top: 36px;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.85;
  color: var(--ink);
}
.reader p { margin-bottom: 1.15em; }
.reader__line {
  font-style: italic;
  color: var(--coral-dk);
  font-size: 1.3rem;
}
.reader__close {
  font-style: italic;
  font-size: 1.5rem;
  color: var(--dusk);
  margin-top: 1.2em;
}
.reader__fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(251,246,239,0), var(--paper));
  pointer-events: none;
  transition: opacity .4s ease;
}
.reader.is-open .reader__fade { opacity: 0; }
.reader__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ---------- Buy ---------- */
.buy__sub { font-size: 1.2rem; margin: .6em auto 1.4em; max-width: 40ch; opacity: .95; }
.buy__note { margin-top: 1.4em; font-size: .95rem; opacity: .8; }

/* High-contrast buy button: gold on the sunset gradient, white on hover */
.section--buy .btn--primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 14px 32px -10px rgba(8, 30, 48, .55);
}
.section--buy .btn--primary:hover {
  background: #fff;
  color: var(--ocean-deep);
  box-shadow: 0 16px 36px -10px rgba(8, 30, 48, .6);
}

/* ---------- Author ---------- */
.author__first { font-family: var(--serif); font-style: italic; font-size: 1.3rem !important; color: var(--ink) !important; }

/* ---------- Email form ---------- */
.email__body { margin: .5em auto 0; max-width: 44ch; }
.email__small { color: var(--ink-soft); font-style: italic; margin-bottom: 1.6em; }
.email-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 0 auto;
}
.email-form input {
  flex: 1 1 240px;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}
.email-form input:focus { outline: none; border-color: var(--ocean); }
.email-form__status { margin-top: 14px; font-weight: 500; min-height: 1.4em; }
.email-form__status.ok  { color: #2e7d4f; }
.email-form__status.err { color: var(--coral-dk); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #e8ddd0;
  text-align: center;
  padding: 60px 0 50px;
}
.footer__title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.footer__quote { font-family: var(--serif); font-style: italic; color: var(--gold); margin: .9em 0 1.4em; font-size: 1.1rem; }
.footer__meta { font-size: .9rem; color: #b3a596; }
.footer__meta a { color: var(--gold); text-decoration: none; }
.footer__meta a:hover { text-decoration: underline; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { animation: none; }
}
