/* =========================================================
   Curios Petals — site styles
   Colours come straight from the flower logo.
   ========================================================= */
:root {
  --ink: #1f2455;          /* the deep blue of "Let's talk" on the covers */
  --ink-soft: #4b5080;
  --paper: #ffffff;
  --mist: #f3f6fc;         /* quiet alternate section */
  --line: #dfe4f2;
  --coral: #f2705e;
  --violet: #a26dd6;
  --sun: #f9be38;
  --sky: #4da3e0;
  --leaf: #5db55a;
  --coral-tint: #fde9e5;
  --violet-tint: #f1e8fb;
  --sun-tint: #fef3d4;
  --sky-tint: #e3f0fb;
  --leaf-tint: #e6f4e4;

  --display: "Grandstander", "Comic Sans MS", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.125rem;
  --step-1: 1.35rem;
  --step-2: 1.75rem;
  --step-3: 2.4rem;
  --step-4: clamp(2.5rem, 5.4vw, 4.4rem);

  --wrap: 1180px;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 32px;
  --shadow: 0 10px 30px -12px rgba(31, 36, 85, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.measure { max-width: 62ch; }
.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--display); font-weight: 700; font-size: var(--step-0);
  padding: .8em 1.4em; border-radius: 999px; border: 3px solid var(--ink);
  background: var(--ink); color: #fff; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 0 var(--ink); transform: translateY(-2px);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-4px); box-shadow: 0 6px 0 0 var(--ink); }
.btn:active { transform: translateY(0); box-shadow: 0 0 0 0 var(--ink); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-ghost { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 2px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand img.flower { width: 40px; height: auto; }
.brand img.word { width: 150px; height: auto; }
.nav { display: flex; gap: .2rem; align-items: center; }
.nav a { font-family: var(--display); font-weight: 600; text-decoration: none; padding: .45rem .8rem; border-radius: 999px; font-size: 1.02rem; }
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { background: var(--sun-tint); }
.calm-toggle {
  font-family: var(--display); font-weight: 600; font-size: .98rem; cursor: pointer;
  border: 2px solid var(--line); background: #fff; color: var(--ink);
  padding: .4rem .85rem; border-radius: 999px; display: inline-flex; gap: .45rem; align-items: center;
}
.calm-toggle[aria-pressed="true"] { background: var(--leaf-tint); border-color: var(--leaf); }
.calm-dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--line); }
.calm-toggle[aria-pressed="true"] .calm-dot { background: var(--leaf); }
.menu-btn { display: none; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: .45rem .7rem; font-family: var(--display); font-weight: 700; color: var(--ink); cursor: pointer; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: .8rem 1.25rem 1.2rem; border-bottom: 2px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 1rem; font-size: 1.15rem; }
  .brand img.word { width: 124px; }
}
@media (max-width: 480px) {
  .brand img.word { display: none; }
  .site-header .wrap { gap: .6rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section.mist { background: var(--mist); }
.section-head { margin-bottom: 2.6rem; }
.section-head p { color: var(--ink-soft); }

/* =========================================================
   HERO: the thought bubble
   ========================================================= */
.hero { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 3.5rem) 0 0; background: #fff; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr);
  column-gap: clamp(1rem, 3vw, 2.5rem); align-items: center;
}
.hero-copy { padding-block: 1rem 3rem; }
.hero-copy h1 { font-size: clamp(2.4rem, 4.3vw, 3.9rem); margin-bottom: .35em; }
.hero-copy .lede { max-width: 30ch; margin-bottom: 1.6rem; }

/* the scene: a child at the bottom left, looking up at her thought bubble */
.bubble-zone { position: relative; aspect-ratio: 1 / .96; }
.hero-child { position: absolute; left: 2%; bottom: 0; width: 25%; mix-blend-mode: multiply; }
.hero-child img { width: 100%; -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent); mask-image: linear-gradient(to bottom, #000 85%, transparent); }
.bubble { position: relative; aspect-ratio: 1.33 / 1; width: 80%; margin-left: auto; }
.bubble-shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bubble-shape path { fill: #fff; stroke: var(--ink); stroke-width: 3.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.trail { position: absolute; border: 3px solid var(--ink); border-radius: 50%; background: #fff; }
.trail.t1 { width: 32px; height: 32px; left: 5%; bottom: 3%; }
.trail.t2 { width: 21px; height: 21px; left: -1%; bottom: -7%; }
.trail.t3 { width: 13px; height: 13px; left: -5.5%; bottom: -14%; }

.thing {
  position: absolute; width: 17%; aspect-ratio: 1; padding: 0; border: 0; background: transparent; cursor: pointer;
  border-radius: 50%; translate: -50% -50%;
  animation: bob 6s ease-in-out infinite;
  transition: scale .35s cubic-bezier(.34,1.56,.64,1), opacity .3s ease, filter .3s ease;
}
.thing img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; pointer-events: none; }
.thing:hover { scale: 1.08; }
.bubble.has-pick .thing img { opacity: .3; filter: grayscale(.7); transition: opacity .3s, filter .3s; }
.bubble.has-pick .thing.picked img { opacity: 1; filter: none; }
.bubble.has-pick .thing.picked { scale: 1.55; z-index: 2; animation-play-state: paused; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-9px) rotate(2deg); }
}
.bubble-say {
  display: table; margin: 1.4rem 0 0 auto; position: relative; z-index: 3; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: var(--step-2);
  background: var(--sun); color: var(--ink); padding: .25em .9em; border-radius: 999px;
  border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
}
.bubble-say.hint { background: #fff; font-size: var(--step-0); font-weight: 600; box-shadow: none; border-style: dashed; }

/* bloom-in on load: the one orchestrated moment */
.bubble-shape, .trail { animation: puff .7s cubic-bezier(.34,1.56,.64,1) both; transform-origin: 20% 90%; }
.trail.t3 { animation-delay: .05s; } .trail.t2 { animation-delay: .15s; } .trail.t1 { animation-delay: .25s; }
.bubble-shape { animation-delay: .35s; }
.thing { opacity: 0; animation: appear .5s ease-out forwards, bob 6s ease-in-out infinite; }
@keyframes puff { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

.hero-ground { height: 18px; background: repeating-linear-gradient(90deg, var(--coral) 0 20%, var(--sun) 20% 40%, var(--leaf) 40% 60%, var(--sky) 60% 80%, var(--violet) 80% 100%); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: .5rem; }
  .bubble-zone { aspect-ratio: 1 / 1.24; }
  .trail.t1 { width: 22px; height: 22px; left: 5%; bottom: -3%; }
  .trail.t2 { width: 13px; height: 13px; left: 0; bottom: -11%; }
  .trail.t3 { display: none; }
  .bubble { width: 86%; }
  .hero-child { width: 31%; }
  .thing { width: 20%; }
  .bubble-say { font-size: var(--step-1); }
}

/* ---------- Quote ---------- */
.quote-band { background: var(--violet-tint); }
.quote-band blockquote { margin: 0; }
.quote-band blockquote p { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.15; max-width: 22ch; margin-bottom: .5em; }
.quote-band cite { font-style: normal; color: var(--ink-soft); }
.quote-band .after { margin-top: 2rem; font-size: var(--step-1); max-width: 40ch; }

/* ---------- Real pictures ---------- */
.real-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.photo-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.photo-table figure { margin: 0; background: #fff; border: 2px solid var(--line); border-radius: var(--radius-m); padding: .8rem .8rem .6rem; text-align: center; }
.photo-table figure:nth-child(odd) { rotate: -2deg; } .photo-table figure:nth-child(even) { rotate: 2deg; translate: 0 10px; }
.photo-table img { aspect-ratio: 1; object-fit: contain; width: 100%; mix-blend-mode: multiply; }
.photo-table figcaption { font-family: var(--display); font-weight: 600; margin-top: .3rem; }
@media (max-width: 860px) { .real-grid { grid-template-columns: 1fr; } }

/* ---------- Five wishes (child voices) ---------- */
.wishes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.6rem 1.4rem; }
.wish { grid-column: span 2; }
.wish:nth-child(4) { grid-column: 2 / span 2; }
.wish:nth-child(5) { grid-column: 4 / span 2; }
.wish .say {
  position: relative; font-family: var(--display); font-weight: 700; font-size: var(--step-2); line-height: 1.15;
  background: #fff; border: 3px solid var(--c, var(--ink)); border-radius: 28px; padding: 1.1rem 1.3rem; margin-bottom: 1.4rem;
}
.wish .say::after {
  content: ""; position: absolute; left: 28px; bottom: -16px; width: 26px; height: 26px; background: #fff;
  border-right: 3px solid var(--c, var(--ink)); border-bottom: 3px solid var(--c, var(--ink)); transform: skewX(30deg) rotate(45deg); border-bottom-right-radius: 4px;
}
.wish p { color: var(--ink-soft); padding-left: .4rem; }
@media (max-width: 860px) { .wishes { grid-template-columns: 1fr; } .wish, .wish:nth-child(4), .wish:nth-child(5) { grid-column: auto; } }

/* ---------- Steps path (a real sequence) ---------- */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, 1fr); gap: .5rem; position: relative; counter-reset: step; }
.path::before { content: ""; position: absolute; left: 4%; right: 4%; top: 30px; height: 6px; background: var(--leaf); border-radius: 3px; }
.path li { position: relative; text-align: center; counter-increment: step; font-family: var(--display); font-weight: 600; font-size: 1.02rem; line-height: 1.25; }
.path li::before {
  content: counter(step); display: grid; place-items: center; margin: 0 auto .7rem; position: relative;
  width: 60px; height: 60px; border-radius: 50% 50% 50% 10px;
  background: var(--c, var(--coral)); color: #fff; font-size: 1.5rem; font-weight: 700;
}
.path li:nth-child(5n+1) { --c: var(--coral); } .path li:nth-child(5n+2) { --c: var(--violet); }
.path li:nth-child(5n+3) { --c: var(--sun); } .path li:nth-child(5n+4) { --c: var(--sky); } .path li:nth-child(5n+5) { --c: var(--leaf); }
@media (max-width: 860px) {
  .path { grid-template-columns: 1fr; gap: 1rem; }
  .path::before { left: 28px; right: auto; width: 6px; top: 10px; bottom: 10px; height: auto; }
  .path li { display: flex; align-items: center; gap: 1rem; text-align: left; font-size: var(--step-0); }
  .path li::before { margin: 0; flex: none; width: 54px; height: 54px; }
}

