/* ==========================================================
   Books by Tereza — shared stylesheet
   Mobile-first. Breakpoint: 768px.
   ========================================================== */

:root {
  /* Brand */
  --ink: #1d2621;
  --ink-soft: #4b5a52;
  --muted: #7b8a82;
  --white: #ffffff;
  --black: #111111;

  /* Pastels */
  --green: #cdeccf;        /* Book 1 / LWW primary */
  --green-soft: #eaf7eb;
  --green-deep: #2e7d4f;   /* buttons on green */
  --blue: #cfe4f7;         /* Book 2 */
  --blue-deep: #2f6fa8;
  --peach: #ffe3d3;
  --lilac: #e7defb;
  --butter: #fff3c4;
  --sky: #d7efff;
  --grey-bg: #f4f5f3;
  --grey-card: #eef0ed;

  /* System */
  --radius-sm: 16px;
  --radius: 20px;
  --radius-lg: 24px;
  --shadow: 0 6px 24px rgba(29, 38, 33, 0.08);
  --shadow-hover: 0 12px 32px rgba(29, 38, 33, 0.14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --max: 1160px;

  --font-head: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--white);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.18); }
.btn:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 3px; }
.btn--green { background: var(--green-deep); }
.btn--blue  { background: var(--blue-deep); }
.btn--ghost { background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.btn--sm { padding: 10px 20px; font-size: .95rem; }
.btn[aria-disabled="true"] { background: #b7c0bb; pointer-events: none; box-shadow: none; }

/* ---------- Header ---------- */
.topbar {
  background: var(--black);
  color: var(--white);
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
  padding: 8px 16px;
}
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--green);
  box-shadow: 0 2px 0 rgba(29,38,33,.04);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: .02em;
  color: var(--ink);
}
.logo .eye {
  position: relative;
  display: inline-block;
  width: .9em; height: .9em;
  margin: 0 .02em;
  border: .14em solid var(--ink);
  border-radius: 50%;
  background: var(--white);
}
.logo .eye::after {
  content: "";
  position: absolute;
  width: .3em; height: .3em;
  border-radius: 50%;
  background: var(--ink);
  top: 50%; left: 50%;
  transform: translate(-20%, -45%);
  transition: transform .3s var(--ease);
}
.logo:hover .eye::after { transform: translate(-80%, -45%); }

.nav-toggle {
  display: inline-flex;
  background: var(--white);
  border: 0;
  border-radius: 12px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

.main-nav {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--green);
  display: none;
  padding: 8px 20px 20px;
  box-shadow: 0 12px 20px rgba(0,0,0,.06);
}
.nav-open .main-nav { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  padding: 12px 4px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(29,38,33,.08);
}
.main-nav a[aria-current="page"] { color: var(--green-deep); }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .main-nav { position: static; display: block; padding: 0; background: none; box-shadow: none; }
  .main-nav ul { display: flex; gap: 6px; }
  .main-nav a {
    border: 0;
    padding: 8px 16px;
    border-radius: 999px;
    transition: background .2s;
  }
  .main-nav a:hover { background: rgba(255,255,255,.6); }
  .main-nav a[aria-current="page"] { background: var(--white); color: var(--ink); }
}

/* ---------- Cards / generic ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card--lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Image placeholder */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 12px, transparent 12px 24px),
    var(--green);
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 700;
  padding: 24px;
  overflow: hidden;
}
.ph span {
  background: rgba(255,255,255,.85);
  padding: 8px 14px;
  border-radius: 12px;
}

