/* Launch catalogue, on top of shop.css (same colours, type and buttons; nothing is redefined here):
   the "Bientôt chez Storiable" band under the stories on sale, its small cards, and the waiting-list form
   (boutique/js/vitrine.js, boutique/js/liste-attente.js). Also loaded by the landing pages of the stories
   that are not on sale yet. Phone first: readable at 375 px, touch targets of 44 px at least. */

/* Old links to a hidden story land on the stories on sale */
.story-anchor { display: block; scroll-margin-top: 90px; }

/* The band */
.soon-band { background: var(--mint); border-radius: var(--r); padding: 28px; }
.soon-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; margin: 0 0 18px; }
.soon-head h3 { margin: 0; font-size: clamp(1.35rem, 1.15rem + .9vw, 1.7rem); }
.soon-head p { margin: 0; font: 1.12rem/1.3 var(--hand); color: var(--coral); }
.soon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }

/* A small card: poster or cover on the left, a few lines, then the waiting list across the whole width */
.soon-card { display: grid; grid-template-columns: 112px 1fr; align-content: start; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-sm); overflow: hidden; scroll-margin-top: 90px; }
.soon-thumb { position: relative; min-height: 124px; background: var(--butter); overflow: hidden; }
.soon-thumb .story-cover { position: absolute; inset: 0; object-position: center; }
.soon-thumb .story-visual-fallback { position: absolute; inset: 0; }
.soon-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; min-width: 0; }
.soon-body p { margin: 0; }
.soon-kicker { font: 800 .7rem var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--deep); }
.soon-card h4 { margin: 0; font: 600 1.18rem/1.15 var(--display); color: var(--ink-strong); }
.soon-blurb { font-size: .93rem; line-height: 1.4; color: var(--ink); }
.soon-audience { font: 700 .84rem/1.35 var(--sans); color: var(--muted); }
.soon-note { margin-top: 4px !important; font: 1.02rem/1.25 var(--hand); color: var(--coral); }
.soon-body .story-age { margin-top: 4px; }

/* The typographic poster, shrunk to a thumbnail: the title only */
.soon-thumb .sv-poster { padding: 10px; gap: 0; }
.soon-thumb .sv-poster::before { width: 70px; height: 70px; right: -22px; top: -24px; }
.soon-thumb .sv-poster b { font-size: .98rem; line-height: 1.05; max-width: none; overflow-wrap: anywhere; }
.soon-thumb .sv-kicker, .soon-thumb .sv-line { display: none; }
.soon-thumb .sv-retro-1985 b { text-shadow: 2px 2px 0 #39e2d6; }
.soon-thumb .sv-very-bad-night::before { width: 46px; height: 46px; right: 10px; top: 10px; border-width: 3px; }
.soon-thumb .sv-cousus::before { width: 34px; height: 34px; right: 10px; top: 10px; box-shadow: 0 0 0 4px var(--p-accent); }

/* Children's albums: night sky, a sun-coloured moon and a few stars (no picture of the album yet) */
.sv-enfants { --p-bg: linear-gradient(165deg, #2a2552 0%, #3a3566 100%); --p-ink: #fdf6ec; --p-accent: #f2c14e; }
.sv-enfants::after { content: ""; position: absolute; inset: 0; z-index: 0; background-image: radial-gradient(circle, #fdf6ec 1.3px, transparent 1.8px), radial-gradient(circle, #a8d5c5 1.3px, transparent 1.8px); background-size: 46px 52px, 62px 44px; background-position: 8px 14px, 30px 34px; opacity: .55; }

/* Waiting list: the button, then the form that takes its place */
.waitlist { display: grid; justify-items: start; gap: 8px; }
.soon-card > .waitlist { grid-column: 1 / -1; padding: 12px 14px 14px; border-top: 1.5px dashed var(--line); }
.waitlist .btn { min-height: 44px; }
.waitlist-form { display: grid; gap: 10px; width: 100%; max-width: 460px; text-align: left; }
.waitlist-field { display: grid; gap: 6px; }
.waitlist-field span { font: 800 .9rem var(--sans); color: var(--ink-strong); }
.waitlist-form input[type=email] { min-height: 48px; font-size: 1rem; }
.waitlist-consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; min-height: 44px; padding: 6px 0; font-size: .95rem; line-height: 1.4; color: var(--ink); cursor: pointer; }
.waitlist-consent input { width: 24px; height: 24px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.waitlist-form .btn { justify-self: start; }
.waitlist-error { margin: 0; padding: 8px 12px; border-radius: 10px; background: #fdeeea; color: #7c2b1d; font: 700 .92rem/1.4 var(--sans); }
.waitlist-legal { margin: 0; font-size: .84rem; line-height: 1.45; color: var(--muted); }
.waitlist-legal a { display: inline-block; padding: 6px 0; color: var(--deep); font-weight: 800; }
.waitlist-done { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--ok-bg, var(--mint)); color: var(--ink-strong); font: 700 .98rem/1.4 var(--sans); }

/* Landing pages of a story that is not on sale: the waiting list, then the way to the stories on sale */
.lp-waitlist { margin: 0 0 18px; }
.lp-onsale { margin: 0; font-size: .98rem; }
.lp-onsale a { display: inline-block; padding: 8px 0; }
.lp-final .waitlist { justify-items: center; }
.lp-final .waitlist-form { margin: 0 auto; }

@media (max-width: 560px) {
  .soon-band { padding: 18px 14px; }
  .soon-card { grid-template-columns: 92px 1fr; }
  .soon-body { padding: 10px 12px; }
  .soon-card > .waitlist { padding: 10px 12px 12px; }
  .waitlist-form .btn { justify-self: stretch; }
}
