/* Shared by every page */

/* Social strip: stand-in tiles until the real accounts are wired up */
.social{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.social .post{aspect-ratio:9/14;position:relative;overflow:hidden;background:#2c3038;display:block}
.social .post img,.social .post video{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s}
.social .post:hover img,.social .post:hover video{transform:scale(1.06)}
.social .post span{position:absolute;left:6px;top:6px;background:#14161a;color:#e8e4dc;padding:4px;line-height:0;border-radius:4px}
.social .post span .ico{width:22px;height:22px;margin:0}
.ico{width:1.5em;height:1.5em;vertical-align:-.35em;margin-right:.3em}
@media (max-width:800px){.social{grid-template-columns:repeat(3,1fr)}}

/* Inventory: a small button in the bottom right corner, shown only once you carry something */
.inv{position:relative;display:block}
.inv[hidden]{display:none}
.inv-btn{width:44px;height:44px;padding:7px;box-shadow:3px 3px 0 rgba(0,0,0,.45);background:#e8e4dc;border:2px solid #14161a;border-radius:6px;cursor:pointer;display:block}
.inv-btn svg,.inv-slot svg,.inv-held svg{width:100%;height:100%;display:block}
.inv-btn:hover{background:#ffbe3b}
.inv-btn.new{animation:invNew 2.4s steps(1)}
@keyframes invNew{0%,20%,40%{filter:invert(1);transform:translate(2px,-1px)}10%,30%{filter:none;transform:translate(-2px,1px)}50%{filter:none;transform:none;box-shadow:0 0 0 3px #25f4ee,0 0 0 6px #fe2c55}100%{box-shadow:none}}
.inv-pop{position:absolute;right:0;bottom:calc(100% + 10px);z-index:1500;background:#14161a;color:#e8e4dc;border:2px solid #e8e4dc;padding:8px;box-shadow:6px 6px 0 rgba(0,0,0,.4)}
.inv-pop[hidden]{display:none}
.inv-title{font:700 12px "Pixelify Sans",monospace;letter-spacing:.06em;margin-bottom:6px;opacity:.75}
.inv-slots{display:grid;grid-template-columns:repeat(4,44px);gap:5px}
.inv-slot{width:44px;height:44px;background:#0b0c0f;border:2px solid #2c3038;padding:7px;display:block}
button.inv-slot{cursor:grab}button.inv-slot:hover{border-color:#ffbe3b}
.inv-held{position:fixed;z-index:3000;width:34px;height:34px;pointer-events:none;transform:translate(-50%,-50%) rotate(-8deg);filter:drop-shadow(3px 3px 0 rgba(0,0,0,.5))}
.inv-held[hidden]{display:none}
body.inv-holding,body.inv-holding *{cursor:grabbing !important}
.inv-foot{position:fixed;right:14px;bottom:14px;z-index:900}
.inv-held.parked{animation:invPark 1s ease-in-out infinite}
@keyframes invPark{50%{transform:translate(-50%,-50%) rotate(-8deg) scale(1.2)}}
.inv-pop{max-width:calc(100vw - 20px)}
.inv-slot{position:relative}

/* Site footer */
.site-foot{margin-top:44px;border-top:2px solid #2c3038;background:#14161a;color:#e8e4dc;font:400 14px/1.55 Archivo,system-ui,sans-serif;text-align:left}
.site-foot *{box-sizing:border-box}
.sf-in{max-width:1180px;margin:0 auto;padding:34px 20px 34px}
.sf-cols{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:28px}
.sf-logo{height:44px;display:block;background:#e8e4dc;padding:5px 8px;border-radius:6px;margin-bottom:14px}
.sf-brand p{margin:0 0 6px;max-width:30ch;opacity:.8}
.site-foot h2{font:700 13px "Pixelify Sans",monospace;letter-spacing:.03em;opacity:.6;margin:0 0 10px}
.site-foot ul{list-style:none;margin:0;padding:0}
.site-foot li{margin:0 0 7px}
.site-foot a{color:inherit;text-decoration:none}
.site-foot a:hover,.site-foot a:focus-visible{color:#ffbe3b;text-decoration:underline}
.sf-fine{margin:30px 0 0;font-size:12.5px;opacity:.6;max-width:70ch}
.sf-end{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-top:16px;padding-top:16px;border-top:1px solid #2c3038;font:400 13px "Pixelify Sans",monospace;letter-spacing:.03em}
.sf-end>span:first-child{opacity:.75}
.sf-social{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
@media (max-width:760px){.sf-cols{grid-template-columns:1fr 1fr;gap:24px 18px}.sf-brand{grid-column:1/-1}.sf-brand p{max-width:none}}

/* Privacy and terms pages */
.legal{max-width:720px;margin:0 auto;padding:0 20px}
.legal .top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0 26px}
.legal .top img{height:44px;display:block;background:#e8e4dc;padding:5px 8px;border-radius:6px}
.legal h1{font:400 clamp(30px,6vw,44px)/1.1 "Archivo Black",sans-serif;margin:0 0 6px}
.legal .when{opacity:.6;margin:0 0 26px}
.legal h2{font:600 20px/1.3 Archivo,sans-serif;margin:34px 0 8px}
.legal p,.legal li{font-size:16px;line-height:1.6}
.legal p{margin:0 0 12px}
.legal ul{margin:0 0 12px;padding-left:20px}
.legal li{margin-bottom:6px}
.legal a{color:#ffbe3b}

/* Project pages: one for each project, each in its own colours and typeface */
.proj{max-width:1040px;margin:0 auto;padding:0 16px}
.proj .top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0}
.proj .top img{height:44px;display:block;background:#e8e4dc;padding:5px 8px;border-radius:6px}
.proj .top a{color:inherit}
.proj .hero,.proj .block{background:var(--bg);color:var(--fg);font-family:var(--font);border-radius:14px;padding:clamp(20px,4vw,40px);margin-top:12px}
.proj .hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:clamp(18px,3vw,36px);align-items:center}
.proj .words>.px{opacity:.75}
.proj h1{margin:10px 0 14px;font-size:clamp(38px,6vw,64px);line-height:1.05;font-weight:800}
.proj h1 img{display:block;max-width:100%;max-height:120px}
.proj h1 img.wm{width:min(100%,340px);max-height:none;filter:brightness(0) invert(.97)}
.proj h1.fl{display:flex;align-items:center;gap:12px;font-size:clamp(34px,4.6vw,54px)}.proj h1.fl span{white-space:nowrap}.proj h1.fl img{height:1em}.proj h1.fl em{font-style:normal;color:var(--acc)}
.proj p{margin:0 0 14px;max-width:58ch;font-size:17px;line-height:1.55}
.proj .go{display:inline-block;background:var(--acc);color:var(--on);font-weight:700;font-size:18px;text-decoration:none;padding:12px 20px;border-radius:999px;margin-top:6px}
.proj .go:hover,.proj .go:focus-visible{filter:brightness(1.1)}
.proj .sep{font-size:13px;opacity:.7;margin:18px 0 0}
.proj .shot{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:10px}
.proj .block .shot{margin-top:16px;max-width:640px}
.proj h2{margin:0 0 12px;font-size:24px;line-height:1.2}
.proj ul{margin:0 0 6px;padding-left:20px;font-size:17px;line-height:1.55}.proj li{margin-bottom:6px}
.proj ul.links{list-style:none;padding:0;display:flex;gap:10px 22px;flex-wrap:wrap}
.proj .block a{color:var(--acc)}
.proj .posts{display:grid;gap:10px}
.proj .posts a{display:grid;gap:3px;padding:12px 14px;border:1px solid color-mix(in srgb,var(--fg) 25%,transparent);border-radius:10px;color:var(--fg);text-decoration:none}
.proj .posts a:hover,.proj .posts a:focus-visible{border-color:var(--acc)}
.proj .posts .px{opacity:.65}.proj .posts b{font-size:18px}.proj .posts span:last-child{opacity:.85;font-size:15px}
@media (max-width:760px){.proj .hero{grid-template-columns:1fr}}

/* Project pages: a tagline under the name, and a gallery of pictures and clips */
.proj .tagline{font-size:clamp(24px,3.2vw,36px);font-weight:700;line-height:1.15;margin:0 0 12px}
.proj .gal{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr);gap:14px;align-items:start}
.proj .gal .tall{grid-row:span 2}.proj .gal .tall video{aspect-ratio:4/5}
.proj .gal figure{margin:0}
.proj .gal img,.proj .gal video{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;background:#000}
.proj .gal figcaption{font-size:14px;margin-top:6px;opacity:.85}
@media (max-width:760px){.proj .gal{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.proj .gal .tall{grid-column:1/-1;grid-row:auto;order:-1}}
