/* EION Books Shop
   Layout idea: a sticker-book bookstore. Flat festival colors, thick ink outlines,
   hard offset shadows, oversized covers. Each collection swaps the --t theme tokens. */
:root {
  color-scheme: light;
  --cream: #FFF6E4;
  --paper: #FFFDF7;
  --ink: #2A1E4A;
  --ink-soft: #5B4F7A;
  --yellow: #FFD43B;
  --coral: #FF7774;
  --pink: #EE71AF;
  --blue: #31B8D7;
  --green: #8BCF69;
  --purple: #7959D7;
  --font-display: "Fredoka", "Trebuchet MS", "Arial Rounded MT Bold", sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-hand: "Gochi Hand", "Comic Sans MS", cursive;
  --line: 3px solid var(--ink);
  --pop: 5px 5px 0 var(--ink);
  --t: var(--purple); --t2: var(--yellow); --t-soft: #EDE6FF; --t-on: #fff;
}
.t-peyton  { --t: #7959D7; --t2: #EE71AF; --t-soft: #EDE6FF; --t-on: #fff; }
.t-picture { --t: #FF7774; --t2: #FFD43B; --t-soft: #FFE6DF; --t-on: var(--ink); }
.t-bright  { --t: #FFD43B; --t2: #31B8D7; --t-soft: #FFF3C4; --t-on: var(--ink); }
.t-jbm     { --t: #EE71AF; --t2: #FFD43B; --t-soft: #FFE1F0; --t-on: var(--ink); }
.t-bible   { --t: #31B8D7; --t2: #FFD43B; --t-soft: #DDF4FA; --t-on: var(--ink); }
.t-bulk    { --t: #8BCF69; --t2: #FFD43B; --t-soft: #E5F5DB; --t-on: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 4px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.lede { font-size: 1.2rem; max-width: 34em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; text-decoration: none;
  padding: .6em 1.25em; min-height: 48px; border: var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--lg { font-size: 1.2rem; padding: .7em 1.5em; }
.btn--primary { background: var(--purple); color: #fff; }
.btn--buy { background: var(--coral); }
.btn--yellow { background: var(--yellow); }
.btn--ghost-light { background: transparent; }
.btn--pending, .btn--pending:hover, .btn--pending:active {
  background: transparent; border-style: dashed; color: var(--ink-soft); box-shadow: none; transform: none; cursor: default;
}

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.home-link { text-decoration: none; display: inline-flex; }
.logo-img { height: 46px; width: auto; display: block; }
.wordmark { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.wordmark > span:not(.wordmark__books) {
  display: grid; place-items: center; width: 1.55em; height: 1.55em; border: var(--line); border-radius: 9px; color: var(--ink);
}
.wordmark__e { background: var(--yellow); transform: rotate(-6deg); }
.wordmark__i { background: var(--coral); transform: rotate(4deg); }
.wordmark__o { background: var(--blue); transform: rotate(-3deg); }
.wordmark__n { background: var(--green); transform: rotate(6deg); }
.wordmark__books { margin-left: 6px; }
.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none;
  font-family: var(--font-display); font-weight: 500; font-size: .98rem; border: 2px solid transparent; white-space: nowrap;
}
.site-nav a:hover { background: var(--paper); border-color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.site-nav .nav-bulk { background: var(--yellow); border-color: var(--ink); }
.menu-btn { display: none; align-items: center; gap: 10px; background: var(--yellow); border: var(--line); border-radius: 999px; padding: 8px 16px; min-height: 46px; font-family: var(--font-display); font-weight: 600; cursor: pointer; }
.menu-btn__bars { width: 18px; height: 12px; border-block: 3px solid var(--ink); position: relative; }
.menu-btn__bars::after { content: ""; position: absolute; inset: 1.5px 0 auto; border-top: 3px solid var(--ink); }
@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; }
  .site-nav { display: none; position: absolute; inset: 100% 0 auto; background: var(--cream); border-bottom: var(--line); padding: 12px 20px 20px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 6px; }
  .site-nav a { font-size: 1.15rem; padding: 12px 16px; background: var(--paper); border-color: var(--ink); }
}

/* ---------- covers ---------- */
.cover-btn { --h: 200px; background: none; border: 0; padding: 0; cursor: pointer; display: inline-block; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.book, .stack__item {
  display: block; height: var(--h); position: relative; overflow: hidden; background: var(--paper);
  border: var(--line); border-radius: 4px 10px 10px 4px; box-shadow: var(--pop);
}
.book::after, .stack__item::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 7%; background: rgba(42, 30, 74, .16); border-right: 1px solid rgba(42, 30, 74, .25); }
.book--plain { border-radius: 10px; }
.book--plain::after { display: none; }
.cover-img { display: block; height: 100%; width: auto; max-width: none; }
.cover-ph {
  container-type: inline-size; display: flex; flex-direction: column; justify-content: space-between; gap: 6cqw;
  height: 100%; aspect-ratio: 4 / 5; padding: 9% 9% 8% 14%; text-align: left; color: var(--ink);
  background: radial-gradient(circle at 78% 82%, var(--c2) 0 34%, transparent 34.5%), var(--c1);
}
.cover-ph__tag { align-self: flex-start; font: 600 6.2cqw/1.2 var(--font-body); background: var(--paper); border: 1.5px dashed var(--ink); border-radius: 999px; padding: .3em .8em; }
.cover-ph__title { font: 700 11.5cqw/1.05 var(--font-display); background: var(--paper); border: 2px solid var(--ink); border-radius: 6px; padding: .4em .5em; overflow-wrap: anywhere; }
.cover-ph__pub { font: 700 6cqw/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.stack { display: inline-flex; align-items: flex-end; padding-right: 6px; }
.stack__item + .stack__item { margin-left: calc(var(--h) * -.52); }
.stack__item:nth-child(1) { transform: rotate(-7deg); }
.stack__item:nth-child(2) { transform: rotate(-1deg) translateY(-4%); }
.stack__item:nth-child(3) { transform: rotate(5deg); }
.stack__item:nth-child(4) { transform: rotate(10deg) translateY(3%); }
.cover-btn:hover, .cover-btn:focus-visible { transform: translateY(-10px) rotate(-2.5deg); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(40px, 6vw, 80px); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero__copy { display: grid; gap: 22px; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.7rem); font-weight: 700; display: grid; gap: .12em; justify-items: start; }
.hero h1:focus { outline: none; }
.hl--2 { background: var(--yellow); border: var(--line); border-radius: 14px; padding: .05em .28em .1em; transform: rotate(-1.5deg); box-shadow: var(--pop); }
.hl--3 { color: var(--purple); text-decoration: underline wavy var(--coral); text-decoration-thickness: .07em; text-underline-offset: .14em; padding-bottom: .15em; }
.hero__fan { --s: 1; position: relative; height: calc(470px * var(--s)); }
.fan { position: absolute; }
.fan--1 { --h: calc(225px * var(--s)); left: 0;   top: calc(120px * var(--s)); transform: rotate(-12deg); }
.fan--2 { --h: calc(275px * var(--s)); left: 13%; top: calc(24px * var(--s));  transform: rotate(-5deg); }
.fan--3 { --h: calc(315px * var(--s)); left: 30%; top: calc(86px * var(--s));  transform: rotate(2deg); z-index: 3; }
.fan--4 { --h: calc(250px * var(--s)); left: 50%; top: calc(8px * var(--s));   transform: rotate(8deg); }
.fan--5 { --h: calc(215px * var(--s)); left: 60%; top: calc(210px * var(--s)); transform: rotate(13deg); z-index: 4; }
.hero__fan .fan:hover, .hero__fan .fan:focus-visible { transform: translateY(-14px) rotate(0deg) scale(1.04); z-index: 6; }
.doodle { position: absolute; pointer-events: none; }
.doodle--star { width: 54px; height: 54px; right: 2%; top: 44%; background: var(--yellow); border: var(--line); clip-path: none; border-radius: 50% 8px 50% 8px; transform: rotate(18deg); animation: bob 5s ease-in-out infinite; }
.doodle--ring { width: 70px; height: 70px; left: 30%; bottom: -8px; border: 12px solid var(--pink); border-radius: 50%; animation: bob 6s ease-in-out -2s infinite; }
.doodle--dot { width: 26px; height: 26px; left: 6%; top: 6%; background: var(--green); border: var(--line); border-radius: 50%; animation: bob 4s ease-in-out -1s infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__fan { --s: .78; max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 520px) { .hero__fan { --s: .56; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(44px, 7vw, 88px); }
.section__head { display: grid; gap: 10px; margin-bottom: 28px; max-width: 46em; }
.section__head p { font-size: 1.12rem; }

/* ---------- bookshelf ---------- */
.shelf-section { background: var(--paper); border-block: var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.filters__label { font-family: var(--font-hand); font-size: 1.15rem; margin-left: 10px; }
.filter { background: var(--cream); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; min-height: 40px; font-family: var(--font-display); font-weight: 500; cursor: pointer; transition: transform .15s; }
.filter:hover { transform: translateY(-2px); background: var(--yellow); }
.filter.is-on { background: var(--ink); color: #fff; }
.filters__status { min-height: 1.6em; margin-top: 10px; font-weight: 700; }
.bookcase { display: grid; grid-template-columns: repeat(6, 1fr); gap: 34px 28px; margin-top: 8px; }
.shelf { grid-column: span 4; display: grid; align-content: end; min-width: 0; transition: opacity .3s; }
.shelf:nth-child(2), .shelf:nth-child(5) { grid-column: span 2; }
.shelf:nth-child(3) { grid-column: span 6; }
.shelf.is-empty { opacity: .45; }
.shelf__label { font-size: 1.15rem; margin-bottom: 14px; }
.shelf__label a { text-decoration: none; display: inline-block; background: var(--t); color: var(--t-on); border: 2px solid var(--ink); border-radius: 8px; padding: 4px 12px; transform: rotate(-1.5deg); }
.shelf__label a:hover { transform: rotate(1deg) scale(1.04); }
.shelf__books { display: flex; align-items: flex-end; gap: 22px; padding: 22px 22px 0; overflow-x: auto; scrollbar-width: thin; }
.shelf__books li { position: relative; flex: none; transition: opacity .3s, filter .3s; }
.on-shelf { --h: 178px; display: block; }
.shelf__price { position: absolute; top: -12px; right: -12px; z-index: 2; background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 9px; font: 600 .85rem/1.5 var(--font-display); transform: rotate(6deg); pointer-events: none; }
.shelf__books li.is-dim { opacity: .2; filter: grayscale(1); pointer-events: none; }
.shelf__plank { height: 18px; background: var(--t); border: var(--line); border-radius: 8px; box-shadow: 0 7px 0 var(--ink); margin-bottom: 7px; }
@media (max-width: 860px) {
  .bookcase { grid-template-columns: 1fr; }
  .shelf, .shelf:nth-child(n) { grid-column: auto; }
  .on-shelf { --h: 156px; }
}

/* ---------- collection doors ---------- */
.doors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.door { grid-column: span 2; }
.door--1 { grid-column: span 3; }
.door--2 { grid-column: span 3; }
.door a {
  display: grid; gap: 8px; align-content: start; height: 100%; padding: 26px; text-decoration: none; position: relative; overflow: hidden;
  background: var(--t); color: var(--t-on); border: var(--line); box-shadow: 7px 7px 0 var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.door a:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 11px 11px 0 var(--ink); }
.door--1 a { border-radius: 44px 44px 44px 10px; }
.door--2 a { border-radius: 10px 44px 10px 44px; }
.door--3 a { border-radius: 44px 10px 44px 44px; }
.door--4 a { border-radius: 10px 10px 44px 44px; }
.door--5 a { border-radius: 90px 90px 14px 14px; }
.door__covers { display: flex; align-items: flex-end; height: 150px; margin-bottom: 8px; }
.door__cover { display: block; height: 140px; border: var(--line); border-radius: 4px 8px 8px 4px; overflow: hidden; box-shadow: 4px 4px 0 var(--ink); background: var(--paper); transition: transform .25s; }
.door__cover + .door__cover { margin-left: -34px; }
.door__cover:nth-child(1) { transform: rotate(-6deg); }
.door__cover:nth-child(2) { transform: rotate(3deg) translateY(-8px); }
.door__cover:nth-child(3) { transform: rotate(9deg); }
.door a:hover .door__cover:nth-child(1) { transform: rotate(-11deg) translateX(-6px); }
.door a:hover .door__cover:nth-child(3) { transform: rotate(14deg) translateX(6px); }
.door--5 .door__covers { justify-content: center; }
.door__kicker { font: 600 .82rem/1.3 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.door__name { font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1.05 var(--font-display); }
.door__go { font: 600 1rem var(--font-display); margin-top: 6px; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .door, .door--1, .door--2 { grid-column: span 3; } .door--5 { grid-column: span 6; } }
@media (max-width: 600px) { .door, .door--1, .door--2, .door--5 { grid-column: span 6; } }

/* ---------- meet Peyton ---------- */
.meet { background: var(--t-soft); border-block: var(--line); }
.meet__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; }
.meet__copy { display: grid; gap: 18px; }
.meet__copy > p { max-width: 36em; }
.meet__books { display: flex; gap: 18px; flex-wrap: wrap; }
.mini { --h: 130px; }
.character-wrap { position: relative; display: block; width: fit-content; margin-inline: auto; padding: 0 34px; }
.character-wrap::before { content: ""; position: absolute; left: 50%; bottom: 4%; width: min(340px, 100%); aspect-ratio: 1; translate: -50% 0; background: var(--yellow); border: var(--line); border-radius: 50%; box-shadow: var(--pop); }
.character { position: relative; display: block; max-height: 460px; width: auto; margin-inline: auto; }
.chero__art .character { max-height: 400px; }
.character-ph {
  aspect-ratio: 1; width: min(360px, 100%); margin-inline: auto; display: grid; place-content: center; gap: 4px; text-align: center; padding: 30px;
  background: var(--yellow); border: 4px dashed var(--ink); border-radius: 50%; font: 600 1.25rem/1.2 var(--font-display);
}
.character-ph small { font: 400 1.05rem var(--font-hand); }
@media (max-width: 800px) { .meet__in { grid-template-columns: 1fr; } }

/* ---------- bundles ---------- */
.bundles { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px; }
.bundle { display: grid; gap: 18px; align-content: space-between; background: var(--t-soft); border: var(--line); border-radius: 28px; padding: 30px 24px 24px; box-shadow: 7px 7px 0 var(--t); }
.bundle__cover { --h: 170px; justify-self: center; }
.bundle__body { display: grid; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 12px; font: 600 .9rem/1.6 var(--font-display); }
.chip--note { background: var(--green); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-family: var(--font-display); }
.price__now { font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.price__was { color: var(--ink-soft); font-size: 1.15rem; }
.price__save { background: var(--yellow); border: 2px solid var(--ink); border-radius: 8px; padding: 0 10px; font-weight: 600; transform: rotate(-3deg); }
.desc { max-width: 36em; }
.setup-note { font: 400 1.05rem/1.4 var(--font-hand); color: var(--ink-soft); border: 2px dashed var(--ink-soft); border-radius: 10px; padding: 6px 12px; background: rgba(255, 255, 255, .6); max-width: 36em; }
.setup-note::before { content: "To add: "; font-weight: 700; }
.setup-note--block { margin-block: 26px; }

/* ---------- LitKids Create ---------- */
.litkids { padding-top: 0; }
.litkids__card { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; background: #fff; border: var(--line); border-radius: 30px; padding: clamp(22px, 4vw, 40px); box-shadow: 7px 7px 0 var(--coral); }
.litkids__logo img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.litkids__copy { display: grid; gap: 14px; }
.litkids__copy > p { max-width: 38em; }
@media (max-width: 760px) { .litkids__card { grid-template-columns: 1fr; } .litkids__logo img { max-width: 280px; } }
.jr-badge { display: inline-flex; align-items: center; gap: 14px; justify-self: start; background: #fff; color: var(--ink); border: var(--line); border-radius: 18px; padding: 10px 18px 10px 12px; margin-top: 4px; }
.jr-badge img { display: block; height: 76px; width: auto; mix-blend-mode: multiply; }
.jr-badge__label { font: 600 1.1rem/1.2 var(--font-display); }
@media (max-width: 480px) { .jr-badge img { height: 60px; } .jr-badge__label { font-size: 1rem; } }

/* ---------- grown-ups ---------- */
.grown { background: var(--blue); border-block: var(--line); }
.grown__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.grown__copy { display: grid; gap: 18px; }
.grown__list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grown__list li { background: var(--paper); border: var(--line); border-radius: 18px; padding: 16px 18px; display: grid; gap: 4px; }
.grown__list li:nth-child(odd) { transform: rotate(-1.2deg); }
.grown__list li:nth-child(even) { transform: rotate(1deg); }
.grown__list strong { font: 600 1.2rem var(--font-display); }
@media (max-width: 860px) { .grown__in { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .grown__list { grid-template-columns: 1fr; } }

/* ---------- collection pages ---------- */
.chero { background: var(--t); color: var(--t-on); border-bottom: var(--line); position: relative; overflow: hidden; }
.chero__in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; padding-block: clamp(34px, 6vw, 72px); position: relative; }
.chero__copy { display: grid; gap: 16px; }
.chero h1 { font-size: clamp(2.5rem, 6.5vw, 5rem); font-weight: 700; }
.chero h1:focus { outline: none; }
.chero__tag { font: 400 1.7rem/1.2 var(--font-hand); }
.crumb { font-size: .95rem; font-weight: 700; }
.chero__art { display: flex; justify-content: center; align-items: flex-end; min-height: 250px; }
.chero__art .fan { position: static; --h: 240px; }
.cfan--1 { transform: rotate(-7deg); }
.cfan--2 { transform: rotate(3deg) translateY(-14px); margin-left: -40px; z-index: 2; }
.cfan--3 { transform: rotate(10deg); margin-left: -40px; }
.chero__art .fan:hover { transform: translateY(-12px) rotate(0); z-index: 5; }
/* personalities */
.chero.t-peyton { background-image: radial-gradient(circle, rgba(255, 255, 255, .22) 3px, transparent 3.5px), radial-gradient(circle, #FFD43B 4px, transparent 4.5px); background-size: 46px 46px, 138px 138px; background-position: 0 0, 23px 60px; }
.chero.t-peyton .chero__tag { color: var(--yellow); }
.chero.t-picture { padding-bottom: 34px; }
.chero.t-picture::after { content: ""; position: absolute; inset: auto 0 0; height: 34px; background: repeating-linear-gradient(90deg, var(--yellow) 0 46px, transparent 46px 92px) center / auto 6px no-repeat, var(--ink); }
.chero.t-bright { background-image: repeating-linear-gradient(180deg, transparent 0 46px, rgba(49, 184, 215, .55) 46px 48px, transparent 48px 70px, rgba(255, 119, 116, .5) 70px 71px, transparent 71px 94px); }
.chero.t-jbm h1 { color: var(--paper); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--yellow); letter-spacing: .01em; }
.chero.t-bible::before { content: "A B C"; position: absolute; right: -10px; bottom: -70px; font: 700 clamp(9rem, 24vw, 19rem)/1 var(--font-display); color: rgba(255, 255, 255, .28); white-space: nowrap; pointer-events: none; }
.chero__who { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chero__who li { background: var(--paper); color: var(--ink); border: var(--line); border-radius: 14px; padding: 10px 18px; font: 600 1.15rem var(--font-display); box-shadow: 4px 4px 0 var(--ink); }
.chero__who li:nth-child(odd) { transform: rotate(-3deg); }
.chero__who li:nth-child(even) { transform: rotate(2.5deg); }
@media (max-width: 860px) { .chero__in { grid-template-columns: 1fr; } .chero__art .fan { --h: 190px; } }

.feature { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; margin-top: 48px; background: var(--t-soft); border: var(--line); border-radius: 36px; padding: clamp(24px, 4vw, 44px); box-shadow: 9px 9px 0 var(--t2); }
.feature__cover { --h: 230px; }
.feature__body { display: grid; gap: 14px; }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; justify-items: start; } .feature__cover { --h: 170px; } }

.rows { display: grid; gap: 34px; margin-block: 54px; }
.row { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(20px, 3vw, 34px); background: var(--paper); border: var(--line); border-radius: 30px 30px 30px 8px; }
.row--flip { grid-template-columns: 1fr auto; border-radius: 30px 30px 8px 30px; background: var(--t-soft); }
.row--flip .row__art { order: 2; }
.row__cover { --h: clamp(220px, 30vw, 340px); }
.row:not(.row--flip) .row__cover { transform: rotate(-3deg); }
.row--flip .row__cover { transform: rotate(3deg); }
.row .row__cover:hover { transform: translateY(-10px) rotate(0); }
.row__body { display: grid; gap: 14px; }
.row__body h3 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
@media (max-width: 700px) {
  .row, .row--flip { grid-template-columns: 1fr; justify-items: start; }
  .row--flip .row__art { order: 0; }
}

.awards ul { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.awards li { background: var(--yellow); border: var(--line); border-radius: 999px; padding: 6px 18px; font: 600 1rem var(--font-display); }

.bulk-strip { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; border-radius: 26px; padding: 28px clamp(20px, 4vw, 40px); }
.bulk-strip h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 6px; }
.bulk-strip .btn { box-shadow: 4px 4px 0 var(--coral); }
.others { margin-block: 54px 70px; display: grid; gap: 18px; }
.others ul { display: flex; flex-wrap: wrap; gap: 14px; }
.others a { display: block; background: var(--t); color: var(--t-on); border: var(--line); border-radius: 14px; padding: 10px 18px; font: 600 1.1rem var(--font-display); text-decoration: none; box-shadow: 4px 4px 0 var(--ink); transition: transform .15s; }
.others a:hover { transform: translate(-2px, -2px) rotate(-1deg); }

/* ---------- bulk page ---------- */
.steps { margin-block: 54px 30px; display: grid; gap: 22px; }
.steps ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--paper); border: var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 6px; align-content: start; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; background: var(--green); border: var(--line); border-radius: 50%; font: 700 1.4rem var(--font-display); }
.steps strong { font: 600 1.25rem var(--font-display); }
.tiers { width: 100%; border-collapse: collapse; background: var(--paper); border: var(--line); margin-block: 26px; font-variant-numeric: tabular-nums; }
.tiers th, .tiers td { text-align: left; padding: 12px 16px; border-bottom: 2px solid var(--ink); }
.tiers th { background: var(--yellow); font-family: var(--font-display); }
.catalog { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 32px); align-items: start; background: var(--paper); border: var(--line); border-radius: 28px; padding: clamp(22px, 4vw, 36px); box-shadow: 7px 7px 0 var(--green); margin-block: 10px 40px; }
.catalog__icon { display: grid; place-items: center; width: 78px; height: 96px; background: var(--coral); border: var(--line); border-radius: 6px 20px 6px 6px; font: 700 1.3rem var(--font-display); transform: rotate(-4deg); }
.catalog__body { display: grid; gap: 12px; }
.catalog__body > p { max-width: 42em; }
.catalog__info { color: var(--ink-soft); font-weight: 700; font-size: .95rem; }
.catalog__note { font-size: .98rem; color: var(--ink-soft); }
.btn--ghost-dark { background: transparent; color: #fff; border-color: #fff; box-shadow: 4px 4px 0 var(--coral); }
@media (max-width: 520px) { .catalog { grid-template-columns: 1fr; } .catalog__icon { width: 62px; height: 76px; font-size: 1.1rem; } }
.facts { background: var(--t-soft, #E5F5DB); background: #E5F5DB; border: var(--line); border-radius: 30px; padding: clamp(22px, 4vw, 40px); display: grid; gap: 18px; margin-bottom: 70px; }
.facts ul { display: grid; gap: 10px; max-width: 48em; }
.facts li { padding-left: 30px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; background: var(--coral); border: 2px solid var(--ink); border-radius: 50%; }

/* ---------- dialog ---------- */
.book-dialog { width: min(880px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: clamp(20px, 4vw, 36px); background: var(--paper); color: var(--ink); border: 4px solid var(--ink); border-radius: 30px; box-shadow: 10px 10px 0 var(--t); overflow: auto; }
.book-dialog::backdrop { background: rgba(42, 30, 74, .62); }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 46px; height: 46px; background: var(--yellow); border: var(--line); border-radius: 50%; font: 700 1.6rem/1 var(--font-display); cursor: pointer; }
.dialog__grid { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: start; }
.dialog__art { --h: 300px; padding: 6px 12px 12px 0; }
.dialog__body { display: grid; gap: 14px; padding-right: 30px; }
.dialog__body h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
.dialog__links { font-size: .98rem; }
.includes ul { list-style: disc; padding-left: 1.2em; }
.includes h4, .previews h4 { font-size: 1.1rem; margin-bottom: 6px; }
.previews { margin-top: 26px; border-top: 2px dashed var(--ink); padding-top: 18px; }
.previews__list { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.previews__list li { flex: none; }
.previews__list img { height: 220px; width: auto; max-width: none; border: 2px solid var(--ink); border-radius: 8px; display: block; }
.preview-btn { display: block; padding: 0; border: 0; background: none; border-radius: 8px; cursor: zoom-in; transition: transform .2s; }
.preview-btn:hover { transform: translateY(-4px) rotate(-1deg); }
.zoom-dialog { width: fit-content; max-width: calc(100% - 20px); max-height: calc(100% - 20px); padding: 18px; background: var(--paper); color: var(--ink); border: 4px solid var(--ink); border-radius: 24px; box-shadow: 10px 10px 0 var(--yellow); overflow: auto; }
.zoom-dialog::backdrop { background: rgba(42, 30, 74, .78); }
.zoom__img { display: block; margin-inline: auto; max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); width: auto; height: auto; border: 2px solid var(--ink); border-radius: 10px; background: #fff; }
.zoom__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin-top: 14px; }
.zoom__count { font: 600 1rem var(--font-display); }
.zoom__nav { font-size: .95rem; min-height: 44px; padding: .4em 1em; }
.preview-ph { width: 160px; height: 200px; display: grid; place-content: center; text-align: center; border: 2px dashed var(--ink-soft); border-radius: 8px; color: var(--ink-soft); font: 600 1rem var(--font-display); background: var(--cream); }
.preview-ph small { display: block; font: 400 1rem var(--font-hand); }
@media (max-width: 640px) { .dialog__grid { grid-template-columns: 1fr; } .dialog__art { --h: 210px; } .dialog__body { padding-right: 0; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding-block: 54px 26px; }
.site-footer__in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.site-footer h2 { font-size: 1.15rem; margin-bottom: 12px; color: var(--yellow); }
.site-footer ul { display: grid; gap: 6px; }
.site-footer__in > div { display: grid; gap: 12px; align-content: start; justify-items: start; }
.site-footer .wordmark__books { color: var(--cream); }
.site-footer__line { font: 400 1.35rem/1.3 var(--font-hand); max-width: 16em; }
.site-footer__base { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 246, 228, .3); display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; font-size: .92rem; }
@media (max-width: 800px) { .site-footer__in { grid-template-columns: 1fr; } }

/* ---------- motion ---------- */
.reveal { transition: opacity .6s ease, translate .6s ease; }
.reveal.pre { opacity: .7; translate: 0 26px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.pre { opacity: 1; translate: none; }
}