/* ---------- Bookshelf ---------- */
.shelf { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2.4rem 2rem; align-items: end; padding-bottom: 1.6rem; }
.shelf::after { content: ""; position: absolute; left: -1rem; right: -1rem; bottom: 0; height: 22px; background: var(--sun); border: 3px solid var(--ink); border-radius: 8px; }
.book-card { text-decoration: none; display: block; position: relative; z-index: 1; padding-bottom: 1.3rem; }
.book-card .cover { border-radius: 4px 12px 12px 4px; box-shadow: -6px 0 0 0 var(--c, var(--sky)) inset, var(--shadow); overflow: hidden; border: 2px solid var(--line); background: #fff; transition: transform .25s ease, rotate .25s ease; transform-origin: bottom center; }
.book-card:hover .cover, .book-card:focus-visible .cover { transform: translateY(-12px); rotate: -2deg; }
.book-card .meta { position: absolute; left: 0; right: 0; top: calc(100% + 2.4rem); }
.book-card .part { font-size: var(--step--1); color: var(--ink-soft); }
.book-card h3 { margin: 0; font-size: 1.25rem; }
.shelf-wrap { padding-bottom: 5.6rem; }
.bud {
  border: 3px dashed var(--line); border-radius: 12px; aspect-ratio: 560 / 784; display: grid; place-items: center; text-align: center; padding: 1.4rem; color: var(--ink-soft); position: relative; z-index: 1; margin-bottom: 1.3rem; background: #fff;
}
.bud strong { display: block; font-family: var(--display); font-size: var(--step-1); color: var(--ink); }
.bud svg { width: 60px; margin: 0 auto .8rem; }

/* ---------- Play invite ---------- */
.play-band { background: var(--sky-tint); }
.play-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.play-preview { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius-l); padding: 1.6rem; box-shadow: 0 8px 0 var(--ink); }
.play-preview .q { font-family: var(--display); font-weight: 700; font-size: var(--step-1); margin-bottom: 1rem; text-align: center; }
.play-preview .opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.play-preview .opts div { border: 2px solid var(--line); border-radius: var(--radius-m); padding: .5rem; text-align: center; font-family: var(--display); font-weight: 600; }
.play-preview .opts img { mix-blend-mode: multiply; aspect-ratio: 1; object-fit: contain; }
.play-preview .opts .right { border-color: var(--leaf); background: var(--leaf-tint); }
@media (max-width: 860px) { .play-grid { grid-template-columns: 1fr; } }

