/* Family Storybooks (shares the Family Board Books design system)
   Layout concept: hardcover picture books on a warm paper page;
   colour comes from the letters and the book covers. */
:root {
  /* Letter palette (from the original family ABC book) */
  --red: #EE4B2B;
  --orange: #FF8A1F;
  --sun: #FFC21A;
  --leaf: #1FB45A;
  --sky: #16A6E3;
  --grape: #8A3FD9;
  --pink: #F2558C;
  --brown: #9A5B34;
  --ink: #1E1A33;
  --cloud: #E9E6F2;
  --splash-dark: #1E1A33;
  /* Neutrals: a violet-tinted ink on near-white paper */
  --bg: #FDFCFA;
  --surface: #FFFFFF;
  --surface-2: #F5F3EE;
  --text: #1E1A33;
  --muted: #5F5A73;
  --line: #E7E3DA;
  --edge: #D9D3C6;
  --page: #FFFEFB;
  --page-edge: #E4DDCF;
  --focus: #16A6E3;
  /* Type */
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --letter: "Oswald", "Impact", "Arial Narrow", sans-serif;
  --r: 22px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15131F; --surface: #1D1A2B; --surface-2: #221F31; --text: #F3F1FA; --muted: #B6B0C8;
    --line: #2F2B42; --edge: #0B0A12; --page: #FFFEFB; --page-edge: #8F8AA3; --splash-dark: #1E1A33;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15131F; --surface: #1D1A2B; --surface-2: #221F31; --text: #F3F1FA; --muted: #B6B0C8;
  --line: #2F2B42; --edge: #0B0A12; --page: #FFFEFB; --page-edge: #8F8AA3; --splash-dark: #1E1A33;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(56px, 8vw, 96px); }
.eyebrow { font: 700 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: 19px; color: var(--muted); max-width: 60ch; }
.sec-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 760px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn { --b: var(--ink); --bt: #fff; display: inline-flex; align-items: center; gap: 10px; justify-content: center; padding: 14px 24px; border-radius: 999px; background: var(--b); color: var(--bt); font: 700 16px/1 var(--body); text-decoration: none; border: 0; cursor: pointer; box-shadow: 0 4px 0 color-mix(in srgb, var(--b) 60%, #000); transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 color-mix(in srgb, var(--b) 60%, #000); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 color-mix(in srgb, var(--b) 60%, #000); }
.btn.red { --b: var(--red); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--text); transform: none; }
.btn.btn-sm { padding: 10px 18px; font-size: 15px; }
:root[data-theme="dark"] .btn:not(.red):not(.ghost) { --b: #F3F1FA; --bt: #1E1A33; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.red):not(.ghost) { --b: #F3F1FA; --bt: #1E1A33; } }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px/1 var(--display); letter-spacing: -0.02em; }
.logo-mark { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 30px; height: 30px; }
.logo-mark i { border-radius: 4px; }
.logo-mark i:nth-child(1) { background: var(--red); border-top-left-radius: 10px; }
.logo-mark i:nth-child(2) { background: var(--sun); border-top-right-radius: 10px; }
.logo-mark i:nth-child(3) { background: var(--sky); border-bottom-left-radius: 10px; }
.logo-mark i:nth-child(4) { background: var(--leaf); border-bottom-right-radius: 10px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 820px) { .nav { display: none; } .site-head .btn { margin-left: auto; } }

/* Hero wordmark */
.hero { padding-block: clamp(44px, 7vw, 84px) 28px; }
.hero-grid { display: grid; gap: 18px; }
.wordmark { font: 800 clamp(48px, 9.5vw, 128px)/0.92 var(--display); letter-spacing: -0.045em; margin: 0; }
.wordmark .w { display: inline-block; white-space: nowrap; }
.wordmark .l { display: inline-block; }
.wordmark .l:nth-child(7n+1) { color: var(--red); }
.wordmark .l:nth-child(7n+2) { color: var(--sky); }
.wordmark .l:nth-child(7n+3) { color: var(--sun); }
.wordmark .l:nth-child(7n+4) { color: var(--leaf); }
.wordmark .l:nth-child(7n+5) { color: var(--grape); }
.wordmark .l:nth-child(7n+6) { color: var(--orange); }
.wordmark .l:nth-child(7n+7) { color: var(--pink); }
.hero-sub { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; }
.hero-sub .lede { font-size: clamp(18px, 2vw, 22px); color: var(--text); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .wordmark .l { animation: hop .6s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--i) * 35ms); }
  @keyframes hop { from { transform: translateY(18px) rotate(-4deg); } to { transform: none; } }
}

