/* You Choose Adventures, after zenda.com.
   Soft paper, Fraunces for display and Figtree for UI, white rounded cards with no borders, purple pills that spring,
   and things that rise into place as you get to them. Shared by every page; the landing adds home.css and hero.css. */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-var.woff2") format("woff2-variations"), url("../fonts/fraunces-latin-var.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; font-named-instance: "Soft"; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-italic-var.woff2") format("woff2-variations"), url("../fonts/fraunces-latin-italic-var.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;

  --paper: #f5f4ee;
  --paper-2: #edeae3;
  --paper-3: #e6e4dc;
  --line: #e2dfd6;
  --line-2: #c6c2b6;
  --card: #fff;
  --ink: #111;
  --ink-2: #212121;
  --ink-soft: #66645d;
  --dark: #383940;

  --purple: #ac6cf4;
  --purple-2: #9a55ee;
  /* White text needs a deeper purple than the brand mark. The logo and the big footer word stay --purple. */
  --purple-btn: #8450be;
  --purple-btn-2: #7344a8;
  --purple-ink: #7a3fbe;
  --lilac: #efe4fd;
  --magenta: #ed52ff;
  --pink: #ed6e92;
  --pink-2: #f7ccd8;
  --coral: #ff9f9f;
  --blue: #9bb7f6;
  --blue-2: #dbe5fc;
  --sand: #eedbb6;
  --mint: #cfeedd;

  /* the pastel of each story colour */
  --tone-red: #fbd9d4; --tone-yellow: #f6e7c3; --tone-green: #d8efe0; --tone-blue: #dbe5fc;
  --tone-pink: #f7ccd8; --tone-orange: #f8dfc6; --tone-teal: #d2efea;

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: var(--sans);

  /* zenda's easings: a soft settle for moves, an overshooting spring for hovers and arrivals */
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.165, .84, .44, 1);
  --ease-col: cubic-bezier(.215, .61, .355, 1);
  --spring: linear(0 0%, .5737 7.6%, .8382 11.87%, .9463 14.19%, 1.0292 16.54%, 1.0886 18.97%, 1.1258 21.53%, 1.137 22.97%, 1.1424 24.48%, 1.1423 26.1%, 1.1366 27.86%, 1.1165 31.01%, 1.0507 38.62%, 1.0219 42.57%, .9995 46.99%, .9872 51.63%, .9842 58.77%, 1.0011 81.26%, 1 100%);

  --r-s: 14px; --r-m: 24px; --r-l: 32px; --r-xl: 40px;
  --accent: var(--purple);
  --accent-soft: var(--lilac);
}

.color-red { --accent-soft: var(--tone-red); } .color-yellow { --accent-soft: var(--tone-yellow); } .color-green { --accent-soft: var(--tone-green); }
.color-blue { --accent-soft: var(--tone-blue); } .color-pink { --accent-soft: var(--tone-pink); } .color-orange { --accent-soft: var(--tone-orange); } .color-teal { --accent-soft: var(--tone-teal); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.5; font-weight: 450;
  overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -.03em; margin: 0; text-wrap: balance; font-variation-settings: "SOFT" 50, "WONK" 0.4, "opsz" 36; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; }
img { max-width: 100%; }
::selection { background: var(--lilac); color: var(--ink); }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; border-radius: 12px; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: #111; color: #fff; padding: .6rem 1rem; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }
#app:focus, #content:focus, main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { text-align: center; padding: 2rem; font-size: 1.3rem; }

/* every inner page arrives the same way: up, out of a slight shrink */
.view { animation: page-in .9s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(2.5rem) scale(.985); } to { opacity: 1; transform: none; } }
/* and its lists follow one item at a time (--k is set by motion.js) */
.view .picks > li, .view .choices > li, .view .places > li, .view .troubles > li, .view .dials > .dial, .view .chips > *, .view .end-links > * {
  animation: rise-in .9s var(--ease) both; animation-delay: calc(.12s + var(--k, 0) * 45ms);
}
@keyframes rise-in { from { opacity: 0; transform: translateY(2rem); } to { opacity: 1; transform: none; } }

