/* Orderly illustrations: colours come from the --il-* tokens in theme.css. */
.art { display: block; width: 100%; height: auto; overflow: visible; }
/* Scenes are drawn in two inks: bold black and one fresh green, on paper.
   Food drawings (.art-glyph) keep their own colours. */
.art:not(.art-glyph) {
  --il-leaf: var(--il-green);
  --il-mint: var(--il-green-pale);
  --il-lime: var(--il-green-soft);
  --il-sun: var(--il-green);
  --il-clay: var(--il-ink);
  --il-glass: var(--il-sheet);
  --ease-sine: cubic-bezier(.37, 0, .63, 1);
}
.art:not(.art-glyph) .s { stroke-width: 2.8; }
.art:not(.art-glyph) .s-thick { stroke-width: 4.4; }
.art:not(.art-glyph) .f-cheek { opacity: 0; }
.art:not(.art-glyph) .art-route { stroke: var(--il-ink); }
.art * { transform-box: fill-box; }
.art .s { fill: none; stroke: var(--il-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.art [class*="f-"].s { stroke: var(--il-ink); }
.art .s-thick { stroke-width: 4; }
.art .s-soft { stroke-width: 2; opacity: .55; }
.art .f-ink { fill: var(--il-ink); }
.art .f-paper { fill: var(--il-paper); }
.art .f-sheet { fill: var(--il-sheet); }
.art .f-leaf { fill: var(--il-leaf); }
.art .f-mint { fill: var(--il-mint); }
.art .f-lime { fill: var(--il-lime); }
.art .f-sun { fill: var(--il-sun); }
.art .f-clay { fill: var(--il-clay); }
.art .f-cheek { fill: var(--il-cheek); opacity: .75; }
.art .f-glass { fill: var(--il-glass); }
.art .f-shade { fill: var(--il-shade); }
.art .f-line { fill: var(--line); }
.art .art-perf { fill: none; stroke: var(--il-ink); stroke-width: 2; stroke-dasharray: 2 4; stroke-linecap: round; opacity: .45; }
.art .art-steam { fill: none; stroke: var(--il-ink); stroke-width: 2.2; stroke-linecap: round; opacity: .4; stroke-dasharray: 26; }
.art .art-route { fill: none; stroke: var(--il-leaf); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 7; }
.art .art-check { fill: none; stroke: var(--il-sheet); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 32; }
.art .art-letter { font: 800 18px/1 var(--display-font); fill: var(--il-ink); text-anchor: middle; }
.art .art-letter--small { font-size: 13px; }
.art .art-letter--price { font-size: 16px; }
.art .art-letter--number { font-size: 15px; }

/* Motion. Delays let the same move ripple across several parts. */
.art .d1 { animation-delay: -.4s; }
.art .d2 { animation-delay: -.8s; }
.art .d3 { animation-delay: -1.2s; }
.art .art-bob { animation: art-bob 3.2s var(--ease-sine, ease-in-out) infinite; }
.art .art-bob-slow { animation: art-bob 4.4s var(--ease-sine, ease-in-out) infinite; }
.art .art-breathe { transform-origin: 50% 100%; animation: art-breathe 4s var(--ease-sine, ease-in-out) infinite; }
.art .art-hop { transform-origin: 50% 100%; animation: art-hop 1.8s linear infinite; }
.art .art-blink { transform-origin: 50% 50%; animation: art-blink 4.6s infinite; }
.art .art-twinkle { transform-origin: 50% 50%; animation: art-twinkle 3s var(--ease-sine, ease-in-out) infinite; }
.art .art-pulse { transform-origin: 50% 50%; animation: art-pulse 1.8s var(--ease-sine, ease-in-out) infinite; }
.art .art-print { animation: art-print 2.4s cubic-bezier(.5, 0, .3, 1) infinite; }
.art .art-snooze { animation: art-snooze 3s ease-out infinite; }
.art .art-sway { transform-origin: 50% 100%; animation: art-sway 4.2s var(--ease-sine, ease-in-out) infinite; }
.art .art-ring-soft { transform-origin: 50% 0%; animation: art-ring-soft 5s ease-in-out infinite; }
.art .art-ring { transform-origin: 50% 0%; animation: art-ring 2.2s linear infinite; }
.art .art-wave { transform-origin: 50% 50%; animation: art-wave 1.4s ease-out infinite; }
.art .art-steam { animation: art-steam 2.4s ease-in-out infinite; }
.art .art-fill { transform-origin: 0% 50%; animation: art-fill 4s ease-in-out infinite; }
.art .art-spin { transform-origin: 50% 100%; animation: art-spin 4s linear infinite; }
.art .art-hour { transform-origin: 0% 50%; animation: art-spin 48s linear infinite; }
.art .art-spin-slow { transform-origin: 50% 50%; animation: art-spin 24s linear infinite; }
.art .art-confetti { animation: art-confetti 3.4s cubic-bezier(.3, 0, .7, 1) infinite; }
.art .art-pop { transform-origin: 50% 50%; animation: art-pop 3.2s cubic-bezier(.3, 1.4, .5, 1) infinite; }
.art .art-check { animation: art-check 3.2s ease-out infinite; }
.art .art-lift { transform-origin: 50% 100%; animation: art-lift 3.4s cubic-bezier(.5, 0, .3, 1) infinite; }
.art .art-swing { transform-origin: 50% 0%; animation: art-swing 3.4s var(--ease-sine, ease-in-out) infinite; }
.art .art-search { animation: art-search 6.5s var(--ease-sine, ease-in-out) infinite; }
.art .art-route { animation: art-route 1.6s linear infinite; }
.art .art-plug { animation: art-plug 2.6s cubic-bezier(.5, 0, .3, 1) infinite; }
.art .art-socket { animation: art-socket 2.6s cubic-bezier(.5, 0, .3, 1) infinite; }
.art .art-spark { transform-origin: 50% 50%; animation: art-spark 2.6s ease-out infinite; }
.art .art-tilt { transform-origin: 50% 100%; animation: art-tilt 4.4s var(--ease-sine, ease-in-out) infinite; }
.art .art-scanline { animation: art-scanline 2.2s var(--ease-sine, ease-in-out) infinite alternate; }
.art .art-buzz { transform-origin: 50% 50%; animation: art-buzz 2.4s linear infinite; }
.art .art-slide { animation: art-slide 3.2s cubic-bezier(.6, 0, .2, 1) infinite; }

@keyframes art-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes art-breathe { 50% { transform: scale(1.03, .96); } }
@keyframes art-hop {
  0%, 64%, 100% { transform: translateY(0) scale(1); animation-timing-function: cubic-bezier(.33, 0, .67, 1); }
  12% { transform: translateY(0) scale(1.06, .93); animation-timing-function: cubic-bezier(.2, .6, .35, 1); }
  34% { transform: translateY(-13px) scale(.97, 1.04); animation-timing-function: cubic-bezier(.55, 0, .75, .4); }
  54% { transform: translateY(0) scale(1.04, .95); animation-timing-function: cubic-bezier(.3, .7, .4, 1); }
}
@keyframes art-blink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.1); } }
@keyframes art-twinkle { 0%, 100% { transform: scale(.4) rotate(0deg); opacity: .3; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
@keyframes art-pulse { 0%, 100% { transform: scale(.7); opacity: .35; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes art-print { 0% { transform: translateY(-48px); opacity: 1; } 50%, 72% { transform: translateY(0); opacity: 1; } 92% { transform: translateY(14px) rotate(4deg); opacity: 0; } 100% { transform: translateY(-48px); opacity: 0; } }
@keyframes art-snooze { 0% { transform: translate(0, 6px) scale(.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(14px, -20px) scale(1.1); opacity: 0; } }
@keyframes art-sway { 50% { transform: rotate(-7deg); } }
@keyframes art-ring-soft {
  0%, 80%, 100% { transform: rotate(0); animation-timing-function: cubic-bezier(.33, 0, .67, 1); }
  85% { transform: rotate(8deg); animation-timing-function: cubic-bezier(.33, 0, .67, 1); }
  90% { transform: rotate(-6deg); animation-timing-function: cubic-bezier(.33, 0, .67, 1); }
  95% { transform: rotate(3deg); animation-timing-function: cubic-bezier(.33, 0, .67, 1); }
}
@keyframes art-ring {
  0% { transform: rotate(0); animation-timing-function: cubic-bezier(.33, 0, .67, 1); }
  10% { transform: rotate(12deg); animation-timing-function: cubic-bezier(.33, 0, .67, 1); }
  22% { transform: rotate(-10deg); animation-timing-function: cubic-bezier(.33, 0, .67, 1); }
  34% { transform: rotate(7deg); animation-timing-function: cubic-bezier(.33, 0, .67, 1); }
  46% { transform: rotate(-4deg); animation-timing-function: cubic-bezier(.33, 0, .67, 1); }
  58% { transform: rotate(1.5deg); animation-timing-function: cubic-bezier(.33, 0, .67, 1); }
  70%, 100% { transform: rotate(0); }
}
@keyframes art-wave { 0% { transform: scale(.82); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.12); opacity: 0; } }
@keyframes art-steam { 0% { stroke-dashoffset: 26; opacity: 0; } 40% { opacity: .45; } 100% { stroke-dashoffset: -26; opacity: 0; } }
@keyframes art-fill { 0% { transform: scaleX(.08); } 70%, 100% { transform: scaleX(1); } }
@keyframes art-spin { to { transform: rotate(360deg); } }
@keyframes art-confetti { 0% { transform: translateY(-10px) rotate(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(140px) rotate(540deg); opacity: 0; } }
@keyframes art-pop { 0% { transform: scale(0); } 18%, 86% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes art-check { 0%, 14% { stroke-dashoffset: 32; } 34%, 100% { stroke-dashoffset: 0; } }
@keyframes art-lift { 0%, 30%, 100% { transform: translateY(0) rotate(0); } 50%, 70% { transform: translateY(-22px) rotate(-6deg); } }
@keyframes art-swing { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
@keyframes art-search { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-36px, 14px); } 50% { transform: translate(-6px, 30px); } 75% { transform: translate(40px, 2px); } }
@keyframes art-route { to { stroke-dashoffset: -18; } }
@keyframes art-plug { 0%, 100% { transform: translateX(-8px); } 45%, 60% { transform: translateX(26px); } }
@keyframes art-socket { 0%, 100% { transform: translateX(8px); } 45%, 60% { transform: translateX(-12px); } }
@keyframes art-spark { 0%, 44% { transform: scale(0); opacity: 0; } 50% { transform: scale(1.2); opacity: 1; } 64%, 100% { transform: scale(.4); opacity: 0; } }
@keyframes art-tilt { 50% { transform: rotate(-4deg); } }
@keyframes art-scanline { from { transform: translateY(0); } to { transform: translateY(60px); } }
@keyframes art-buzz {
  0%, 46%, 100% { transform: rotate(0); animation-timing-function: cubic-bezier(.33, 0, .67, 1); }
  6% { transform: rotate(-5deg) translateX(-1px); animation-timing-function: cubic-bezier(.33, 0, .67, 1); }
  13% { transform: rotate(5deg) translateX(1px); animation-timing-function: cubic-bezier(.33, 0, .67, 1); }
  20% { transform: rotate(-4deg); animation-timing-function: cubic-bezier(.33, 0, .67, 1); }
  27% { transform: rotate(3deg); animation-timing-function: cubic-bezier(.33, 0, .67, 1); }
  34% { transform: rotate(-1.5deg); animation-timing-function: cubic-bezier(.33, 0, .67, 1); }
}
@keyframes art-slide { 0%, 12% { transform: translateX(0); } 50%, 72% { transform: translateX(-84px); } 88% { transform: translateX(-84px); opacity: 0; } 100% { transform: translateX(0); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .art *, .art { animation: none !important; }
}

/* Where scenes sit on a page. */
.art-state {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 20px 12px 8px;
  text-align: center;
}
.art-state .art { width: min(220px, 64vw); }
.art-state h2, .art-state h3 { margin: 4px 0 0; font: 750 1.25rem/1.2 var(--display-font); letter-spacing: -.01em; }
.art-state p { margin: 0; max-width: 34ch; color: var(--muted); }
.art-state--small .art { width: min(150px, 44vw); }
.art-state--loading { animation: art-state-in .5s cubic-bezier(.2, .8, .2, 1) both; }
@media (prefers-reduced-motion: no-preference) {
  .art-state > .art, .page-loading-art > .art, .info-art > .art { animation: art-arrive 700ms cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes art-arrive { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes art-state-in { from { opacity: 0; transform: translateY(6px); } }
.art-glyph { width: 100%; height: 100%; }
.page-loading-art { display: grid; justify-items: center; gap: 4px; padding-top: clamp(40px, 12vh, 120px); }
.page-loading-art .art { width: min(190px, 52vw); }
.art-state[hidden] { display: none; }