/* Theme shelf: horizontally scrolling board-book cards */
.shelf-wrap { position: relative; padding-bottom: 12px; }
.shelf-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.shelf-arrows { display: flex; gap: 8px; }
.arrow { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.arrow:hover { border-color: var(--text); }
.arrow:disabled { opacity: .35; cursor: default; border-color: var(--line); }
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 250px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 22px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.tcard { --card-ink: #fff; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; min-height: 320px; padding: 22px; border-radius: 28px; background: var(--card-bg); color: var(--card-ink); text-decoration: none; box-shadow: 0 9px 0 color-mix(in srgb, var(--card-bg) 62%, #000); transition: transform .15s ease, box-shadow .15s ease; position: relative; }
.tcard:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: 0 14px 0 color-mix(in srgb, var(--card-bg) 62%, #000); }
.tcard .glyph { flex: 1; display: grid; place-items: center; min-height: 120px; }
.tcard h3 { font-size: 24px; }
.tcard p { font-size: 15px; line-height: 1.4; opacity: .92; }
.tcard .from { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; padding-top: 10px; border-top: 2px solid color-mix(in srgb, var(--card-ink) 25%, transparent); }
.tcard.soon { background: var(--surface-2); color: var(--muted); box-shadow: 0 9px 0 var(--line); --card-ink: var(--muted); }
.tcard.soon:hover { transform: none; }
.tag { position: absolute; top: 16px; right: 16px; font: 700 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: color-mix(in srgb, var(--card-ink) 18%, transparent); }
.t-red { --card-bg: var(--red); } .t-sky { --card-bg: var(--sky); } .t-leaf { --card-bg: var(--leaf); }
.t-grape { --card-bg: var(--grape); } .t-pink { --card-bg: var(--pink); } .t-orange { --card-bg: var(--orange); }
.t-sun { --card-bg: var(--sun); --card-ink: #1E1A33; }
.g-text { font: 600 clamp(64px, 8vw, 92px)/1 var(--letter); letter-spacing: .01em; }
.g-quote { font-family: var(--display); font-weight: 800; font-size: 120px; line-height: .6; padding-top: 30px; }
.g-svg { width: 104px; height: 104px; }
.g-dots { display: flex; gap: 8px; }
.g-dots i { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--card-ink); }


/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.step { padding: 28px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.step::before { counter-increment: s; content: counter(s); font: 600 54px/1 var(--letter); color: var(--sc); }
.step:nth-child(1) { --sc: var(--red); } .step:nth-child(2) { --sc: var(--sky); } .step:nth-child(3) { --sc: var(--leaf); }
.step p { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Why */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.why-item { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 4px solid var(--wc); }
.why-item:nth-child(1) { --wc: var(--grape); } .why-item:nth-child(2) { --wc: var(--orange); } .why-item:nth-child(3) { --wc: var(--sky); } .why-item:nth-child(4) { --wc: var(--pink); }
.why-item p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } }

/* Price table */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td a { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
td a:hover { text-decoration: underline; }
.dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; background: var(--dc); flex: none; }
.price { font-weight: 800; font-family: var(--display); font-size: 19px; }
.note { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); padding: 4px 22px; }
.faq summary { cursor: pointer; font: 700 18px/1.3 var(--display); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* Waitlist band */
.band { background: var(--ink); color: #F3F1FA; border-radius: 36px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
:root[data-theme="dark"] .band { background: var(--surface-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { background: var(--surface-2); } }
.band h2 { color: #fff; }
.band p { color: #CFCADE; }
.band .confetti { position: absolute; inset: 0; pointer-events: none; opacity: .9; }
.band > * { position: relative; }
.form { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
input[type="text"], input[type="email"], select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 13px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--text); }
textarea { min-height: 90px; resize: vertical; }
.band input, .band select { background: #fff; color: #1E1A33; border-color: transparent; }
.form-msg { font-weight: 600; min-height: 1.4em; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 40px 56px; margin-top: 40px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: start; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--text); }
.small { font-size: 14px; color: var(--muted); }

/* Book (theme) page */
.bhero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(36px, 6vw, 72px); }
.bhero h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 800; letter-spacing: -0.04em; color: var(--bc); }
.bhero .lede { color: var(--text); font-size: 20px; }
.bhero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 13px; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 600; color: var(--muted); }
.bhero-copy { display: grid; gap: 22px; }
@media (max-width: 760px) { .samples { grid-template-columns: 1fr 1fr; } .samples > :nth-child(3) { display: none; } }
@media (max-width: 860px) { .bhero { grid-template-columns: 1fr; } }
.inside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; padding: 0; margin: 0; list-style: none; }
.inside li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.inside li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 6px; background: var(--bc); }
.edition .btn { margin-top: 8px; }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.opt { padding: 20px; border-radius: 18px; background: var(--surface-2); display: grid; gap: 6px; }
.opt p { color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .opts { grid-template-columns: 1fr; } }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 22px; }
.crumbs a { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Storybooks additions ---------- */
:root { --forest: #2E6B4F; --paper: #FBF6EC; }
.logo-book { width: 30px; height: 30px; flex: none; }

/* Hero: wordmark beside an open picture book */
.hero-grid.split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.hero-grid.split .wordmark { font-size: clamp(48px, 7.4vw, 104px); }
.hero-copy { display: grid; gap: 22px; }
.hero-copy .lede { color: var(--text); font-size: clamp(18px, 2vw, 22px); max-width: 38ch; }
@media (max-width: 900px) { .hero-grid.split { grid-template-columns: 1fr; } }

.spread { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 2 / 1.25; border-radius: 10px 10px 14px 14px; background: var(--paper); box-shadow: 0 2px 0 var(--page-edge), 0 6px 0 #E9DFCB, 0 18px 34px -14px rgba(30, 26, 51, .35); overflow: hidden; position: relative; color: #1E1A33; }
.spread::after { content: ""; position: absolute; inset: 0 auto 0 50%; width: 36px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(30, 26, 51, .10) 45%, rgba(30, 26, 51, .16) 50%, rgba(30, 26, 51, .10) 55%, transparent); pointer-events: none; }
.spread .leaf { padding: clamp(14px, 3vw, 28px); display: grid; align-content: center; gap: 10px; }
.spread .leaf.art { padding: 0; }
.spread .leaf.art svg { width: 100%; height: 100%; display: block; }
.spread .kicker { font: 700 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--forest); }
.spread .story-text { font: 500 clamp(14px, 1.6vw, 19px)/1.45 var(--display); letter-spacing: -0.01em; }
.spread .story-text b { color: var(--red); }

/* Story shelf: hardcover books with a spine */
.bookcard { --card-bg: var(--forest); --card-ink: #fff; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; min-height: 380px; padding: 22px 22px 22px 34px; border-radius: 6px 22px 22px 6px; background: var(--card-bg); color: var(--card-ink); text-decoration: none; position: relative; box-shadow: 0 9px 0 color-mix(in srgb, var(--card-bg) 62%, #000); transition: transform .15s ease, box-shadow .15s ease; }
.bookcard::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; border-radius: 6px 0 0 6px; background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,.08)); }
.bookcard:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: 0 14px 0 color-mix(in srgb, var(--card-bg) 62%, #000); }
.bookcard .motif { flex: 1; display: grid; place-items: center; min-height: 150px; }
.bookcard .motif svg { width: 130px; height: 130px; }
.bookcard h3 { font-size: 23px; }
.bookcard p { font-size: 15px; line-height: 1.4; opacity: .92; }
.bookcard .from { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; padding-top: 10px; border-top: 2px solid color-mix(in srgb, var(--card-ink) 25%, transparent); }
.bookcard.soon { filter: saturate(.55); }
.bookcard.soon:hover { transform: translateY(-3px); }
.bookcard .tag { background: color-mix(in srgb, var(--card-ink) 20%, transparent); }
.b-red { --card-bg: #C8352A; } .b-sun { --card-bg: #E0A20C; --card-ink: #1E1A33; } .b-pink { --card-bg: #D9467C; }
.b-grape { --card-bg: #7036B8; } .b-sky { --card-bg: #1489BD; } .b-leaf { --card-bg: var(--forest); }
.shelf.books { grid-auto-columns: minmax(240px, 260px); }

/* Cast list on a story page */
.cast { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.role { padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.role .who { font: 700 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--bc, var(--forest)); }
.role p { color: var(--muted); font-size: 16px; }
.role.villain { background: var(--surface-2); border-style: dashed; }

/* Meet the characters page */
.meet { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: clamp(18px, 3vw, 30px); border-radius: 12px; background: var(--paper); color: #1E1A33; box-shadow: 0 2px 0 var(--page-edge), 0 6px 0 #E9DFCB; }
.meet h3 { grid-column: 1 / -1; text-align: center; font-size: clamp(22px, 3vw, 30px); }
.meet figure { margin: 0; display: grid; gap: 8px; justify-items: center; text-align: center; font: 600 14px/1.3 var(--body); }
.meet figure svg { width: 100%; max-width: 120px; height: auto; }
.meet figcaption span { display: block; font-weight: 400; color: #5F5A73; }
@media (max-width: 620px) { .meet { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.split-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .split-2 { grid-template-columns: 1fr; } }
.ticks { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 6px; background: var(--bc, var(--forest)); }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step:nth-child(4) { --sc: var(--grape); }
@media (max-width: 1000px) { .steps.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps.four { grid-template-columns: 1fr; } }
.sister { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 28px; border-radius: var(--r); background: var(--surface-2); }
.sister p { color: var(--muted); max-width: 60ch; }

/* Pricing (from Family Board Books) */
@media (max-width: 700px) { .inside { grid-template-columns: 1fr; } }
.editions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.edition { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: var(--r); background: var(--surface); border: 2px solid var(--line); position: relative; }
.edition.featured { border-color: var(--bc); box-shadow: 0 6px 0 var(--bc); }
.edition .badge { position: absolute; top: -13px; left: 22px; background: var(--bc); color: #fff; font: 700 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; }
.edition .amt { font: 800 44px/1 var(--display); letter-spacing: -0.03em; }
.edition .amt small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.note { margin-top: 14px; font-size: 15px; color: var(--muted); }
/* Region selector (from Family Board Books) */
.region { display: inline-flex; flex: none; }
.region-select { appearance: none; -webkit-appearance: none; font: 600 14px/1 var(--body, inherit); color: var(--text); background: var(--card, var(--bg)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center; border: 1px solid var(--line); border-radius: 999px; padding: 9px 28px 9px 12px; cursor: pointer; }
.region-select:hover { border-color: var(--muted); }
.region-select:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.region-bar { margin: 0; padding: 9px 16px; text-align: center; font-size: 14px; font-weight: 600; background: color-mix(in srgb, var(--sky) 16%, var(--bg)); border-bottom: 1px solid var(--line); }
@media (max-width: 820px) { .region { margin-left: auto; } .site-head .region + .btn { margin-left: 0; } .site-head .wrap { gap: 10px; } }
@media (max-width: 420px) { .region-select { padding: 8px 24px 8px 10px; font-size: 13px; background-position: right 8px center; } }

/* Look inside: the flip-through book */
[hidden] { display: none !important; }
.bv { display: grid; gap: 16px; outline: none; }
.bv-names { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); padding: 4px 20px; }
.bv-names summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.bv-name-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-bottom: 16px; }
.field > span { font-weight: 600; font-size: 14px; }
.bv-stage { position: relative; }
.bv-page { position: relative; aspect-ratio: 16 / 9; border-radius: 10px 10px 14px 14px; background: var(--paper); color: #1E1A33; overflow: hidden; box-shadow: 0 2px 0 var(--page-edge), 0 6px 0 #E9DFCB, 0 18px 34px -14px rgba(30, 26, 51, .35); }
.bv-page::after { content: ""; position: absolute; inset: 0 auto 0 50%; width: 40px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(30, 26, 51, .08) 45%, rgba(30, 26, 51, .14) 50%, rgba(30, 26, 51, .08) 55%, transparent); pointer-events: none; }
.turn-fwd .bv-page { animation: turnF .35s ease; } .turn-back .bv-page { animation: turnB .35s ease; }
@keyframes turnF { from { opacity: .2; transform: translateX(24px); } } @keyframes turnB { from { opacity: .2; transform: translateX(-24px); } }
@media (prefers-reduced-motion: reduce) { .turn-fwd .bv-page, .turn-back .bv-page { animation: none; } }
.bv-cover { background: var(--red); color: #fff; display: grid; grid-template-columns: 1fr 1fr; align-content: center; }
.bv-cover::after { display: none; }
.bv-cover > * { grid-column: 2; padding-inline: clamp(16px, 4vw, 48px); margin: 0; }
.bv-cover .bv-cover-art { grid-column: auto; position: absolute; left: 8%; top: 50%; transform: translateY(-50%); width: 34%; aspect-ratio: 1; display: grid; place-items: center; padding: 0; border-radius: 50%; background: color-mix(in srgb, #fff 16%, transparent); }
.bv-cover-art svg { width: 78%; height: 78%; }
.bv-cover h3 { font: 800 clamp(26px, 4.4vw, 52px)/1.02 var(--display); letter-spacing: -0.02em; }
.bv-kicker { font: 700 clamp(11px, 1.3vw, 14px)/1 var(--body); letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-bottom: 12px !important; }
.bv-sub { margin-top: 14px !important; font-size: clamp(13px, 1.6vw, 18px); opacity: .92; }
.bv-plain { display: grid; place-content: center; text-align: center; gap: 10px; padding: 24px; }
.bv-ded { font: 500 italic clamp(18px, 2.6vw, 30px)/1.3 var(--display); }
.bv-note { font-size: clamp(12px, 1.4vw, 15px); color: #5F5A73; }
.bv-note a { color: inherit; font-weight: 700; }
.bv-meet { display: grid; align-content: center; gap: clamp(8px, 1.6vw, 18px); padding: clamp(12px, 3vw, 32px); text-align: center; }
.bv-meet h3 { font-size: clamp(20px, 3vw, 34px); }
.bv-cast { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 1.6vw, 18px); align-items: end; }
.bv-cast figure { margin: 0; display: grid; gap: 6px; justify-items: center; font: 600 clamp(11px, 1.4vw, 15px)/1.25 var(--body); }
.bv-cast svg, .bv-cast img { width: 100%; max-width: 150px; aspect-ratio: 3 / 4; height: auto; object-fit: contain; }
.bv-cast figure.drawn img { border-radius: 10px; background: #fff; }
.bv-cast figure.villain { opacity: .9; }
.bv-cast figcaption span { display: block; font-weight: 400; color: #5F5A73; }
.bv-pic { position: absolute; inset: 0; }
.bv-pic > svg { width: 100%; height: 100%; display: block; }
.bv-wolf { position: absolute; bottom: 8%; width: 16%; }
.side-right .bv-wolf { left: 10%; } .side-left .bv-wolf { right: 10%; }
.bv-wolf svg { width: 100%; height: auto; }
.bv-cap { position: absolute; bottom: 10px; font-size: clamp(11px, 1.2vw, 13px); background: rgba(255, 255, 255, .88); border-radius: 999px; padding: 6px 12px; max-width: 46%; }
.side-right .bv-cap { left: 12px; } .side-left .bv-cap { right: 12px; }
.bv-cap span { font-weight: 700; }
.bv-text { position: absolute; top: 0; bottom: 0; width: 38%; display: grid; align-content: center; gap: .7em; padding: clamp(12px, 2.6vw, 34px); background: linear-gradient(90deg, rgba(255, 254, 251, .9), rgba(255, 254, 251, .9)); font: 500 clamp(13px, 1.55vw, 19px)/1.45 var(--display); letter-spacing: -0.01em; }
.side-right .bv-text { right: 0; } .side-left .bv-text { left: 0; }
.bv-text p { margin: 0; }
.bv-text b { color: var(--red); }
.bv-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bv-count { font-weight: 600; color: var(--muted); text-align: center; }
.bv-dots { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bv-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.bv-dots button[aria-current="true"] { background: var(--red); transform: scale(1.25); }
@media (max-width: 720px) {
  .bv-name-grid { grid-template-columns: 1fr 1fr; }
  .bv-spread { aspect-ratio: auto; display: grid; }
  .bv-spread::after { display: none; }
  .bv-spread .bv-pic { position: relative; aspect-ratio: 16 / 9; }
  .bv-spread .bv-text { position: static; width: auto; background: none; font-size: 16px; padding: 18px; }
  .bv-cap { max-width: calc(100% - 24px); }
  .bv-meet { aspect-ratio: auto; }
  .bv-cast { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bv-cover { aspect-ratio: 3 / 4; grid-template-columns: 1fr; align-content: end; padding-bottom: 28px; }
  .bv-cover > * { grid-column: 1; }
  .bv-cover .bv-cover-art { left: 20%; top: 8%; transform: none; width: 60%; }
  .bv-plain { aspect-ratio: 4 / 3; }
}

/* Meet your characters */
.mk { display: grid; gap: 22px; }
.guide { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; padding: clamp(18px, 3vw, 28px); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.guide h3 { font-size: 18px; margin-bottom: 12px; }
.guide .ticks li, .crosses li { font-size: 16px; }
.crosses { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.crosses li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.crosses li::before { content: "\00d7"; width: 18px; height: 18px; margin-top: 3px; border-radius: 6px; background: var(--line); color: var(--muted); font-weight: 700; line-height: 18px; text-align: center; }
.guide-privacy { grid-column: 1 / -1; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.mk-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mk-card { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.mk-card .who { font: 700 12px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mk-card h3 { font-size: 20px; margin: 4px 0 10px; }
.mk-card .hint { font: 400 14px var(--body); color: var(--muted); }
.mk-body { display: grid; gap: 10px; align-content: start; }
.mk-pic { aspect-ratio: 3 / 4; border-radius: 16px; background: var(--surface-2); border: 2px dashed var(--line); display: grid; place-items: center; overflow: hidden; position: relative; }
.mk-pic img { width: 100%; height: 100%; object-fit: cover; }
.mk-pic.drawn { border: 2px solid var(--line); background: #fff; }
.mk-pic.drawn img { object-fit: contain; }
.mk-pic.busy::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--surface) 55%, transparent); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.mk-empty { font-size: 13px; color: var(--muted); text-align: center; padding: 8px; }
.mk-file { position: relative; overflow: hidden; justify-self: start; }
.mk-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mk-file:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.mk-state { font-size: 14px; color: var(--muted); min-height: 1.2em; margin: 0; }
.mk-state.bad { color: #B3261E; }
.mk-redo { justify-self: start; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--red); flex: none; }
.mk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.mk-msg { font-weight: 600; min-height: 1.4em; }
@media (max-width: 860px) { .mk-cards, .guide { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .mk-card { grid-template-columns: 104px 1fr; gap: 14px; } }
