/* story.css: what AI Stories adds to the tip page (style.css). A text tip with post cards and four drawings. */
.story .words.head{text-align:center}
.dek{font:500 clamp(20px,2.4vw,24px)/1.4 var(--sans);color:var(--ink);margin:18px auto 0;max-width:32rem;text-wrap:balance}
.story .words.head .byline{margin:18px 0 0}
.story .words>p:first-child{margin-top:0}

/* numbered section heads: the numeral in the hand font, orange, like the brand's numbered steps */
.story h2 .num{font:700 1.05em/1 var(--hand);color:var(--accent);margin-right:.18em}

/* drawings: wider than the column, no frame (white page, the drawing carries itself) */
.art{margin:44px auto;max-width:760px;width:100%}
.art svg{display:block;width:100%;height:auto;overflow:visible}
.art.cover{max-width:980px;margin:36px auto 56px}

/* post cards: the real post, framed in the brand's ink line with the marker offset, linked to the original */
.post-link{display:block;margin:30px auto 34px;max-width:540px;border:2px solid var(--ink);border-radius:18px;background:#fff;
  box-shadow:6px 6px 0 var(--marker);overflow:hidden;transition:transform .15s,box-shadow .15s}
.post-link:hover{transform:translate(2px,2px);box-shadow:4px 4px 0 var(--marker)}
.post-link:focus-visible{outline:3px solid var(--marker);outline-offset:4px}
.post-link img{display:block;width:100%;height:auto}

.nw{white-space:nowrap}
.story .byline .dot{display:none}
.story .byline .date{display:block}
.credit-w{margin-top:64px!important;padding-top:22px;border-top:1px solid var(--hair)}
.story .credit{font:400 15px/1.55 var(--sans);color:var(--muted);text-align:center;margin:0 auto;max-width:30rem}
.story .end{margin-top:40px}
.story .prompt p{font-size:18px}

/* ---------- light motion, only once a drawing is in view ---------- */
@keyframes bob{0%,100%{transform:rotate(0)}50%{transform:rotate(-5deg)}}
@keyframes bob2{0%,100%{transform:rotate(0)}50%{transform:rotate(5deg)}}
@keyframes blink{0%,92%,100%{transform:scaleY(1)}95%{transform:scaleY(.1)}}
@keyframes drip{0%{transform:translateY(0);opacity:0}20%{opacity:1}100%{transform:translateY(16px);opacity:0}}
@keyframes nod{0%,100%{transform:rotate(0)}50%{transform:rotate(1.6deg)}}
@keyframes sway{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(2deg)}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
.art .tool-l,.art .tool-r,.art .crow-eye,.art .sweat,.art .head,.art .sign,.art .glow{transform-box:fill-box}
.art.in .tool-l{transform-origin:50% 100%;animation:bob 2.4s ease-in-out infinite}
.art.in .tool-r{transform-origin:50% 100%;animation:bob2 2.4s ease-in-out infinite -1.2s}
.art.in .crow-eye{transform-origin:50% 50%;animation:blink 4s ease-in-out infinite 1s}
.art.in .sweat{animation:drip 2.2s ease-in infinite .6s}
.art.in .head{transform-origin:50% 90%;animation:nod 3.6s ease-in-out infinite}
.art.in .sign{transform-origin:20% 100%;animation:sway 3.2s ease-in-out infinite}
.art.in .glow{animation:pulse 1.6s ease-in-out infinite}

/* the chart: the line draws itself, the dots and labels arrive along it */
.art[data-art="chart"] .cline{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 2.8s ease .2s}
.art[data-art="chart"].in .cline{stroke-dashoffset:0}
.art[data-art="chart"] .pt{opacity:0;transition:opacity .45s ease}
.art[data-art="chart"].in .pt{opacity:1}
@keyframes halo{0%,100%{opacity:.95}50%{opacity:.45}}
.art[data-art="chart"].in .halo{animation:halo 2s ease-in-out infinite 3s}
.art[data-art="chart"]{max-width:900px}
.art[data-art="chart"] .pt text{paint-order:stroke;stroke:#F3F4F7;stroke-width:7px;stroke-linejoin:round}
.art.still .cline,.art.still .pt,.art.still .grow{transition:none!important}

/* the Bronze Medal meme: one small, compressed image, the way memes travel */
.meme{margin:40px auto 36px;max-width:440px}
.meme img{display:block;width:100%;height:auto;border:1px solid #d9d9d9}
.mcredit{margin:12px auto 0;font:400 14px/1.4 var(--sans);color:var(--muted);text-align:center}
@media (max-width:640px){
  .art{margin:32px -16px}
  .art.cover{margin:20px -16px 36px}
  .post-link{margin:24px auto 28px;box-shadow:4px 4px 0 var(--marker)}
  .credit{font-size:14px}
}
@media (prefers-reduced-motion:reduce){.art *{animation:none!important;transition:none!important}}
