/* Holistic Harmony Publications · site styles
   Shared shell (header, footer, type) + per-book themes set on <body class="book-...">.
   To theme a new book page, copy the .book-ist block and change the colors to match its cover. */

:root {
  --paper: #fbfaf7;
  --ink: #13294b;          /* navy, used for text */
  --ink-soft: #46546d;
  --line: #dfe3ea;
  --accent: #13294b;
  --accent-2: #3f8fae;
  --gold: #c39a3a;
  --mist: #eef4f7;
  --radius: 14px;
  --head: "Antonio", "Oswald", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --wrap: 1120px;
}

/* Book theme: Integrative Somatic Therapy (cover: navy title, crimson-magenta, aqua, gold) */
.book-ist {
  --accent: #c4124e;
  --accent-2: #2f8fb4;
  --gold: #c99a2e;
  --mist: #eaf4f8;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 18px/1.65 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.08; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.eyebrow { font: 700 .82rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.lede { font-size: 1.15rem; color: var(--ink-soft); }

/* Header */
.site-head { background: #fff; border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 46px; }
.brand span { font: 700 1.05rem/1.1 var(--head); letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current] { color: var(--accent); }

/* Buttons */
.btn { display: inline-block; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(19,41,75,.15); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 8px; }

/* Book hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 72px;
  background:
    radial-gradient(900px 500px at 92% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(700px 500px at 75% 95%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 60%),
    linear-gradient(#fff, var(--paper)); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 .l1 { color: var(--accent); display: block; }
.hero h1 .l2 { display: block; }
.hero .sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 36em; }
.hero .sub strong { color: var(--accent); }
.hero .time { font: 700 1.5rem/1.1 var(--head); color: var(--gold); text-transform: uppercase; letter-spacing: .03em; margin: 6px 0 0; }
.cover { justify-self: center; width: min(360px, 100%); border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(19,41,75,.45), 0 0 0 1px rgba(19,41,75,.06); }
.formats { font-size: .9rem; color: var(--ink-soft); }

/* Sections */
.section { padding: 72px 0; }
.section.tint { background: var(--mist); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.rule { width: 72px; height: 3px; background: var(--accent); border: 0; margin: 0 0 22px; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--accent) 35%, #fff); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card .k { font: 700 1.7rem/1 var(--head); color: var(--accent); margin-bottom: 8px; }
.card p { margin: 0; font-size: .98rem; color: var(--ink-soft); }

.quote { font: 700 clamp(1.4rem, 3vw, 2rem)/1.2 var(--head); text-transform: uppercase; color: var(--ink); border-left: 4px solid var(--accent); padding-left: 20px; margin: 0; }

/* Bonus band */
.bonus { background: var(--ink); color: #fff; border-radius: 22px; padding: 40px; display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; }
.bonus img { border-radius: 4px; box-shadow: 0 18px 40px rgba(0,0,0,.35); transform: rotate(-3deg); }
.bonus h2 { color: #fff; }
.bonus p { color: #d7deea; }
.bonus .eyebrow { color: var(--gold); }

/* Buy grid */
.buy { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.buy a { display: block; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 14px; text-decoration: none; color: var(--ink); font-weight: 700; }
.buy a span { display: block; font-weight: 400; color: var(--ink-soft); font-size: .9rem; margin-top: 4px; }
.buy a:hover { border-color: var(--accent); color: var(--accent); }

/* Sign-up page */
.signup { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.signup .mock { max-width: 400px; padding-top: 40px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: 0 20px 50px -30px rgba(19,41,75,.35); margin: 26px 0; }
.form-card h3 { margin-bottom: 6px; }
.form-card .small { font-size: .88rem; color: var(--ink-soft); margin: 10px 0 0; }
.ml-embedded { min-height: 120px; }

.crisis { background: #fff6f8; border: 1px solid color-mix(in srgb, var(--accent) 30%, #fff); border-radius: var(--radius); padding: 18px 20px; font-size: .98rem; }
.crisis strong { color: var(--accent); }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }

/* Book grid (home / books / bonus hub) */
.grid-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px; }
.book-tile { text-decoration: none; color: var(--ink); }
.book-tile img { border-radius: 4px; box-shadow: 0 16px 34px -14px rgba(19,41,75,.45); margin-bottom: 14px; }
.book-tile h3 { margin: 0 0 4px; }
.book-tile p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.soon { border: 2px dashed var(--line); border-radius: var(--radius); display: grid; place-items: center; text-align: center; padding: 30px; color: var(--ink-soft); min-height: 220px; }

/* Footer */
.site-foot { background: var(--ink); color: #c9d2e1; padding: 48px 0 36px; font-size: .92rem; margin-top: 40px; }
.site-foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; }
.foot-crisis { align-self: start; background: rgba(255,255,255,.07); border-radius: 12px; padding: 16px 18px; color: #fff; }
.foot-crisis strong { color: #ffd27a; }
.fine { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); font-size: .82rem; color: #9fb0c8; }

.prose { max-width: 760px; }

@media (max-width: 900px) {
  .hero .wrap, .two, .signup, .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero .cover-col { order: -1; }
  .cover { width: min(250px, 70%); }
  .cards, .buy { grid-template-columns: 1fr 1fr; }
  .bonus { grid-template-columns: 1fr; padding: 28px; text-align: left; }
  .bonus img { width: 160px; }
  .signup .mock { position: static; max-width: 230px; }
  .section { padding: 52px 0; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .site-head .wrap { flex-direction: column; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; gap: 8px; }
  .nav { gap: 16px; justify-content: flex-start; }
  .brand span { font-size: .92rem; }
  .cards { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
}

/* Bonus kit (two covers + numbered items) */
.stack { position: relative; padding: 0 8% 14% 0; }
.stack .cover { width: 100%; }
.stack .back { transform: rotate(-4deg); }
.stack .front { position: absolute; width: 78%; right: 0; bottom: 0; transform: rotate(3deg); }
.kit { display: grid; gap: 14px; margin: 24px 0 6px; }
.kit-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.kit-item h3 { margin: 0 0 4px; font-size: 1.2rem; }
.kit-item p { margin: 0; font-size: .97rem; color: var(--ink-soft); }
.kit-num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 1.1rem/34px var(--head); text-align: center; }
@media (max-width: 900px) { .signup .mock { max-width: 300px; } }
.hero .wrap.signup { grid-template-columns: .8fr 1.2fr; align-items: start; }
@media (max-width: 900px) { .hero .wrap.signup { grid-template-columns: 1fr; } }

/* Reader Library */
.lib-book { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; margin-top: 32px; }
.lib-book img { border-radius: 4px; box-shadow: 0 14px 30px -14px rgba(19,41,75,.45); }
.lib-book h2 { margin-bottom: 14px; }
.lib-dl { display: flex; flex-wrap: wrap; gap: 10px; }
.small-note { font-size: .92rem; color: var(--ink-soft); margin: 14px 0 0; }
@media (max-width: 560px) { .lib-book { grid-template-columns: 1fr; } .lib-book img { width: 140px; } }

/* ---------- v5: themes for every book (colors match each cover) ---------- */
.book-ssts   { --accent: #d9581a; --accent-2: #2f7fb4; --gold: #d08a1e; --mist: #eef4f9; }
.book-sstswb { --accent: #7b2fbe; --accent-2: #2f7fb4; --gold: #c9962e; --mist: #f2eefa; }
.book-sstsj  { --accent: #e0701a; --accent-2: #1a9bb0; --gold: #c9962e; --mist: #ecf6f8; }
.book-teen   { --accent: #0d8a7f; --accent-2: #2f7fb4; --gold: #c9962e; --mist: #e9f6f4; }
.book-teenwb { --accent: #7b2fbe; --accent-2: #0d8a7f; --gold: #c9962e; --mist: #f1eef9; }
.home        { --accent: #b0306a; --accent-2: #3f8fae; }
.crisis { background: color-mix(in srgb, var(--accent) 6%, #fff); }

/* buy grid adapts to number of formats */
.buy.cols-1 { grid-template-columns: minmax(0, 320px); }
.buy.cols-2 { grid-template-columns: repeat(2, minmax(0, 300px)); }
.buy.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* single bonus cover on sign-up page */
.cover.single { width: 100%; transform: rotate(-2deg); }
.center { text-align: center; }
.small { font-size: .9rem; color: var(--ink-soft); }

/* home hero cover fan */
.home-hero h1 .l1 { color: var(--accent); }
.fan { position: relative; height: 380px; }
.fan img { position: absolute; width: 44%; border-radius: 4px; box-shadow: 0 24px 50px -18px rgba(19,41,75,.5); }
.fan img:nth-child(1) { left: 2%; top: 40px; transform: rotate(-8deg); }
.fan img:nth-child(2) { left: 28%; top: 0; z-index: 2; }
.fan img:nth-child(3) { left: 54%; top: 46px; transform: rotate(7deg); }
.foot-social { margin-top: 10px; }
.book-tile img { aspect-ratio: auto; }

@media (max-width: 900px) {
  .fan { height: 260px; max-width: 420px; margin: 0 auto; width: 100%; }
  .home-hero .cover-col { order: 0; }
  .buy.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .buy.cols-1, .buy.cols-2 { grid-template-columns: 1fr; }
  .fan { height: 210px; }
}
@media (max-width: 900px) {
  .hero .wrap.signup .mock { max-width: 170px; margin: 0 auto; padding-top: 0; }
  .hero .wrap.signup .mock .small { display: none; }
  .hero .wrap.signup { gap: 18px; }
}
