:root {
  --paper: #fff;
  --ink: #28343b;
  --blue: #e4f3f1;
  --sand: #faecc6;
  --quote: #416c12;
  --accent: #16526d;
  --line: #ccd7d3;
  --serif: "Minion Pro", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; color: var(--ink); background: var(--paper) url('/images/theme/body-bg.jpg') bottom center / min(100%, 1603px) auto no-repeat; font: 1.125rem/1.55 var(--serif); }
[hidden] { display: none !important; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.14; overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 5vw, 2.65rem); }
h2 { font-size: clamp(1.45rem, 4vw, 2rem); }
p, ul, ol { margin-block: .65em 1em; }
figure { margin: 1rem 0; }
figcaption { margin-top: .45rem; }
img { max-width: 100%; height: auto; vertical-align: middle; }
.wrap { width: min(calc(100% - 2rem), 960px); margin-inline: auto; }
.masthead { background: var(--blue) url('/images/theme/header-bg.png') top center repeat-x; }
.brand { display: flex; align-items: center; min-height: 135px; }
.brand .donkey { width: min(16vw, 141px); align-self: end; }
.brand .awards { margin-left: auto; width: min(36vw, 345px); }
.navigation { --menu-art: url('/images/theme/menu-bg.png'); background: var(--menu-art) top center / 100% 100% no-repeat; }
.navigation ul { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
.navigation a { display: block; padding: .7rem .8rem; color: var(--paper); text-decoration: none; }
.navigation a:hover, .navigation [aria-current] { text-decoration: underline; }
.navigation :focus-visible { outline-color: var(--paper); outline-offset: -4px; }
main { min-height: 40vh; }
.slide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(0, 3.4fr); align-items: center; gap: 1rem; min-height: 315px; padding: .75rem 1rem; background: var(--paper); }
.slide h2 { margin: 0; font-size: clamp(1.55rem, 3.3vw, 2.65rem); }
.slide p { color: var(--quote); }
.slide img { max-height: 290px; margin-inline: auto; }
button, .action { min-height: 44px; padding: .45rem .9rem; border: 1px solid currentColor; background: var(--paper); color: var(--accent); font: inherit; }
button:not(:disabled) { cursor: pointer; }
button:disabled { opacity: .7; }
.action { display: inline-flex; align-items: center; text-decoration: none; }
.divider-art { display: block; margin: 0 auto; }
.home-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block: 1rem; }
.home-columns section { padding: clamp(1rem, 3vw, 1.5rem); border-radius: .4rem; background: var(--blue); }
.home-columns section:nth-child(2) { background: var(--sand); }
.home-columns h2 { margin-top: 0; }
.alignleft { float: left; margin: 0 1rem .5rem 0; }
.alignright { float: right; margin: 0 0 .5rem 1rem; }
.content { display: flow-root; max-width: 76ch; margin-inline: auto; padding-block: 1rem; }
.content section:not(.feature), .content article, .content .blue-box, .home-columns section { display: flow-root; }
.content img.alignleft, .content img.alignright { max-width: min(38%, 275px); }
.content li + li { margin-top: .35em; }
.centered { text-align: center; }
.story-date, .review figcaption { font-size: .95rem; }
.review { padding: .25rem 0 .8rem 1rem; border-left: 3px solid var(--line); }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0; }
.review + .review { margin-top: 1.5rem; }
.gallery, .puzzle-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.puzzle-grid a { display: flex; flex-direction: column; justify-content: space-between; gap: .5rem; }
.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: clamp(1rem, 2.5vw, 1.5rem); }
.book { min-width: 0; border: 1px solid var(--line); background: var(--paper); }
.book > img { display: block; width: 100%; border-bottom: 1px solid var(--line); }
.book-copy { padding: 1rem; }
.book h3 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
.book .availability { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-weight: bold; }
.book details { padding-top: .65rem; border-top: 1px solid var(--line); }
.available-book-grid .book details { border-top: 0; }
.book summary { color: var(--accent); cursor: pointer; }
.book details > :last-child { margin-bottom: 0; }
@media (min-width: 760px) {
  .available-book-grid { align-items: stretch; }
  .available-book-grid .book, .available-book-grid .book-copy {
    display: grid;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .available-book-grid .book { grid-row: span 4; }
  .available-book-grid .book-copy { grid-row: span 3; }
}
/* Reserve 88% of the 1603 × 528 artwork height at its rendered width. */
.footer-scene { display: grid; align-items: end; min-height: min(29vw, 465px); }
.footer { display: flex; gap: 1rem; flex-wrap: wrap; align-items: baseline; border-top: 1px solid var(--line); padding-block: 1rem; margin-top: 2rem; }
.footer p { margin-block: 0; }
@media (max-width: 759px) {
  .footer { row-gap: 1.0625rem; }
}
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: clip; clip-path: inset(50%); }
.skip:focus { display: inline-block; padding: .5rem; }
@media (max-width: 759px) {
  .brand { min-height: 90px; }
  .brand .awards { display: none; }
  .navigation { background: none; }
  .navigation ul { display: block; background: var(--blue); }
  .navigation a { color: var(--accent); }
  .navigation a:focus-visible { outline-color: var(--accent); }
  .menu { display: grid; place-items: center; width: 44px; padding: 0; margin-left: auto; flex: none; background: var(--paper); }
  .menu-icon { width: 22px; height: 16px; border-block: 2px solid currentColor; display: grid; align-items: center; }
  .menu-icon::before { content: ""; border-top: 2px solid currentColor; }
  .slide, .home-columns { grid-template-columns: minmax(0, 1fr); }
  .slide { padding: 1rem; }
  .slide .slide-detail { display: none; }
  .slide-artwork { grid-row: 1; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .book-grid { grid-template-columns: minmax(0, 1fr); }
  body { background-image: none; }
  .footer-scene { padding-top: 33vw; background: url('/images/theme/body-bg.jpg') top center / 100% auto no-repeat; }
  .footer { margin-top: 0; }
  .alignleft, .alignright { float: none; margin: 0 0 .75rem; }
  .content img.alignleft, .content img.alignright { max-width: 100%; }
}

/* Keep each slide in the same grid cell so advancing never moves the page. */
.carousel { position: relative; }
.slide-track { display: grid; }
.slide { grid-area: 1 / 1; padding-inline: clamp(1rem, 4.2vw, 3.25rem); }
.carousel:not(.is-ready) .slide:not(:first-child) { display: none; }
.is-ready .slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s ease, visibility 0s .55s;
}
.is-ready .slide.is-current {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.slide-controls { display: contents; }
.slide-controls button {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  opacity: .65;
}
.slide-controls button::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.slide-controls button:is(:hover, :focus-visible) { opacity: 1; }
.slide-arrow { top: 50%; transform: translateY(-50%); }
.slide-arrow[data-step="-1"] { left: .5rem; }
.slide-arrow[data-step="1"] { right: .5rem; }
.slide-arrow::before {
  content: "";
  width: 12px;
  height: 12px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
}
.slide-arrow[data-step="-1"]::before { transform: rotate(135deg); }
.slide-controls .slide-toggle { right: .5rem; bottom: .5rem; }
.slide-toggle::before { content: ""; width: 10px; height: 12px; border-inline: 2px solid currentColor; }
.slide-toggle[aria-pressed="true"]::before { width: 0; height: 0; border: 6px solid transparent; border-left: 9px solid currentColor; transform: translateX(3px); }

@media (max-width: 759px) {
  .slide { padding-bottom: 3rem; }
  .slide-arrow { top: clamp(82px, 29vw, 140px); }
}
@media (prefers-reduced-motion: reduce) {
  .is-ready .slide { transition: none; }
}

/* Shared reading rhythm for the catalog and editorial pages. */
main { --section-space: clamp(1.5rem, 4vw, 2.5rem); }
main h1 { margin-block: var(--section-space) .65em; }
main h2 { margin-block: 1.1em .55em; }
main h3 { margin-block: 1em .45em; font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
main :is(h1, h2, h3) { text-wrap: balance; }
.content { max-width: 72ch; padding-top: 0; }
.content :is(ul, ol) { padding-inline-start: 1.45em; }
.content :is(ul, ol) :is(ul, ol) { margin-block: .4em .65em; }
.content > :is(section, article) + :is(section, article) { margin-top: var(--section-space); padding-top: 0; }
.content > :is(section, article):first-of-type > h2:first-child { margin-top: 0; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; gap: clamp(1rem, 3vw, 1.75rem); }
.feature > img { justify-self: start; }
.feature > div > :first-child { margin-top: 0; }
.feature > div > :last-child { margin-bottom: 0; }
.feature.award { grid-template-columns: minmax(0, 6rem) minmax(0, 1fr); margin-block: 1.25rem; }
.story-date, .activity-level { margin-top: -.3em; }
.content figcaption { max-width: 60ch; }
.content a[href^="mailto:"] { overflow-wrap: anywhere; }
.review { padding-bottom: 0; }
.review-category > p { margin-bottom: 1.25rem; }
.resource-group li { padding-block: .25em; }
.home-columns section > :last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .feature:not(.award) { grid-template-columns: minmax(0, 1fr); }
  .feature:not(.award) > img { max-width: min(100%, 220px); }
  .content img.alignleft, .content img.alignright { float: none; margin-inline: 0; max-width: 100%; }
}

.autograph-notice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-block: .65rem .3rem;
  padding: .25rem 3rem;
  background: var(--sand);
  border-radius: .3rem;
  font-size: 1rem;
}
.autograph-notice p { margin: .35rem 0; width: 100%; text-align: center; }
.notice-dismiss { position: absolute; right: .25rem; width: 44px; padding: 0; border: 0; background: transparent; font-size: 1.5rem; }
.home-columns blockquote, .profile blockquote { margin: 1em 0; color: var(--accent); font-style: italic; }