/* ---------- shared: buttons, links, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; background: var(--purple-btn); color: #fff;
  border-radius: 999px; padding: .95rem 1.7rem; font-weight: 500; font-size: 1.0625rem; letter-spacing: -.02em; line-height: 1.2;
  text-decoration: none; transition: transform .45s var(--spring), background-color .2s var(--ease-col), color .2s var(--ease-col);
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; transition: translate .6s var(--ease); }
.btn:hover { transform: scale(1.04); background: var(--purple-btn-2); }
.btn:hover svg { translate: .2rem 0; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--card); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: var(--lilac); }
.btn.big { padding: 1.1rem 2.1rem; font-size: 1.15rem; }

.textlink { font-weight: 500; color: var(--purple-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: rgba(122, 63, 190, .35); transition: text-decoration-color .2s; }
.textlink:hover { text-decoration-color: currentColor; }
/* the back links in every top bar: small white pills */
.link {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 2.6rem; padding: .5rem 1.1rem; border-radius: 999px; background: var(--card);
  font-weight: 500; font-size: .95rem; letter-spacing: -.01em; text-decoration: none; transition: transform .45s var(--spring), background-color .2s var(--ease-col), color .2s var(--ease-col);
}
.link:hover { transform: scale(1.05); background: var(--ink); color: #fff; }
.link[aria-pressed="true"] { background: var(--purple-btn); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }
.chips.center { justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.25rem; border-radius: 999px; border: 0;
  background: var(--card); font-weight: 500; font-size: 1rem; letter-spacing: -.01em; cursor: pointer;
  transition: transform .45s var(--spring), background-color .2s var(--ease-col), color .2s var(--ease-col);
}
.chip:hover { transform: scale(1.05); }
.chip[aria-pressed="true"], .chip.radio:has(input:checked) { background: var(--ink); color: #fff; }
.chip.radio { position: relative; }
.chip.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip.radio:has(input:focus-visible) { outline: 2px solid var(--purple); outline-offset: 3px; }

.mood { display: inline-block; font-size: .85rem; font-weight: 500; color: var(--ink-soft); }

/* "The End", and the "For grown-ups" title: a soft lilac pill */
.tape {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--lilac); color: var(--ink); padding: .35em 1em; border-radius: 999px;
  font-weight: 500; font-size: clamp(1.4rem, 3.6vw, 2rem); letter-spacing: -.04em; line-height: 1.1;
}

/* ---------- pictures: transparent cut-outs ---------- */
.portrait { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; flex: none; }
.portrait img { width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 90%; transition: transform .6s var(--spring); }
.portrait .glyph { font-size: clamp(3rem, 12vw, 4.5rem); line-height: 1; }
.portrait.xs { width: 2.4rem; } .portrait.xs .glyph { font-size: 1.6rem; }
.portrait.sm { width: 5rem; }
@keyframes bob { 0%, 100% { transform: translateY(-.3rem) scale(1.04); } 50% { transform: translateY(-.75rem) scale(1.04) rotate(1.5deg); } }

/* ---------- setup ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 62rem; margin: 0 auto; padding: 1.25rem 1.25rem .5rem; position: relative; z-index: 2; }
.dots { display: inline-flex; gap: .35rem; align-items: center; }
.dot { width: .5rem; height: .5rem; border-radius: 999px; background: var(--line-2); transition: background-color .3s var(--ease-col), width .6s var(--ease); }
.dot.on { background: var(--purple); }
.dots .dot.on:has(+ .dot:not(.on)), .dots .dot.on:last-child { width: 1.5rem; }
.setup { position: relative; min-height: 100vh; overflow: hidden; }
.panel { position: relative; z-index: 1; max-width: 50rem; margin: 0 auto; padding: 1.5rem 1.25rem 6rem; outline: none; }
.for-story { text-align: center; margin: 0 0 1rem; font-weight: 500; color: var(--ink-soft); font-size: 1rem; }
.step-title { font-size: clamp(2rem, 5.2vw, 3.5rem); text-align: center; margin: .5rem auto 2rem; max-width: 18ch; }
.lead { display: block; text-align: center; color: var(--ink-soft); font-weight: 450; font-size: 1.1rem; margin: 0 0 1.4rem; }
.big-input {
  display: block; width: 100%; max-width: 26rem; margin: 0 auto 1.8rem; border: 0; background: var(--card); border-radius: var(--r-m);
  padding: 1.15rem 1.4rem; font-family: var(--sans); font-weight: 500; font-size: 1.6rem; text-align: center; letter-spacing: -.03em; color: var(--ink);
  box-shadow: 0 0 0 0 var(--purple); transition: box-shadow .3s var(--ease);
}
.big-input::placeholder { color: #a9a69c; font-weight: 400; }
.big-input:focus { outline: none; box-shadow: 0 0 0 3px var(--purple); }
.pick2 { border: 0; padding: 0; margin: 1.6rem 0 0; }
.pick2 legend { width: 100%; text-align: center; font-weight: 500; font-size: 1.25rem; padding: 0; letter-spacing: -.03em; }
.pick2 .chip { font-size: 1.15rem; padding: .7rem 2rem; }
.pick2.tones .chip { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 1.3rem .5rem .55rem; font-size: 1.05rem; }
.swatch { width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.tone-light { --sw: #f2d0b5; } .tone-medium { --sw: #c48c5e; } .tone-dark { --sw: #6a4026; }

/* picks: no cards, just the painted cut-out standing on the paper, with its name underneath */
.picks { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1.6rem 1.1rem; }
.special-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin: .25rem 0 1.5rem; }
.special-filters .chip { padding: .55rem 1.05rem; font-size: .95rem; }
.pick {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .45rem; width: 100%; height: 100%; padding: .35rem .25rem .5rem; text-align: center;
  background: none; border: 0; border-radius: var(--r-m); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.pick .portrait { width: min(100%, 9rem); isolation: isolate; }
/* a soft ground shadow under each figure (not a box): grows and turns lilac when chosen */
.pick .portrait::before {
  content: ""; position: absolute; z-index: -1; left: 18%; right: 18%; bottom: 1%; height: 12%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(60, 45, 30, .16), transparent); transition: transform .6s var(--spring), background .3s var(--ease-col);
}
.pick .portrait img {
  scale: var(--s, 1); filter: drop-shadow(0 6px 8px rgba(60, 45, 30, .10));
  transition: transform .6s var(--spring), filter .35s var(--ease);
}
@media (min-width: 62rem) { .picks { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 2rem 1.4rem; } .pick .portrait { width: min(100%, 10.5rem); } .panel { max-width: 62rem; } }
.pick-text { display: grid; gap: .25rem; justify-items: center; }
.pick-title {
  display: inline; font-family: var(--display); font-weight: 500; font-size: 1.2rem; line-height: 1.15; letter-spacing: -.02em;
  font-variation-settings: "SOFT" 50, "WONK" 0.4, "opsz" 24; text-wrap: balance;
  background: linear-gradient(var(--purple), var(--purple)) 50% 100% / 0 2px no-repeat; padding-bottom: .12em; transition: background-size .45s var(--ease), color .2s var(--ease-col);
}
.pick-blurb { display: block; font-size: .85rem; line-height: 1.32; color: var(--ink-soft); font-weight: 450; max-width: 16rem; }
.pick-check {
  position: absolute; top: .35rem; right: max(.25rem, calc(50% - 5rem)); width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--purple);
  display: grid; place-items: center; transform: scale(0); opacity: 0; transition: transform .5s var(--spring), opacity .2s var(--ease);
  box-shadow: 0 4px 10px rgba(172, 108, 244, .35);
}
.pick-check::after { content: ""; width: .5rem; height: .85rem; margin-top: -.15rem; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
@media (hover: hover) {
  .pick:hover .portrait img { transform: translateY(-.55rem) scale(1.06) rotate(-2deg); filter: drop-shadow(0 14px 14px rgba(60, 45, 30, .16)); }
  .pick:hover .portrait::before { transform: scaleX(.8); }
  .pick:hover .pick-title { background-size: 60% 2px; }
}
.pick:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.pick:focus-visible .portrait img { transform: translateY(-.55rem) scale(1.06) rotate(-2deg); }
.pick:active .portrait img { transform: translateY(-.2rem) scale(.97); transition-duration: .2s; }
.pick[aria-pressed="true"] .portrait img { animation: bob 2.8s ease-in-out infinite; filter: drop-shadow(0 10px 16px rgba(154, 85, 238, .38)); }
.pick[aria-pressed="true"] .portrait::before { background: radial-gradient(closest-side, rgba(172, 108, 244, .45), transparent); transform: scaleX(1.25); }
.pick[aria-pressed="true"] .pick-title { color: var(--purple-2); background-size: 100% 2px; }
.pick[aria-pressed="true"] .pick-check { transform: scale(1); opacity: 1; }
.next { text-align: center; margin: 2.2rem 0 0; }
.hint { text-align: center; color: var(--pink); font-weight: 500; }

/* ---------- the sliders that start every story ---------- */
.dials { display: grid; gap: .9rem; max-width: 34rem; margin: 0 auto; }
.dial { background: var(--card); border-radius: var(--r-m); padding: 1.2rem 1.5rem 1.2rem; }
.dial-yellow { --dial: var(--purple); } .dial-orange { --dial: var(--pink); } .dial-teal { --dial: #6f93ec; }
.dial label { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dial-name { font-weight: 500; font-size: 1.3rem; letter-spacing: -.035em; }
.dial-now { font-weight: 500; font-size: .92rem; background: var(--paper); padding: .2rem .85rem; border-radius: 999px; }
.dial input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 2.6rem; margin: .3rem 0 0; background: transparent; cursor: pointer; }
.dial input[type="range"]::-webkit-slider-runnable-track { height: .55rem; border-radius: 999px; background: linear-gradient(to right, var(--dial) 0 var(--fill, 50%), var(--paper-3) var(--fill, 50%) 100%); }
.dial input[type="range"]::-moz-range-track { height: .55rem; border-radius: 999px; background: var(--paper-3); }
.dial input[type="range"]::-moz-range-progress { height: .55rem; border-radius: 999px; background: var(--dial); }
.dial input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 1.9rem; height: 1.9rem; margin-top: -.68rem; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 2px var(--dial), 0 .3rem .8rem rgba(17, 17, 17, .15); transition: transform .45s var(--spring); }
.dial input[type="range"]::-moz-range-thumb { width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 2px var(--dial), 0 .3rem .8rem rgba(17, 17, 17, .15); }
.dial input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); }
.dial input[type="range"]:focus-visible { outline: none; }
.dial input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--ink); outline-offset: 3px; }
.dial input[type="range"]:focus-visible::-moz-range-thumb { outline: 2px solid var(--ink); outline-offset: 3px; }
.dial-ends { display: flex; justify-content: space-between; gap: 1rem; font-size: .86rem; color: var(--ink-soft); font-weight: 450; }
.fineprint { text-align: center; color: var(--ink-soft); font-size: .92rem; max-width: 26rem; margin: 1.4rem auto 0; font-weight: 450; }