/* ---------- Fade-in on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- 3D book cover (CSS) ---------- */
.book {
  --cover: var(--green);
  --cover-deep: var(--green-deep);
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 8.5 / 11;
  margin: 0 auto;
  perspective: 900px;
}
.book__inner {
  position: absolute; inset: 0;
  transform: rotateY(-18deg);
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
}
.book:hover .book__inner, .book-card:hover .book__inner { transform: rotateY(-6deg); }
.book__front {
  position: absolute; inset: 0;
  border-radius: 4px 10px 10px 4px;
  background: var(--cover);
  box-shadow: 18px 22px 30px rgba(29,38,33,.22), inset 6px 0 0 rgba(0,0,0,.08);
  padding: 14% 10%;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.book__pages {
  position: absolute; top: 2%; bottom: 2%; right: -12px; width: 14px;
  background: repeating-linear-gradient(90deg, #fff 0 2px, #e9ece8 2px 3px);
  transform: rotateY(90deg) translateZ(-1px);
  transform-origin: left;
}
.book { container-type: inline-size; }
.book__front { padding: 11% 10% 10%; gap: 6%; }
.book__brand { font-family: var(--font-head); font-weight: 700; font-size: 6cqw; letter-spacing: .1em; color: var(--cover-deep); }
.book__title { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 8.5cqw; line-height: 1.1; }
.book__title small { display: block; font-size: .7em; font-weight: 500; margin-top: 4px; color: var(--ink-soft); }
.book__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px;
  background: var(--white); padding: 6px; border-radius: 8px;
}
.book__grid i { aspect-ratio: 1; border-radius: 3px; background: var(--cover); }
.book__grid i:nth-child(3n) { background: var(--peach); }
.book__grid i:nth-child(5n) { background: var(--butter); }
.book--blue { --cover: var(--blue); --cover-deep: var(--blue-deep); }
.book--soon { --cover: var(--grey-card); --cover-deep: var(--muted); }

/* ---------- Puzzle preview cards ---------- */
.puzzle-card { padding: 22px; text-align: center; }
.puzzle-card .level {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  margin-bottom: 14px;
}
.puzzle {
  display: grid;
  gap: 4px;
  margin: 0 auto 12px;
  max-width: 220px;
  padding: 8px;
  background: var(--green-soft);
  border-radius: 14px;
}
.puzzle i {
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-style: normal;
  font-size: clamp(.9rem, 3vw, 1.3rem);
}
.puzzle-card p { font-size: .92rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 56px 0 28px;
}
.site-footer p { color: rgba(255,255,255,.8); }
.site-footer a { color: var(--white); }
.footer-cols {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-cols { grid-template-columns: 1fr auto; align-items: start; }
  .footer-contact { text-align: right; }
}
.site-footer .logo { color: var(--white); }
.site-footer .logo .eye { border-color: var(--white); background: var(--black); }
.site-footer .logo .eye::after { background: var(--white); }
.footer-contact h4 { font-size: 1.1rem; margin-bottom: 8px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #a3a8a5;
  font-size: .85rem;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(17,17,17,.45);
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  position: relative;
  width: 100%; max-width: 460px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  box-shadow: 0 30px 60px rgba(0,0,0,.2);
  transform: translateY(16px);
  transition: transform .3s var(--ease);
}
.modal.is-open .modal__box { transform: none; }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  border: 0; border-radius: 50%;
  background: var(--grey-bg);
  font-size: 1.3rem; line-height: 1;
  cursor: pointer;
}

/* ---------- Forms ---------- */
.field {
  display: flex;
  gap: 8px;
  background: var(--white);
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: border-color .2s;
}
.field:focus-within { border-color: var(--green-deep); }
.field input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: none;
  font: inherit;
  padding: 10px 16px;
  color: var(--ink);
}
.field .btn { padding: 10px 20px; }
.field--grey { background: var(--grey-bg); box-shadow: none; }
.form-msg { font-size: .9rem; margin-top: 10px; min-height: 1.4em; }
.form-msg.ok { color: var(--green-deep); }
.form-msg.err { color: #b3402e; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ==========================================================
   Page blocks and site components
   ========================================================== */

/* ---------- Block wrappers / spacing ---------- */
.bt-block { position: relative; }
.bt-pad-none   { padding: 0; }
.bt-pad-small  { padding: 28px 0; }
.bt-pad-normal { padding: 60px 0; }
.bt-pad-large  { padding: 88px 0; }
@media (min-width: 768px) {
  .bt-pad-small  { padding: 36px 0; }
  .bt-pad-normal { padding: 76px 0; }
  .bt-pad-large  { padding: 108px 0; }
}

.bt-block-head { max-width: 720px; margin: 0 auto 34px; }
.bt-block-head p { margin-top: 8px; }
.bt-empty { color: var(--muted); padding: 20px 0; }

/* ---------- Hero ---------- */
.bt-hero { width: 100%; }
.bt-hero--pastel {
  padding: 52px 26px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 12%, rgba(255,255,255,.75), transparent 42%),
    linear-gradient(135deg, var(--green-soft), var(--sky) 52%, var(--peach));
}
@media (min-width: 768px) {
  .bt-hero--pastel { padding: 70px 56px; }
}
.bt-hero__grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
@media (min-width: 860px) {
  .bt-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 52px; }
}
.bt-hero__copy { max-width: 760px; }
.bt-hero.is-center .bt-hero__copy { margin: 0 auto; text-align: center; }
.bt-hero.is-left .bt-hero__copy { margin-right: auto; text-align: left; }
.bt-hero h1 { margin-bottom: 16px; }
.bt-hero .bt-lead { font-size: clamp(1.02rem, 2.2vw, 1.2rem); max-width: 620px; }
.bt-hero.is-center .bt-lead { margin-left: auto; margin-right: auto; }
.bt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.bt-hero.is-center .bt-hero__actions { justify-content: center; }
.bt-hero__media { min-width: 0; }
.bt-hero__image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero-books {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.hero-books .book--small { max-width: 168px; }

/* ---------- Text section ---------- */
.bt-text { max-width: 780px; margin: 0 auto; }
.bt-text.is-left { margin-left: 0; }
.bt-text.is-center { text-align: center; }
.bt-text--quote p {
  font-family: var(--font-head);
  font-size: clamp(1.22rem, 3vw, 1.7rem);
  line-height: 1.45;
  color: var(--ink);
}
.bt-text--card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  box-shadow: var(--shadow);
}
@media (min-width: 768px) {
  .bt-text--card { padding: 48px 56px; }
}