.profile, .character, .news-story, .resource-group, .review-category, .contact-panel {
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: .4rem;
  background: var(--blue);
}
.profile:nth-of-type(even), .character:nth-of-type(even), .news-story:nth-of-type(even),
.review-category:nth-child(2), .resource-group:nth-child(2) { background: var(--sand); }
.content > :is(.profile, .character, .news-story, .lesson) + :is(section, article) {
  margin-top: 1.25rem;
}
.content > :is(.profile, .character, .news-story, .lesson) { padding-top: clamp(1rem, 3vw, 1.5rem); }
.profile > img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 35%; }
.character-greeting { font-weight: bold; }
.news-story > h2, .lesson > h2, .resource-group > h2, .review-category > h2 { margin-top: 0; }
.news-photo {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 0;
}
.news-photo figcaption { margin: 0; }
.news-story .award + .award { padding-top: 1rem; border-top: 1px solid var(--line); }

.resource-grid, .review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.resource-group h2, .review-category h2 { font-size: 1.35rem; }
.resource-group ul { margin-bottom: 0; }
.review-grid > section.review-category { display: flex; flex-direction: column; }
.review-grid .review { margin: 0 0 1rem; padding: 0; border: 0; }
.review-grid .review-category > p { margin: auto 0 0; }
.back-link { margin-bottom: 1.5rem; }
.archive-quote { padding: .85rem 1rem; background: var(--blue); }
.archive-quote:nth-of-type(even) { background: var(--sand); }

