/* Wonder Path · the painted path (W3, 2026-11-16). A painted meadow-to-night-sky picture, a winding sandy trail, one painted picture per stop. */
@font-face { font-family: "Chewy"; font-style: normal; font-weight: 400; font-display: swap; src: url("../../shared/fonts/chewy-latin.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("../../shared/fonts/nunito-latin.woff2") format("woff2"); }
body.wp { --ink: #2B2620; --cream: #FFF8E8; --accent: #2F4A2A; --accent-dark: #1D3019; --display: "Chewy", "Comic Sans MS", cursive; --body: "Nunito", system-ui, sans-serif;
  margin: 0; min-height: 100svh; color: var(--ink); font: 700 18px/1.4 var(--body); overflow-x: hidden;
  background: #2B2B52 url("art/path-bg.webp") center top / cover no-repeat; }
.wp-main { position: relative; max-width: 720px; margin: 0 auto; padding: 10px 16px 40px; }
.wp-head { display: flex; align-items: center; gap: 8px; min-height: 64px; padding-left: 56px; }
.wp-back { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; color: var(--cream); background: rgba(31, 51, 32, .5); }
.wp-back svg { width: 26px; height: 26px; }
.wp-head h1 { margin: 0; font: 400 34px/1.1 var(--display); color: var(--cream); text-shadow: 0 2px 8px rgba(20, 16, 40, .55); }
.wp-back:focus-visible, .wp-stop:focus-visible, .wp-play:focus-visible { outline: 3px solid #FFE08A; outline-offset: 4px; }

/* the first screen: one big painted door per topic */
.wp-topics { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 980px; margin: 8px auto 0; }
.wp-topic { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 5px solid #FFF3D6; border-radius: 30px; box-shadow: 0 12px 28px rgba(20, 16, 40, .5); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.wp-topic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wp-topic__t { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 8px 26px 10px; font: 400 34px/1.05 var(--display); white-space: nowrap; color: var(--ink); background: rgba(255, 248, 232, .96); border-radius: 999px; box-shadow: 0 4px 12px rgba(20, 16, 40, .35); }
.wp-topic:focus-visible { outline: 3px solid #FFE08A; outline-offset: 4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .wp-topic img { transition: transform .35s; } .wp-topic:hover img { transform: scale(1.04); } }
@media (min-width: 700px) { .wp-main:has(.wp-topics:not([hidden])) { max-width: 1040px; } .wp-topics { grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 4vh; } .wp-topic { aspect-ratio: 1; } .wp-topic__t { font-size: 42px; bottom: 22px; } }

/* a topic's next stop: the first thing on its path */
.wp-today { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0 18px; }
.wp-play { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; min-width: 200px; padding: 0 34px; font: 400 25px/1 var(--display); color: var(--cream); background: var(--accent); border: 2.5px solid var(--accent-dark); border-radius: 999px; box-shadow: 0 4px 0 var(--accent-dark); text-decoration: none; }
.wp-play:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--accent-dark); }

/* a stop: a painted picture in a round frame, a short title under it */
.wp-stop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 132px; color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.wp-stop__pic { position: relative; display: block; width: 112px; height: 112px; border-radius: 50%; border: 4px solid #FFF3D6; box-shadow: 0 6px 14px rgba(20, 16, 40, .45); background: #e9dcc0; }
.wp-stop__pic img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.wp-stop__t { max-width: 132px; padding: 2px 10px; font: 400 18px/1.15 var(--display); text-align: center; background: rgba(255, 248, 232, .94); border-radius: 12px; }
.wp-stop__done { position: absolute; right: -4px; bottom: -2px; width: 36px; height: 36px; }
.wp-stop__done svg { width: 100%; height: 100%; display: block; }
a.wp-stop:hover .wp-stop__pic { transform: scale(1.04); }
.wp-stop--big { width: 220px; } .wp-stop--big .wp-stop__pic { width: 190px; height: 190px; border-width: 5px; } .wp-stop--big .wp-stop__t { max-width: 220px; font-size: 26px; }
.wp-stop.today .wp-stop__pic { border-color: #FFE08A; box-shadow: 0 0 0 5px rgba(255, 224, 138, .45), 0 8px 18px rgba(20, 16, 40, .5); }
@media (prefers-reduced-motion: no-preference) { .wp-stop__pic { transition: transform .2s; } .wp-stop--big.today .wp-stop__pic { animation: wpGlow 3.2s ease-in-out infinite; } }
@keyframes wpGlow { 0%, 100% { box-shadow: 0 0 0 5px rgba(255, 224, 138, .35), 0 8px 18px rgba(20, 16, 40, .5); } 50% { box-shadow: 0 0 0 11px rgba(255, 224, 138, .5), 0 8px 18px rgba(20, 16, 40, .5); } }

/* the winding trail */
.wp-path { position: relative; }
.wp-trail { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.wp-trail path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wp-trail__edge { stroke: rgba(122, 81, 32, .55); stroke-width: 34; }
.wp-trail__sand { stroke: #F1DFB6; stroke-width: 26; }
.wp-trail__steps { stroke: rgba(122, 81, 32, .35); stroke-width: 6; stroke-dasharray: 2 18; }
.wp-list { position: relative; list-style: none; margin: 0; padding: 30px 0 10px; display: flex; flex-direction: column; gap: 22px; }
.wp-li { display: flex; } .wp-li--L { justify-content: flex-start; padding-left: 8%; } .wp-li--R { justify-content: flex-end; padding-right: 8%; }
.wp-noscript { color: var(--cream); }

/* the footer */
.wp .wfoot { color: rgba(255, 248, 232, .9); background: rgba(20, 18, 40, .55); }
.wp .wfoot a { color: #FFF3D6; display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 700px) { .wp-li--L { padding-left: 16%; } .wp-li--R { padding-right: 16%; } .wp-stop { width: 150px; } .wp-stop__pic { width: 130px; height: 130px; } }
@media (prefers-reduced-motion: reduce) { .wp * { animation: none !important; transition: none !important; } }
