/* Journey page: reuses site tokens so light/dark themes follow the homepage. */
.journey-main { padding-top: 5.4rem; overflow-x: clip; }
.journey-intro { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.25rem; align-items: end; width: min(1180px, calc(100% - 3rem)); margin: 2rem auto 1.5rem; }
.journey-intro h1 { margin: .45rem 0 .75rem; font: 600 clamp(2rem, 4vw, 3.4rem)/1.08 var(--display); letter-spacing: -.025em; }
.journey-intro h1 em { color: var(--orange-dark); font-weight: 600; }
.journey-intro > p, .journey-timeline p, .reader-hint { color: var(--muted); }
.journey-intro > p { max-width: 28rem; margin: 0; font-size: .9rem; }
.journey-back { display: inline-flex; align-items: center; min-height: 44px; font-size: .78rem; text-decoration: none; }
.reader { width: min(1240px, calc(100% - 2rem)); margin: 0 auto 4rem; padding: 1.1rem 1.75rem 1.4rem; border: 1px solid var(--line); border-radius: .35rem; background: var(--soft); }
.reader button, .reader select { min-height: 44px; border: 1px solid var(--line); border-radius: .2rem; color: var(--ink); background: var(--surface); font: inherit; font-size: .8rem; }
.reader button { padding: .55rem .95rem; cursor: pointer; }
.reader button:disabled { opacity: .55; cursor: default; }
.reader select { min-width: 0; max-width: 21rem; padding: .55rem; }
.reader-toolbar { display: flex; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.reader-tools { display: flex; gap: .5rem; }
.spread { display: block; max-width: min(640px, max(18rem, calc((100svh - 10rem) * 641 / 910))); min-height: 12rem; margin: auto; box-shadow: 0 8px 24px var(--shadow); perspective: 1800px; touch-action: pan-y; }
.spread:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.book-page { min-width: 0; background: #f9f5eb; aspect-ratio: 641 / 910; }
.book-page img { width: 100%; height: 100%; object-fit: contain; }
.reader-navigation { display: flex; gap: 1.25rem; align-items: center; justify-content: center; margin: 1.35rem 0 .5rem; }
.reader-navigation button { width: 48px; height: 48px; padding: 0; font-size: 1.4rem; }
.reader-navigation output { min-width: 10rem; font-size: .82rem; text-align: center; font-variant-numeric: tabular-nums; }
.reader-progress { max-width: 16rem; height: 4px; margin: .75rem auto; background: var(--line); }
.reader-progress span { display: block; height: 100%; background: var(--orange); }
.reader-hint { margin: .6rem 0 0; font-size: .75rem; text-align: center; }
.reading-nav { display: none; }
.readmode .spread { display: block; max-width: 720px; box-shadow: none; }
.readmode .book-page { aspect-ratio: auto; margin-bottom: 1rem; padding: 1.75rem; color: var(--ink); background: var(--surface); }
.readmode .book-page h2 { margin-bottom: 1rem; font-size: 1.75rem; }
.readmode .page-text { font-size: 1.1rem; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.readmode .reading-nav { display: flex; justify-content: center; align-items: center; min-height: 44px; font-size: .78rem; }
.reader:fullscreen { width: 100%; height: 100%; max-width: none; margin: 0; padding: 1.5rem; overflow: auto; }
.reader:fullscreen .spread { max-width: min(640px, calc((100vh - 220px) * 641 / 910)); }
.journey-timeline { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5.5rem; width: min(1000px, calc(100% - 3rem)); margin: 0 auto 4.5rem; }
.journey-timeline h2, .journey-cta h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); }
.journey-timeline ol { margin: 0; padding: 0; list-style: none; }
.journey-timeline li { display: grid; grid-template-columns: 4rem 1fr; gap: 1.4rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.journey-timeline time { color: var(--orange-dark); font-weight: 700; }
.journey-timeline li p { margin: 0; color: var(--ink); }
.journey-cta { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; width: min(1000px, calc(100% - 3rem)); margin: 0 auto 4rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.journey-cta h2 { margin: 0; }
.journey-cta > div:last-child { display: grid; gap: .5rem; justify-items: end; }
.journey-fallback { width: min(1000px, calc(100% - 3rem)); margin: 0 auto 1rem; }
.turned .book-page { animation: book-turn .32s ease-out; transform-origin: left center; }
@keyframes book-turn { from { opacity: .5; transform: rotateY(-12deg); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .journey-timeline { display: block; }
  .journey-timeline ol { margin-top: 1.5rem; }
}
@media (max-width: 640px) {
  .journey-main { padding-top: 4.75rem; }
  .journey-intro { grid-template-columns: 1fr; gap: .6rem; width: calc(100% - 2.5rem); margin-top: 1rem; }
  .reader { width: calc(100% - 1.25rem); padding: .75rem .6rem 1rem; }
  .reader-toolbar { flex-wrap: wrap; gap: .5rem; }
  .reader select { flex: 1; width: 100%; max-width: none; }
  .reader-tools { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .readmode .book-page { padding: 1.25rem; }
  .journey-timeline, .journey-cta { width: calc(100% - 2.5rem); }
  .journey-timeline li { grid-template-columns: 3.4rem 1fr; gap: 1rem; }
  .journey-cta { display: block; }
  .journey-cta > div:last-child { justify-items: stretch; margin-top: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .turned .book-page { animation: none; } }
