:root {
  --pink: #D9568A;
  --blue: #3F6A93;
  --gold: #E0A93B;
  --cream: #FBF7EE;
  --ink: #2A2A32;
  --muted: #5E5A66;
  --white: #FFFFFF;
  --max: 1080px;
  --font-display: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--pink); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--pink);
  padding: .85rem 0;
}
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-weight: 800; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-text { font-size: 1.05rem; line-height: 1.2; }
.brand-text small { display: block; font-weight: 600; color: var(--pink); font-size: .78rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .75rem 1rem; font-weight: 700; font-size: .95rem; }
.nav-links a { text-decoration: none; color: var(--blue); }
.nav-links a:hover { color: var(--pink); }
.hero {
  padding: 1.75rem 0 1.5rem;
  background: linear-gradient(135deg, #FFE8F1 0%, #E8F2FF 50%, var(--cream) 100%);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  margin: 0 0 .5rem;
  color: var(--blue);
}
.hero .line-tag {
  display: inline-block;
  background: var(--pink);
  color: white;
  font-weight: 800;
  font-size: .8rem;
  padding: .25rem .65rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 68ch; margin: 0 0 1rem; }
.btn {
  display: inline-block;
  background: var(--pink);
  color: white !important;
  padding: .7rem 1.25rem;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 800;
  border: 2px solid var(--pink);
}
.btn:hover { background: #c44778; border-color: #c44778; }
.btn-blue { background: var(--blue); border-color: var(--blue); }
.btn-blue:hover { background: #335778; }
.btn[aria-disabled="true"], .btn.disabled { opacity: .55; pointer-events: none; }
.section { padding: 2.4rem 0; }
.section h2 {
  font-weight: 900;
  color: var(--blue);
  margin: 0 0 1.2rem;
  font-size: 1.65rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.35rem;
}
.card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #f0e6f2;
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(63,106,147,.15); }
.card img { width: 100%; height: auto; aspect-ratio: 630/810; object-fit: cover; display: block; background: #eee; }
.card-body { padding: .9rem 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.card-body h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  background: #FFE8F1;
  color: var(--pink);
  padding: .2rem .55rem;
  border-radius: 999px;
  width: fit-content;
}
.book-detail {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 700px) { .book-detail { grid-template-columns: 1fr; } }
.book-cover {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #f0e6f2;
}
.book-cover img { width: 100%; display: block; }
.meta { color: var(--muted); }
.site-footer {
  background: var(--blue);
  color: #d7e4f2;
  padding: 2rem 0;
  margin-top: 2.5rem;
  font-size: .9rem;
}
.site-footer a { color: #FFD6E7; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.links-list { list-style: none; padding: 0; }
.links-list li { margin: .75rem 0; }
.links-list a.btn { width: 100%; text-align: center; }
.coloring-banner {
  background: linear-gradient(90deg, var(--pink), var(--gold));
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

/* ---- v2 additions (books.json build) ---- */
.preview-banner { background: #2A2A32; color: #FFE8F1; text-align: center; font-size: .82rem; font-weight: 700; padding: .4rem .75rem; }
.nav-links a[aria-current="page"] { color: var(--pink); text-decoration: underline; text-decoration-thickness: 3px; }
.badge.soon { background: #E8F2FF; color: #2F587D; }
.cta .btn { margin: .25rem .4rem .25rem 0; }
.mt { margin-top: 2.4rem !important; }
.section.alt { background: var(--white); border-top: 2px solid #f0e6f2; border-bottom: 2px solid #f0e6f2; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.facts { padding-left: 1.2rem; } .facts li { margin: .3rem 0; }
.signup { background: #FFF6E5; border: 2px dashed var(--gold); border-radius: 14px; padding: 1.1rem 1.25rem; }
.signup h2 { font-size: 1.25rem !important; margin: 0 0 .5rem !important; }
.signup .soon { font-size: .75rem; background: var(--gold); color: var(--ink); border-radius: 999px; padding: .1rem .5rem; vertical-align: middle; font-weight: 800; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.page-h1 { font-weight: 900; color: var(--blue); font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 .6rem; }
.jump { font-weight: 700; }
.group { margin-top: 2.2rem; } .group h2 { margin-bottom: .2rem !important; } .group .meta { margin-top: 0; }
.series-tag { margin: .5rem 0 0; font-weight: 800; color: var(--pink); }
.book-title { margin: .25rem 0; font-weight: 900; color: var(--blue); font-size: clamp(1.8rem, 4vw, 2.4rem); }
.subtitle { font-style: italic; color: var(--muted); margin: 0 0 .4rem; }
.small-h { font-size: 1.15rem !important; color: var(--blue); margin: 1.4rem 0 .4rem !important; font-weight: 900; }
.more { margin-top: 2rem; } .more-list { padding-left: 1.2rem; }
.narrow { max-width: 42rem; } .narrow-s { max-width: 28rem; }
.legal { font-size: .8rem; opacity: .85; }
.card-body .meta { font-size: .88rem; margin: 0; }
.brand img { width: auto; height: 40px; }
.about-logo { margin: 0 0 1rem; } .about-logo img { width: 320px; max-width: 100%; height: auto; }
/* ---- printables (Oct 11) ---- */
.pgrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.pcard img { aspect-ratio: auto; object-fit: contain; background: #fff; }
.pack-detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 860px) { .pack-detail { grid-template-columns: 1fr; } }
.gallery figure { margin: 0 0 1rem; background: #fff; border: 2px solid #f0e6f2; border-radius: 14px; overflow: hidden; }
.gallery img { display: block; width: 100%; height: auto; }
.price { font-size: 2rem; font-weight: 900; color: var(--blue); margin: .6rem 0 .2rem; }
.details { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; background: #fff; border-radius: 10px; overflow: hidden; }
.details th, .details td { text-align: left; vertical-align: top; padding: .55rem .75rem; border-bottom: 1px solid #f0e6f2; }
.details th { width: 34%; color: var(--blue); font-weight: 800; }
.bundles { background: #E8F2FF; border-radius: 14px; padding: .9rem 1.2rem; margin: 1.2rem 0; }
.bundles ul { margin: .3rem 0; }
.pstrip { background: #FFF6E5; border: 2px dashed var(--gold); border-radius: 12px; padding: .2rem 1rem .4rem; margin-top: 1.5rem; }
.draft-note { background: #FFF6E5; border-left: 4px solid var(--gold); padding: .5rem .8rem; }
