/* Shared presentation layer: static preview and WordPress use this same file. */
html { overflow-x: clip; }
body { overflow-x: clip; min-width: 0; }
img { height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 5px; }
section[id], [id="book-waitlist"], [id="shop"] { scroll-margin-top: 112px; }
.site-header { color: var(--indigo) !important; background: rgba(255,250,240,.97) !important; }
.primary-nav { font-size: 1rem; gap: 24px; }
.wordmark > span { font-size: 1.55rem; }
.site-header .basket-link { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; gap: 6px; color: var(--indigo); }
.basket-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hero { min-height: min(850px, 100svh); }
.hero-art { object-position: var(--hero-x, 50%) var(--hero-y, 50%) !important; }
.petal-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-copy { padding-top: 180px; padding-bottom: 150px; }
.hero h1 { font-size: clamp(4rem, 6.7vw, 7.1rem); }
.hero h1 em { font-size: .57em; }
.hero-lede { max-width: 40ch; font-size: 1.125rem; }
.hero-kicker { max-width: 48ch; line-height: 1.6; }
.section-heading h2, .journey-heading h2, .map-heading h2, .about-copy h2, .club h2 { font-size: clamp(2.4rem, 4.4vw, 4.4rem); line-height: 1.04; }
.book-copy h2 { font-size: clamp(2.4rem, 4.2vw, 4.3rem); line-height: 1.05; }
.book-layout { min-height: 0; padding-block: 90px; gap: clamp(32px,6vw,90px); align-items: center; }
.book-copy { min-width: 0; }
.book-details dt, .book-facts dt, .form-note, .book-order-note, .collection-languages { font-size: .875rem; line-height: 1.6; }
.book-details dd, .book-facts dd { font-size: 1rem; }
.book-copy .book-actions { margin-bottom: 24px; }
.inline-waitlist { margin-top: 26px; padding-top: 26px; border-top: 1px solid rgba(255,250,240,.24); }
.inline-waitlist h3 { margin: 0 0 8px; font-size: 1.5rem; }
.inline-waitlist > p { font-size: 1rem; }
.inline-waitlist .club-form { margin: 18px 0 0; max-width: none; }
.inline-waitlist .club-form label, .inline-waitlist .form-note, .inline-waitlist .form-message { color: var(--paper); }
.club-form label { font-size: .95rem; }
.club-form input { min-width: 0; font-size: 1rem; }
.club-form .form-row { align-items: stretch; }
.form-message:not(:empty) { padding: 12px 0; font-size: 1rem; }
.signup-unavailable { padding: 18px; border: 1px solid currentColor; border-radius: 14px; font-size: 1rem; }
.signup-unavailable p { margin: 0 0 8px; }
.signup-unavailable a, .form-note a { text-decoration: underline; text-underline-offset: 3px; }
.catalogue { padding-block: 76px; color: var(--ink); background: var(--cream); }
.catalogue-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.catalogue h2 { margin: 0; font-size: clamp(2.2rem,4vw,3.8rem); }
.catalogue h3 { margin: 32px 0 18px; font-size: 1.45rem; }
.catalogue-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 24px; }
.catalogue-card { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; align-items: center; padding: 24px; gap: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); max-width: 760px; }
.catalogue-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 8px; }
.catalogue-card h3 { margin: 10px 0; font-size: 1.55rem; }
.catalogue-card p { margin: 8px 0; font-size: 1rem; }
.catalogue-card .button { margin-top: 10px; }
.catalogue-card .text-link { display: inline-flex; min-height: 44px; margin-top: 6px; }
.catalogue-status { color: var(--brick); font-weight: 800; font-size: .9rem; }
.collection-intro h1 { font-size: clamp(3rem,5.7vw,5.5rem); }
.collection-hero { min-height: 0; padding-top: 138px; }
.collection-hint { font-size: .875rem; color: var(--paper); }
.collection-promise { padding-block: 65px; }
.collection-promise h2 { font-size: clamp(2.2rem,4vw,3.6rem); }
.collection-card.is-secret { opacity: .55; }
.collection-card.is-secret.is-active { opacity: 1; }
.book-story-spreads { display: grid; grid-auto-flow: column; grid-auto-columns: min(80%,640px); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: 24px; padding-bottom: 20px; }
.book-story-spreads figure { margin: 0; scroll-snap-align: start; }
.book-story-spreads img { width: 100%; height: auto; object-fit: contain; }
.character-copy > div > span, .character-copy small, .character-tag { font-size: .875rem; }
.character-visual img { object-fit: contain; object-position: center bottom; }
.map-scroll { touch-action: pan-x pan-y; }
.map-card, .wp-destination-list a { min-width: 0; }
.wp-map-pin { justify-content: center; }
.book-detail-copy h1 { font-size: clamp(3rem,5vw,5.3rem); line-height: 1.03; }
.book-option select, .variations select { min-height: 48px; font-size: 1rem; max-width: 100%; }
.wp-product-story { padding-block: 55px; }
.editor-section { padding-block: 55px; }
@media (min-width: 841px) {
  .hero-stamp { top: 124px; bottom: auto; }
  .hero-art { object-fit: cover; }
  .book-layout { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
  .inline-waitlist .form-row { flex-wrap: wrap; border-radius: 18px; }
  .inline-waitlist .form-row input { flex: 1 1 190px; }
}
@media (max-width: 840px) {
  .site-header { gap: 12px; }
  .wordmark > span { font-size: 1.35rem; }
  .site-header .basket-link { margin-left: auto; font-size: .875rem; }
  .hero { display: flex; flex-direction: column; min-height: 0; padding-top: 98px; background: var(--indigo-deep); }
  .hero-art { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: contain; order: 0; transform: none !important; animation: none; }
  .hero-wash { display: none; }
  .hero-copy, .hero.hero-text-right .hero-copy { order: 1; width: auto; max-width: 680px; margin: 0; padding: 32px 24px 48px; }
  .hero h1 { font-size: clamp(2.8rem,10.7vw,4.8rem); line-height: .98; }
  .hero h1 span:nth-child(2) { margin-left: 0; }
  .hero h1 em { font-size: .65em; }
  .hero-kicker { font-size: .8rem; }
  .hero-lede { font-size: 1rem; }
  .hero-stamp, .hero .scroll-cue { display: none; }
  .hero .petal-field { height: calc(50vw + 98px); bottom: auto; }
  .hero-actions { gap: 18px; }
  .book-layout { padding-block: 58px; gap: 36px; }
  .book-object { width: min(72vw,360px); }
  .book-copy h2, .section-heading h2, .journey-heading h2, .map-heading h2, .about-copy h2, .club h2 { font-size: clamp(2.2rem,9vw,3.3rem); }
  .book-waitlist-grid { grid-template-columns: 1fr; gap: 24px; }
  .journey, .friends, .map-section, .about, .club { padding-block: 64px; }
  .map-scroll { touch-action: pan-x pan-y; }
  .catalogue-heading { align-items: start; flex-direction: column; }
  .catalogue-card { padding: 18px; gap: 18px; }
  .inline-waitlist .form-row { flex-direction: column; border-radius: 18px; }
  .inline-waitlist .form-row .button { width: 100%; }
}
@media (max-width: 480px) {
  .error-copy h1 { font-size: clamp(2.8rem, 13vw, 4rem); line-height: 1; }
  .book-detail-cover > span { right: 0; }
  .catalogue-card { grid-template-columns: 1fr; }
  .catalogue-card > a { width: min(100%,260px); margin-inline: auto; }
  .character-visual { height: 350px; }
  .collection-mobile-copy h2 { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { .hero-art, .reveal { transform: none !important; } }

/* Owner controls stay within readable, responsive ranges. */
.section-heading h2, .journey-heading h2, .map-heading h2, .about-copy h2, .club h2 { font-size: calc(clamp(2.2rem,4.4vw,4.4rem) * var(--heading-scale,1)); }
.journey, .friends, .map-section, .about, .club { padding-block: calc(clamp(64px,7vw,100px) * var(--section-space,1)); }
.collection-mobile-list { display: none !important; }
.wp-destination-list { grid-template-columns: repeat(auto-fit,minmax(min(220px,100%),1fr)); }
.wp-destination-list span, .wp-destination-list small { font-size: .875rem; }
@media (max-width: 700px) { .collection-hero { padding-bottom: 32px; } .collection-hint { display: none; } }

/* WordPress menu classes live on the list item, not on the anchor. */
.primary-nav li.nav-cta { padding: 0; background: none; margin: 0; }
.primary-nav li.nav-cta > a { padding: 11px 17px; border-radius: 999px; color: var(--paper); background: var(--brick); }
.wordmark.custom-wordmark img { width: auto; max-width: 180px; max-height: 48px; object-fit: contain; }

/* 0.3.1: honest artwork states and edition information. */
.unrevealed-cover, .book-detail-cover > .unrevealed-cover { position: relative; inset: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; padding: 24px; gap: 16px; transform: none; background: var(--paper); color: var(--indigo); border: 1px solid var(--line); border-radius: 8px; text-align: center; overflow-wrap: anywhere; }
.unrevealed-cover strong { font-family: var(--display); font-size: clamp(1rem,2vw,1.75rem); line-height: 1.2; }
.unrevealed-cover small { font-family: var(--body); font-size: .875rem; line-height: 1.5; }
.hero-no-art { background: var(--indigo-deep); }
.hero-no-art .hero-wash, .hero-no-art .petal-field { display: none; }
.portrait-pending { margin: auto; padding: 32px; color: var(--indigo); text-align: center; }
.character-visual.is-unillustrated { display: flex; align-items: center; justify-content: center; }
.book-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
.book-facts div { min-width: 0; overflow-wrap: anywhere; }
.book-copy .book-facts dt { color: var(--paper); opacity: .85; }
.delivery-information { margin-top: 20px; font-size: 1rem; line-height: 1.6; }
.delivery-information a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 16px; text-decoration: underline; text-underline-offset: 4px; }
.merchandise-page { padding-block: 150px 70px; }

/* Keep the collection introduction outside the interactive cover deck. */
@media (min-width: 841px) {
  .collection-intro { position: relative; top: auto; left: auto; width: 100%; display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,.55fr); column-gap: 48px; align-items: end; }
  .collection-intro .eyebrow { grid-column: 1 / -1; }
  .collection-intro h1 { margin: 0; font-size: clamp(3rem,4.5vw,4.5rem); line-height: 1; }
  .collection-intro > p:last-child { margin: 0; max-width: 35ch; color: var(--paper); }
  .collection-stage { min-height: 500px; margin-top: 16px; }
  .collection-deck { margin-left: 0; height: 500px; }
  .collection-card { width: min(420px,36vw); }
  .collection-detail { margin-top: 8px; }
}

/* Owner-friendly controls, without covering the illustration or text. */
.motion-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: 20px; padding: 10px 16px; border: 1px solid var(--indigo); border-radius: 999px; background: var(--paper); color: var(--indigo-deep); font: inherit; font-size: .875rem; cursor: pointer; width: fit-content; }
.collection-intro .motion-toggle { grid-column: 1 / -1; }
.is-motion-paused .petal, .is-motion-paused .hero-art { animation-play-state: paused !important; }
.is-motion-paused .hero-art { transform: none !important; }
.spread-page-index { display: inline-block; margin-right: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sample-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.sample-controls button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--indigo); border-radius: 999px; font: inherit; background: var(--paper); color: var(--indigo-deep); cursor: pointer; }
.sample-controls button:disabled { opacity: .45; cursor: default; }
.sample-counter { font-variant-numeric: tabular-nums; }
.peek-book-name a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
#available-books { scroll-margin-top: 112px; }