/* ---------- Image + text ---------- */
.bt-split {
  display: grid;
  gap: 30px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
@media (min-width: 860px) {
  .bt-split { grid-template-columns: 1fr 1fr; gap: 54px; }
  .bt-split--flip .bt-split__media { order: 2; }
}
.bt-split__image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.bt-split--card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
@media (min-width: 768px) {
  .bt-split--card { padding: 40px; }
}
.bt-split__body { max-width: 520px; }
.bt-split__body p { margin-bottom: 18px; }
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--green-soft), var(--sky));
  font-size: clamp(3.5rem, 12vw, 6rem);
  box-shadow: var(--shadow);
}

/* ---------- Cards / feature tiles ---------- */
.tiles { align-items: stretch; }
.tile {
  display: block;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.tile h3 { margin: 4px 0 8px; }
.tile p { margin: 0; font-size: .97rem; }
.tile__icon {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
  margin-bottom: 10px;
}

/* ---------- Reviews carousel ---------- */
.carousel { position: relative; max-width: 1100px; margin: 0 auto; }
.carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 min(340px, 82vw);
  padding: 24px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.review p { margin: 0; font-size: .97rem; }
.review .who { color: var(--muted); font-size: .88rem; margin-top: auto; }
.review .who strong { color: var(--ink); }
.stars { color: #e0a814; letter-spacing: 2px; font-size: 1rem; }
.carousel__nav { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }
.carousel__nav button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform .2s var(--ease), opacity .2s;
}
.carousel__nav button:hover:not(:disabled) { transform: translateY(-2px); }
.carousel__nav button:disabled { opacity: .35; cursor: default; }

/* ---------- Newsletter ---------- */
.bt-newsletter {
  max-width: 780px;
  margin: 0 auto;
  padding: 38px 26px;
  border-radius: var(--radius-lg);
}
@media (min-width: 768px) {
  .bt-newsletter { padding: 48px 54px; }
}
.bt-newsletter--banner {
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.65), transparent 45%),
    linear-gradient(135deg, var(--green), var(--sky));
  box-shadow: var(--shadow);
}
.bt-newsletter--card {
  background: var(--white);
  box-shadow: var(--shadow);
}
.bt-newsletter__form { max-width: 480px; margin: 20px auto 0; }
.bt-newsletter .form-msg { text-align: center; }