.lesson { background: var(--blue); padding: clamp(1rem, 3vw, 1.5rem); border-radius: .4rem; }
.lesson :last-child { margin-bottom: 0; }
.content .workshop-steps { padding-left: 1.8em; }
.workshop-steps li { padding: .65rem .85rem; background: var(--blue); border-radius: .3rem; }
.gallery a, .puzzle-grid a { background: var(--paper); border: 1px solid var(--line); border-radius: .35rem; padding: .6rem; }
.puzzle-grid span { padding: .2rem .35rem; }
.farm-photo { margin-top: 1.4rem; }
.farm-photo img { border-radius: .35rem; }
.contact-panel { width: fit-content; max-width: 100%; }

@media (min-width: 760px) {
  .content:has(.review-grid), .content:has(.resource-grid) { max-width: none; }
}
@media (max-width: 759px) {
  .review-grid, .resource-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .news-photo { grid-template-columns: minmax(0, 1fr); }
}

.rounded-image { border-radius: .4rem; }
.breadcrumbs { margin-top: .8rem; font-size: .9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .3rem .55rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: .55rem; }
.contact-faq details { border-top: 1px solid var(--line); padding: .8rem 0; }
.contact-faq summary { color: var(--accent); cursor: pointer; font-weight: bold; }
.contact-faq details p { margin: .65rem 0 0; }

