/* Shared base for the example studio sites under /examples. Each example
   carries its own character inline; this is only the reset, the example
   bar, the image panels and the motion rules they all share. */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%;object-fit:cover}
h1,h2,h3,p,figure,ul,ol,dl,dd{margin:0}
ul,ol{padding:0;list-style:none}
a{color:inherit;text-underline-offset:4px}
button{font:inherit}
a,button{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:2px solid #2867d9;outline-offset:4px}
.skip{position:fixed;top:8px;left:8px;z-index:100;background:#fff;color:#111;padding:12px;transform:translateY(-160%)}
.skip:focus{transform:none}

/* the bar that says this is our example, not a real studio */
.ex-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 24px;background:#11171f;color:#bcc5cf;font:500 13px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}
.ex-bar b{color:#fff;font-weight:600}
.ex-bar a{color:#fff;text-decoration:none;white-space:nowrap}
.ex-bar i{font-style:normal;color:#e0735f}
@media(hover:hover){.ex-bar a:hover{text-decoration:underline}}
@media(max-width:620px){.ex-bar{padding:8px 16px;font-size:12px}.ex-bar .ex-note{display:none}}

/* image panels: a flat tone with the studio's mark until a photo is in */
.ph{position:relative;overflow:hidden;background:var(--ph,#ddd);color:var(--ph-ink,rgba(0,0,0,.14))}
.ph>img{position:absolute;inset:0;width:100%;height:100%}
.ph[data-mark]::after{content:attr(data-mark);position:absolute;inset:0;display:grid;place-items:center;font:400 clamp(64px,12vw,160px)/1 var(--mark-font,Georgia,serif);letter-spacing:-.04em}
.ph[data-mark]:has(>img)::after{content:none}

/* reveal: only with JavaScript and without reduced motion */
.js [data-up]{opacity:0;transform:translate3d(0,24px,0);transition:opacity .9s cubic-bezier(.2,.7,.2,1),transform .9s cubic-bezier(.2,.7,.2,1)}
.js [data-up].in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.js [data-up]{opacity:1;transform:none;transition:none}}