/* ---------- Video + Instagram ---------- */
.media-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.4rem; align-items: center; }
.video-box { aspect-ratio: 16 / 10; border-radius: var(--radius-l); overflow: hidden; background: var(--mist); border: 3px solid var(--ink); position: relative; }
.video-box video, .video-box iframe { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
.video-soon { position: absolute; inset: 0; display: grid; grid-template-columns: 42% 1fr; align-items: center; gap: 1.2rem; padding: 1.4rem; }
.video-soon img { border-radius: 8px; box-shadow: var(--shadow); }
.video-soon strong { font-family: var(--display); font-size: var(--step-2); display: block; line-height: 1.15; margin-bottom: .4rem; }
.insta-card { border: 2px solid var(--line); border-radius: var(--radius-m); padding: 1.6rem; }
.insta-card .handle { font-family: var(--display); font-weight: 700; font-size: var(--step-2); }
@media (max-width: 860px) { .media-grid { grid-template-columns: 1fr; } .video-soon { grid-template-columns: 1fr 1.4fr; } }

/* ---------- Tips ---------- */
.tips { list-style: none; padding: 0; margin: 0; columns: 2 340px; column-gap: 3rem; }
.tips li { break-inside: avoid; padding-left: 2.4rem; position: relative; margin-bottom: 1.3rem; }
.tips li::before { content: ""; position: absolute; left: 0; top: .25rem; width: 22px; height: 22px; border-radius: 50% 50% 50% 4px; rotate: -45deg; background: var(--c, var(--coral)); }
.tips li:nth-child(5n+2)::before { background: var(--violet); } .tips li:nth-child(5n+3)::before { background: var(--sun); }
.tips li:nth-child(5n+4)::before { background: var(--sky); } .tips li:nth-child(5n+5)::before { background: var(--leaf); }
.tips strong { font-family: var(--display); font-weight: 700; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.review { border: 2px solid var(--line); border-radius: var(--radius-m); padding: 1.4rem 1.5rem; background: #fff; }
.review blockquote { margin: 0 0 .9rem; font-size: var(--step-0); }
.review .who { font-family: var(--display); font-weight: 700; }
.review .role { color: var(--ink-soft); font-size: var(--step--1); }
.review .petals { color: var(--coral); letter-spacing: .1em; font-size: 1.1rem; }
.empty-bloom { border: 3px dashed var(--line); border-radius: var(--radius-m); padding: 2rem; text-align: center; color: var(--ink-soft); }
.empty-bloom strong { display: block; font-family: var(--display); font-size: var(--step-1); color: var(--ink); }

/* ---------- News strip ---------- */
.news { background: var(--sun); border-bottom: 3px solid var(--ink); font-family: var(--display); font-weight: 600; text-align: center; padding: .55rem 1rem; }
.news a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Get the books ---------- */
.get-band { background: var(--ink); color: #fff; }
.get-band .lede { color: #d5d8f2; }
.get-band .btn { border-color: #fff; box-shadow: 0 4px 0 #fff; }
.get-band .btn-sun { border-color: var(--ink); box-shadow: 0 4px 0 #000; }
.stores { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mist); padding: 3.5rem 0 2.5rem; border-top: 2px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.site-footer img { width: 170px; margin-bottom: 1rem; }
.site-footer h4 { font-size: var(--step-0); margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { text-decoration: none; } .site-footer a:hover { text-decoration: underline; }
.small { font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Book page
   ========================================================= */
.book-hero { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-top: 3rem; }
.book-hero .cover { border-radius: 4px 14px 14px 4px; box-shadow: -8px 0 0 0 var(--c, var(--sky)) inset, var(--shadow); border: 2px solid var(--line); }
.book-hero h1 { font-size: var(--step-4); }
.facts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 1.6rem; padding: 0; list-style: none; }
.facts li { border: 2px solid var(--line); border-radius: 999px; padding: .3rem .9rem; font-size: var(--step--1); font-weight: 700; }
.learns { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.learns li { padding-left: 2rem; position: relative; margin-bottom: .5rem; }
.learns li::before { content: ""; position: absolute; left: 0; top: .45rem; width: 16px; height: 16px; border-radius: 50% 50% 50% 3px; rotate: -45deg; background: var(--leaf); }
@media (max-width: 760px) { .book-hero { grid-template-columns: 1fr; } .book-hero .cover { max-width: 260px; } }

.flip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; max-width: 780px; margin-inline: auto; }
.flip-stage { position: relative; background: #fff; border-radius: 8px; box-shadow: var(--shadow); border: 2px solid var(--line); overflow: hidden; touch-action: pan-y; }
.flip-stage img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; }
.flip-arrow { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--ink); background: var(--sun); color: var(--ink); font-size: 1.8rem; font-weight: 700; cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 0 var(--ink); }
.flip-arrow:disabled { opacity: .35; cursor: default; }
.flip-info { text-align: center; margin-top: 1rem; font-family: var(--display); font-weight: 600; }
.fav-badge { position: absolute; top: 12px; left: 12px; background: var(--coral); color: #fff; font-family: var(--display); font-weight: 700; padding: .3rem .8rem; border-radius: 999px; font-size: .95rem; }
@media (max-width: 600px) { .flip { grid-template-columns: 1fr 1fr; } .flip-stage { grid-column: 1 / -1; grid-row: 1; } .flip-arrow { justify-self: center; } }

.chapters { counter-reset: ch; list-style: none; padding: 0; columns: 2 280px; column-gap: 2.5rem; }
.chapters li { counter-increment: ch; break-inside: avoid; padding: .55rem 0 .55rem 2.6rem; position: relative; border-bottom: 2px dotted var(--line); }
.chapters li::before { content: counter(ch); position: absolute; left: 0; top: .5rem; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; background: var(--c, var(--sky)); color: #fff; font-family: var(--display); font-weight: 700; font-size: .95rem; }

/* =========================================================
   Quiz
   ========================================================= */
.quiz-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem; }
.quiz-pick a { text-decoration: none; text-align: center; }
.quiz-pick img { border-radius: 4px 12px 12px 4px; box-shadow: var(--shadow); border: 2px solid var(--line); margin-bottom: .8rem; transition: transform .2s; }
.quiz-pick a:hover img { transform: translateY(-8px); }
.quiz-pick strong { font-family: var(--display); font-size: var(--step-1); display: block; }

.quiz { max-width: 900px; margin-inline: auto; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.quiz-flower { width: 76px; height: 76px; }
.quiz-flower .p { opacity: .12; transition: opacity .4s ease, transform .5s cubic-bezier(.34,1.56,.64,1); transform-box: view-box; transform-origin: 50px 50px; }
.quiz-flower .p.on { opacity: 1; }
.quiz-count { font-family: var(--display); font-weight: 600; color: var(--ink-soft); }
.quiz-q { display: flex; align-items: center; justify-content: center; gap: .9rem; text-align: center; margin-bottom: 1.8rem; }
.quiz-q h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); margin: 0; }
.speak { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--ink); background: var(--sky); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 3px 0 var(--ink); }
.speak svg { width: 26px; height: 26px; }
.quiz-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.2rem; }
.opt { background: #fff; border: 4px solid var(--line); border-radius: var(--radius-l); padding: 1rem 1rem .8rem; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: var(--step-1); color: var(--ink); text-align: center; transition: border-color .2s, background .2s, opacity .4s, transform .2s; }
.opt:hover { border-color: var(--sky); }
.opt img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; margin-bottom: .4rem; pointer-events: none; }
.opt.right { border-color: var(--leaf); background: var(--leaf-tint); }
.opt.wrong { opacity: .35; animation: wiggle .45s ease; }
.opt.yn { font-size: var(--step-3); padding: 1.6rem 1rem; }
.quiz-pic { max-width: 300px; margin: 0 auto 1.6rem; border: 4px solid var(--line); border-radius: var(--radius-l); padding: 1rem; text-align: center; font-family: var(--display); font-weight: 700; font-size: var(--step-1); }
.quiz-pic img { mix-blend-mode: multiply; aspect-ratio: 1; object-fit: contain; width: 100%; }
@keyframes wiggle { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.quiz-feedback { min-height: 4.2rem; text-align: center; margin-top: 1.4rem; font-size: var(--step-1); }
.quiz-feedback .good { color: #2f7d2d; font-family: var(--display); font-weight: 700; }
.quiz-feedback .try { color: var(--coral); font-family: var(--display); font-weight: 700; }
.quiz-next { text-align: center; margin-top: .6rem; }
.quiz-done { text-align: center; }
.quiz-done .quiz-flower { width: 180px; height: 180px; margin: 0 auto 1rem; }

/* =========================================================
   Forms
   ========================================================= */
.form { display: grid; gap: 1.2rem; max-width: 640px; }
.field label, .field legend { display: block; font-family: var(--display); font-weight: 700; margin-bottom: .35rem; }
.field input[type=text], .field input[type=email], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: .8rem 1rem; border: 2px solid var(--line); border-radius: var(--radius-s); background: #fff;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sky); outline: none; box-shadow: 0 0 0 4px var(--sky-tint); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.petal-rate { display: flex; gap: .4rem; }
.petal-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.petal-rate label { width: 46px; height: 46px; cursor: pointer; margin: 0; }
.petal-rate label svg { width: 100%; height: 100%; }
.petal-rate label path { fill: var(--line); transition: fill .15s; }
.petal-rate label.lit path { fill: var(--coral); }
.petal-rate input:focus-visible + label { outline: 4px solid var(--sun); border-radius: 50%; }
.check { display: flex; gap: .7rem; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: .2rem; flex: none; }
.hidden { display: none; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.page-head { padding: clamp(3rem, 7vw, 5rem) 0 2rem; }
.page-head h1 { font-size: var(--step-4); }

/* Catalog */
.cat-book { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 2rem; padding: 2.4rem 0; border-top: 2px solid var(--line); }
.cat-book img { border-radius: 4px 10px 10px 4px; box-shadow: var(--shadow); }
@media (max-width: 640px) { .cat-book { grid-template-columns: 1fr; } .cat-book img { max-width: 160px; } }

/* =========================================================
   Calm mode + reduced motion
   ========================================================= */
html.calm *, html.calm *::before, html.calm *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.calm .thing { opacity: 1; }
html.calm .hero-ground { background: var(--line); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .thing { opacity: 1; }
}
[id] { scroll-margin-top: 90px; }
.quiz-flower .p { opacity: .16; }
.quiz-flower .p.on { opacity: 1; }
@media (max-width: 480px) {
  .hero-copy .btn { padding: .7em 1.1em; font-size: 1rem; }
  .hero-copy .btn-row { gap: .6rem; }
}