/* Keep the author photo beside its text on phones. */
.home-columns img.alignleft { float: left; margin: 0 1rem .5rem 0; }

/* Quote sources: italic, with a leading dash, everywhere quotes appear. */
.review figcaption { font-style: italic; }
.review figcaption::before { content: "\2014\00a0"; }

/* Book details: alternating colored boxes, as on the press reviews page. */
.book-details { display: grid; gap: .6rem; margin-top: .65rem; }
.book-details > .box { margin: 0; padding: .85rem 1rem; border: 0; border-radius: .3rem; background: var(--blue); }
.book-details > .box:nth-child(even) { background: var(--sand); }
.book-details p { margin: 0 0 .65em; }
.book-details > .box > :last-child { margin-bottom: 0; }

.section-subhead { margin-top: -.25em; }

/* Real Life Stories: covers float beside the text so there is no empty column. */
.story > h2 { margin-top: 0; }
.story > img { float: left; margin: 0 1.25rem .75rem 0; }
.story > .story-cover { width: min(46%, 340px); }
hr.divider { margin-block: var(--section-space); border: 0; border-top: 2px solid var(--line); }
@media (max-width: 600px) {
  .story > .story-cover { float: none; width: min(100%, 340px); margin: 0 0 1rem; }
}
.review figcaption span { display: inline-block; max-width: 100%; }

/* Full-page review archives: wide enough that no source ever needs to wrap. */
@media (min-width: 860px) {
  .content:has(.archive-quote) { max-width: 82ch; }
  .archive-quote figcaption { white-space: nowrap; }
}

/* Cart */
.catalog-title, .catalog-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; }
.catalog-title { margin-block: var(--section-space) 1.25rem; }
.catalog-title h1, .catalog-section-title h2 { margin: 0; }
.catalog-title form { margin-left: auto; flex-shrink: 0; }
.catalog-section-title { margin-bottom: .8rem; }
.catalog-section-title p { margin: 0 0 0 auto; text-align: right; font-size: 1rem; }
.shipping-strip { display: flex; align-items: center; gap: 1.25rem; padding: .65rem 1rem; margin-block: 1.5rem; border-radius: .4rem; background: var(--blue); font-size: 1rem; line-height: 1.25; }
.shipping-strip > p { margin: 0; font-weight: bold; }
.shipping-strip > p span { display: block; font-weight: normal; font-size: .9rem; margin-top: .2rem; }
.shipping-strip dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); flex: 1; margin: 0; }
.shipping-strip dl > div { padding-inline: .65rem; border-left: 1px solid var(--line); text-align: center; }
.shipping-strip dt { white-space: nowrap; }
.shipping-strip dd { margin: .2rem 0 0; font-weight: bold; color: var(--accent); }
.shipping-table { width: min(100%, 27rem); border-collapse: collapse; margin-block: 1rem; font-size: 1.05rem; }
.shipping-table caption { text-align: left; font-weight: bold; margin-bottom: .4rem; }
.shipping-table th, .shipping-table td { text-align: left; padding: .4rem .75rem; border-bottom: 1px solid var(--line); }
.shipping-table thead { background: var(--blue); }
.shipping-table tbody th { font-weight: normal; }
.shipping-table tbody tr:last-child { color: var(--accent); background: var(--blue); }
.shipping-table tbody tr:last-child td { font-weight: bold; }
@media (max-width: 600px) {
  .catalog-title { gap: .65rem 1rem; margin-bottom: 1rem; }
  .catalog-title h1 { flex: 1 1 100%; }
  .catalog-section-title { gap: .35rem; }
  .catalog-section-title p { flex: 1 1 100%; margin-left: 0; text-align: left; }
  .shipping-strip { display: block; padding: .65rem .5rem; }
  .shipping-strip > p { display: flex; justify-content: space-between; margin: 0 .25rem .65rem; }
  .shipping-strip > p span { margin: 0; }
  .shipping-strip dl > div { padding-inline: .25rem; }
  .shipping-strip dl > div:first-child { border-left: 0; }
  .shipping-strip dt { font-size: .9rem; }
}
.book .availability { display: block; }
.book .price { margin: 0 0 .5rem; }
.book .buy { display: grid; gap: .6rem; font-weight: normal; }
.book .sign-toggle { display: flex; align-items: flex-start; gap: .4rem; font-size: .95rem; line-height: 1.3; }
.book .sign-toggle input { margin-top: .05rem; width: 1.1rem; height: 1.1rem; flex: none; }
.book .sign-name { display: grid; gap: .25rem; }
.book .sign-name[hidden] { display: none; }
.book .sign-name input { min-height: 44px; padding: .4rem .6rem; border: 1px solid var(--line); font: inherit; }
.book .buy button { justify-self: start; }
.slide.photo-slide { display: block; position: relative; padding: 0; min-height: 0; overflow: clip; border-radius: .4rem; }
.photo-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center; }
.farm-landscape { width: min(100%, 28rem); margin: 2rem auto 0; }
.farm-landscape img { display: block; width: 100%; height: auto; }
.contact-faq-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: 1.5rem; margin-top: 1.5rem; }
.contact-faq-layout h2 { margin-top: 0; }
.contact-faq-layout .contact-garden { width: 100%; margin: 0; }
@media (max-width: 759px) {
  .contact-faq-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-faq-layout .contact-garden { width: min(100%, 28rem); margin-inline: auto; }
}
.character.donkey-photo { background: var(--paper); }
.donkey-facts img { display: block; width: 100%; height: auto; }
.donkey-description { grid-column: 2; grid-row: 1; }
.donkey-facts { grid-column: 1; grid-row: 1; }
@media (min-width: 601px) {
  .feature.donkey-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 759px) {
  .photo-slide > img { object-position: 35% center; }
}