/* ---------- Subscribe form extras ---------- */
.bt-subscribe-form { position: relative; }
.bt-hp {
  position: absolute !important;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.bt-subscribe-form .form-msg { min-height: 1.4em; }
.bt-subscribe-form .form-msg.ok { font-weight: 700; }
.bt-subscribe-form button[disabled] { opacity: .7; cursor: wait; }

/* ---------- Downloads / reward ---------- */
.bt-downloads { max-width: 720px; margin: 0 auto; text-align: center; }
.bt-downloads .trophy {
  font-size: clamp(3rem, 10vw, 4.5rem);
  line-height: 1;
  margin-bottom: 14px;
}
.bt-downloads h1 { margin-bottom: 14px; }
.bt-downloads p { max-width: 560px; margin-left: auto; margin-right: auto; }
.bt-downloads__signature {
  font-family: var(--font-head);
  color: var(--ink) !important;
  font-size: 1.05rem;
  margin-top: 18px;
}
.dl { display: grid; gap: 12px; margin: 28px auto 0; text-align: left; }
.dl a {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 15px 20px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.dl a:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.dl .ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-soft);
  font-size: 1.2rem;
}
.dl strong { display: block; font-family: var(--font-head); font-size: 1.02rem; }
.dl small { display: block; color: var(--muted); font-size: .82rem; }
.dl .arrow { margin-left: auto; color: var(--green-deep); font-size: .85rem; font-weight: 700; white-space: nowrap; }

/* ---------- Book spotlight ---------- */
.lead-box {
  display: grid;
  gap: 30px;
  align-items: center;
  max-width: 940px;
  margin: 0 auto;
  padding: 34px 26px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@media (min-width: 820px) {
  .lead-box { grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding: 44px 48px; }
  .lead-box--flip { grid-template-columns: minmax(0, 1fr) 230px; }
  .lead-box--flip .book { order: 2; }
}
.lead-box__body p { margin-bottom: 18px; }

/* ---------- Book list ---------- */
.book-list {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
  max-width: 860px;
  margin: 0 auto;
}
.book-card {
  display: grid;
  gap: 24px;
  padding: 24px;
  align-items: center;
}
@media (min-width: 620px) {
  .book-card { grid-template-columns: 190px minmax(0, 1fr); padding: 28px 32px; }
}
.book-card__cover { max-width: 190px; margin: 0 auto; }
.book-card__body h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 8px 0 10px; }
.book-card__body p { margin-bottom: 16px; }
.book-card__body .btn { margin-top: 4px; }
.status {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
}
.status--soon { background: var(--blue); color: var(--blue-deep); }
.book__cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px 10px 10px 4px;
}
.bt-book-group { margin-bottom: 48px; }
.bt-book-group:last-child { margin-bottom: 0; }
.bt-book-group__title {
  text-align: center;
  font-size: 1.35rem;
  margin-bottom: 22px;
  color: var(--ink-soft);
}

/* ---------- Series cards ---------- */
.series-card {
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
}
.series-card .series-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 178px;
  font-size: 3.6rem;
  overflow: hidden;
}
.series-card .series-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 20%, rgba(255,255,255,.55), transparent 45%);
}
.series-card .series-art span { position: relative; z-index: 1; }
.series-card .series-art em {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  font-style: normal;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(29,38,33,.1);
}
.series-card .series-body { padding: 22px 24px 26px; }
.series-card .series-body h3 { margin-bottom: 6px; }
.series-card .series-body p { margin-bottom: 12px; font-size: .96rem; }
.series-cta { font-family: var(--font-head); font-size: .92rem; font-weight: 600; color: var(--green-deep); }
.series-card.is-soon { cursor: default; }
.series-card.is-soon:hover { transform: none; box-shadow: var(--shadow); }

