:root {
  color-scheme: light;
  --ink: #14224d;
  --muted: #42516b;
  --paper: #fff;
  --line: #dce3f0;
  --gold: #ffc642;
  font-family: "Trebuchet MS", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 0; margin: 0; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #3465ca; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: 1rem; z-index: 2; background: white; padding: .75rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header { border-top: 5px solid var(--gold); background: var(--paper); }
.header-inner, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.header-inner { min-height: 78px; }
.brand { display: block; flex-shrink: 0; }
.brand img { display: block; width: clamp(128px, 21vw, 186px); height: auto; }
nav { display: flex; flex-wrap: wrap; gap: clamp(.75rem, 3vw, 2rem); font-weight: 800; }
nav a { padding: .6rem 0; text-decoration: none; font-size: .95rem; }
nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.hero { background: #edf6ff; border-block: 1px solid #d8e6f8; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.16fr; gap: 2rem; align-items: center; padding-block: clamp(2rem, 5vw, 4.5rem); }
.eyebrow { font-size: .875rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
h1, h2, h3 { margin: 0; font-weight: 950; line-height: 1.07; }
h1 { margin-block: .8rem 1rem; font-size: clamp(2.75rem, 6.5vw, 5.15rem); letter-spacing: -.075em; }
h1 em { color: #234c91; font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 31ch; font-size: 1.13rem; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.hero-art { position: relative; min-width: 0; overflow: hidden; border-radius: 1.5rem; box-shadow: 0 12px 36px #14224d21; }
.hero-scene { display: block; width: 100%; height: auto; }
.hero-cover { position: absolute; object-fit: fill; }
/* Align the supplied covers to the book faces and leave the puppets’ fingers visible. */
.hero-cover-story {
  inset: 51.3% auto auto 10.55%;
  width: 17.77%;
  height: 39%;
  clip-path: polygon(
    0 0, 100% 0, 100% 44%, 96% 44.5%, 94% 47%, 93% 50%,
    94% 54%, 92% 56%, 92% 59%, 94% 64%, 93% 67%, 95% 71%,
    95% 74%, 98% 77%, 100% 78%, 100% 100%, 0 100%, 0 74%,
    4% 72%, 7% 69%, 7% 66%, 5% 63%, 8% 60%, 8% 57%,
    5% 54%, 8% 51%, 8% 47%, 5% 44%, 0 43%
  );
}
.hero-cover-activity {
  inset: 53.15% auto auto 55.5%;
  width: 17.95%;
  height: 37.3%;
  clip-path: polygon(
    0 0, 100% 0, 100% 64%, 97% 65%, 95% 67%, 95% 70%,
    97% 73%, 95% 75%, 96% 78%, 97% 81%, 96% 84%, 100% 89%,
    100% 100%, 0 100%, 0 92%, 4% 90%, 5% 87%, 4% 84%,
    6% 81%, 5% 77%, 4% 74%, 6% 71%, 5% 68%, 0 64%
  );
}
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .65rem 1rem; border: 2px solid transparent; border-radius: .65rem; text-align: center; text-decoration: none; font-weight: 900; line-height: 1.25; }
.primary { background: var(--gold); color: #14224d; }
.primary:hover { background: #ffdb76; }
.secondary { border-color: #234c91; color: #14224d; }
.secondary:hover { background: #fff; }
.books { padding-block: 3.4rem 3rem; }
.section-title { margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); letter-spacing: -.05em; }
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.book { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 1.05rem; background: white; overflow: hidden; }
.cover-stage { display: grid; place-items: center; min-height: 260px; padding: 1.2rem; }
.story { background: #eaf3ff; }
.activity { background: #fff3d4; }
.cover-stage img { width: auto; height: 214px; max-width: 100%; object-fit: contain; box-shadow: 3px 7px 12px #14224d35; border-radius: 2px 4px 4px 2px; }
.book-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: .65rem; padding: 1.25rem; }
.book-copy .eyebrow { color: #3d5683; }
h3 { font-size: 1.42rem; letter-spacing: -.035em; }
.book-copy > p:not(.eyebrow) { flex: 1; line-height: 1.5; color: var(--muted); }
.book-copy .button { width: 100%; margin-top: .45rem; }
.visits { padding-bottom: 2.8rem; }
.visit-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, 360px); align-items: center; gap: clamp(1.25rem, 4vw, 3rem); background: #14224d; color: #fff; border-radius: 1.25rem; padding: clamp(1.5rem, 4.5vw, 3rem); }
.visit-panel h2 { font-size: clamp(1.7rem, 3.3vw, 2.55rem); margin-bottom: .7rem; }
.visit-panel p { max-width: 55ch; line-height: 1.6; }
.visit-copy p + p { margin-top: .8rem; }
.visit-copy .button { margin-top: 1.25rem; }
.visit-flyer { display: block; justify-self: center; width: 100%; max-width: 360px; border-radius: .75rem; overflow: hidden; box-shadow: 0 12px 30px #07103166; }
.visit-flyer img { display: block; width: 100%; height: auto; }
.footer { border-top: 1px solid var(--line); padding-block: 1.4rem; font-size: .95rem; font-weight: 700; flex-wrap: wrap; }
@media (max-width: 700px) {
  .hero-inner { grid-template-columns: 1fr; gap: 1.35rem; }
  .book-grid, .visit-panel { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .wrap { width: calc(100% - 2rem); }
  nav { gap: .55rem; }
  nav a { font-size: .87rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.zoo-preview { margin-top: 2.5rem; border: 1px solid var(--line); border-radius: 1.25rem; overflow: hidden; background: #fff3d4; }
.zoo-banner { display: block; width: 100%; height: auto; }
.printables { padding: clamp(1.25rem, 4vw, 2rem); }
.zoo-actions { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; margin-bottom: 1.25rem; }
.zoo-actions h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: .5rem; }
.zoo-actions p { line-height: 1.5; }
.zoo-updates { font-weight: 800; text-underline-offset: .2em; }
.printable-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.printable { display: grid; justify-items: center; align-content: start; gap: .75rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: .85rem; text-align: center; }
.printable img { display: block; width: auto; height: 164px; max-width: 100%; object-fit: contain; border: 1px solid var(--line); }
.printable .button { min-width: 8rem; }
@media (max-width: 700px) {
  .zoo-actions { flex-direction: column; align-items: flex-start; }
  .printable-grid { grid-template-columns: 1fr; }
}