/* ---------- reading ---------- */
.reader { position: relative; min-height: 100vh; }
.reader::before { content: ""; position: absolute; z-index: 0; left: 50%; top: -24rem; width: min(70rem, 160vw); aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: var(--accent-soft); opacity: .7; pointer-events: none; }
.page { position: relative; z-index: 1; max-width: 42rem; margin: 0 auto; padding: 1.5rem 1.25rem 6rem; outline: none; }
.cast-strip { display: flex; gap: .4rem; margin-bottom: 1rem; align-items: flex-end; }
.cast-strip .portrait { width: 5.5rem; margin-right: -.5rem; animation: rise-in .9s var(--ease) both; }
.cast-strip .portrait.half { width: 2.8rem; margin-right: -.2rem; }
.cast-strip .portrait:nth-child(2) { animation-delay: .08s; } .cast-strip .portrait:nth-child(3) { animation-delay: .16s; }
.story-title { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 1.6rem; }
.text { font-size: clamp(1.2rem, 2.7vw, 1.4rem); line-height: 1.65; font-weight: 400; color: var(--ink-2); letter-spacing: -.01em; }
.text p { margin: 0 0 1.2rem; }
.ask { margin: 2.6rem 0 1rem; font-weight: 500; font-size: clamp(1.4rem, 3.4vw, 1.75rem); letter-spacing: -.04em; }
.choices { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.choice {
  display: flex; align-items: center; gap: 1rem; width: 100%; padding: 1rem 1.4rem 1rem 1rem; border-radius: var(--r-m); background: var(--card);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem); font-weight: 450; line-height: 1.35; letter-spacing: -.015em;
  transition: transform .45s var(--spring), background-color .2s var(--ease-col);
}
.choice:hover { background: var(--lilac); transform: scale(1.02); }
.num { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--paper); font-weight: 500; transition: background-color .2s var(--ease-col), color .2s var(--ease-col), transform .45s var(--spring); }
.choice:hover .num { background: var(--purple-btn); color: #fff; transform: scale(1.08); }

.thinking { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin: 2.8rem 0 1rem; font-weight: 500; font-size: 1.2rem; letter-spacing: -.02em; }
.thinking p { margin: 0; }
.bounce { width: 3.2rem; height: 3.2rem; background: var(--purple); border-radius: 50%; animation: squish 1.1s var(--ease) infinite; }
@keyframes squish { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-1.1rem) scale(.9, 1.1); } 70% { transform: translateY(0) scale(1.12, .88); } }
.oops { text-align: center; margin-top: 2rem; }
.oops p { font-weight: 500; font-size: 1.25rem; letter-spacing: -.03em; }
.oops .break-msg { font-weight: 400; font-size: 1.05rem; max-width: 34ch; margin: .5rem auto 1rem; letter-spacing: 0; }
.the-end { text-align: center; margin-top: 3rem; }
.end-mark { margin: 0; }
.the-end .tape { animation: pop 1s var(--spring) both .1s; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.keepsakes { max-width: 30rem; margin: 1.4rem auto 0; font-weight: 450; color: var(--ink-soft); }
.end-links { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1.8rem 0 0; }

.byline { font-weight: 450; color: var(--ink-soft); margin: -.8rem 0 2rem; }
.book-page { margin-bottom: 1.6rem; }
.book-page .chose { font-weight: 500; font-size: 1.05rem; padding: .7rem 1.1rem; background: var(--card); border-radius: var(--r-s); letter-spacing: -.02em; }
.book .end-mark { text-align: center; margin-top: 2.5rem; }
.dial-line { margin-top: -1.2rem; }

/* with JavaScript on, the plain text inside #app is only for search engines: keep it out of sight while the page loads
   (it comes back after a few seconds if the script never runs) */
.js #app > .prose { opacity: 0; animation: show-late 0s 4s forwards; }
@keyframes show-late { to { opacity: 1; } }
.prose { max-width: 42rem; margin: 0 auto; padding: 1rem 1.25rem 5rem; font-size: 1.125rem; line-height: 1.65; color: var(--ink-2); }
.prose h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); margin: 1.5rem 0 1.4rem; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin: 2.4rem 0 .4rem; color: var(--ink); }
.prose p, .prose li { margin: .5rem 0; }
.prose .link { margin-top: 1rem; }
body > main.prose { animation: page-in .9s var(--ease) both; }
body > main.prose > * { animation: rise-in .9s var(--ease) both; }
body > main.prose > :nth-child(2) { animation-delay: .06s; } body > main.prose > :nth-child(3) { animation-delay: .12s; }
body > main.prose > :nth-child(4) { animation-delay: .18s; } body > main.prose > :nth-child(n+5) { animation-delay: .24s; }