/* ---------- Flash messages ---------- */
.bt-flash {
  margin: 16px 0;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.bt-flash--ok { background: var(--green-soft); color: var(--green-deep); }
.bt-flash--err { background: var(--peach); color: #8a3a20; }

/* ---------- 404 ---------- */
.bt-notfound { padding: 90px 0 110px; }
.bt-notfound__emoji { font-size: clamp(3rem, 10vw, 5rem); line-height: 1; margin-bottom: 14px; }
.bt-notfound p { max-width: 520px; margin: 0 auto 24px; }

/* ---------- Coming-soon admin badge ---------- */
.bt-preview-badge {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 2500;
  max-width: calc(100vw - 28px);
  background: #1d2327;
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1.5;
  padding: 9px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.bt-preview-badge a { color: #9ecbff; }

/* ---------- Modal extras ---------- */
body.modal-open { overflow: hidden; }
.modal__note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.modal__box h3 { margin-top: 4px; }
.modal__box p { margin-bottom: 14px; }

/* ---------- Footer extras ---------- */
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 16px 0 0;
  font-size: .9rem;
}
.footer-links a { text-decoration: none; opacity: .85; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-newsletter { margin-bottom: 26px; }
.footer-newsletter .field { background: rgba(255,255,255,.12); box-shadow: none; }
.footer-newsletter .field input { color: #fff; }
.footer-newsletter .field input::placeholder { color: rgba(255,255,255,.65); }
.footer-newsletter .form-msg { font-size: .82rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
}
.footer-legal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 0;
  margin: 0;
  font-size: .82rem;
}
.footer-legal a { color: #c9cfcb; text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }
.site-footer .footer-disclosure {
  margin: 28px 0 0;
  font-size: .78rem;
  line-height: 1.55;
  max-width: 75ch;
  color: #a3a8a5;
}
.modal__book {
  font-size: .9rem;
  font-weight: 700;
  color: var(--green-deep);
  margin: -4px 0 12px;
}

/* ---------- Logo image ---------- */
.logo__image { max-height: 46px; width: auto; }

/* ---------- Custom HTML ---------- */
.bt-custom-html > :first-child { margin-top: 0; }
.bt-custom-html > :last-child { margin-bottom: 0; }

/* ==========================================================
   Version 1.2 components: book pages, reviews, blog, search,
   links, press, freebie, buy box, ratings and QR sheets.
   ========================================================== */

.section--soft { background: var(--grey-bg); }
.bt-kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin: 0 0 8px;
}
.bt-note { color: var(--muted); font-size: .9rem; }
.bt-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--green-soft);
  color: var(--green-deep);
  border-radius: 999px;
  padding: 3px 10px;
}
.btn--outline {
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(29,38,33,.16);
}
.btn--outline:hover { box-shadow: inset 0 0 0 2px rgba(29,38,33,.28), 0 10px 22px rgba(0,0,0,.10); }

/* ---------- Stars and ratings ---------- */
.bt-stars { display: inline-flex; gap: 2px; color: #e0a814; font-size: 1.05rem; line-height: 1; }
.bt-star.is-half { opacity: .55; }
.bt-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: .92rem;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.bt-rating__value { font-weight: 800; color: var(--ink); }
.bt-rating__source { color: var(--muted); }
.bt-rating__checked { color: var(--muted); font-size: .82rem; }
.bt-rating--compact { margin-bottom: 8px; font-size: .86rem; }
.bt-rating--compact .bt-rating__checked { display: none; }

/* ---------- Format chips ---------- */
.book-card__formats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 14px;
}
.format-chip {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--ink-soft);
  background: var(--grey-card);
  border-radius: 999px;
  padding: 4px 10px;
}
.book-card__cover-link { display: block; text-decoration: none; }
.book-card__more {
  display: inline-block;
  margin-top: 12px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--green-deep);
  text-decoration: none;
}
.book-card__more:hover { text-decoration: underline; }

/* ---------- Buy box ---------- */
.bt-buybox {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin: 20px 0;
}
.bt-buybox__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.bt-buybtn { padding: 12px 22px; font-size: .98rem; }
.bt-buybtn__icon { font-size: 1rem; }
.bt-buybtn__price { font-weight: 800; opacity: .8; font-size: .88rem; margin-left: 2px; }
.bt-buybox__stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: .86rem;
  color: var(--muted);
}
.bt-store {
  text-decoration: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--grey-card);
  color: var(--ink-soft);
  font-weight: 700;
}
.bt-store:hover { background: var(--green-soft); color: var(--green-deep); }
.bt-store.is-current { background: var(--green); color: var(--ink); }
.bt-buybox__note { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }
.bt-buybox--soon { text-align: center; }
.bt-buybox__soon { font-size: .95rem; color: var(--ink-soft); }

