/* Packed & Ready Press — site styles
   Layout concept: navy "meet day" bands framing bright book covers; each edition page
   takes its cover's palette (swim = pool blue + lane-4 yellow, dance = plum + spotlight pink). */
:root {
  --navy: #16224f;
  --navy-deep: #0e1838;
  --yellow: #ffd21f;
  --paper: #f6f7fb;
  --white: #ffffff;
  --ink: #16224f;
  --muted: #525c7a;
  --line: #dde1ec;
  --swim: #1557a6;
  --swim-soft: #e3f3f7;
  --aqua: #5cc8d6;
  --red: #e63b3b;
  --plum: #4b1a5c;
  --dance-soft: #fbe9f2;
  --magenta: #d81b7f;
  --pink: #f7b6d2;
  --accent: var(--yellow);
  --accent-ink: var(--navy);
  --band: var(--navy);
  --soft: #eef0f7;
  --font-display: "Poppins", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}
.theme-swim { --band: var(--swim); --soft: var(--swim-soft); --accent: var(--yellow); --accent-ink: var(--navy); }
.theme-dance { --band: var(--plum); --soft: var(--dance-soft); --accent: var(--magenta); --accent-ink: var(--white); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 50; font-weight: 700; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 6px var(--navy-deep); border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.eyebrow.eyebrow-on-dark { color: var(--yellow); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--navy-deep); color: var(--white); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--navy-deep); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.02rem; letter-spacing: .01em; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.nav-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.35); color: var(--white); border-radius: 10px; padding: 6px 12px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255,255,255,.1); }
.site-nav a.nav-cta { background: var(--yellow); color: var(--navy); font-weight: 700; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-deep); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); border-top: 1px solid rgba(255,255,255,.12); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: 12px; font-size: 1.05rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease; text-align: center; line-height: 1.25; }
.btn:hover { transform: translateY(-2px); }
.btn-amazon { background: var(--yellow); color: var(--navy); box-shadow: 0 3px 0 #c9a200; }
.btn-amazon:hover { box-shadow: 0 5px 0 #c9a200; }
.btn-outline { border-color: currentColor; color: inherit; }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Series lettering: solid white caps with a yellow bar underneath (no shadow, for legibility) */
.series-title { display: block; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; color: var(--white); letter-spacing: .01em; line-height: 1; }
.series-title::after { content: ""; display: block; width: 3.2em; max-width: 100%; height: .14em; min-height: 6px; margin-top: .22em; background: var(--yellow); border-radius: 3px; }
.book-title { display: grid; gap: 16px; justify-items: start; }

/* Hero */
.hero { background: var(--navy); color: var(--white); overflow: hidden; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-block: 56px 72px; }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.hero .series-title { font-size: clamp(2.8rem, 1.6rem + 5vw, 5.2rem); }
.hero-lede { font-size: 1.15rem; color: #dfe4f5; max-width: 34ch; }
.hero-lede strong { color: var(--white); }
.hero-covers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: end; }
.hero-book { display: grid; gap: 18px; justify-items: center; min-width: 0; }
.hero-book .btn { width: 100%; padding-inline: 12px; }
.hero-cover { display: block; border-radius: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.35); transition: transform .2s ease; }
.hero-book:first-child .hero-cover { transform: rotate(-2deg); }
.hero-book:last-child .hero-cover { transform: rotate(2deg); }
.hero-cover:hover { transform: rotate(0) translateY(-4px) !important; }
.hero-covers img { border-radius: 6px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 40px 60px; } .hero-covers { max-width: 440px; } }

/* Sections */
.section { padding-block: 64px; }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 46rem; }
.section-head p { color: var(--muted); }
.band { background: var(--band); color: var(--white); }
.band .section-head p, .band .eyebrow { color: rgba(255,255,255,.78); }
.soft { background: var(--soft); }

/* Wait strip */
.wait-strip { background: var(--yellow); color: var(--navy); }
.wait-strip .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; padding-block: 26px; }
.wait-strip p { font-weight: 800; font-size: clamp(1.1rem, .9rem + .8vw, 1.45rem); line-height: 1.25; }
.wait-strip span { display: block; font-weight: 500; font-size: .95rem; }
@media (max-width: 640px) { .wait-strip .wrap { grid-template-columns: 1fr; } }

