:root {
  --pb-paper: #f4efe5;
  --pb-ink: #1d2228;
  --pb-red: #b63a2a;
  --pb-blue: #244b74;
  --pb-gold: #d5a52d;
  --pb-line: rgba(29, 34, 40, .24);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  padding: 0;
  background: var(--pb-paper);
  color: var(--pb-ink);
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 5px; }
button, select { font: inherit; }
button, .pb-primary {
  min-height: 46px;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 10px 18px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
button:disabled { opacity: .38; cursor: default; }
:focus-visible { outline: 3px solid var(--pb-gold); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 {
  font-family: var(--rc-serif, "Songti SC", serif);
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.12;
}
h2 {
  font-family: var(--rc-serif, "Songti SC", serif);
  font-size: clamp(28px, 4vw, 45px);
  line-height: 1.3;
}
p { margin-top: 15px; }
img { display: block; max-width: 100%; height: auto; }
.pb-shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.pb-skip {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 500;
  padding: 12px;
  background: var(--pb-paper);
}
.pb-skip:focus { top: 8px; }
.pb-kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--pb-red);
  font-size: 13px;
  font-weight: 800;
}
.pb-small { color: rgba(255, 255, 255, .7); font-size: 14px; }
.pb-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pb-red);
  color: #fff;
  font-weight: 760;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--pb-gold);
}
.pb-hero {
  position: relative;
  min-height: min(760px, calc(100svh - 64px));
  overflow: hidden;
  border-bottom: 10px solid var(--pb-gold);
  background: #111820;
  color: #fff;
}
.pb-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(9, 15, 22, .68);
}
.pb-hero-layout {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: inherit;
  align-items: center;
}
.pb-hero-layout > div {
  position: relative;
  z-index: 2;
  width: min(590px, 90%);
  padding-block: 90px;
}
.pb-hero p {
  max-width: 34em;
  margin-block: 24px 30px;
  font-size: 20px;
}
.pb-hero .pb-kicker { color: #f0c342; }
.pb-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
.pb-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 45%;
}
.pb-intro, .pb-index, .pb-note { padding-block: 62px; }
.pb-intro { max-width: 820px; }
.pb-intro p, .pb-note p { max-width: 46em; }
.pb-index { padding-top: 0; }
.pb-index > h2 { margin-bottom: 24px; }
.pb-row {
  display: grid;
  grid-template-columns: 72px 1fr 30px;
  gap: 20px;
  align-items: center;
  min-height: 108px;
  border-top: 1px solid var(--pb-line);
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease-out, background 160ms ease-out;
}
.pb-row:last-child { border-bottom: 1px solid var(--pb-line); }
.pb-row strong, .pb-row small { display: block; }
.pb-row strong { font-size: 21px; }
.pb-row small { margin-top: 5px; color: rgba(29, 34, 40, .68); }
.pb-row-note { color: rgba(29, 34, 40, .58); }
.pb-number {
  color: var(--pb-red);
  font: 36px Georgia, serif;
  font-variant-numeric: tabular-nums;
}
.pb-note { padding-top: 0; }
.pb-join {
  padding: 60px 0;
  background: var(--pb-blue);
  color: #f8f1e5;
}
.pb-join .pb-kicker { color: var(--pb-gold); }
.pb-join p { max-width: 44em; }
.pb-join .pb-join-callout {
  margin: 20px 0 0;
  max-width: 24em;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.4;
}
.pb-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.pb-contacts button { color: #f8f1e5; }
.pb-reader {
  width: min(850px, 100%);
  margin-inline: auto;
  padding-top: 78px;
}
.pb-reader-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  font-size: 14px;
}
.pb-reader-heading a, .pb-reader-heading button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.pb-reader-heading button { border: 0; padding-inline: 0; }
.pb-book-heading { padding: 8px 24px 24px; }
.pb-book-heading h1 { max-width: 13em; font-size: clamp(30px, 5vw, 50px); }
.pb-book-heading p { color: rgba(29, 34, 40, .65); }
.pb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px 16px;
  font-size: 14px;
}
.pb-toolbar button { min-height: 42px; padding: 8px 13px; }
.pb-toolbar select {
  min-height: 42px;
  max-width: 100%;
  border: 1px solid var(--pb-line);
  border-radius: 4px;
  background: var(--pb-paper);
  color: var(--pb-ink);
}
.pb-stage { width: min(620px, 100%); margin-inline: auto; }
.pb-page-art { background: #ddd5c8; }
.pb-page-image { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; }
.pb-page-reading { padding: 28px 24px; font-size: 19px; }
.pb-page-reading span {
  color: var(--pb-red);
  font-size: 13px;
  font-weight: 750;
}
.pb-page-reading h2 { margin-top: 7px; font-size: 27px; }
.reader-ready .pb-page-reading { display: none; }
.reader-ready.text-mode .pb-page-reading { display: block; }
.reader-ready.text-mode .pb-page-art { display: none; }
.reader-ready:not(.text-mode) .pb-stage { width: min(520px, 100%); }
.pb-choice {
  margin: 18px;
  padding: 18px;
  border: 1px solid var(--pb-ink);
  background: #fff9ee;
}
.pb-choice legend { font-weight: 750; }
.pb-choice button {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 10px;
  text-align: left;
}
.pb-choice button[aria-pressed="true"] { background: var(--pb-blue); color: #fff; }
.pb-feedback { font-size: 16px; }
.pb-feedback:empty { display: none; }
.pb-controls {
  position: sticky;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 58px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--pb-line);
  background: var(--pb-paper);
  text-align: center;
}
.pb-status { font-size: 14px; font-variant-numeric: tabular-nums; }
.pb-after {
  padding: 42px 24px 52px;
  border-top: 7px solid var(--pb-gold);
}
.pb-after p { max-width: 43em; }
.pb-after-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 30px;
}
.pb-noscript { padding: 20px; }
.pb-toast {
  position: fixed;
  z-index: 500;
  bottom: calc(84px + env(safe-area-inset-bottom));
  left: 50%;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: var(--pb-blue);
  color: #fff;
  box-shadow: 4px 4px 0 var(--pb-gold);
}
@media (hover: hover) {
  .pb-row:hover { background: rgba(255, 255, 255, .46); color: var(--pb-red); }
  button:hover, .pb-primary:hover { box-shadow: 3px 3px 0 var(--pb-gold); }
}
@keyframes pb-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.pb-hero-layout > div { animation: pb-enter 480ms ease-out both; }
.reader-ready .pb-sheet { animation: pb-enter 170ms ease-out both; }
@media (max-width: 720px) {
  body[data-rc-page-type="picture-books"] .xia-nav-sites,
  body[data-rc-page-type="picture-books"] .xia-nav-brand-tagline { display: none; }
  body[data-rc-page-type="picture-books"] .xia-nav-inner {
    min-height: 58px;
    padding: 8px 16px;
    flex-wrap: nowrap;
  }
  .pb-shell { width: calc(100% - 36px); }
  .pb-hero {
    min-height: min(590px, calc(100svh - 58px));
  }
  .pb-hero-layout > div {
    width: 94%;
    padding-block: 66px 42px;
  }
  .pb-hero h1 { font-size: clamp(38px, 12vw, 57px); }
  .pb-hero p { font-size: 17px; }
  .pb-hero-art img { object-position: 67% 45%; }
  .pb-intro, .pb-index, .pb-note { padding-block: 40px; }
  .pb-index { padding-top: 0; }
  .pb-row {
    grid-template-columns: 47px 1fr 20px;
    gap: 12px;
    min-height: 96px;
  }
  .pb-number { font-size: 29px; }
  .pb-row strong { font-size: 18px; }
  .pb-row small { font-size: 13px; }
  .pb-note { padding-top: 0; }
  .pb-join .pb-join-callout { font-size: 22px; }
  .pb-reader { padding-top: 62px; }
  .pb-reader-heading { padding: 0 14px 8px; font-size: 13px; }
  .pb-book-heading { padding: 2px 16px 18px; }
  .pb-book-heading h1 { font-size: 30px; }
  .pb-book-heading p { font-size: 14px; }
  .pb-toolbar { padding: 0 14px 12px; gap: 7px; font-size: 13px; }
  .pb-controls { grid-template-columns: 1fr 46px 1fr; padding-inline: 12px; }
  .pb-controls button { padding: 9px 8px; font-size: 15px; }
  .pb-choice { margin: 14px; padding: 13px; }
  .pb-after { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