/* ---------- Breadcrumbs ---------- */
.bt-breadcrumbs { margin: 0 0 26px; font-size: .86rem; color: var(--muted); }
.bt-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.bt-breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: #b6c1bb; }
.bt-breadcrumbs a { text-decoration: none; color: var(--ink-soft); }
.bt-breadcrumbs a:hover { text-decoration: underline; }
.bt-breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ---------- Book page ---------- */
.bt-book-hero { padding-top: 44px; }
.bt-book-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
}
.bt-book-hero__cover { max-width: 320px; margin: 0 auto; }
.bt-book-hero__body h1 { margin-bottom: 6px; }
.bt-book-hero__subtitle { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 14px; }
.bt-book-hero__description { margin: 18px 0; }
.bt-book-hero__review-link { margin-top: 10px; }
.bt-book-hero__review-link a { color: var(--green-deep); font-weight: 700; }
.bt-book-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(29,38,33,.08);
}
.bt-book-details div { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; }
.bt-book-details dt { color: var(--muted); margin: 0; }
.bt-book-details dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- Review page ---------- */
.bt-review-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}
.bt-review-hero__cover { max-width: 220px; margin: 0 auto; }
.bt-review-hero__book { font-weight: 800; color: var(--ink); margin: 0 0 14px; }
.bt-review-hero__text { margin-bottom: 20px; }
.bt-review-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.bt-review-hero__back a { color: var(--green-deep); font-weight: 700; }
.bt-steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 0;
  margin: 30px 0 0;
  counter-reset: step;
}
.bt-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.bt-steps__num {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--green-deep);
  font-family: var(--font-head);
  font-weight: 700;
}
.bt-steps h3 { font-size: 1.08rem; margin-bottom: 4px; }
.bt-steps p { margin: 0; font-size: .94rem; }
.bt-review-note { max-width: 640px; margin: 26px auto 0; font-size: .92rem; color: var(--muted); }
.bt-market-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 22px 0 0;
}
.bt-market-links a {
  display: inline-block;
  text-decoration: none;
  background: var(--white);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: var(--shadow);
}
.bt-market-links a:hover { background: var(--green-soft); color: var(--green-deep); }
.bt-review-source { margin: 8px 0 0; font-size: .82rem; color: var(--muted); }
.bt-review-source a { color: var(--green-deep); font-weight: 700; }