/* ---------- build your own: places and troubles ---------- */
.places { list-style: none; margin: 1.4rem 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .9rem; }
.place-card { display: flex; flex-direction: column; width: 100%; height: 100%; padding: .4rem .3rem .6rem; border-radius: var(--r-m); text-align: left; background: none; border: 0; cursor: pointer; }
.place-art { display: block; position: relative; aspect-ratio: 3 / 2; margin-bottom: .6rem; }
.place-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(60, 45, 30, .12)); transition: transform .6s var(--spring), filter .35s var(--ease); }
@media (hover: hover) { .place-card:hover .place-art img { transform: translateY(-.45rem) scale(1.04) rotate(-1deg); filter: drop-shadow(0 16px 16px rgba(60, 45, 30, .18)); } .place-card:hover .place-name { color: var(--purple-ink); } }
.place-card:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.place-card:focus-visible .place-art img { transform: translateY(-.45rem) scale(1.04); }
.place-name { font-family: var(--display); font-weight: 500; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.15; font-variation-settings: "SOFT" 50, "WONK" 0.4, "opsz" 24; transition: color .2s var(--ease-col); }
.place-desc { display: block; margin-top: .25rem; font-size: .88rem; line-height: 1.35; color: var(--ink-soft); font-weight: 450; }
.troubles { list-style: none; margin: 1.4rem 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: .9rem; }
.trouble-card { display: flex; flex-direction: column; gap: .35rem; width: 100%; height: 100%; padding: 1.4rem 1.5rem 1.5rem; border-radius: var(--r-l); text-align: left; background: var(--pink-2); transition: transform .45s var(--spring); }
.trouble-card.mood-funny { background: var(--sand); } .trouble-card.mood-wondrous { background: var(--lilac); } .trouble-card.mood-brave { background: var(--blue-2); }
.trouble-card:hover, .trouble-card:focus-visible { transform: scale(1.03) rotate(-.5deg); }
.trouble-mood { align-self: flex-start; font-size: .82rem; font-weight: 500; padding: .15rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .6); }
.trouble-title { font-weight: 500; font-size: 1.4rem; letter-spacing: -.04em; line-height: 1.1; margin-top: .4rem; }
.trouble-blurb { font-size: .95rem; font-weight: 450; line-height: 1.35; color: var(--ink-2); }