/* Edition cards */
.editions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.edition { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; background: var(--white); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); align-items: start; }
.edition-cover img { border-radius: 4px; box-shadow: 0 8px 20px rgba(22,34,79,.2); }
.edition-body { display: grid; gap: 12px; min-width: 0; }
.edition-tag { justify-self: start; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.edition.swim .edition-tag { background: var(--yellow); color: var(--navy); }
.edition.dance .edition-tag { background: var(--magenta); color: var(--white); }
.edition ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .97rem; }
.edition .btn-row { margin-top: 6px; }
.link-more { font-weight: 600; font-size: .95rem; align-self: center; }
@media (max-width: 920px) { .editions { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .edition { grid-template-columns: 1fr; } .edition-cover { max-width: 200px; } }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: var(--radius); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.feature p { color: rgba(255,255,255,.82); font-size: .98rem; }
.feature .num { font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; line-height: 1; color: var(--yellow); }
.theme-dance .feature .num { color: var(--pink, #f7b6d2); }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* Samples */
.sample { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; padding: 28px; background: var(--white); border: 2px dashed #8a93b0; border-radius: var(--radius); align-items: center; max-width: 52rem; }
.sample img { border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.sample-body { display: grid; gap: 10px; min-width: 0; }
.sample-body p { color: var(--muted); font-size: .95rem; }
.btn-download { background: var(--navy); color: var(--white); min-height: 44px; font-size: .95rem; justify-self: start; }
@media (max-width: 560px) { .sample { grid-template-columns: 1fr; padding: 20px; } .sample img { max-width: 150px; } }

/* Follow */
.follow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.follow-card { display: grid; gap: 14px; padding: 26px; border-radius: var(--radius); color: var(--white); }
.follow-card.swim { background: var(--swim); }
.follow-card.dance { background: var(--plum); }
.follow-card p { color: rgba(255,255,255,.85); }
.handle { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; word-break: break-word; }
.handle svg { width: 22px; height: 22px; flex: none; }
.icon-link { display: inline-flex; align-items: center; gap: 8px; }
.icon-link svg { width: 18px; height: 18px; flex: none; }
.btn-social { background: var(--white); color: var(--navy); min-height: 46px; font-size: .95rem; padding-inline: 18px; }
.follow-card.dance .btn-social { color: var(--plum); }
@media (max-width: 760px) { .follow-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 50rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 28px 14px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.5rem; font-weight: 500; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; color: var(--muted); }

/* Book page */
.book-hero { background: var(--band); color: var(--white); }
.book-hero .wrap { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 48px 56px; }
.book-hero .cover img { border-radius: 6px; box-shadow: 0 22px 48px rgba(0,0,0,.4); }
.book-hero-copy { display: grid; gap: 18px; min-width: 0; }
.book-hero .series-title { font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4rem); }
.edition-ribbon { justify-self: start; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 6px 16px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: clamp(.95rem, .85rem + .4vw, 1.15rem); }
.subtitle { font-size: 1.08rem; color: rgba(255,255,255,.88); max-width: 40ch; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.facts li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 4px 14px; font-size: .88rem; font-weight: 600; }
.store-note { font-size: .85rem; color: rgba(255,255,255,.72); }
@media (max-width: 820px) { .book-hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-block: 32px 44px; } .book-hero .cover { max-width: 300px; } }

.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: start; }
.prose { display: grid; gap: 16px; max-width: 62ch; }
.prose a:not(.btn), .inside-list a { text-decoration: underline; text-underline-offset: 3px; }
.prose .big { font-size: 1.3rem; font-weight: 700; line-height: 1.35; }
.inside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.inside-list li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-size: .98rem; }
.inside-list strong { display: block; }
.note-box { background: var(--soft); border-radius: 12px; padding: 18px 20px; font-size: .97rem; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.gallery button { display: grid; gap: 10px; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; font: inherit; color: inherit; }
.gallery img { background: var(--white); border-radius: 6px; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(22,34,79,.1); transition: transform .15s ease; aspect-ratio: 7 / 10; object-fit: cover; width: 100%; }
.gallery button:hover img { transform: translateY(-3px); }
.gallery .cap { font-size: .9rem; font-weight: 600; }
.gallery .cap span { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 640px); }
.lightbox::backdrop { background: rgba(14,24,56,.85); }
.lightbox img { max-height: 84vh; width: auto; margin-inline: auto; border-radius: 6px; background: var(--white); }
.lightbox-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--navy); color: var(--white); font-size: 1.4rem; cursor: pointer; }
.lightbox figcaption { color: var(--white); text-align: center; padding-top: 10px; font-weight: 600; }