/* ---------- Blog ---------- */
.bt-blog-head { padding-bottom: 18px; }
.bt-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 30px;
}
.bt-category {
  text-decoration: none;
  font-size: .86rem;
  font-weight: 700;
  background: var(--white);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: var(--shadow);
}
.bt-category span { color: var(--muted); font-weight: 600; }
.bt-category:hover, .bt-category.is-current { background: var(--green); color: var(--ink); }
.post-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.post-card__image {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--green-soft);
  margin-bottom: 16px;
}
.post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.post-card__image--empty {
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--green-deep);
}
.post-card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-card__title { font-family: var(--font-head); font-size: 1.22rem; line-height: 1.25; color: var(--ink); }
.post-card__excerpt { font-size: .93rem; color: var(--ink-soft); }
.post-card__meta { margin-top: auto; font-size: .8rem; color: var(--muted); }
.post-card--featured { grid-column: span 2; }
.post-card--featured .post-card__title { font-size: 1.6rem; }
.post-card:hover .post-card__title { color: var(--green-deep); }
.bt-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 22px;
  margin: 34px 0 0;
  font-size: .92rem;
}
.bt-pagination__step {
  text-decoration: none;
  font-weight: 700;
  color: var(--green-deep);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 18px;
  box-shadow: var(--shadow);
}
.bt-pagination__count { color: var(--muted); }
.bt-post__container { max-width: 760px; }
.bt-post__header { margin-bottom: 26px; }
.bt-post__meta { color: var(--muted); font-size: .88rem; }
.bt-post__excerpt { font-size: 1.12rem; color: var(--ink-soft); }
.bt-post__cover { margin: 0 0 30px; border-radius: var(--radius); overflow: hidden; }
.bt-post__cover img { width: 100%; height: auto; }
.bt-post__body h2, .bt-post__body h3 { margin-top: 1.4em; }
.bt-post__body img { border-radius: var(--radius-sm); margin: 1.4em 0; height: auto; }
.bt-post__body blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--green);
  color: var(--ink-soft);
}
.bt-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 30px 0 0;
}
.bt-tags li {
  font-size: .8rem;
  font-weight: 700;
  background: var(--grey-card);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ---------- Search ---------- */
.bt-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 620px;
  margin: 24px auto 0;
}
.bt-search-form input {
  flex: 1 1 260px;
  font: inherit;
  padding: 14px 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--white);
  box-shadow: var(--shadow);
}
.bt-search-form input:focus { outline: none; border-color: var(--green-deep); }
.bt-search-count { color: var(--muted); margin: 0 0 22px; }
.bt-search-group { margin: 0 0 34px; }
.bt-search-group h2 { font-size: 1.3rem; }
.bt-search-list { display: grid; gap: 12px; grid-template-columns: 1fr; }
.bt-search-item {
  display: flex;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.bt-search-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.bt-search-item__thumb { flex: 0 0 64px; width: 64px; }
.bt-search-item__thumb .book { width: 64px; }
.bt-search-item__thumb--photo img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.bt-search-item__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bt-search-item__title { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.bt-search-item__excerpt { font-size: .86rem; color: var(--muted); }

/* ---------- Link in bio ---------- */
.bt-links-page { background: var(--grey-bg); }
.bt-links-head { padding-bottom: 20px; }
.bt-links-featured { padding-top: 0; }
.bt-links-featured__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.bt-links-featured__card .book { max-width: 190px; }
.bt-links-featured__body { width: 100%; }
.bt-links-featured__body .bt-buybox { box-shadow: none; background: var(--grey-bg); }
.bt-links-list { display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin: 0 auto; }
.bt-linkbtn {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.bt-linkbtn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.bt-linkbtn--accent { background: var(--butter); }
.bt-linkbtn__icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  font-size: 1.2rem;
}
.bt-linkbtn strong { display: block; font-family: var(--font-head); color: var(--ink); }
.bt-linkbtn small { color: var(--muted); font-size: .82rem; }
.bt-links-newsletter { padding-top: 10px; }

/* ---------- Press ---------- */
.bt-press-head__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}
.bt-press-bio { margin: 18px 0; }
.bt-press-contact { font-size: .95rem; }
.bt-press-contact a { color: var(--green-deep); font-weight: 700; }
.bt-press-photo img { width: 100%; max-width: 360px; margin: 0 auto; border-radius: var(--radius-lg); object-fit: cover; }
.bt-press-request__box { max-width: 720px; background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.bt-press-schools__text { max-width: 760px; margin: 0 auto; }
.bt-form { display: flex; flex-direction: column; gap: 14px; }
.bt-form__row { display: grid; grid-template-columns: 1fr; gap: 14px; }
.bt-form label { display: block; font-weight: 700; font-size: .88rem; color: var(--ink); }
.bt-form input, .bt-form textarea {
  width: 100%;
  margin-top: 5px;
  font: inherit;
  font-weight: 400;
  padding: 12px 15px;
  border-radius: 14px;
  border: 1px solid rgba(29,38,33,.14);
  background: var(--white);
}
.bt-form input:focus, .bt-form textarea:focus {
  outline: none;
  border-color: var(--green-deep);
  box-shadow: 0 0 0 3px rgba(46,125,79,.14);
}

/* ---------- Freebie ---------- */
.bt-freebie__box {
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.bt-freebie__art { font-size: 3.4rem; line-height: 1; margin-bottom: 12px; }
.bt-freebie__form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 20px 0 10px; }
.bt-freebie__form input[type="email"] {
  flex: 1 1 240px;
  font: inherit;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(29,38,33,.14);
}
.bt-freebie__form input[type="email"]:focus { outline: none; border-color: var(--green-deep); }

/* ---------- QR sheet (public + admin helper classes) ---------- */
.bt-qr-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.bt-qr-card {
  border: 1px dashed rgba(29,38,33,.2);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  background: var(--white);
}
.bt-qr-card__code { display: grid; place-items: center; margin-bottom: 10px; }
.bt-qr-card strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.bt-qr-card small { display: block; color: var(--muted); font-size: .8rem; }
.bt-qr-card__hint { display: block; margin-top: 8px; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .bt-search-list { grid-template-columns: repeat(2, 1fr); }
  .bt-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 860px) {
  .bt-book-hero__grid { grid-template-columns: minmax(260px, 340px) 1fr; }
  .bt-review-hero__grid { grid-template-columns: 240px 1fr; }
  .bt-press-head__grid { grid-template-columns: 1.4fr 1fr; }
  .bt-form__row { grid-template-columns: repeat(2, 1fr); }
  .bt-links-featured__card { flex-direction: row; text-align: left; }
  .bt-links-featured__card .bt-buybox { text-align: left; }
}

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .bt-hero--pastel { padding: 38px 18px; }
  .bt-hero__actions .btn { width: 100%; justify-content: center; }
  .dl .arrow { display: none; }
  .book-card { padding: 20px; }
  .post-card--featured { grid-column: auto; }
  .post-card--featured .post-card__title { font-size: 1.22rem; }
}
