/* mattsoks.com: white page, Nina Maria centred, a small black Instagram link beneath. */
:root{--ink:#000;--soft:#6f6f6f;--faint:#a3a3a3;--font:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Helvetica,Arial,sans-serif}
html,body{margin:0;height:100%;background:#fff;color:var(--ink);font-family:var(--font);-webkit-font-smoothing:antialiased}
body{display:grid;grid-template-rows:1fr auto;min-height:100svh;box-sizing:border-box;
     padding:max(16px,env(safe-area-inset-top)) 16px max(14px,env(safe-area-inset-bottom))}
main{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0}

/* The photo is cropped so her head and chest sit on the centre line; the tail runs off to the right. */
.photo{position:relative;margin:0;line-height:0;animation:rise .6s cubic-bezier(.2,.7,.2,1) both}
.photo img{display:block;width:auto;height:auto;max-width:min(100%,600px);max-height:min(72svh,960px)}
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

/* Crown sparkles. The layer is placed by script exactly over the photo as drawn. The script spawns one
   sparkle at a time at a random highlight on the crown, with its own size, duration and tint, then waits a
   random interval before the next. Each sparkle removes itself when its twinkle ends. */
.sparkles{position:absolute;left:0;top:0;pointer-events:none}
.sparkle{position:absolute;display:block;aspect-ratio:1;transform:translate(-50%,-50%) scale(0);opacity:0;
  filter:drop-shadow(0 0 .6px var(--edge)) drop-shadow(0 0 2.5px var(--glow)) drop-shadow(0 0 6px var(--glow));
  animation:twinkle var(--dur) cubic-bezier(.3,.6,.4,1) forwards}
.sparkle svg{display:block;width:100%;height:100%}
@keyframes twinkle{0%{opacity:0;transform:translate(-50%,-50%) scale(0) rotate(0deg)}
  35%{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(var(--spin))}
  100%{opacity:0;transform:translate(-50%,-50%) scale(.1) rotate(calc(var(--spin) * 2.2))}}

/* A business-card line: small caps, generous tracking. */
.title{margin:clamp(10px,2vh,18px) 0 0;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--soft);
       text-align:center;line-height:1.6;animation:rise .6s .15s cubic-bezier(.2,.7,.2,1) both}
.title .name{color:var(--ink);font-weight:600}
.title .sep{margin:0 .7em;color:var(--faint)}

/* The treat fund: a small black pill, white text, the same font and tracking as the title line. */
.fund{display:inline-flex;align-items:center;gap:.55em;margin-top:clamp(10px,1.8vh,16px);padding:9px 16px 9px 18px;border-radius:999px;
      background:var(--ink);color:#fff;text-decoration:none;font-family:var(--font);font-size:11px;font-weight:600;letter-spacing:.2em;
      text-transform:uppercase;line-height:1;transition:background-color .15s;animation:rise .6s .2s cubic-bezier(.2,.7,.2,1) both}
.fund span{display:inline-block;letter-spacing:0;font-weight:500;transition:transform .15s}
.fund:hover{background:#262626}
.fund:hover span{transform:translateX(3px)}
.fund:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.ig{display:inline-grid;place-items:center;width:44px;height:44px;margin-top:clamp(4px,1vh,10px);border-radius:12px;color:var(--ink);
    transition:background-color .15s;animation:rise .6s .25s cubic-bezier(.2,.7,.2,1) both}
.ig:hover{background:#f2f2f2}
.ig:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.ig svg{width:24px;height:24px}

footer{text-align:center;font-size:11px;letter-spacing:.04em;color:var(--faint);padding-top:8px}

/* The 404 page. */
.lost .photo img{max-height:min(46svh,520px)}
.lost h1{margin:clamp(14px,2.5vh,22px) 0 4px;font-size:clamp(20px,3.2vw,26px);font-weight:600;letter-spacing:-.01em;text-align:center}
.lost p{margin:0;font-size:14px;color:var(--soft);text-align:center}
.lost .home{display:inline-block;margin-top:16px;padding:9px 16px;border:1px solid var(--ink);border-radius:999px;color:var(--ink);
            text-decoration:none;font-size:13px;letter-spacing:.04em}
.lost .home:hover{background:var(--ink);color:#fff}

@media (prefers-reduced-motion:reduce){.photo,.title,.ig,.fund{animation:none}.fund,.fund span{transition:none}.sparkles{display:none}.ig{transition:none}}
