microduck-article-demo / article.css
cetiennec's picture
cetiennec HF Staff
Add Microduck SVG animation and article embed
fb11b70 verified
Raw History Blame Contribute Delete
4.36 kB
:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#26303c;background:#fff;font-synthesis:none}*{box-sizing:border-box}body{margin:0}.site-header{height:78px;border-bottom:1px solid #edf0f2;display:flex;align-items:center;justify-content:space-between;padding:0 6vw}.brand{display:flex;align-items:center;gap:12px;color:#334155;text-decoration:none;font-size:15px}.brand>span:first-child{font-size:27px}.brand strong{font-size:18px;letter-spacing:-.5px}.divider{color:#d1d5db;margin:0 5px}.local-tag{display:flex;gap:7px;align-items:center;font-size:11px;font-weight:600;letter-spacing:.04em;color:#67727e;border:1px solid #e4e8ec;border-radius:100px;padding:7px 10px}.local-tag i{width:6px;height:6px;border-radius:50%;background:#dba739}main{max-width:800px;padding:74px 24px 0;margin:auto}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.13em;color:#74808c}.eyebrow span{margin:0 9px;color:#c1c6cd}h1{font-size:clamp(44px,6vw,66px);line-height:1.06;letter-spacing:-2.8px;color:#17212d;margin:24px 0 20px;font-weight:750}.yellow-dot{color:#edb834}.dek{color:#687581;font-size:21px;margin:0 0 30px;line-height:1.5}.byline{display:flex;align-items:center;gap:12px;font-size:13px}.avatar{display:grid;place-items:center;width:39px;height:39px;background:#fff5d7;border-radius:50%;font-size:22px}.byline strong{display:block;font-weight:600}.byline div>span{display:block;color:#8b949d;margin-top:4px;font-size:12px}.rule{height:1px;background:#e9edf0;margin:35px 0}article{font-size:17px;line-height:1.85;color:#52606d}article p{margin:0 0 20px}.lead{color:#34404d}.encounter{margin:38px 0 42px}.encounter-heading,.encounter-footer{display:flex;justify-content:space-between;align-items:center}.small{font-size:10px;color:#a0a7ad}.hint{font-size:12px;color:#83909d}.hint span{margin-left:8px;color:#aa8d41}iframe{display:block;width:100%;height:auto;aspect-ratio:800/180;min-height:120px;border:0;background:transparent}.encounter-footer{padding:16px 0;border-top:1px solid #e9edf0}.encounter-footer p{font-size:12px;color:#8d969d;margin:0}.palette{display:flex;align-items:center;gap:8px}.palette button{width:24px;height:24px;min-width:24px;border:3px solid white;background:var(--swatch);border-radius:50%;box-shadow:0 0 0 1px #e7e9eb;cursor:pointer;padding:0}.palette button[aria-pressed=true]{box-shadow:0 0 0 1.5px #596779}.palette button:hover{transform:translateY(-2px)}.color-label{font-size:11px;color:#7a8591;min-width:49px;margin-left:4px}h2{font-size:26px;letter-spacing:-.7px;line-height:1.35;color:#202d39;margin:42px 0 18px;font-weight:650}.note{display:flex;gap:15px;padding:18px 20px;background:#fafaf8;border-left:2px solid #e8cf85;margin:28px 0 36px}.note>span{font-size:20px;color:#bc9d4f}.note p{font-size:13px;line-height:1.65;color:#808991;margin:0}.embed-details{border-top:1px solid #e9edf0;padding:21px 0;font-size:13px;color:#7a8590}.embed-details summary{display:flex;justify-content:space-between;cursor:pointer;list-style:none;color:#536171;font-weight:550}.embed-details summary::-webkit-details-marker{display:none}.embed-details summary span{font-size:20px;font-weight:400}.embed-details[open] summary{margin-bottom:18px}.embed-details p{line-height:1.7}.embed-details pre{white-space:pre-wrap;word-break:break-word;font-size:12px;line-height:1.65;background:#f6f7f8;padding:16px;border-radius:7px}.embed-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.embed-actions button{font:inherit;border:1px solid #dce1e6;border-radius:6px;background:white;padding:8px 12px;color:#3e4e60;cursor:pointer}.embed-actions a{color:#68798b;text-underline-offset:3px}.page-footer{display:flex;justify-content:space-between;border-top:1px solid #e9edf0;padding:24px 0 40px;font-size:11px;color:#9aa2a9}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #d39c20;outline-offset:5px}@media(max-width:550px){.site-header{padding:0 20px;height:65px}.brand{gap:8px}.brand strong{font-size:15px}.brand .divider,.brand>span:last-child{display:none}main{padding-top:45px}h1{letter-spacing:-1.8px}.dek{font-size:18px}.encounter-footer{align-items:flex-start;gap:12px;flex-direction:column}.hint{font-size:11px}article{font-size:16px}.page-footer{gap:16px}.color-label{min-width:auto}}@media(prefers-reduced-motion:reduce){.palette button:hover{transform:none}}