/* Cross-sell + page CTA */
.cta-band { background: var(--navy); color: var(--white); }
.cta-band .wrap { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 28px; align-items: center; padding-block: 44px; }
.cta-band .copy { display: grid; gap: 12px; }
.cta-band p { color: #cfd6ee; }
@media (max-width: 560px) { .cta-band .wrap { grid-template-columns: 1fr; } .cta-band img { max-width: 140px; } }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: start; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
.email-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.email { font-weight: 700; user-select: all; word-break: break-all; }
.copy-btn { border: 2px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--ink); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c9d0e8; font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 44px 28px; }
.site-footer h2 { font-size: 1rem; color: var(--white); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); }
.footer-base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 16px; grid-template-columns: none; font-size: .82rem; color: #9aa4c4; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

.breadcrumb { font-size: .88rem; color: rgba(255,255,255,.88); }
.breadcrumb a { text-decoration: underline; }
.theme-navy { --band: var(--navy); }
.one-col { grid-template-columns: 1fr !important; }
.page-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); font-weight: 900; }
.author-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: start; max-width: 54rem; }
.author-badge { width: 120px; height: 120px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; }
@media (max-width: 560px) { .author-card { grid-template-columns: 1fr; gap: 20px; } .author-badge { width: 88px; height: 88px; font-size: 1.8rem; } }


.author-photo img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 4px solid var(--yellow); }
@media (max-width: 560px) { .author-photo img { width: 140px; height: 140px; } }

/* Parent-review additions */
.price-line { font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.9); }
.hero-book .price-line { text-align: center; margin-top: -8px; }
.price-line-light { color: var(--ink); font-size: .92rem; }
.link-small { font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.team-note { margin-top: 28px; font-size: .98rem; color: var(--muted); }
.team-note .email { color: var(--ink); }
.hero-sample { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 24px; }
.hero-sample svg { width: 18px; height: 18px; flex: none; }
.pack-box { border: 2px solid var(--line); border-radius: 12px; padding: 16px 20px; display: grid; gap: 6px; background: var(--white); }
.pack-box h3 { font-size: 1.02rem; }
.pack-box p { font-size: .97rem; color: var(--muted); }
.gallery-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .gallery-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Yellow buttons mean "Buy on Amazon" only. Header CTA is an outline; edition labels are flat ribbons like the covers. */
.site-nav a.nav-cta { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.85); padding: 6px 14px; }
.site-nav a.nav-cta:hover { background: rgba(255,255,255,.12); }
.edition-ribbon, .edition-tag { border-radius: 0; box-shadow: none; padding-inline: 22px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%, 10px 50%); }
.edition-tag { padding-inline: 18px; }

/* Final design pass */
section[id], div[id] { scroll-margin-top: calc(80px + env(safe-area-inset-top, 0px)); }
.btn { white-space: nowrap; }
@media (max-width: 480px) {
  .hero-covers { gap: 12px; }
  .hero-book .btn { font-size: .88rem; padding-inline: 8px; gap: 6px; min-height: 46px; }
  .hero-book .btn svg { width: 17px; height: 17px; }
  .hero-book .price-line { font-size: .8rem; }
}
@media (max-width: 360px) { .hero-book .btn svg { display: none; } }
/* Single follow card on book pages: text left, buttons right */
.follow-solo { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 32px; }
.follow-solo .btn-row { grid-column: 2; grid-row: 1 / span 3; }
@media (max-width: 760px) { .follow-solo { grid-template-columns: 1fr; } .follow-solo .btn-row { grid-column: auto; grid-row: auto; } }
.follow-solo > :not(.btn-row) { grid-column: 1; }
@media (max-width: 760px) { .follow-solo > :not(.btn-row) { grid-column: auto; } }
