/* The small marks (js/site/marks.js): the wait, the house-favorite and
   new-on-the-menu marks, and the hot / iced / as-is marks. Each draws its own fills and lines; the
   page's own glyph styles (stroke widths and the like) stay out of them.
   They move slowly, and hold still with reduced motion. */

svg.mk { fill: none; stroke: none; overflow: visible; }
/* the wait, beside words, unless a page sizes it: about a line tall */
.cup-fill { flex: none; width: 1.45em; height: 1.45em; margin: -0.3em 0 -0.25em -0.2em; vertical-align: middle; }
.fstar.mk, .fnew.mk { width: 1.15em; height: 1.15em; margin-left: 0.18em; vertical-align: -0.2em; filter: none; }
.tglyph--asis { color: #8a6a4a; }

/* ---------- the wait ---------- */
/* the slosh: the coffee sways, steam rises, the chalk line fills */
.m-wave { transform-box: view-box; transform-origin: 12px 15px; animation: mk-slosh 2.4s ease-in-out infinite alternate; }
@keyframes mk-slosh { from { transform: translate(-3.5px, .25px) rotate(-3deg); } to { transform: translate(3.5px, -.25px) rotate(3deg); } }
.m-steam { opacity: 0; animation: mk-steam 2.4s ease-in-out infinite; }
.m-steam + .m-steam { animation-delay: 1.2s; }
@keyframes mk-steam { 0% { opacity: 0; transform: translateY(1.2px); } 40% { opacity: .8; } 100% { opacity: 0; transform: translateY(-1.6px); } }
.m-bar { transform-box: view-box; transform-origin: 4.2px 22.8px; }
.is-loop .m-bar { animation: mk-bar 3.2s cubic-bezier(.4, 0, .3, 1) infinite; }
@keyframes mk-bar { 0% { transform: scaleX(0); opacity: 1; } 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
/* how far along (--p, 0 to 1), when it isn't looping: the coffee's level and the line */
.mk-wait:not(.is-loop) .m-level { transform: translateY(calc((1 - var(--p, 1)) * 7px)); transition: transform .7s cubic-bezier(.3, .7, .3, 1); }
.mk-wait:not(.is-loop) .m-bar { transform: scaleX(var(--p, 1)); transition: transform .7s cubic-bezier(.3, .7, .3, 1); }
/* the stir: the spoon goes round, the foam follows, slower */
.m-spoon, .m-swirl { transform-box: view-box; transform-origin: 10.6px 12.5px; }
.m-spoon { animation: mk-spin 2.6s linear infinite; }
.m-swirl { animation: mk-spin 7.8s linear infinite; }
@keyframes mk-spin { to { transform: rotate(360deg); } }
/* the pour-over: a drop falls, the glass fills, and again */
.m-drop { animation: mk-drop 1.4s ease-in infinite; }
@keyframes mk-drop { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(3.2px); opacity: 1; } 80%, 100% { transform: translateY(3.6px); opacity: 0; } }
.is-loop .m-fill { animation: mk-fill 5.6s ease-in-out infinite; }
@keyframes mk-fill { 0% { transform: translateY(6px); } 80% { transform: translateY(1.2px); } 92% { transform: translateY(1.2px); opacity: 1; } 100% { transform: translateY(1.2px); opacity: 0; } }
.mk-wait:not(.is-loop) .m-fill { transform: translateY(calc((1 - var(--p, 1)) * 5px)); transition: transform .7s cubic-bezier(.3, .7, .3, 1); }

/* ---------- the house favorite ---------- */
/* the cup: now and then the heart swells a little, and the cup glows softly */
.m-heart { transform-box: view-box; transform-origin: 11px 11.8px; animation: mk-breath 4.2s ease-in-out infinite; }
@keyframes mk-breath { 0%, 62%, 100% { transform: scale(1); } 74% { transform: scale(1.09); } 84% { transform: scale(.98); } 92% { transform: scale(1.02); } }
.mk-fav--cup { animation: mk-glow 4.2s ease-in-out infinite; }
@keyframes mk-glow { 0%, 58%, 100% { filter: drop-shadow(0 0 0 rgba(255, 178, 74, 0)); } 74% { filter: drop-shadow(0 0 2px rgba(255, 178, 74, .6)); } }
/* the AD bean: now and then it tilts a little and settles, like a stamp pressed down */
.mk-fav--bean { color: #b8862e; }
body.is-boards .mk-fav--bean, [data-tone="dark"] .mk-fav--bean { color: #f0c46a; }
.m-press { transform-box: view-box; transform-origin: 12px 12px; animation: mk-press 5s ease-in-out infinite; }
@keyframes mk-press { 0%, 70%, 100% { transform: rotate(0) scale(1); } 78% { transform: rotate(-7deg) scale(1.06); } 88% { transform: rotate(2deg) scale(.99); } 94% { transform: rotate(0) scale(1); } }

/* ---------- new on the menu ---------- */
/* the sign: wider than the others, and it swings a little from its nail */
.fnew.mk-new--sign { width: 1.7em; height: 1.17em; vertical-align: -0.24em; }
.m-swing { transform-box: view-box; transform-origin: 16px 1.8px; animation: mk-swing 4.8s ease-in-out infinite; }
@keyframes mk-swing { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
/* the sprout: its leaves sway from the soil, a spark twinkles above */
.m-leaves { transform-box: view-box; transform-origin: 12px 20.4px; animation: mk-sway 3.6s ease-in-out infinite alternate; }
@keyframes mk-sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.m-spark { transform-box: view-box; transform-origin: 18.6px 3.7px; animation: mk-spark 3s ease-in-out infinite; }
@keyframes mk-spark { 0%, 55%, 100% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.1); } 85% { opacity: .8; transform: scale(.9); } }
/* the bulb: its glow breathes, like the string lights' */
.m-glow { animation: mk-bulb 3.2s ease-in-out infinite; }
@keyframes mk-bulb { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .mk [class^="m-"], .mk [class*=" m-"], .mk-fav--cup { animation: none !important; }
}