/* per-picture scale classes (values from js/art-scale.js; classes because the CSP forbids inline styles) */
.s82 img { --s: 0.82; } .s83 img { --s: 0.83; } .s84 img { --s: 0.84; } .s85 img { --s: 0.85; } .s86 img { --s: 0.86; } .s87 img { --s: 0.87; } .s88 img { --s: 0.88; } .s89 img { --s: 0.89; } .s90 img { --s: 0.9; } .s91 img { --s: 0.91; } .s92 img { --s: 0.92; } .s93 img { --s: 0.93; } .s94 img { --s: 0.94; } .s95 img { --s: 0.95; } .s96 img { --s: 0.96; } .s97 img { --s: 0.97; } .s98 img { --s: 0.98; } .s102 img { --s: 1.02; } .s103 img { --s: 1.03; } .s104 img { --s: 1.04; } .s105 img { --s: 1.05; } .s106 img { --s: 1.06; } .s107 img { --s: 1.07; } .s108 img { --s: 1.08; } .s109 img { --s: 1.09; } .s110 img { --s: 1.1; } .s111 img { --s: 1.11; } .s113 img { --s: 1.13; } .s114 img { --s: 1.14; }

/* ---------- phones ---------- */
@media (max-width: 46rem) {
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .6rem; }
  .pick { padding: .25rem .15rem .4rem; }
  .pick-title { font-size: 1.1rem; }
  .pick-check { right: .35rem; }
  .topbar { padding-top: 1rem; }
}

@media print {
  body { background: #fff; font-size: 12pt; }
  .topbar, .cast-strip, .site-footer, .reader::before { display: none !important; }
  .page { max-width: none; padding: 0; }
  .book-page, .book-page p { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.prose h1 .tape { background: none; padding: 0; font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -.04em; }