@media (max-width: 759px) {
  .feature.donkey-photo { grid-template-columns: minmax(0, 1fr); }
  .donkey-description, .donkey-facts { grid-column: auto; grid-row: auto; }
}

.donkey-facts-box { margin-top: 1rem; padding: 1rem 1.25rem; border-radius: .4rem; background: var(--blue); }
.donkey-facts-box h3 { margin-top: 0; }
.donkey-facts-box ul { margin-bottom: 0; }
.portrait-wrap { column-gap: clamp(1rem, 3vw, 1.75rem); row-gap: 0; }
.portrait-wrap > h2 { grid-column: 2; grid-row: 1; margin-top: 0; }
.portrait-wrap > img { grid-column: 1; grid-row: 1 / span 2; }
.portrait-wrap > div { grid-column: 2; grid-row: 2; }
@media (max-width: 600px) {
  .feature.portrait-wrap { display: flow-root; }
  .portrait-wrap > div { display: contents; }
  .feature.portrait-wrap > img { float: left; width: 38%; max-width: 135px; height: auto; margin: .2rem 1rem .5rem 0; }
  .portrait-wrap.profile > img { aspect-ratio: auto; object-fit: contain; }
  .portrait-wrap > h2 { margin-bottom: .75rem; }
  .story > .story-photo { float: left; width: 34%; max-width: 120px; margin: .2rem 1rem .5rem 0; }
}

.news-shipping { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 1.5rem; margin-top: 1.5rem; }
.news-shipping h3 { margin-top: 0; }
.news-shipping p:last-child { margin-bottom: 0; }
.news-shipping .shipping-table { width: 100%; margin: 0; background: var(--blue); border-radius: .4rem; overflow: hidden; }
.news-shipping .shipping-table caption { padding-bottom: .35rem; }
@media (max-width: 600px) {
  .news-shipping { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}

@media (min-width: 960px) {
  .home-columns blockquote { font-size: 1rem; line-height: 1.74375rem; min-height: 3.4875rem; margin-block: 1.125rem; white-space: nowrap; }
}
.home-columns section { position: relative; padding-bottom: 3.5rem; }
.home-columns section > a:last-child { position: absolute; bottom: 1.5rem; left: clamp(1rem, 3vw, 1.5rem); }

.footer .back-to-top { margin-left: auto; font-size: .875rem; white-space: nowrap; }
