:root {
  color-scheme: light;
  --ink: #242923;
  --muted: #656b63;
  --green: #315b45;
  --line: #dedfd8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #f8f8f4;
  color: var(--ink);
  font: 18px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.page { width: min(680px, 64%); margin: 48px 0 28px max(40px, calc((78vw - 680px) / 2)); }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
.site-header { display: flex; align-items: center; gap: 10px; margin-bottom: 78px; }
.site-header img { width: 32px; height: 32px; }
.wordmark { color: var(--ink); font-size: 24px; font-weight: 650; letter-spacing: -.045em; text-decoration: none; }
h1 { margin: 0 0 44px; font-size: clamp(36px, 4vw, 52px); font-weight: 500; letter-spacing: -.05em; line-height: 1.12; }
p { margin: 0 0 26px; }
.story { max-width: 640px; }
.product-link { display: flex; align-items: center; gap: 14px; width: fit-content; margin: 34px 0 46px; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.product-link:hover { background: #eef0e8; }
.product-link img { border-radius: 10px; }
.product-link > span:last-child { margin-left: 22px; color: var(--green); }
footer { font-size: 14px; }
footer nav { display: flex; gap: 22px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }
footer p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.skip { position: absolute; top: 12px; left: 12px; padding: 10px 16px; background: var(--ink); color: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
.workshop { position: fixed; inset: 16px 16px 16px auto; width: 22%; display: flex; flex-direction: column; align-items: center; overflow: hidden; border: 1px solid #dddccd; border-radius: 16px; background: #edece1; }
.workshop svg { width: 100%; flex: 1; min-height: 0; }
.workshop-hint { margin: 8px 12px 16px; color: #5d6c59; font: 10px/1.5 monospace; }
.bot { cursor: pointer; outline: none; }
.bot:focus-visible .bot-motion > rect:first-child { stroke: #315b45; stroke-width: 1; stroke-dasharray: 2; }
.greeting { opacity: 0; }
.bot.waving .greeting { opacity: 1; }
.workshop.running .reader .bot-motion { animation: read-route 24s steps(18) infinite; }
.workshop.running .builder .bot-motion { animation: build-route 29s steps(20) infinite; }
.workshop.running .gardener .bot-motion { animation: garden-route 32s steps(24) infinite; }
.workshop.running .foot { animation: footsteps .7s steps(2) infinite; }
.workshop.running .right-foot { animation-delay: -.35s; }
.workshop.running .bot.waving .bot-motion, .workshop.running.paused .bot .bot-motion, .workshop.paused .foot { animation-play-state: paused; }
.bot.waving .wave-arm { transform-origin: 20px 16px; animation: wave .35s steps(2) 4; }
@keyframes read-route { 0%, 25%, 100% { transform: translate(0, 0); } 40%, 65% { transform: translate(-30px, 12px); } 80% { transform: translate(10px, 12px); } }
@keyframes build-route { 0%, 30%, 100% { transform: translate(0, 0); } 45%, 65% { transform: translate(-38px, 0); } 85% { transform: translate(-12px, 10px); } }
@keyframes garden-route { 0%, 20%, 100% { transform: translate(0, 0); } 45%, 70% { transform: translate(37px, 0); } 85% { transform: translate(18px, 8px); } }
@keyframes footsteps { to { transform: translateY(-1px); } }
@keyframes wave { from { transform: rotate(-125deg); } to { transform: rotate(-85deg); } }
@media (prefers-reduced-motion: reduce) { .workshop *, .workshop.running .bot-motion { animation: none !important; } }
@media (max-width: 800px) {
  .workshop { width: 20%; inset: 12px 12px 12px auto; }
  .page { width: 70%; margin-left: 28px; }
  .site-header { margin-bottom: 54px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .workshop * { animation: none !important; }
  .bot-motion > rect:first-child { x: -16px; y: -15px; width: 52px; height: 56px; }
  .workshop { position: relative; inset: auto; width: calc(100% - 48px); height: 460px; margin: 36px 24px 24px; }
  .page { width: calc(100% - 48px); margin: 32px 24px 24px; }
  .site-header { margin-bottom: 44px; }
  h1 { font-size: 36px; margin-bottom: 32px; }
}