/* 0.3.3 — consistent portrait frames, clearer purchase states. */
.character-grid { grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; }
.character-card { background: var(--paper); }
.character-card .character-visual { height: auto; aspect-ratio: 1; margin: 16px 16px 0; padding: 10px 10px 52px; border-radius: 18px; background: var(--paper-deep); }
.character-card .character-visual::after { display: none; }
.character-card .character-visual img { width: 100%; height: 100%; object-fit: var(--portrait-fit,contain); object-position: center var(--portrait-y,50%); border-radius: 10px; transform: none !important; }
.character-number { display: none; }
.character-tag { inset: auto 8px 10px; width: fit-content; max-width: calc(100% - 16px); margin-inline: auto; background: var(--indigo); text-align: center; line-height: 1.3; border: 0; }
.character-copy { padding: 24px; }
.character-copy > div { flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.character-copy p { font-size: 1rem; line-height: 1.7; min-height: 0; }
.character-copy h2 { margin: 0; font-size: 2rem; }
.friends-more { margin-top: 32px; text-align: center; }
.friends-more a, .directory-intro a { min-height: 44px; }
.friends-directory { padding-top: 144px; }
.directory-intro h1 { font-size: clamp(2.5rem,5vw,4.5rem); margin-block: 24px; line-height: 1.1; }
.friends-directory .friends { padding-top: 24px; }
.friends-directory .section-heading { display: none; }
.book-state-kicker { display: block; width: fit-content; margin-bottom: 16px; padding: 8px 14px; border-radius: 999px; background: var(--paper); color: var(--indigo-deep); font-size: .9rem; font-weight: 800; letter-spacing: .03em; }
.catalogue-group { padding-block: 12px 32px; }
.catalogue-group + .catalogue-group { border-top: 1px solid var(--line); }
.catalogue-group-note { max-width: 60ch; color: var(--muted); margin-bottom: 24px; }
.catalogue-card[data-status="buy"] { border-top: 4px solid var(--matcha); }
.catalogue-card[data-status="waitlist"] { border-top: 4px solid var(--gold-deep); }
.catalogue-badge { display: block; width: fit-content; margin-bottom: 12px; border-radius: 99px; padding: 5px 12px; background: var(--paper-deep); color: var(--indigo-deep); font-size: .875rem; font-weight: 800; }
.edition-panel { scroll-margin-top: 112px; padding-top: 24px; }
.edition-panel h2 { font-size: 1.75rem; margin: 0 0 12px; }
.edition-panel > p, .edition-choice-hint { font-size: 1rem; line-height: 1.6; }
.edition-list { list-style: none; margin: 20px 0 0; padding: 0; }
.edition-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-block: 18px; }
.edition-list strong { font-size: 1.125rem; }
.edition-state { display: block; font-size: .875rem; margin-top: 6px; }
.edition-note { color: var(--muted); font-size: .9rem; }
.edition-panel .button-outline { color: var(--indigo); border: 1px solid var(--indigo); }
.directory-search { display: grid; gap: 8px; max-width: 480px; margin-bottom: 24px; font-weight: 800; }
.directory-search input { min-height: 48px; width: 100%; padding: 12px 16px; border: 1px solid var(--indigo); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 400; }
.directory-results { min-height: 1.6em; color: var(--muted); }
.effect-preview-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 20px; background: var(--paper); }
.effect-preview-controls select { min-height: 48px; padding: 10px; font: inherit; max-width: 100%; }
@media (max-width: 840px) {
  .character-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); }
  .character-card { display: block; }
  .character-copy { display: block; }
  .friends-directory { padding-top: 120px; }
}
/* Effect geometry stays within the illustration, never over interactive controls. */
.petal-field { container-type: size; }
.petal-field .petal { z-index: 0; }
[data-density="gentle"] .petal { opacity: .48; }
[data-motion="rain"] .petal { width: 1px; height: 28px; aspect-ratio: auto; border-radius: 2px; background: #e0edf3; animation-name: sl-rain; animation-duration: 4s; opacity: .38; }
[data-motion="sparkles"] .petal { top: calc(25% + var(--particle-y,20%)); width: 8px; height: 8px; aspect-ratio: 1; border-radius: 50%; background: #ffefbb; box-shadow: 0 0 10px 3px #fff2c755; animation-name: sl-shimmer; }
[data-motion="seeds"] .petal { width: 10px; height: 3px; aspect-ratio: auto; background: #fff8de; border-radius: 100%; box-shadow: 0 0 4px #fff4d366; animation-name: sl-seeds; }
[data-motion="motes"] .petal { width: 4px; height: 4px; aspect-ratio: 1; border-radius: 50%; background: #ffe5a2; box-shadow: 0 0 8px #ffe5a2; animation-name: sl-motes; }
[data-motion="mist"] .petal { top: var(--particle-y,40%); width: 40%; height: 12%; aspect-ratio: auto; border-radius: 50%; background: radial-gradient(ellipse,#eef4ef44,transparent 70%); animation: sl-mist 26s var(--petal-delay) ease-in-out infinite alternate; }
@keyframes sl-rain { from { transform: translate3d(0,-10vh,0) rotate(12deg); } to { transform: translate3d(-70px,100vh,0) rotate(12deg); } }
@keyframes sl-shimmer { 0%,100% { transform: scale(.4); opacity: 0; } 45% { transform: scale(1); opacity: .65; } 65% { transform: translateX(10px) scale(.7); opacity: .3; } }
@keyframes sl-seeds { from { transform: translate3d(-80px,80vh,0) rotate(0); opacity: 0; } 20%,80% { opacity: .65; } to { transform: translate3d(120px,10vh,0) rotate(140deg); opacity: 0; } }
@keyframes sl-motes { from { transform: translate3d(0,90vh,0); opacity: 0; } 30%,70% { opacity: .5; } to { transform: translate3d(50px,20vh,0); opacity: 0; } }
@keyframes sl-mist { from { transform: translateX(-35%); opacity: .3; } to { transform: translateX(35%); opacity: .65; } }
@supports (height: 100cqh) {
  @keyframes petal-fall { from { transform: translate3d(var(--petal-drift-start),-10cqh,0) rotate(0); } to { transform: translate3d(var(--petal-drift-end),115cqh,0) rotate(420deg); } }
  @keyframes sl-rain { from { transform: translate3d(0,-10cqh,0) rotate(12deg); } to { transform: translate3d(-70px,110cqh,0) rotate(12deg); } }
  @keyframes sl-seeds { from { transform: translate3d(-80px,90cqh,0) rotate(0); opacity: 0; } 20%,80% { opacity: .65; } to { transform: translate3d(120px,10cqh,0) rotate(140deg); opacity: 0; } }
  @keyframes sl-motes { from { transform: translate3d(0,100cqh,0); opacity: 0; } 30%,70% { opacity: .5; } to { transform: translate3d(50px,20cqh,0); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .petal-field { display: none !important; }
  .motion-toggle { display: none !important; }
  html { scroll-behavior: auto; }
}
